C.W.K.
Stream
Lesson 01 of 05 · published

Bun — 왜 새 JavaScript 런타임

~11 min · bun, overview, javascript, anthropic

Level 0초심자
0 XP0/55 lessons0/16 achievements
0/80 XP to next level80 XP to go0% complete

Bun 이 이 quest 의 JavaScript 패키지 매니저 중 가장 어리고, 가장 급진적. 단지 빠른 npm 아니야 — JavaScript toolchain 의 완전한 재구현: 런타임 (Node.js 대체), 패키지 매니저 (npm 대체), bundler (esbuild/webpack 대체), test runner (Jest/vitest 대체), 작은 shell 까지. 한 binary 안에 다, Apple JavaScriptCore 엔진 (Safari 가 쓰는 같은 거) 위에 Zig 로 다 작성, Google V8 대신.

속도 숫자 진짜야. ~1,100 패키지 가진 Next.js 프로젝트, cold cache: npm 이 ~57초, pnpm 이 ~32초, Bun 이 ~8.6초 — npm 대비 약 7배. Bun 이 .ts.tsx 파일을 컴파일 단계 없이 직접 실행. 빌트인 lockfile (bun.lock, 이전엔 bun.lockb) 가 텍스트 JSON 보다 극적으로 빠르게 파싱되는 Structure-of-Arrays binary 형식 사용.

Bun v1.3 (2025년 10월) 이 full-stack dev 서버 추가, MySQL/PostgreSQL/SQLite/Redis 빌트인 클라이언트, idle CPU 100배 감소, isolated workspace install, bun audit. 2025년 11월 Anthropic 이 Bun 인수. 이 quest 에서 의미 있는 디테일 — Bun 이 이제 Pippa 의 brain 돌리는 같은 회사가 개발.

Bun 의 호환성 스토리 좋지만 완벽 안 함. Node.js API 포괄적으로 구현, 대다수 npm 패키지 실행, 같은 registry 사용, 같은 package.json 읽음. 그치만 native addon (일부 컴파일된 C++ 패키지) 와 niche Node 전용 API 한 줌이 여전히 안 됨. 새 프로젝트엔 Bun 이 가장 흥미로운 베팅; legacy 프로젝트엔 commit 전 테스트.

Code

Bun 은 한 binary 안의 여러 도구·text
  Runtime           Bun           (Node.js 대체)
  Package manager   bun install   (npm/pnpm/yarn 대체)
  Bundler           bun build     (esbuild/webpack 대체)
  Test runner       bun test      (jest/vitest 대체)
  Shell             bun shell     (스크립트용 bash 대체)
  네이티브 TS       bun index.ts  (tsc 없음, 컴파일 없음)
  빌트인 DB         Bun.sqlite    (better-sqlite3 대체)

  한 binary 안에 다. Zig 로 작성. JavaScriptCore 엔진.

External links

Exercise

https://bun.sh/blog 읽고 가장 최근 release post 셋 훑어. release note 가 'X% 더 빠름' 또는 'Bun 에 이제 빌트인' 얼마나 자주 말하는지 보여 — Bun 의 release cadence 진짜 빠름. 놀라운 기능 하나 골라서 실제 작업 프로젝트에 왜 중요한지 articulate.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.