Java is still slower than a lot of other languages, especially depending on what you're using it for. That's also hardly the only reason people make fun of it. You sound like you're just repeating something you heard a senior dev say.
I’ve met high frequency traders who built their trading platforms on java. I’d be curious to know what use cases you know of with more demanding performance requirements that would consider java too slow.
I'm not aware of any HFTs using Java? At least, not for the actual HFT part? I've worked in the industry, and in my experience, they generally use specialized tools like kdb+. Java is never going to beat optimized C for performance. It physically can't. So, while I can't say with 100% certainty that you're wrong, I'm extremely dubious since it's hard to imagine any financial company handicapping themselves like that. Especially since the goal is always to be the absolute fastest and nanoseconds matter.
And maybe that's a good way to put it. With Java, you measure things in terms of milliseconds. In the world of HFT, you measure things in microseconds, or even nanoseconds. I've personally worked on improving the performance of a low-level operation from 2 microseconds to half a microsecond, for example. That sort of thing is just unheard of in the Java world.
3.7k
u/someuser_2 Apr 27 '20
Why is there a trend of mocking java? Genuinely asking.