logoalt Hacker News

Building a web server in aarch64 assembly to give my life (a lack of) meaning

121 pointsby theanonymousonelast Friday at 1:39 PM40 commentsview on HN

Comments

podlptoday at 10:59 AM

The work of a true masochist, but in all seriousness, it’s a solid article explaining aarch64 assembly in plain language.

StilesCrisisyesterday at 5:54 PM

"i hate string parsing. especially in assembly."

Well. Interesting choice of side project!

nikisweetingyesterday at 11:50 PM

Nice, I've been trying to learn assembly myself recently and built a little REPL to play around with it directly https://github.com/pirate/assembly-repl

But I've struggled with the IO parts, it seems every system is so different, it's hard to live without LLVM-IR as the middle layer abstracting away compiler and target differences.

thisislife2yesterday at 2:45 PM

This is an interesting project - kudos for executing it. I have to admit that when I was starting out in this field, I too fantasised about, "Would this software be faster, smaller and better in assembly?". Ofcourse, assembly programming made some sense in embedded electronics, which can be very resource constrained and even specialised for one particular application. Thinking from that aspect, perhaps you should consider making this a specialised program that runs on something like a Raspberry Pi - running such a web server directly on it, without an OS (or a very minimal OS), would make for a real cool and interesting project.

show 2 replies
triilmantoday at 5:14 AM

I have created the same project but for Risc-V https://github.com/triilman25/tcp-socket-in-riscv-assembly

pixelesqueyesterday at 3:08 PM

Previous comments from two days ago:

https://news.ycombinator.com/item?id=48080587

show 2 replies
declanktoday at 1:00 AM

There is the lesser-known web server rwasa written in flat assembler: https://2ton.com.au/rwasa/

drob518yesterday at 6:43 PM

I’m curious what the performance of this implementation is versus a server written in C, C++, or Rust. How much performance can a human still squeeze out at the assembly level versus today’s state of the art compilers?

show 1 reply
globnomulousyesterday at 6:21 PM

I love this. I'm wondering: what skills did this project hone? What are you better at now than you were before you undertook it? Or was it just for fun?

peterpanheadyesterday at 4:28 PM

Fun project.

imvetriyesterday at 5:42 PM

How to do assembly only to build a web server for the hardware? I mean it may sound like building os from scratch.

Serhii-Setyesterday at 6:27 PM

[dead]

DeathArrowyesterday at 5:32 PM

Meanwhile another 10000 developers published desktop apps, mobile apps and system software written in javascript. /s