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.
Nope.c – A web framework with a tiny footprint
21–30 of 53 posts
Re: Nope.c – A web framework with a tiny footprint
#22Isn'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
#23It'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)
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
#24Better use nxweb, this one isn't that secure: http://www.reddit.com/r/programming/comments/2bo44u/i_am_the...
Re: Nope.c – A web framework with a tiny footprint
#25Re: Nope.c – A web framework with a tiny footprint
#26This 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.
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
#27Better use nxweb, this one isn't that secure: http://www.reddit.com/r/programming/comments/2bo44u/i_am_the...
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
#28Re: Nope.c – A web framework with a tiny footprint
#29Looking 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.
Re: Nope.c – A web framework with a tiny footprint
#30I 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.