Live data from Hacker News

Nope.c – A web framework with a tiny footprint

nopedotc.com

21–30 of 53 posts

Re: Nope.c – A web framework with a tiny footprint

#21

I think HN just broke your server. Edit: Just read the linked Reddit thread, looks like there were some security issues. But hey, that's the power of open source, right? People can tell you instantly when shit is broken or unsafe.

I think this post is a joke of some sort ("nope.c"), example of how not to do things and why we don't code web apps in C. The "web server" is just ridiculously badly designed.

Seems more like a play on node.js to me.

Re: Nope.c – A web framework with a tiny footprint

#22
It's strange how a piece of code any dev could, and likely would, have written in 1992 can now reach the HN front page.

Isn't it odd that this kind of minimalism is now considered novel?

(Not that I'm bashing the author. Doing this stuff was fun in the 90s and it's still fun now)

Re: Nope.c – A web framework with a tiny footprint

#23
post #22

It's strange how a piece of code any dev could, and likely would, have written in 1992 can now reach the HN front page. Isn't it odd that this kind of minimalism is now considered novel? (Not that I'm bashing the author. Doing this stuff was fun in the 90s and it's still fun now)

Remember that most of us are web devs. It's web stuff, it's very simple and minimalist, it's easy to look at it and go "yeah, cool".

Compare to someone writing a 3d software renderer, not so many people can relate to it, as they can to things related to web.

Re: Nope.c – A web framework with a tiny footprint

#26

This site feels ridiculously fast. I've noticed that with other compiled frameworks too, e.g. CppCMS: http://cppcms.com/wikipp/en/page/main I wonder if it is just the lightweight HTML the websites use, or if there is really so much speed to gain from using a compiled language.

Commenters on this site had similar observations about D language's forum, which is written in D.

http://forum.dlang.org/ Code: https://github.com/CyberShadow/DFeed

If one insists on writing a webapp in a C/C++ like language, D might be the sane way to do it.

Re: Nope.c – A web framework with a tiny footprint

#27
post #2

Better use nxweb, this one isn't that secure: http://www.reddit.com/r/programming/comments/2bo44u/i_am_the...

As I'm writing a web server as well (just for hobby, won't be big and professional like nginx), I did glance at Nxweb's code a few months ago. It's pretty hard to grasp, and I consider myself to be a pretty experienced C programmer. Hard to grasp code usually raises some red flags, security wise. It does perform well, though, and has some pretty interesting ideas. It is well worth looking, even if for learning a thing or two.

The Reddit thread for Nope.c is generating a lot of constructive criticism. It ranges from stylistic issues to security issues to architectures issues. Nope's author might learn a lot of stuff and have a lot of fun -- I sure did when writing my own.

(In time, my project's web page is at http://lwan.ws)

Re: Nope.c – A web framework with a tiny footprint

#29
post #13
post #5

Looking at the source code : https://github.com/riolet/nope.c/blob/c883b11df78bb8115d5e51... It tries to copy a buffer of 1024 byte (max) into a buffer of 512 bytes (by executing a request with an URL longer than 512 bytes). It also runs 15 children process and use blocking socket, meaning that it's easily "DoS'able". The overall code seems very "unsecure" and poorly designed.

Yes, it uses lots of strcpy and sprintf instead of strncpy, snprintf or strlcpy. It's bound to be exploited.

It depends. It's not like there's no safe way of using strcpy and sprintf.

Re: Nope.c – A web framework with a tiny footprint

#30

I think HN just broke your server. Edit: Just read the linked Reddit thread, looks like there were some security issues. But hey, that's the power of open source, right? People can tell you instantly when shit is broken or unsafe.

I think this post is a joke of some sort ("nope.c"), example of how not to do things and why we don't code web apps in C. The "web server" is just ridiculously badly designed.

So would a ridiculously slow PHP framework be an example of why we don't code serious web apps with PHP?
Post reply on HN