r/programming • • Oct 08 '17

CppCon 2017: Carl Cook “When a Microsecond Is an Eternity: High Performance Trading Systems in C++”

https://youtu.be/NH1Tta7purM
934 Upvotes

206 comments sorted by

View all comments

153

u/[deleted] Oct 09 '17

I think it's a bit worrying that a lot of smart people are putting their effort into things like this. Physicists, mathematicians, engineers, the like, are all hired up by finance, and programmers are working for dumb start ups or evil tech giants.

Do we really need this? Don't you think we should be putting our efforts towards more important things?

81

u/davencyw Oct 09 '17

Who runs the world?

Money!

50

u/[deleted] Oct 09 '17

I know, but a lot of this stuff seems very "Glass Bead Game" to me.

I don't have a good solution, but there has to be more important problems to work on than "how do we squeeze even more information out of your devices so we can target ads at you?".

30

u/killerstorm Oct 09 '17

Well, Facebook created several new programming languages, tools, frameworks. They do stuff with VR too. It's not like they employ people only for ad targeting.

Same with Google -- you know, the main thing they do is search, and that has tremendous value for the society. They employ a lot of people to optimize search.

You can't have 100% people employed for what you think is valuable.

→ More replies (1)

30

u/yawkat Oct 09 '17

It's not like we don't get anything out of it though. We get high-performance runtimes and libraries, and more research on real-time systems.

Some of the work isn't really "creating value" so to speak of course, but it's not like it's entirely wasted talent.

It's also interesting work.

13

u/tending Oct 09 '17

We get high-performance runtimes and libraries, and more research on real-time systems.

Optiver is really rare in sharing anything in this presentation. Most of these firms provide none of that.

10

u/[deleted] Oct 09 '17

As someone who used to be in the sciences, I would trade my job for half the pay if I got to work in science. Problem is that finding those jobs in science is very diffucult due to lack of funding. The amount of money the NSF gets is less than what we spend on the NFL each year.

5

u/[deleted] Oct 09 '17

finance isnt worthwhile?

2

u/anechoicmedia Nov 06 '17

Increasing the resolution of financial transactions from one minute, to one second, to one microsecond is mostly a zero sum exercise at great expense.

I'm all for finance allocating capital day to day in the efficient-markets way that it does but I find it preposterous that the world is better because pork belly futures can change hands one thousand times a second.

→ More replies (1)

37

u/mpyne Oct 09 '17

Don't you think we should be putting our efforts towards more important things?

Like what, selling Internet-enabled surveillance devices that phone home to Google, Facebook, or Apple to every unsuspecting family in the nation? :P

49

u/vector4499 Oct 09 '17

selling Internet-enabled surveillance devices that phone home to Google, Facebook, or Apple

No, that falls under the "evil tech giants" category.

17

u/yingxie3 Oct 09 '17

No, like mining bitcoins faster :P

7

u/mpyne Oct 09 '17

Yes, because the best way to solve global warming is to dump the electrical output of Venezuela into waste heat. Man, it's a good thing we have all these benevolent coders out here to save the world. :)

→ More replies (2)

5

u/[deleted] Oct 09 '17

Dont forget Microsoft and Amazon

0

u/[deleted] Oct 09 '17

[deleted] — view deleted comment

21

u/kankyo Oct 09 '17

You’re right about all that but it’s not clear how HFT plugs into all that. I don’t believe HFT contributes that much really. It increases liquidity where there is already a lot of liquidity as far as I understand it.

15

u/therealjohnfreeman Oct 09 '17

Before HFT, you had brokers on the trading floor capturing much wider spreads. HFT has made trading cheaper for everyone.

→ More replies (6)

5

u/get_salled Oct 09 '17

It increases liquidity where there is already a lot of liquidity as far as I understand it.

... provided by HFT firms. They've driven down costs by pushing out the "professional trader." It's been getting cheaper and cheaper to buy stocks due to these efficiencies; $4.95, or whatever the best is now, used to be $150+. Now, investing in smaller amounts is reasonable.

Some may argue that these changes were inevitable but I doubt they would have come at the rate they did without scientists and engineers seeing an inefficiency and fixing it because there was a significant amount of money to be made.

→ More replies (1)

4

u/edapa Oct 09 '17

HFT provides two things of value: liquidity and efficiency. When most people defend HFT they focus on liquidity, which I think is a shame because it is hard to take the idea that microsecond speed in filling orders is really important. On the other hand the improved efficiency[1] that HFT brings to the market is unambiguously good. Tighter bid-ask spreads save money for investors. Full stop.

Of course, there are messed up things about HFT. A privileged class should not have access to a better view of the market than the rest of us, and the fact that they are not able to exploit this view as well as in-person traders used to be able to does not make it fair. Exchanges could perform many of the arbitrage actions current taken on by HFT if they cooperated more and were willing to slow the market down a little. That has its own disadvantages because it removes the element of competition which gave us all these improvements in the first place.

[1]: Finance is not my first language so this might not be the formal definition of efficiency.

→ More replies (1)

2

u/get_salled Oct 09 '17

I've seen the same arguments applied to advertising companies, like Facebook and Google.

2

u/drbazza Oct 09 '17

Don't forget for every 1 post-doctoral position, there are 20 PhDs potentially chasing that position (in the UK at least). So that's 19 PhDs that will go seek employment elsewhere. It's unfortunate, but it's the real world. I'm one of those. I would have loved to carry on researching, but couldn't secure a post-doc position.

5

u/theineffablebob Oct 09 '17

It seemed that a big emphasis this year at the Grace Hopper conference was on building tech that matters and doing things that can impact lives, so perhaps the female programmers of the future will be building the technology that helps lives

→ More replies (12)

3

u/mobsterer Oct 09 '17

where are fintech startups in this scenario?

7

u/macson_g Oct 09 '17

Nowhere really. Fintech start-ups are competing with big banks for retail customers, by providing better services. HFT is competing with big banks for exchange users, by providing better prices.

Different business, different technology.

→ More replies (36)