5 ms·
C++ is a mess, but Java, Ruby, Swift and Python aren't viable options if your software is performance sensitive.
by LanguageGamer 11y ago
C++ is a mess, but Java, Ruby, Swift and Python aren't viable options if your software is performance sensitive.
- austinsharp 11y agoJava is pretty viable if you are performance sensitive but not HFT or video game performance sensitive. It's certainly far ahead of Ruby and Python, at least. It's not as fast as C++, but C++ isn't as fast as assembly, either. They're at different points on the tradeoff curve - HOW performance sensitive are you? It's not a binary choice.
- pkolaczk 11y agoThere are companies using Java for HFT now as well.
- rootlocus 11y agoI'm actually working for such a company. Peter Lawrey is a renowned advocate for efficient use of java in HFT.
- exelius 11y agoJava is totally viable for nearly anything; it just doesn't work well for games because they require low-level access to graphics hardware (which is definitely not something Java supports). Also, the state of the JVM on the desktop is kind of sad - also from the graphics perspective. But Java is probably the most performant server-side language out there at this point (if you exempt the masochists who write network code in C/C++).
- albinofrenchy 11y agoJava isn't viable for anything that requires low latencies and predictable throughput. Really, no GC language is.
- pkolaczk 11y agoFor high performance server-side software, Java is definitely a viable option nowadays.