How to Ship Millions of Lines of Agent-Written Code — Jarred Sumner, Anthropic
AI Engineer
Resumen
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.
Capítulos
- 1:11Avance del proyecto
- 2:53Por qué un compilador AOT
- 3:27Diferencia entre JIT y AOT
- 4:41Decisión de mantener JavaScript sobre Rust
- 5:23Resultados iniciales de memoria
- 7:19Uso de pruebas existentes
- 7:53Desafío de la seguridad y rendimiento
- 9:46Metodología de trabajo con agentes
- 12:06El problema de los documentos innecesarios
- 14:33Evolución de los compiladores
- 15:35Uso de sub-agentes
- 16:47Monitoreo con scorecards
- 17:59El riesgo de los compiladores automatizados
- 20:26Efectos en el rendimiento general
Temas tratados
- Motivación del compilador AOT
- AOT vs JIT
+6 temas más (contenido completo al seguir el canal)
Extracto de la transcripción
[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…