Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Then please show us how it is done.


Writing 'hello world', or a fixed set of dispatch calls is still trivial with epoll now. In the late '90s when the web APIs (before REST) started to become a thing, writing an http C server few specific calls was quite the thing - there was no epoll, yet.

Likely, I can write one (http1.1) in Java just using java.nio + DirectBuffer; no converting anything to String (similar to using void* for everything)... in several hours. It'd even scale with the amount of cores the machines has. It won't do much but as a micro benchmark (hello world) would be up there.

That's nothing about usefulness of the code, or skill - it's just the benchmark is not useful for anything outside toying with.


basic web server, for example https://github.com/lionkor/http.

anything eith a real workload is kinda irrelevant here, as this benchmark only focuses on hello world.


And by basic you mean about 1000 lines of code that don't even support TLS.


Yep, basic, yes, by definition not advanced and it even says not to use in production. If you need TLS, put it behind traefik/nginx/whatever




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: