Live data from Hacker News

Java is better than C++ for high speed trading systems

news.efinancialcareers.com

1–10 of 483 posts

Re: Java is better than C++ for high speed trading systems

#5
When you write Java in a C like syntax : "Chronicle's system is built in what Lawrey describes as "C-like Java" and it's this that he encourages people to code low latency systems in."

I guess very limited number of constructors, and most of all the methods are static.

And they still struggle to find programmers that can code that way.

Re: Java is better than C++ for high speed trading systems

#7
post #3

This is not "why Java is better for fast things". It is not. This is "why Java is better", and the answer is "it usually is better because your programmers often suck".

Also because it's the one language / culture where throwing money actually scale somewhat n log n consistently.

Re: Java is better than C++ for high speed trading systems

#8
I used to work on a high-speed messaging system built in Java, and garbage collection was a killer. No matter how much we tweaked the code and the GC parameters, and this eventually got escalated pretty high up in Sun itself, we'd get these occasional multi-minute pauses where the whole thing would just freeze up, buffers would fill and stuff would start dropping on the floor.

This was over 10 years ago, so things may have improved, but it would certainly give me pause about ever implementing anything time-critical in Java.

Re: Java is better than C++ for high speed trading systems

#10
post #3

This is not "why Java is better for fast things". It is not. This is "why Java is better", and the answer is "it usually is better because your programmers often suck".

If programmers didn't suck, we would do everything in ASM. Since programmers are humans, we need abstractions like C or C++. Java, C#, Python, Go, Objecttive-C, and other garbage collected languages are there to make programming easier.
Post reply on HN