Show HN: Building a web server in assembly to give my life (a lack of) meaning
Key takeaways
- This is ymawky (yuh maw kee), a web server written entirely in ARM64 assembly. ymawky is a syscall-only, no libc, fork-per-connection web server written by hand.
- Install with xcode-select --install. ymawky only runs on apple silicon (arm64).
- Ensure there is a www/ directory next to the ymawky executable.
This is ymawky (yuh maw kee), a web server written entirely in ARM64 assembly. ymawky is a syscall-only, no libc, fork-per-connection web server written by hand. While it is developed for Mac OS, I've tried to make it as portable as possible -- however, it's likely you will still need to make some (hopefully minor) Significant tweaks to get this to run on Linux/other Unix systems. See Implementation Notes for more details.
Requires Xcode Command Line Tools. Install with xcode-select --install. ymawky only runs on apple silicon (arm64).
Ensure there is a www/ directory next to the ymawky executable. That's the document root where ymawky searches for files. GET with an empty filename (GET /) will search for www/index.html, so you might want to make sure there's an index.html as well.