News for hackers. Stuff that matters.
Re:G-WAN - High-performing HTTP server, scriptable using ANSI C by tlack on Friday January 21, 2011 @06:26PM (#2129337)
I wonder how fast nginx would be with C scripts for modules, rebuilding executables as needed using file mtime? Might be worth the experiment. For things like presence servers and COMET, it makes sense to code in C. Anyone else interested in exploring this subject?

Edit: Found this "comparison" http://www.wikivs.com/wiki/G-WAN_vs_Nginx which I suspect was written by the GWAN guy himself judging from the unusual sentence structure and phraseology. Independent confirmation necessary.

Re:G-WAN - High-performing HTTP server, scriptable using ANSI C by wmf on Friday January 21, 2011 @06:52PM (#2129423)
For things like presence servers and COMET, it makes sense to code in C.

I wouldn't assume that. Just using async I/O (e.g. Erlang, Node.js) instead of blocking I/O gives a huge performance advantage for those use cases, and if you need even more performance there are compiled-but-safe languages like Go (and maybe someday Rust). Due to its unsafe nature, I would leave C/C++ as a tool of last resort.

Re:G-WAN - High-performing HTTP server, scriptable using ANSI C by tlack on Friday January 21, 2011 @11:04PM (#2129876)
It's like not you're sharing needles with a heroin addict by using C. :)