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

Hello HN!

I originally built this tool to see what happened if one wrote a web server from scratch and made it face the public web (I also nudged some communities to crash it intentionally). It was a fun experience and I used that small server to host my website since then.

Over time, I learned about managing a VPS and the hassle involved with certificate management. I also wanted to host multiple websites on the same server. For these reasons I worked for about a year to add virtual hosts and automatic HTTPS by implementing the ACME protocol (RFC 8555). The new server is currently hosting https://coz.is

Previous discussions:

https://news.ycombinator.com/item?id=41642151

https://www.reddit.com/r/C_Programming/comments/1falo3b/usin...

https://www.reddit.com/r/hacking/comments/1fcc5hd/im_using_m...


A couple fun things!

A web server for my blog: https://github.com/cozis/BlogTech

And a distributed file system for which I'm also building a cool little raspberry Pi cluster! https://github.com/cozis/ToastyFS

Fun stuff!


Hello hackers! This is a project I've been working on for fun, trying to mix the procedural paradigm of scripting languages with the declarativeness of HTML. Coming up with a good grammar was tricky, but I think I found a cool balance. I find it extremely fun to use! Looking forward for your feedback.

Happy templatin'!


I'm not OP. Just something cool I found online!


it's just a few lines because you're hiding the other ones


This post was of great inspiration! It made me realize something like this was doable


> I used to think (well, I still do) that getting a barebones service up and running using the system APIs at the lowest level like this is so satisfying. It's sort of magical, really

Totally agree. And actually using them is even more satisfying. I'm starting to get curious about email protocols..

> I'm kind of surprised that the vanilla poll() can put up numbers like you were seeing

Me too. I assumed I was going to go with epoll at some point, but poll() is working great.


httpdito looks incredible


glad you like it!


Hey, the code looks really good! Thanks for sharing. I'll probably go through it a bit later :)

P.S. Love the indentation


Hey, just checked. Server didn't crash. I wonder what happened?


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

Search: