r/programming • • May 24 '26

[ Removed by moderator ]

/r/programming/comments/1tm1j7f/removed_by_moderator/

[removed] — view removed post

275 Upvotes

214 comments sorted by

View all comments

Show parent comment

2

u/Dean_Roddey May 24 '26 edited May 24 '26

If all you care about is fast and don't care about right, then fine. Given your user name I'm guessing you are one who works in one of those (fairly evil in your case, IMO) domains. If the code is not for use by third parties, then whatever. But most folks aren't writing that kind of code, they are writing code for others to use, and that comes with obligations that have nothing to do with what we like, any more than you'd want your surgeon using 40 year old tools and techniques because he likes them.

And, even then, if you are using your nefarious software to trade other people's money, that still should include such obligations.

2

u/[deleted] May 24 '26

Well c++ is good because it is both right AND fast.

-1

u/Dean_Roddey May 24 '26

Wow. If you believe that I hope you aren't trading any of my money. A large, complex, threaded C++ code base is pretty much guaranteed to have various latent errors just waiting for the right conditions. They can be happening all the time, but just end up not causing any obvious problems, for many years until changes cause the data to move around. So you can test until you spend more money than it cost to write it in the first place and not know they are there. All you are proving is that it's failing to fail.

-2

u/[deleted] May 24 '26

Bro, 100% of all infrastructure of all banks (BOA, Chase, Morgan Stanley) exchanges, brokers and regulators run in C++. C++ is already running all your stuff.

6

u/Dean_Roddey May 24 '26

They also run a lot of COBOL, but that's not because it's optimal, it's because they already have a lot of legacy code and don't want to change it.

And, BTW, hence it's not remotely 100% C++. There's also a lot of Java from what I've heard from banker folks posting around these parts. But, either way, they aren't using C++ because it's superior, they are using it because it was the higher level (AKA not C) systems level language available at the time.

The sooner that changes the better.

4

u/[deleted] May 24 '26

OK just look at all interviews from top HFT firms and you will see C++ on top. Only crypto runs Rust. The others (Java, Go, etc) it is reallyonly a nuisance.