News for hackers. Stuff that matters.
Re:Java is better than C++ for high speed trading systems by jcelerier on Thursday November 26, 2020 @03:27AM (#25218043)
But here we're talking about C++: you don't write malloc, you use containers that encapsulate memory management - likely std::containers with pool allocators. And you put things on the stack. Code is as readable if not more than java - there isn't any "new," anywhere in sight
Re:Java is better than C++ for high speed trading systems by jjav on Thursday November 26, 2020 @03:50AM (#25218161)
Modern C++ is probably about as good, with sufficient team discipline. I don't have enough recent experience with C++ to have a strong opinion.

IMO (possibly biased by how much I hated C++ in the 90s) it is easier to maintain clean code discipline in a large team with Java than it is with C++.

Re:Java is better than C++ for high speed trading systems by lordnacho on Thursday November 26, 2020 @08:46AM (#25219954)
C++ after 11 is a very different beast. It's more pleasant to write compared with pre-11. Memory model, move semantics, smart pointers, lots of stuff standardized instead of left to the libraries.

Definitely depends on your team of course.

Re:Java is better than C++ for high speed trading systems by mistrial9 on Thursday November 26, 2020 @10:10AM (#25220621)
smart pointer template blah, instead of pointer blah, in a very large code base.. hmm not so pleasant.. the debug level function definitions, adding templated parameters, are literally unreadable. I will agree that the mental model is tamer.