devtools.fm: Developer Tools, Open Source, Software Development

Jarred Sumner - Bun

Aug 19, 2022
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ANECDOTE

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.
INSIGHT

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.
INSIGHT

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.
Get the Snipd Podcast app to discover more snips from this episode
Get the app