this post was submitted on 10 Jul 2025
869 points (99.8% liked)

Programmer Humor

24932 readers
1469 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] harbard@fedia.io 17 points 13 hours ago (3 children)

this is like when I built that web server in x86 assembly lol.

[–] Ad4mWayn3@sh.itjust.works 20 points 8 hours ago (1 children)
[–] harbard@fedia.io 2 points 5 hours ago

This. This project drained my soul lol.

[–] Im_old@lemmy.world 7 points 12 hours ago (4 children)
[–] Ad4mWayn3@sh.itjust.works 8 points 8 hours ago

I mean, just because you implemented something in a low level lang, it doesn't mean you're gonna have the fastest implementation. Even in high level langs, there's usually heavy optimization involved in things that are done all the time (e.g. web servers)

[–] frezik@lemmy.blahaj.zone 6 points 7 hours ago

Meh. Even hosting static files in a RAM disk over localhost, you're 99% as good as you can be by using the sendfile() system call. The kernel can copy data from one file descriptor to another faster than any userspace program can. Implementing the Length header is a stat() call.

If you're not on a RAM disk and not on localhost, then disk access or network throughput will predominate.

Assembly is not magic go faster sauce.

[–] anton@lemmy.blahaj.zone 1 points 6 hours ago (1 children)

Who do you think is better at writing assembly? @harbard@fedia.io or a modern compiler with hundreds of contributors.

[–] harbard@fedia.io 2 points 5 hours ago

It’s definitely not me

[–] harbard@fedia.io 1 points 5 hours ago

yeah, in one sense it was lol.

[–] laserm@lemmy.world 3 points 7 hours ago (1 children)

I once write a web app in C, but this terrifies even me.. though Tsoding, the guy in the video, did that, too..

[–] harbard@fedia.io 2 points 5 hours ago

My favorite so far is either my websever in bash or my webserver in Common Lisp. my webserver in C was fun too though