Re:Libdill: Structured Concurrency for C (2016)
by ankurdhama on Wednesday June 02, 2021 @05:15AM
(#27366565)
You can get stack trace on segfault in C.
Stackoverflow reference: https://stackoverflow.com/questions/77005/how-to-automatical...
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