Lurker News

Comments (218) 56 threads

Earlier comments
guerrilla3 replies#
For fun or why?
hmry#
Science isn't about why, it's about why not.
ashtonjamesd#
For fun! And because I wanted to create a framework that makes coding in C feel like a high level language (mainly for fun though).
cozzyd#
I think it makes lots of sense when adding e.g. a live view to some C daemon running on a single board computer. Obviously in these cases you're not generally on the public Internet and your clients are trusted.
JKCalhoun1 reply#
I'm stupid — is this to create web apps that run on the server? More or less replacing PHP or whatever?
ashtonjamesd2 replies#
Right now, it's just a framework for building backends. So yes, server-side applications. However, I have thought about implementing a templating engine for serving HTML files.
sixtyj3 replies#
Edit: I am considering to delete the following paragraph as it seems that my hands were quicker than my brain :)

I'm sorry, but it's like scratching your left ear with your right hand. But for fun, yeah, there are worse things people do. Good luck and have fun. Now here's where most of us will probably be sarcastic, but it's certainly a good way to explore whatever others consider bullshit.
Edit: Pls read the following comment. I would hire him/her because I consider this as a waste of OP skills and he/she would be useful in many more projects.
TLDR; it was not a hate. I am sorry if it sounds so.

ashtonjamesd11 replies#
True. Also, I love the C language and I don't get joy out of writing in many other languages. Additionally, I've wanted to make something like this just to learn more about how web servers work. I appreciate your thoughts.

Continue this thread — 11 replies

password543213 replies#
Why do web developers feel threatened that someone just built a web framework for fun?

Continue this thread — 3 replies

jermaustin11 reply#
An old boss of mine was an early developer for match.com, their entire web app was a monolithic C application, and, if I'm not mistaken, an ISCSI shared file-system based "database".

Continue this thread — 1 reply

Hackbraten#
This can be super useful for IoT or embedded devices with web interfaces but restricted resources.
yodon1 reply#
[flagged]
johnisgood1 reply#
Use static analysis (Coverity, Coccinelle, sparse), enable KASAN/UBSAN, follow the SEI C Coding standard or MISRA C, and rely on the review process.

Many popular C projects do really well. Projects that you probably use.
Memory-safe languages eliminate vulnerability classes, but well-engineered C has proven viable for security-critical infrastructure. The real question is whether the framework maintains that standard, not whether C is inherently unsuitable, thus the security concerns are legitimate but not absolute.
I think you are being a bit too dismissive, and your comment puts nothing concrete on the table.

yodon2 replies#
You CAN write good code in any language. The issue is, as you say, that memory-safe languages eliminate entire vulnerability classes, vulnerability classes that are among the most trivially exploitable.

Can write safe code does not mean always writes safe code. A web server needs to be safe code, always.

hu36 replies#
This tired, flamewar-prone argument of gatekeeping new code in C/C++. Oh the irony coming from someone who wrote this some days ago:

> One of the highest priorities for the HN algorithm is to promote good interactions and discourage bad interactions. The logic is if you have a lot of people bickering with each other, regardless of the topic, it normalizes bad behavior. HN is trying to sustain itself as a forum with great discussions.

Continue this thread — 6 replies

johnisgood4 replies#
I know I am not supposed to engage here, but... you can write "unsafe" code in many languages. Logic bugs are extremely common, for one. So are you implying that there exists a language where someone "always writes safe code"?

Indeed, a web server needs to be "safe". How do you know this project is not safe? Have you even tried it, let alone review it, or did you just see "in C" and automatically assumed it is not a safe web framework?
I am pretty sure the author of this project is thrilled to wait for you to submit issues or even PRs.

Continue this thread — 4 replies

All comments shown.