How to Ship Millions of Lines of Agent-Written Code — Jarred Sumner, Anthropic

AI Engineer

Summary

Jarred Sumner, creator of Bun and developer at Anthropic, explains his project to build an ahead-of-time (AOT) compiler for Bun. He explores how to confidently ship millions of lines of code generated by AI agents. Instead of rewriting his entire stack in Rust, he focuses on optimizing JavaScript execution by compiling it before runtime, achieving significant memory and performance improvements while maintaining compatibility through rigorous existing test suites.

Topics covered

  • Motivación del compilador AOT
  • AOT vs JIT

+6 more topics (full content when you follow the channel)

Transcript excerpt

[music] >> Hello everyone. My name is Jared. Uh I'm the creator of Bun uh and I work at Anthropic. Um uh Bun is the JavaScript runtime that powers Cloud code. And recently I merged a several million line of code PR um to add an ahead of time compiler uh to to Bun which is uh basically the idea is uh instead of paying the cost of a JIT at runtime, you can uh uh you can compile all the code ahead of time. Um and it's it's like a really big project. Um over the summer I uh rewrote Bun in Rust. Um uh and this is a project on a larger scale. This ahead of time compiler is like a larger project than that. Um and I think one of the challenges right now with large projects is like how do you actually confidently ship a like millions of lines of code written by agents. Um so that's what I'm going to talk about. This was like the opening prompt after some discussion with it was like basically uh w…