AI Snips
Chapters
Transcript
Episode notes
Building Bun Out Of Game Tooling Frustration
- Jarred Sumner built early Bun tooling while solving performance issues in a large browser-based voxel game project.
- He rewrote build tools, embedded vats, and eventually chose Zig to implement a fast native transpiler and bundler.
Why Zig Over Rust Or Go
- Jarred picked Zig because he needed a non-GC, highly-performant language with compile-time execution.
- Zig's simplicity let him port a Go transpiler in weeks and be productive with low-level control.
Memory Design: Arenas and Bump Allocators
- Bun uses arenas and custom allocators to minimize dynamic allocations and simplify memory management.
- This design reduces frees and fragmentation, improving performance for large build cycles.


