News for hackers. Stuff that matters.
Re:Ask HN: Why aren't there enough C & C++ Web frameworks? by rdouble on Monday March 04, 2013 @09:50PM (#5322561)
Because it sucks to deal with strings in C & C++, and the web is mostly strings.
Re:Ask HN: Why aren't there enough C & C++ Web frameworks? by slake on Tuesday March 05, 2013 @04:32AM (#5323708)
Is C & C++ really worse than Java at strings? Don't think so but I'm not sure. Can't imagine they're far apart.
Re:Ask HN: Why aren't there enough C & C++ Web frameworks? by mschuster91 on Tuesday March 05, 2013 @08:13PM (#5328671)
C definitely - strlen() not binary safe, you have to deal with malloc()/free()/strdup() etc. by hand instead of letting a highly optimized GC do the job...
Re:Ask HN: Why aren't there enough C & C++ Web frameworks? by dmm on Tuesday March 05, 2013 @10:27PM (#5329139)
Or you could just strdup and malloc a bunch of strings and let the kernel clean it up when the cgi process exits. ;)
Re:Ask HN: Why aren't there enough C & C++ Web frameworks? by wmil on Wednesday March 06, 2013 @02:28AM (#5329888)
Yes. C & C++ strings are so bad that most large libraries ship with their own string functions.