News for hackers. Stuff that matters.
Re:Show HN: unsafehttp – tiny web server from scratch in C, ... by throwaway1492 on Saturday August 16, 2025 @09:36PM (#44928237)
Nice effort but this isn’t interesting at all. You skipped the most interesting part; parsing http. This is beejs networking tutorial with writing a file to a socket.

Harsh? Maybe, but you’re posting this to a site with some of the most talented developers on planet. Real talk, sorry.

Re:Show HN: unsafehttp – tiny web server from scratch in C, ... by bevhill on Saturday August 16, 2025 @10:06PM (#44928340)
I swear that the only thing that draws people to this industry is the desire to escape their home village. It certainly isn't the quality of conversation with like-minded tinkerers. It's just losers like you who think a big paycheck for playing with Jira means you're the smartest boy in the world. God help us.
Re:Show HN: unsafehttp – tiny web server from scratch in C, ... by bevr1337 on Saturday August 16, 2025 @10:01PM (#44928324)
Shitty reply and this critique isn't helpful at all. You assumed the most interesting part; the thing you personally want.

Harsh? Maybe, but you're posting this to a site with some of the most jaded developers on the planet. Not sorry.

Re:Show HN: unsafehttp – tiny web server from scratch in C, ... by RVuRnvbM2e on Saturday August 16, 2025 @10:20PM (#44928387)
Obviously you aren't one of them with an attitude like that.
Re:Show HN: unsafehttp – tiny web server from scratch in C, ... by tom_ on Saturday August 16, 2025 @10:19PM (#44928383)
Parsing HTTP is entirely unnecessary. That's the web client's job.
Re:Show HN: unsafehttp – tiny web server from scratch in C, ... by integralid on Sunday August 17, 2025 @08:04AM (#44931017)
Do you mean parsing HTML? HTTP is the protocol they use to communicate, so both client and server must speak it. Or did I misunderstand you?
Re:Show HN: unsafehttp – tiny web server from scratch in C, ... by tom_ on Monday August 18, 2025 @05:25AM (#44938773)
No, brain fart on my part. You can use llhttp, which is pretty easy to use: https://github.com/nodejs/llhttp
Re:Show HN: unsafehttp – tiny web server from scratch in C, ... by 000ooo000 on Saturday August 16, 2025 @10:37PM (#44928459)
Let's see throwaway1492's code
Re:Show HN: unsafehttp – tiny web server from scratch in C, ... by roominator on Saturday August 16, 2025 @09:38PM (#44928244)
nah this is pretty cool
Re:Show HN: unsafehttp – tiny web server from scratch in C, ... by ethan_smith on Sunday August 17, 2025 @06:27AM (#44930497)
Even simple implementations serve as valuable learning exercises, and proper HTTP parsing could be the natural next step in the author's learning journey.