top | item 46080579

C++ Web Server on my custom hobby OS

102 points| joexbayer | 3 months ago |oshub.org

14 comments

order

Aldipower|3 months ago

"After a long break from working on my hobby operating system, I finally got back into it and finished a very important milestone"

This is a sign of great engineering. Code gets foreign code after some time of not being in it. If you easily can pick it up again, it is a sign that you've written maintainable and understandable code, also for others.

canyp|3 months ago

Great website, massive rabbit hole I didn't know existed. There's a verified Ada/SPARK OS in there...

roetlich|3 months ago

Very cool! Why was and the entire networking stack straight forward, but not HTTP (and TCP)? Could you take inspiration form other projects for things like DNS?

joexbayer|3 months ago

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

yupyupyups|3 months ago

You should add OpenAPI generation. So that basically the endpoint /openapi.json is auto-generated.

nesarkvechnep|3 months ago

Like most thing in web development, this is backwards. Applications should be generated from the spec, not the other way around.