Live data from Hacker News

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

github.com

61–70 of 246 posts

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

#61
post #51

Syscalls on macOS aren't guaranteed to be stable - Go found out the hard way and in 1.12 they changed to call libSystem.dylib instead. In general, stable syscall numbers are just a Linux thing. Everyone else uses blessed system libraries

Yeah, I know MacOS syscalls aren't stable. Interesting point about Go, I hadn't heard about that. Unfortunately I'm a masochist though, and want to avoid libSystem.dylib as much as possible. The only reason I link against it at all is because MacOS requires it for executables to run, I never actually call into it. Figured I'd just update the syscall numbers if/when they change.

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

#62

I'm oddly enthusiastic about seeing someone who beings the HACKER in HackerNews. But at the same time, this made me remember the days when display of skill and craftsmanship were rewarded in the industry. Maybe it's finally time to move on from being a career programmer.

What a dismissive comment. Now that anyone can have an LLM write code for them, the only people who have value to bring to a project are the ones who can improve upon the LLM's output. That is, the ones who have a deep enough understanding of the logic and language. And the only people who will ever be in that position are the ones who take the time and effort, out of sheer curiosity, to learn how things work. Whatever your alternative is to this, there is no future in the alternative.

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

#65

Even though it's a meaningless comparison, I'd be interested to see how performance compares (max requests per second?) for this compared to fully-featured web servers.

Should i ask my Claude to benchmark it against nginx or will you ask yours

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

#66

I've used Python (django/flask/fast api), Java (springboot), Ruby on Rails for writing web applications and APIs. Nothing beats Go. When you use HTMLX (goat) + sqlc (goat) + pgx (another goat) + Chi (yet another goat) and Sqlite (goat). Most apps will not need anything more than Sqlite, i've several sqlite apps doing a couple of million visits per day. Compiles to signal binary blazingly fast. Deploy using systemd se…

I’ve written all of these languages and more professionally. I agree none match the speed and simplicity of golang. Go is that efficient.

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

#68
I am attempting to write a software renderer in WebAssembly because, for some reason, I feel the need to go against the direction this vibe coded world is going, and I want to feel challenged again. I don't know if I will ever finish it, it is crazy, and by no means useful. But gosh it feels so good.

Congratulations to the OP for the accomplishment.

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

#69
post #68

I am attempting to write a software renderer in WebAssembly because, for some reason, I feel the need to go against the direction this vibe coded world is going, and I want to feel challenged again. I don't know if I will ever finish it, it is crazy, and by no means useful. But gosh it feels so good. Congratulations to the OP for the accomplishment.

Please post your progress! That sounds cool as hell
Post reply on HN