4 ms·
Sure. Of course Oracle wants you to believe that Java is faster than C.
by jki275 6y ago
Sure. Of course Oracle wants you to believe that Java is faster than C.
- bitcharmer 6y agoJava has been broadly used in HPC and low-latency trading software for years now. That's not only because much more attractive time-to-market but also because in many cases Java is on par with c/cpp when it comes to performance. Sometimes even better. I'm under the impression that you are not interested in educating yourself on the topic, however if I'm mistaken, have a look at some reasons why Java can be as fast or faster than c/cpp: - TLAB (thread-local allocation buffer) - Escape analysis - Mono- and bi-morphic callsite optimizations - JIT in general (dead code elimination, implicit null checks, CHA-based optimizations, etc). Also, you don't have to use Oracle JVMs. There's IBM's J9, OpenJDK-based Zulu, or commercial JVM from Azul (Zing).
- jki275 6y agoI've used Java in the enterprise plenty. Not a fan. And no, it's really never faster than properly written C/C++. And no, the actual HFT stuff is written in C++.
- bitcharmer 6y ago> And no, the actual HFT stuff is written in C++ This is how I know you have no idea what you're talking about. Source: been working on low-latency HFT Java apps for shops like Goldman Sachs, Morgan Stanley, UBS and others for 10+ years. Not going to reply any more. Not worth it.
- jki275 6y agoOf course you have. Not worth it, indeed.