4 ms·
I don't think it's a troll, but just someone who is really in to performance, like I do, and I agree with him on some points. But what I don't agree is using j
by dryicerx 17y ago
I don't think it's a troll, but just someone who is really in to performance, like I do, and I agree with him on some points.
But what I don't agree is using just C. C is too low level and is a horrific unfit task for web development. Instead C++ would be a good fit (and writing in C mixed in). The STL/Boost provide a wonderful abstraction layer that does pretty much anything you throw at it with ease, plus there are lot of other libraries for anything else you can ever think of. I've written several web applications in C++, and it was actually very much like writing in Python/PHP/Ruby and at time prefered writing it in C++ after writing a poc in a scripting language. They were just a little bit less readable but very clean, but the biggest plus the the multiple magnitude performance increase of the application it self with FastCGI. (all these applications were serious number crunchers and had lot of CPU and Memory Bound problems).
tldr;
C for web dev painful, C++ with STL/Boost good/easy/fast/clean.
Also I've heard of wt, a C++ web framework although I've never used it http://www.webtoolkit.eu/wt http://www.webtoolkit.eu/wt
- grignr 17y agoI've been hacking C++ long enough to agree C++/STL/Boost is good and fast... but I can't remember the last time I heard anyone accuse C++ of being easy...
- e4m 17y agoI find it easy. The bad thing about c++ is its size. It's large and that tends to make it complex. However, I find that I only use about 40 to 60 percent of what c++ can actually do. Focus on the parts that you use and you'll find a lot of the complexity goes away.
- silentbicycle 17y agoOne problem is that if you work with other people in c++, the 40 to 60 percent they use won't necessarily overlap with yours.
- fauigerzigerk 17y agoIf you work with other people, the odds of their C++ code being utterly broken, inefficient and dangerous is 99% ;-)
- silentbicycle 17y agoHey, I was showing restraint. ;)
- stcredzero 17y agoHow about a web-centric programming environment that compiles web page code to DLLs, and changes pages "dynamically" by unloading the DLL, recompiling, and reloading? Base the language on a modified Ngnix as an execution environment and generate C as intermediate code. Use TCC to compile web pages very quickly. The modified Ngnix would have a big hashtable of dynamic methods, which would be pointers to functions in the DLLs. Make it concurrency-friendly like Erlang by using isolation and green threads.