Live data from Hacker News

Jane Street and the OCaml Compiler (2018) [video]

janestreet.com

21–30 of 119 posts

Re: Jane Street and the OCaml Compiler (2018) [video]

#21
post #15

Earlier quoted context omitted.

The prevailing wisdom on Wall Street is that an anti-capitalist would be devastating to the economy, so this should be no big news. Keep in mind that quant firms like Jane Street aren't necessarily long-biased on their positions, so it's likely ideologically motivated.

I have no doubt that a Sanders presidency would have a negative effect on Wall Street profits (which is why you see people like Ron giving millions of dollars to prevent it) but that's hardly a measure of the health of "the economy."

Perhaps you misunderstood what I said by long-biased, but companies like Jane Street, Two Sigma, RenTech will be just fine (and will probably adapt better than most) to structural changes and a decline in growth of the economy. The tax rates will hit individuals, but probably not as much as his donation set him back, so it's almost certainly ideological. Clearly you are passionate about Sanders, and that's fine, but it seems you are slandering this guy for no good reason.

Re: Jane Street and the OCaml Compiler (2018) [video]

#22
post #13
post #2

i asked this question at my Jane Street interview, but never got a real answer: how does a market making latency arb firm handle GC pauses that are inherent with any GC language? OCaml is better in this regard than, say, the JVM, but it still seems problematic. I know they wrote some FPGA compiler stuff with OCaml, but I can't imagine that all of their execution is running through FPGAs. Even if it's possible, it see…

They are market makers not those battling the swings at the micro second scale. Yaron Minsky replied this in some random video I saw a random night, though I cannot recall which. So their edge isn’t based on speed. They gain more from correctness and ability to express these ideas.

Market makers are incredibly exposed to ms scale swings since they're warehousing a lot more risk than a HFT firm.

Re: Jane Street and the OCaml Compiler (2018) [video]

#23
post #4
post #2

i asked this question at my Jane Street interview, but never got a real answer: how does a market making latency arb firm handle GC pauses that are inherent with any GC language? OCaml is better in this regard than, say, the JVM, but it still seems problematic. I know they wrote some FPGA compiler stuff with OCaml, but I can't imagine that all of their execution is running through FPGAs. Even if it's possible, it see…

This is a really fascinating question. When I chatted with some of the Jane Street crew at NeurIPS they were adamant in the benefits of OCaml's Hindley-Milner type system. I didn't ask, but am curious, how that compares to the type guarantees of Rust? Would moving to Rust cause them to lose that advantage of compile time error catching? I've never written a line of Rust (hopefully that changes soon) so I don't know,…

Ocaml doesn't have a HM type system. I mean I guess it does, but Ocaml supports a lot of stuff HM doesn't.

Re: Jane Street and the OCaml Compiler (2018) [video]

#24
post #2

i asked this question at my Jane Street interview, but never got a real answer: how does a market making latency arb firm handle GC pauses that are inherent with any GC language? OCaml is better in this regard than, say, the JVM, but it still seems problematic. I know they wrote some FPGA compiler stuff with OCaml, but I can't imagine that all of their execution is running through FPGAs. Even if it's possible, it see…

You can write zero-alloc OCaml code, since the standard compiler is very predictable in when it will allocate closures, etc. The Flambda compiler makes things even nicer in removing allocations for some common idioms.

[1]: https://twitter.com/yminsky/status/947064713237684224

Re: Jane Street and the OCaml Compiler (2018) [video]

#25
post #21

Earlier quoted context omitted.

I have no doubt that a Sanders presidency would have a negative effect on Wall Street profits (which is why you see people like Ron giving millions of dollars to prevent it) but that's hardly a measure of the health of "the economy."

Perhaps you misunderstood what I said by long-biased, but companies like Jane Street, Two Sigma, RenTech will be just fine (and will probably adapt better than most) to structural changes and a decline in growth of the economy. The tax rates will hit individuals, but probably not as much as his donation set him back, so it's almost certainly ideological. Clearly you are passionate about Sanders, and that's fine, but…

I dunno, the trading tax Sanders is proposing would hurt these firms a lot more than a traditional hedge or mutual fund. Moreover, it's banks that would be hit the hardest, and they have less exposure to beta than even the market neutral buyside guys.

Re: Jane Street and the OCaml Compiler (2018) [video]

#26
post #21

Earlier quoted context omitted.

I have no doubt that a Sanders presidency would have a negative effect on Wall Street profits (which is why you see people like Ron giving millions of dollars to prevent it) but that's hardly a measure of the health of "the economy."

Perhaps you misunderstood what I said by long-biased, but companies like Jane Street, Two Sigma, RenTech will be just fine (and will probably adapt better than most) to structural changes and a decline in growth of the economy. The tax rates will hit individuals, but probably not as much as his donation set him back, so it's almost certainly ideological. Clearly you are passionate about Sanders, and that's fine, but…

"Slander" entails making false statements, whereas this was just a statement of fact, free even of condemnation. People who read it make their own value judgments.

Re: Jane Street and the OCaml Compiler (2018) [video]

#27
post #19
post #6

Earlier quoted context omitted.

Things to consider: The company is >20 years old. OCaml is a general purpose language that provides an equilibrium between the avoidance of bugs introduced by state (like all functional languages), speed, and polymorphic type inference. At the time of adoption, the other choices were Haskell (too academic, not practical), Erlang (no type inference, not suited for large code bases with complex business logic), and lis…

Yaron Minsky (speaker in the talk, and guy who introduced OCaml to Jane Street) wrote in detail about how the firm decided on this in ACM Queue: https://queue.acm.org/detail.cfm?id=2038036

[deleted]

Re: Jane Street and the OCaml Compiler (2018) [video]

#28
post #2

i asked this question at my Jane Street interview, but never got a real answer: how does a market making latency arb firm handle GC pauses that are inherent with any GC language? OCaml is better in this regard than, say, the JVM, but it still seems problematic. I know they wrote some FPGA compiler stuff with OCaml, but I can't imagine that all of their execution is running through FPGAs. Even if it's possible, it see…

Did they say that latency isn't a big factor in their PnL, but they let their tech guys waste their time over it to keep a big happy family?

Re: Jane Street and the OCaml Compiler (2018) [video]

#29
post #22
post #13

Earlier quoted context omitted.

They are market makers not those battling the swings at the micro second scale. Yaron Minsky replied this in some random video I saw a random night, though I cannot recall which. So their edge isn’t based on speed. They gain more from correctness and ability to express these ideas.

Market makers are incredibly exposed to ms scale swings since they're warehousing a lot more risk than a HFT firm.

i don’t doubt it. But that’s what he said. Very few people alive in this specific field with this much domain knowledge. Are you his peer in this respect ?

Re: Jane Street and the OCaml Compiler (2018) [video]

#30
post #2

i asked this question at my Jane Street interview, but never got a real answer: how does a market making latency arb firm handle GC pauses that are inherent with any GC language? OCaml is better in this regard than, say, the JVM, but it still seems problematic. I know they wrote some FPGA compiler stuff with OCaml, but I can't imagine that all of their execution is running through FPGAs. Even if it's possible, it see…

As others have mentioned, they have ways of writing OCaml specifically to not trigger the GC or perform any excessive allocations. Helps when you have your own version of the compiler and a branch of the language itself.

This is talked about with an example in this talk around 18m30s: https://www.youtube.com/watch?v=BysBMdx9w6k

Also as someone else mentioned, Jane Street doesn't try regularly competing (to my knowledge as someone in the industry) at trading horizons that demand lowest the lowest possible latency.

Post reply on HN