News for hackers. Stuff that matters.
Re:Show HN: A little web server in C by whartung on Tuesday May 16, 2023 @06:08PM (#35968420)
I dunno. I haven't written a multiplexing I/O server. I haven't written a CGI forking process. I haven't written a reverse proxy handler. Heck, I haven't written C in years.

All sorts of reason why someone might want to write one of these. There's even a bunch of free tools to help test it (and who doesn't like free tests!).

Until you put fingers to keyboard, you just don't know, it's all book learnin'.

Re:Show HN: A little web server in C by tmountain on Tuesday May 16, 2023 @06:11PM (#35968446)
Good for you. Great way to learn!
Re:Show HN: A little web server in C by csdvrx on Tuesday May 16, 2023 @07:13PM (#35969028)
> Until you put fingers to keyboard, you just don't know, it's all book learnin'.

This!

Also writing a HTTP server seems like a hacker rite of passage, like creating your own lightsaber for a Jedi.

So last Christmas, I did just that :)

Personally, I like retrocomputing so I did mine in perl. I learned a lot of things, and I added a few "modern features" as extras like mDNS and cosmopolitan, because it's more fun to use something.local that 127.0.0.1)

It's on https://github.com/csdvrx/PerlPleBean and if you want to dig into mDNS, check the Bonjour part on https://github.com/csdvrx/PerlPleBean/blob/main/experiments/...

It's very fun to be able to launch just one executable and then curl whatever.local

Re:Show HN: A little web server in C by robdelacruz on Thursday May 18, 2023 @02:54AM (#35984824)
Love your project and enjoyed reading your extended README file. Perl and retrocomputing gives me a warm feeling inside.
Re:Show HN: A little web server in C by csdvrx on Thursday May 18, 2023 @12:26PM (#35990349)
Thanks! I've got to get back at it :)