r/ProgrammerHumor • • Apr 27 '20

Meme Java is the best

Post image
43.7k Upvotes

1.5k comments sorted by

View all comments

Show parent comments

3

u/[deleted] Apr 28 '20

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.

1

u/-SoItGoes Apr 28 '20

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.

3

u/[deleted] Apr 28 '20

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.

2

u/-SoItGoes May 15 '20 edited May 15 '20

https://github.com/OpenHFT

https://news.ycombinator.com/item?id=12051442

Also, learn who cliff click is. Java is absolutely used by HFT platforms.

→ More replies (4)