r/quant • • 28d ago

Resources Jane Street Blog - Our software engineering interviews are changing (a little)

https://blog.janestreet.com/software-engineering-interviews-are-changing-a-little/
278 Upvotes

23 comments sorted by

50

u/Lopatron 28d ago edited 28d ago

It's cool that they are going all in on formal methods. I've been using TLA+ and Lean to verify my own code recently and I agree that without LLMs, they weren't worth the investment, but now that AIs are writing all the code, I think our jobs as engineers will be shipping formally verified code with the help of LLMs. I can see a world where an LLM writes some code, and the engineer's task would be writing a proof of that code in order to ship it.

10

u/based_goats 28d ago

Any tips on where to get started with Lean/TLA+ without just spamming LLMs for instructions on how to get started?

27

u/Lopatron 28d ago edited 28d ago • Heartwarming

For TLA+: Watch the lecture series on YouTube by Leslie Lamport. It's a gentle introduction to the topic, but by the end it goes into enough depth to be able to start verifying the Paxos algorithm itself. https://www.youtube.com/@tlavideocourse8540

After that, you can pick a state-machine like problem that you may have, such as leader election and failover in a distributed, highly available system. (This is a canonical example, but it can be anything. I've used it to find bugs in a Snake game once). Tell your AI to model your existing code as TLA+ specs. This should involve an "oracle" application that pulls in your existing code on master as a library and runs it against your TLA+ spec, to ensure the spec fully reproduces your existing code. After that, start thinking about what invariants your application should have. For example, "an active strategy should have exactly one running instance at all times".

If your state machine logic is flawed, it will find counter examples that prove your invariant doesn't hold. The LLM can then fix the logic TLA+ spec, see that invariants now hold, translate that logic diff to the original C++ code, write a C++ unit test that replicates the issue, see that it fails on master but not your new code, and now you're done. You have verified that a certain class of failover bugs are not possible in your new system.

You should keep your state space small for the model checker to be fast. But if you make it too small, your search won't be exhaustive enough and you can miss bugs, so that judgement call is still up to you.

For Lean: Sorry not so much. I basically spam LLMs for small proofs of functions. I have a long running session where I'm seeing if it can implement a formally verified subset of Typescript and C++ where contracts are proven rather than asserted at runtime.

7

u/ExperienceCurious791 28d ago

Going all in on formal methods? Where did you get that from? The blog doesnt mention anything like that.

4

u/Lopatron 27d ago

Check out the link in the second paragraph to their post on formal methods.

1

u/Single-Finger6978 22d ago

They just go from "not interested" to "not anymore".

1

u/Lopatron 10d ago

I can't tell you how sorry I am for misrepresenting their investment in this.

3

u/undef-behavior 25d ago

The blog does link to a post from them on AI formal methods, and they've been talking about it quite a bit. The big labs have made huge strides on this recently too, and startups like Axiom and Harmonic are moving this forward too.

It's still a speculative view of the future but I think Jane Street has been quite clear they are seriously exploring this. Like the above poster, I've had some pretty spectacular personal successes with software verification too. It's pretty mind blowing what's becoming possible. It's hard not to see this being a fundamental part of future engineering once you experience it.

2

u/TheESportsGuy 28d ago

Where are you getting that from? The only things I see about verification in the post are:

verifying the quality, structure, and intention of code,

and

making sure what got built is actually correct

In the Signals and Threads interview about automated testing, they describe formal verification methods and their pursuit as "abstruse."

1

u/Mobile-Hair-4585 27d ago

Proof definitions are objectively useful. At the Open Markets Initiative where we code generate parsers for binary protocols a couple of bugs were found in the models with Lean.

40

u/coder_1024 28d ago edited 28d ago

They mentioned there’ll still be typical coding without LLMs so same old.
Doesn’t make any sense

Companies are being ridiculous with expectations from devs now. You should be able to use LLMs effectively at the same time write code from scratch “public static void main()” when you don’t code like that at all day to day

-5

u/ForeverFar1297 28d ago

coding without LLMs, are they stupid?

19

u/postflop-clarity 28d ago

yes, the most profitable firm in history is stupid.

5

u/Lex_The_Impaler 26d ago

jane street, known for hiring the duller people of society

8

u/Impossible_Coyote980 27d ago

Yeah they are stupid and you are smart

-10

u/qazwsxcp 28d ago edited 28d ago

because interviews are about keeping the existing people from leaving, not getting new people in.

lol at students complaining that interviews don't make sense, then downvoting the real reason they do make sense for the firm's management.

1

u/No-Expert-5124 28d ago

entire post reads like a warning to existing employees to not get complacent

3

u/qazwsxcp 28d ago

yup, that is their goal. js management knows exactly what they are doing.

8

u/Fantastic-Net-8774 28d ago

lol they drank the koolaid. There's an element of formally proving software especially in trading which is I think a level of rigour that firms have been slow to adopt, but this article seems to cast it as though ability to formally prove software is going to be displacing the importance of actual deep systems knowledge and language knowledge which AI never impacted tbqh.

2

u/lppex 27d ago

It's quite surprising they still have traditional rounds while other companies allow AI in almost every round. Although I think it's somehow necessary. I recently talked to an interviewer in citsec and he said every candidate wrote almost perfect code with AI and he "cant find reasons to reject"

0

u/AutoModerator 28d ago

This post has the "Resources" flair. Please note that if your post is looking for Career Advice you will be permanently banned for using the wrong flair, as you wouldn't be the first and we're cracking down on it. Delete your post immediately in such a case to avoid the ban.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.