Re:Building a web server in aarch64 assembly to give my life...
by senfiaj on Monday May 11, 2026 @11:36AM
(#48096427)
IMHO, for servers IO (FS/DB, network, etc) is usually a greater bottleneck. Microoptimizations make sense only for CPU bound problems.
[ Parent
| on HN ]
Re:Building a web server in aarch64 assembly to give my life...
by jvanderbot on Monday May 11, 2026 @11:39AM
(#48096469)
I am pained to think of TLS/HTTPS implemented as a hobby project in ASM, but would be impressed to see it.
Re:Building a web server in aarch64 assembly to give my life...
by LegionMammal978 on Monday May 11, 2026 @11:44AM
(#48096541)
I did actually make an attempt at that once for BGGP5 [0]. (That is, making a minimal, horribly insecure 'client' implementing just enough behavior to get a response from a server.) But I got demoralized by how much space the binary blobs for the crypto algorithms took up, in comparison to the actual machine code.
Re:Building a web server in aarch64 assembly to give my life...
by dorianmariecom on Monday May 11, 2026 @12:31PM
(#48097229)
that url leads to scam
Re:Building a web server in aarch64 assembly to give my life...
by cevn on Monday May 11, 2026 @01:22PM
(#48097863)
If you keep scrolling down there is some kind of contest, I was confused at first as well. It seems to be parodying scam sites.
Re:Building a web server in aarch64 assembly to give my life...
by tyingq on Monday May 11, 2026 @01:56PM
(#48098312)
You could borrow the output of the perl scripts from openssl.
https://github.com/openssl/openssl/blob/master/crypto/aes/as...
Re:Building a web server in aarch64 assembly to give my life...
by golem14 on Monday May 11, 2026 @02:22PM
(#48098686)
I'd really like to see a TCP/IP stack written in native forth (if anyone needs a really good therapist, that sounds like a _great_ project to try ;)
I mean, it doesn't look _that_ daunting, but the fact that noone seems to ever have release an open source version (there are rumours of proprietary stacks though) speaks for itself.
One of these days ...
Re:Building a web server in aarch64 assembly to give my life...
by HeliumHydride on Monday May 11, 2026 @09:00PM
(#48102884)
This is a web server, but not a full TCP/IP implementation:
https://news.ycombinator.com/item?id=19146767
Re:Building a web server in aarch64 assembly to give my life...
by golem14 on Tuesday May 12, 2026 @12:50AM
(#48104305)
Yes, well aware of it, that's actually very nice for building higher levels of the webserver.
I'd really like to have a complete forth machine dealing with everything, say on an esp32. I guess there's FreeRTOS, so I could use that network layer, but bare metal would be so much cooler. I admit I don't even understand how it would work - would I have to bit-bang the ethernet lines?
Re:Building a web server in aarch64 assembly to give my life...
by seba_dos1 on Tuesday May 12, 2026 @05:58AM
(#48106162)
You interface with SoC's peripherals rather than bit-bang lines. You can think of them as a kind of memory mapped APIs.
Re:Building a web server in aarch64 assembly to give my life...
by golem14 on Tuesday May 12, 2026 @04:30PM
(#48114107)
I never interface with the peripheral in an ESP32 directly. I guess I really need to read the Free-RTOS code. Micropython just uses that, last I checked.
Re:Building a web server in aarch64 assembly to give my life...
by thisislife2 on Tuesday May 12, 2026 @01:18PM
(#48111257)
I was thinking more of the memory usage. As another project posted on HN described, they were running the web server in the RAM of an RPi ( https://news.ycombinator.com/item?id=48064312 ). Without a full-fledged OS, and a tiny (and fast) webserver coded in Assembly, more RAM would be available for the webserver and they could serve more users.