frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Building a web server in assembly to give my life (a lack of) meaning

https://github.com/imtomt/ymawky
70•imtomt•1h ago
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

imtomt•1h ago
This post seems to now link to the writeup rather than the repository, sorry! The repo can be found at the top of that page, or directly here: https://github.com/imtomt/ymawky
dang•53m ago
Whoops that was my fault. Fixed now. (I emailed you, btw, that we'd changed your title, but I forgot to switch the URL back to the repo. Both links are cool.)

I'm sure I'm not the only one who has fantasized about doing something like this as a self-soothing enterprise. Kudos to you for actually doing it!

imtomt•39m ago
Hey, thank you! Means a lot. It's an odd sort of meditation, but is surprisingly the most almost-therapeutic project I've worked on. Something about the constraints of Assembly that really pull you into the minutiae and clears your head, maybe.
thatxliner•1h ago
I'm wanting to read this repository as a learning tool, so it'd also be nice to include docs—even AI-generated docs, but obvious I'd prefer docs with your own design notes and decisions—about the architecture of the code.

Really cool project though!

imtomt•57m ago
Thanks, I appreciate it a lot! I tried to comment my code pretty heavily (~3000 lines of code, ~1000 lines of comments all together), since this was a learning project for myself in the first place. Hopefully those will be of some use. But separate in-depth documentation is definitely a good idea, I'll work on adding that. In the meantime I'm always down to answer any questions about it!
thatxliner•55m ago
My first question would be where should I start reading? It seems like you modularized it into multiple assembly files (how does that even work?)
imtomt•44m ago
Honestly, read the main file, ymawky.S first. Then I'd read through get.S maybe, checking parse.S on an as-needed basis for parsing-related functions. delete.S or options.S are pretty short, too, so give those a read too.

Modularizing it into multiple files was easier than I expected it to be, you basically have other functions/labels in other files, and mark them as .global at the top. The Makefile compiles each file into their own .o, which you then link all together. You can "b" or "bl" to any label from any other file, as long as it's global and linked together. Same with data in .bss or .data, mark them as .global and they can be accessed from elsewhere.

chrisweekly•59m ago
That fake O'Reilly book cover is pure gold.
imtomt•55m ago
That book is exactly what inspired me to make this in the first place, haha. The subtitle of the book gave me the acronym I named it.
trollbridge•57m ago
Gave me a warm feeling to know that someone would actually still bother to do this by hand. I'm not the only one!
imtomt•50m ago
Thank you! I've been obsessed with this idea for a while, finally decided to start on it, then obsessed over it for a couple weeks. I'd love to see some of your projects if you have anything similar, I'm glad I'm not the only one too! I think most programmers would benefit a lot from taking a few weeks or months to try and learn some assembly, and demystify how CPUs and compiled languages work.
_the_inflator•50m ago
I feel the guy’s suspicion towards any high level language. I exclusively programmed in assembly on C64, Amiga and the recognized that this ain’t sustainable on PC because there are more and more edge cases or different machine configurations.

I had a very hard time simply using and even utilizing C++ or Java.

C and Turbo Pascal especially was easier because the compiled code was very much resembling to hand written code.

As the author described, you can do in 4.000 lines what others can do with way less pain in 100.

So you build macros, come up with your own library and in the end you kind of build a meta language build on top of assembly because some lines are so hard to grasp that you delegate working code into a library for reuse.

It is funny how much we take conventions for numbers for granted. If you happen to know assembly and its intricacies you immediately will learn to work with a sign bits which mark negative numbers. But how do you know? Maybe you use the whole addressable space only for positive numbers.

Small things that make a huge different.

Nice article, I enjoyed your adventures and would do the same.

imtomt•24m ago
Thank you! The thing about eventually building your own meta language ends up happening all the time with bigger assembly projects. I do have a fair few quality-of-life macros too, but probably fewer than I should. I did end up needing to implement by hand what would be standard functions, things like atoi, itoa, strlen, memcpy, streqn.

Higher level languages are more convenient for 99% of things, but the directness of Assembly gives me a rush unlike any other. I didn't live through the C64/Amiga, but I was obsessed with old C64/ZX emulators growing up.

digitaltrees•31m ago
I don’t know why, but this project has me irrationally excited!
jjbigs•21m ago
This is fucking nuts
OutOfHere•15m ago
An agentic LLM should be pretty good at Arm64 assembly generation, but maintainability of large code could become an issue. Why would it not run on Linux?
shepherdjerred•13m ago
The first paragraph of the README says this was hand written so I’m not sure why you’re bringing up LLMs
rogeliodh•10m ago
Awesome. Any resource recommendations to learn ARM assembly?
boring-human•6m ago
Even after we've all retired (pretty soon for those who can afford it) or transitioned out of software engineering (for those who can't), we'll still get to amuse each other with home-brew projects like this. Warm fuzzy feeling - I'll take it!

What is Elon Musk's formula

https://www.economist.com/culture/2026/05/07/what-is-elon-musks-formula
1•andsoitis•1m ago•0 comments

Hantavirus tracker with Pandemic 2's UI

https://hantavirus.xetera.dev/
1•xetera•1m ago•0 comments

Atlas Mehs

https://darthcoder.github.io/2026/05/10/atlas-mehs/
1•basyt•16m ago•1 comments

The Title on Your Badge Is Becoming a Guess

https://priorcontext.substack.com/p/the-title-on-your-badge-is-becoming
1•contextwindow•18m ago•1 comments

Arrow Flight vs. JSON in Next.js: Benchmarking Python and Go

https://kayhan.dev/posts/012-arrow-flight-vs-json-nextjs-snowflake-benchmark/
1•keynha•23m ago•0 comments

The Hidden Reason Screwdriver Handles Look Like This [video]

https://www.youtube.com/watch?v=sGiRSA_GWK8
1•CharlesW•24m ago•0 comments

Global AI Diffusion Q1 2026 Trends and Insights

https://www.microsoft.com/en-us/corporate-responsibility/dmc/topics/ai-economy-institute/reports/...
2•igor_mart•30m ago•1 comments

Grinder12: 0.96-Bit Lossless Streaming KV-Cache (16.55x VRAM Savings

https://github.com/ggml-org/llama.cpp/discussions/22891
3•AMICLLC•38m ago•0 comments

Xs of Y – roguelike that names itself every run. Written in 4kLoC

https://github.com/nooga/xsofy
3•andsoitis•47m ago•0 comments

Gemini API File Search is now multimodal

https://blog.google/innovation-and-ai/technology/developers-tools/expanded-gemini-api-file-search...
14•gmays•58m ago•0 comments

Snyk and Claude Code: real-time security scanning of AI-generated code

https://codebrainery.com/articles/snyk-claude-code-real-time-security-scanning-for-ai-code
4•yogeshbansal•58m ago•0 comments

Dissolving atherosclerotic plaque without surgery

https://www.cureus.com/articles/488870-closed-loop-extracorporeal-vascular-cleaning-by-staged-che...
3•iliatoli•1h ago•0 comments

Show HN: Modafinil - Let agents continue running while MacBook lid is closed

https://github.com/narcotic-sh/modafinil
3•hamza_q_•1h ago•0 comments

"genesis mission (US Government)" (Angela Collier on AI and research) [video]

https://www.youtube.com/watch?v=p6Ejmhwb8Sc
2•eqvinox•1h ago•0 comments

MCP for sandboxed, reproducible envs for agentic-first coding workflows

https://github.com/aniongithub/devcontainer-mcp
3•anionyt•1h ago•0 comments

Flipping the bozo bit on flips the learning off

https://surfingcomplexity.blog/2026/05/09/flipping-the-bozo-bit-on-flips-the-learning-off/
3•eatonphil•1h ago•0 comments

Powering the Inference Era: Inside the DigitalOcean AI-Native Cloud

https://www.digitalocean.com/blog/powering-the-inference-era
2•gmays•1h ago•0 comments

The Laboratory and the Artist

https://clereviewofbooks.com/the-laboratory-and-the-artist/
3•skogstokig•1h ago•0 comments

Memory device breaks high-temperature performance record

https://physicsworld.com/a/memory-device-breaks-high-temperature-performance-record/
4•EA-3167•1h ago•1 comments

How Israel's creation mirrors Greek independence – and why it's overlooked

https://www.jpost.com/opinion/article-895285
5•dima1830•1h ago•2 comments

DOS, Floppies, NetBSD and Nostalgia

https://exquisite.tube/w/dkV6kWiT9sp2y6xVwkH1iF
3•jaypatelani•1h ago•0 comments

Show HN: A Satellite Visualizer

https://github.com/aabiji/kepler
2•aabiji•1h ago•0 comments

Pocket Raspberry Pi Computer for Hackers [Pre-Sale]

https://shop.m5stack.com/pages/m5-cardputerzero
3•daniel_iversen•1h ago•0 comments

Show HN: Fixing AI memory blind spot on connected facts with benchmark

https://yourmemoryai.xyz/
4•SachitRafa•1h ago•0 comments

Plant Seeds Do Something When the Sound of Rain Strikes

https://www.sciencealert.com/plants-can-sense-the-sound-of-rain
2•m463•1h ago•0 comments

Show HN: Building a web server in assembly to give my life (a lack of) meaning

https://github.com/imtomt/ymawky
72•imtomt•1h ago•21 comments

Anthropic weighs deal for near $1T valuation as revenue surges

https://www.ft.com/content/a40cafcc-0fa4-4e70-9e24-90d826aea56d
4•mfiguiere•1h ago•0 comments

Show HN: A Codex/Claude Code plugin for persistent product context thru sessions

https://github.com/idodekerobo/draft-cli-plugin
3•idodekerobo•1h ago•0 comments

Godot Usage and Engine Growth

https://godotengine.org/article/godot-growth-stats-2026/
3•JSLegendDev•1h ago•0 comments

Ask HN: Can a tinnitus be triggered by high frequency noises?

3•tinnitus_crazy•1h ago•5 comments