3 ms·
I've gone the opposite way, and I really like my long-running server code to be JITted when possible. I only wish my old C++ servers could be tweakable at runti
by pron 11y ago
I've gone the opposite way, and I really like my long-running server code to be JITted when possible. I only wish my old C++ servers could be tweakable at runtime as my Java servers[1] and I really like being able to use languages (even for DSLs or rule engines) that have a few powerful abstractions, and let the JIT make them run nearly as fast as the infrastructure code.
If you really need careful tuning of optimizations (which is never a walk in the park), it will be made much nicer with this: http://openjdk.java.net/jeps/165 http://openjdk.java.net/jeps/165
[1]: Just like Erlang, only fast! ;)
- pjmlp 11y agoIt is possible to have powerful abstractions, AOT and performance. One just has to look at Haskell, OCaml, Common Lisp, Ada, Eiffel, SPARK, Swift, .NET Native,.... The fact that for the last decade mainstream AOT was reduced to C and C++, kind of created the wrong picture that one cannot have performance in any other way. I always dislike how they present some of the language features (stack allocation, structs and arrays) as if there wasn't any other language with them. For monitoring, although one doesn't get something as nice as VisualVM or JITWatch, it is possible to bundle a mini-monitoring library if really needed. Something akin to performance counters in Windows.
- pron 11y agoAda (/SPARK) is a complex language that makes the developer think of every optimization-related implementation detail as they code (not unlike C++ or Rust), and Haskell/OCaml would benefit if functions that do pattern-matching could be inlined into their call site and all of their branches removed but one or two (the same goes for the other languages on the list).
- pjmlp 11y agoI guess we will have to agree to disagree.
- pjmlp 11y agoJust to provide some feedback that I should have written on the sibling comment. I use both Java and .NET since they got out, there is the occasional C++ library, but they are the core of my work. So I know quite well their eco-systems. Some of the mentioned scars were related with replacing "legacy" C++ systems, while keeping a comparable performance.