Better HN
topnewbestaskshowjobs
Log inSign up

cozis

294 karma · joined Apr 15, 2022 (4y ago) · 39 submissions

Submissions

1.

The Vibecoders Are Coming For Us(coz.is ↗)

2 points · by cozis · 7mo ago · 1 comment

comment 11mo ago · link · parent

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...

3.

Show HN: I built a simple web server with ACME support(github.com ↗)

2 points · by cozis · 11mo ago · 1 comment

comment 11mo ago · link · parent

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!

comment 1y ago · link · parent

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'!

6.

Show HN: WL, a new templating engine for C(github.com ↗)

4 points · by cozis · 1y ago · 1 comment

7.

Inheritance and Polymorphism in Plain C(coz.is ↗)

2 points · by cozis · 1y ago · 1 comment

8.

Physical Limits of Computation(lwn.net ↗)

4 points · by cozis · 1y ago · 3 comments

9.

What happens when you load a URL? (2015)(danluu.com ↗)

3 points · by cozis · 1y ago · discuss

10.

Building web apps from scratch – Getting Started – Part 0(playin.coz.is ↗)

2 points · by cozis · 1y ago · discuss

comment 1y ago · link · parent

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

12.

Zero to Prod in C – Creating Server and Hosting(brightprogrammer.in ↗)

12 points · by cozis · 1y ago · 1 comment

comment 2y ago · link · parent

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

comment 2y ago · link · parent

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

comment 2y ago · link · parent

> 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.

comment 2y ago · link · parent

httpdito looks incredible

comment 2y ago · link · parent

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

P.S. Love the indentation

comment 2y ago · link · parent

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

comment 2y ago · link · parent

Hello everyone! This is a fun little project I started in my spare time and thought you'd appreciate :)

20.

Show HN: Hosting my website using my C web server(github.com ↗)

303 points · by cozis · 2y ago · 155 comments

21.

Sane C++ Libraries(github.com ↗)

73 points · by cozis · 2y ago · 145 comments

comment 3y ago · link · parent

Amazing! I would have NEVER thought of that! That's just another level of "following the standards"

comment 3y ago · link · parent

I think it boils down to the ability of being able to divide a big problem into smaller parts and understanding in what order you need to takle them. The more you try building big things the better you get at doing it.

After getting into university I decided to build an interpreter[0]. For someone who didn't even have the notion of a parser, it just felt like an unaproachable task. Even though, I sticked to it and the architecture became clear in time. That's another thing, even if you try to build something and miserably fail at it at each iteration, you still get better at it. The feeling of the task being too vast and daunting is just a feeling and knowing there's something on the other side makes it easier to power through it.

Hope to see your database on HN someday! :^)

[0] https://github.com/cozis/Noja

comment 3y ago · link · parent

Hey, happy you liked it!!

> It wasn't clear from the article if you were planning on working on this further or leaving it as is

At the moment I'm working on it on and off in my spare time. I think I will continue that way until all major features are done and stable

> An HTTP/echo server you control is great for the bare essentials, but there are so many mind-boggling ways things can go wrong in the real world. I think the only way to catch those edge cases (and even so you'll never catch them all!) is to use it on as many different devices for as many real world applications as possible.

Yes, I'm realizing that. From the beginning I've been thinking about going the unit test route but couldn't find a way to make it work. Thanks for the feedback!

12