Lurker News
This is ymawky, a static file web server for MacOS written entirely in ARM64 assembly. It supports GET, PUT, DELETE, HEAD, and OPTIONS requests, and supports Range: bytes=X-Y headers (which allows scrubbing for video streaming). It decodes percent-encoded URLs, strictly enforces docroot, serves custom error pages for any HTTP error response, supports directory listing, and has (some) mitigations against slowloris-like attacks.

I’ve also written a more detailed writeup here: https://imtomt.github.io/ymawky/

Comments (227) 57 threads

Earlier comments
scuff3d#
This is awesome! I'll have to try reading through the code when I have more time.

It would be awesome to read a blog post about the project. Your approach, lessons learned, unexpected stuff, etc.

rogeliodh1 reply#
Awesome. Any resource recommendations to learn ARM assembly?
imtomt#
Honestly, just reading existing assembly to get a feel for how it works, and then violently googling everything that goes wrong. The ARM Architecture Reference Manual (aka "The ARM ARM") ended up being really helpful for looking up what specific instructions do and how they're called. Another really helpful tool is writing something in C/C++, and compiling with "gcc -O1 -S file.c" to see the assembly gcc generated. It helps to mess around a lot with smaller programs in gdb or lldb.
washingupliquid1 reply#
Didn't Steve Gibson do this like 25 years ago? AFAIK his "Shields Up" site is written in Win32 assembly.
eptcyka#
Then it is unlike this, as this is written in arm64, not x86, and not for Win32.
bananaboy#
This is amazing, great work! I love it!

Load more comments