Hacker Newsnew | past | comments | ask | show | jobs | submit | joexbayer's commentslogin

A related article discussing Gustedt’s first defer implementation, which also looks at the generated assembly:

https://oshub.org/projects/retros-32/posts/defer-resource-cl...


Up to TCP most protocols are very straight forward, atleast getting them to work semi reliable. But then TCP explodes in complexity with all the state management and possible paths a connection can take.

HTTP is mostly annoying because of all the text parsing :D


Yeah...HTTP/1 is one of those weird cases where the older protocol is considerably more difficult to implement correctly than the newer ""more complex"" standard. This is especially true if you want your server to work with they myriad of questionably compliant clients out in the world.

HTTP/3 might have been easier, and using QUIC+HTTP/3 in your hobby OS is a fun flex :)


httpdito http://canonical.org/~kragen/sw/dev3/server.s implements HTTP/1.0 GET in about 320 machine instructions, and I haven't yet found a questionably compliant client that doesn't work with it. Writeup in http://canonical.org/~kragen/sw/dev3/httpdito-readme.


I don’t think that http/3 is easier to implement than http/1.1 especially since h3 is stateful where http/1.1 is not. Especially not when everything should be working correctly and securely because the spec does not always tell about these things. Oh and multiplexing is quite a hard thing to do especially when you are also dealing with a state machine and each of your clients can be malicious.


I can't speak to http/3 (I haven't tried to impl it), but I can say that a bare-bones http/2 is very easy to implement because it doesn't try to pretend to be prose.


Wow! Looks great! Id suggest checking out https://oshub.org/ it has a lot of hobby operating systems similar to this one.


Small blog post exploring a defer implementation using GCC’s cleanup + nested functions, looking at the generated assembly and potential use cases.


I’ve had a bunch of images of my OS lying around from over the years. Luckily, I started taking them early, all the way back to the textmode days. I thought I’d put together a small post series to look back on the different stages and how it’s evolved.

Any feedback is welcome! Hope you enjoy.


Been working on this site for a while after working on my own hobby OS for a few years. Idea is to have a central place to share and gather hobby operating systems.

Its possible to login with github and import projects from gitlab, codeberg and github. You can also import your projects without a user (although you wont be able to manage the project then).

Also allows posting "posts" on your project (devlogs, blogs, discussions, releases). Its all still in beta and got some future ideas that would be cool to implement. Would love any ideas or feedback.

Been posting changelogs at: https://oshub.org/changelogs


Oh, didn’t notice that lmao!


Det er hvad der sker når man har et norsk tastatur...


Thanks! I’d encourage you to continue! Took alot of breaks myself, but chipping away at it is really rewarding.


Thanks!


Yeah, love that machine! Thanks!


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

Search: