Skip to content
HN On Hacker News ↗

Rewrite Bun in Rust by Jarred-Sumner · Pull Request #30412 · oven-sh/bun

▲ 701 points 783 comments by Chaoses 6d ago HN discussion ↗

Pangram verdict · v3.3

We believe that this document is fully human-written

0 %

AI likelihood · overall

Human
100% human-written 0% AI-generated
SEGMENTS · HUMAN 1 of 1
SEGMENTS · AI 0 of 1
WORD COUNT 143
PEAK AI % 0% · §1
Analyzed
May 14
backend: pangram/v3.3
Segments scanned
1 windows
avg 143 words each
Distribution
100 / 0%
human / AI fraction
Verdict
Human
Pangram v3.3

Article text · 143 words · 1 segments analyzed

Human AI-generated
§1 Human · 0%

Blog post with details coming soon.It passes Bun's pre-existing test suite on all platforms (and fixes several memory leaks and flaky tests), the binary size shrinks by 3 MB - 8 MB, the benchmarks are between neutral and faster - and most importantly, we now have compiler-assisted tools for catching & preventing memory bugs, which have costed the team an enormous amount of development & debugging time over the years.The codebase is otherwise largely the same. The same architecture, the same data structures. Bun still uses few 3rd party libraries. No async rust.To try this, run:bun upgrade --canary Please do file issues if you run into any. If this thread gets crazy I will lock it.Note: Still some optimization work to do before this lands in non-canary version. Still some cleanup work to do (which will come in a series of follow-up PRs)