Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: A static file server in x86 Assembly (github.com/jeaye)
12 points by Jeaye on June 20, 2019 | hide | past | favorite | 3 comments


Nicely written though I think you could shave some bytes off it.

For example in your `error_failed_allocation` function you don't need to jump to the `error_die` function - just fall-through..

https://github.com/jeaye/toybox/blob/5a1978e134db6d70b30cac4...


Love this. I have a special appreciation for those that can write in assembly. It's one of those things, even after reading about it, that I just can't fully wrap my head around. I'm also a huge fan of efficiency (super small/fast programs, websites, etc) and assembly stuff is commonly in that vein.


I love the code style of your repo. It's very easy to read and I'm a sucker for the 0x80 interrupt call syntax. It just makes it feel more 'assembly'..

Thanks for posting - looking forward to going through it properly this weekend!..




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: