3 ms·
Maybe, but Java is the most successful server side language because it has other features that C lacks and will always lack, the most important being: it does n
by bullen 5y ago
Maybe, but Java is the most successful server side language because it has other features that C lacks and will always lack, the most important being: it does not seg. fault on you!
It gives you a stack trace that helps you debug in seconds and when that is not enough a heap dump gives you enough information to solve the problem of a live service without having it down.
To use any other language for servers is madness. For clients I prefer C (with a tad of C++ for convenience like namespaces, string and streams).
I even hot-deploy to it with .dll/.so like I hot-deploy the classloader to Java for development speed!
Another quote you'll try to deconstruct but I know it to be true because I use it every day:
"While I'm on the topic of concurrency I should mention my far too brief chat with Doug Lea. He commented that multi-threaded Java these days far outperforms C, due to the memory management and a garbage collector. If I recall correctly he said "only 12 times faster than C means you haven't started optimizing"." - Martin Fowler https://martinfowler.com/bliki/OOPSLA2005.html https://martinfowler.com/bliki/OOPSLA2005.html
- ankurdhama 5y agoYou can get stack trace on segfault in C. Stackoverflow reference: https://stackoverflow.com/questions/77005/how-to-automatically-generate-a-stacktrace-when-my-program-crashes https://stackoverflow.com/questions/77005/how-to-automatical...
- bullen 5y agoNot without a crash! And you need debug which is slower!