oven-sh/bun
View on GitHub ↗ ★ 96,514 Rust
Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
268 mentions on Hacker News by 204 people: 39 stories, 229 comments · first 2022-07-12 · latest 2026-10-24
20082026
-
I think this is the glimpse of what to come - https://github.com/oven-sh/bun/issues/31463
comment by kikimora · 2026-05-27 · in Rewrite Bun in Rust has been merged -
https://github.com/oven-sh/bun/issues/30921 > A CVE wasn’t announced for an HTTP Request Smuggling vulnerability Even before the acquisition of Anthropic, there had never been a single vulnerability report.…
comment by classicposter · 2026-05-24 · in Electrobun 2.0 will be decoupled from Bun due to the Rust rewrite -
…said of Bun, which switched to an entirely different language in a single, million-line PR?[0] [0]: https://github.com/oven-sh/bun/pull/30412
comment by sheept · 2026-05-22 · in Bun support is now limited and deprecated -
…rewritten codebase. There are just too many lines of code, 1 million lines to be exact [1]. [1]: https://github.com/oven-sh/bun/pull/30412
comment by maxloh · 2026-05-22 · in Bun support is now limited and deprecated -
can't help myself: how common to see code like https://github.com/oven-sh/bun/blob/main/src/bun_core/string... instead of simple ilog2()? I guess, ut somewhat explains how they got 700k+ lines of code
comment by delamon · 2026-05-18 · in Bun Rust rewrite: "codebase fails basic miri checks, allows for UB in safe rust" -
…to load a large number of comments. 2) The slop translation of Bun resulted in immediate bugs ( https://github.com/oven-sh/bun/issues/30719 ) that the hyped Mythos apparently did not find. 3) AI features and (likely, though not proven) AI…
comment by vnaghra · 2026-05-16 · in I believe there are entire companies right now under AI psychosis -
…allocator was used for some memory. That could cause problems in Rust if you erase the lifetime https://github.com/oven-sh/bun/blob/main/src/bun_core/string...
comment by defen · 2026-05-15 · in Bun Rust rewrite: "codebase fails basic miri checks, allows for UB in safe rust" -
Holy cow: architector4@AGOGUS:/tmp$ git clone --depth=1 ' https://github.com/oven-sh/bun ' Cloning into 'bun'... … architector4@AGOGUS:/tmp$ cd bun/ architector4@AGOGUS:/tmp/bun$ find -type f -name '*.rs' -exec grep unsafe {} \; | grep -v…
comment by simonreiff · 2026-05-15 · in Bun Rust rewrite: "codebase fails basic miri checks, allows for UB in safe rust" -
…that strings must be strict UTF-8. It's totally alien to the safe way Rust handles strings. [1] https://github.com/oven-sh/bun/blob/main/src/bun_core/string...
comment by Animats · 2026-05-15 · in Bun Rust rewrite: "codebase fails basic miri checks, allows for UB in safe rust" -
…get around to it (or just get rid of all this unsafe code that they don't actually need). [1] https://github.com/oven-sh/bun/blob/4d443e54022ceeadc79adf54... - the pointers derived from the first mutable references are invalidated by…
comment by gpm · 2026-05-15 · in Bun Rust rewrite: "codebase fails basic miri checks, allows for UB in safe rust" -
…strategy is to have AI produce "fixes" like these which will end up infecting the entire codebase: https://github.com/oven-sh/bun/pull/30728
comment by tadfisher · 2026-05-15 · in Bun Rust rewrite: "codebase fails basic miri checks, allows for UB in safe rust" -
https://github.com/oven-sh/bun/pulls and now we have lots of troll PRs...
comment by jjgoi · 2026-05-15 · in Rewrite Bun in Rust has been merged -
…a sanitiser. It's not a proof solver, but it screams to high heaven about this code nonetheless. https://github.com/oven-sh/bun/issues/30719
comment by Pay08 · 2026-05-15 · in Rewrite Bun in Rust has been merged -
…Bun required Bun, so distributions were unusable to ship it or anything that depended on it: https://github.com/oven-sh/bun/issues/6887 Any ideas if this is now changing and Bun can be bootstrapped with "just" Rust?
comment by WhyNotHugo · 2026-05-14 · in Rewrite Bun in Rust has been merged -
…time went into preparing this file with very detailed instructions on mapping Zig to Rust idioms: https://github.com/oven-sh/bun/commit/46d3bc29f270fa881dd573... On top of that, if you look at 'Pointers & ownership' and 'Collections'…
comment by sesm · 2026-05-14 · in Rewrite Bun in Rust has been merged -
…UB problems caused by unsafe code, the SAFETY blocks for the unsafe code are also, well, lies. [1] https://github.com/oven-sh/bun/blob/63035b3e37/src/bun_core/... [2] https://github.com/oven-sh/bun/blob/63035b3e37/src/bun_core/...
comment by 12_throw_away · 2026-05-14 · in Rewrite Bun in Rust has been merged -
Source: https://github.com/oven-sh/bun/pull/30412
comment by linkregister · 2026-05-14 · in Rewrite Bun in Rust has been merged -
https://github.com/oven-sh/bun/security Surprisingly, they appear to have not disclosed any vulnerabilities whatsoever. It's likely there have been numerous vulnerabilities in the past, but they are all being ignored.…
comment by classicposter · 2026-05-14 · in Rewrite Bun in Rust has been merged -
…bun upgrade --canary [1.55s] Upgraded. Welcome to Bun's latest canary build! Report any bugs: https://github.com/oven-sh/bun/issues Changelog: https://github.com/oven-sh/bun/compare/0d9b296af...19d8ade2c schematic git:(main) bun run…
comment by veidr · 2026-05-14 · in Rewrite Bun in Rust has been merged -
…plans to issue a CVE for this HTTP request smuggling attack vector fixed in the latest bun release? https://github.com/oven-sh/bun/issues/29732
comment by halifaxbeard · 2026-05-14 · in Rewrite Bun in Rust has been merged -
…in your large existing codebase and report back the mess. Theirs is littered with TODOs like this https://github.com/oven-sh/bun/pull/30412/changes#diff-6c2b5...
comment by Robdel12 · 2026-05-14 · in Remove .zig Files from Bun -
The linked PR has been flagged as AI slop, but there seems to be an equivalent PR that's still open: https://github.com/oven-sh/bun/pull/30683
comment by plus · 2026-05-14 · in Remove .zig Files from Bun -
…a few milliseconds". Even if 1 != 'a few'. It's possible the part of the commit reverted here, https://github.com/oven-sh/bun/commit/a42bf70139980c4d13cc55... , defeated the purpose of the test by removing the sleep. I don't think adding…
comment by onli · 2026-05-14 · in Rewrite Bun in Rust has been merged -
> solving the ,,tests not pass'' problem by changing the tests themselves https://github.com/oven-sh/bun/pull/30412/changes/68a34bf8ed... This is great! Just add a random sleep(1) to a test, don't worry about it, it's going to be fine!
comment by q3k · 2026-05-14 · in Rewrite Bun in Rust has been merged -
…mental model of it should still match fairly well. For instance look at this Zig function: https://github.com/oven-sh/bun/blob/ed1a70f81708d7d137de8de0... Versus this Rust version: https://github.com/oven-sh/bun/blob/ed1a70f81708d7d137de8de…
comment by IshKebab · 2026-05-14 · in Rewrite Bun in Rust has been merged -
…PR removing the zig source files being auto-tagged by bun's own CI as "ai slop" is so funny https://github.com/oven-sh/bun/pull/30680
comment by lucasloisp · 2026-05-14 · in Rewrite Bun in Rust has been merged -
Claude's workflows might become good training data for LLMs: https://github.com/oven-sh/bun/tree/23427db/.claude/workflow...
comment by maxloh · 2026-05-14 · in Bun's rewrite in Rust was merged -
…surprising at times, preserving strange anti-patterns (my name being said anti-pattern, teehee): https://github.com/oven-sh/bun/blob/ffa6ce211a0267161ae48b82... . It's hard to determine why Claude decided this -- I assume a really strict…
comment by suis_siva · 2026-05-11 · in If AI writes your code, why use Python? -
…has that much to do with Zig's anti-AI stance. More about using the right tool for the job. [1] https://github.com/oven-sh/bun/issues?q=is%3Aissue%20state%3... [2] https://github.com/denoland/deno/issues?q=is%3Aissue%20state...
comment by anttiharju · 2026-05-10 · in Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc -
…that people can write native extension modules for Bun in Rust if they want to). The rewrite's in https://github.com/oven-sh/bun/tree/claude/phase-a-port . By running the following command on it, I count about 14,000 unsafe blocks: rg…
comment by ameliaquining · 2026-05-09 · in Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc -
Here: https://github.com/oven-sh/bun/issues?q=is%3Aissue%20%22Segm... Around 2500 issues with segmentation fault.
comment by nicce · 2026-05-09 · in Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc -
Not that it's a particularly accurate stat, but: https://github.com/oven-sh/bun/issues?q=is%3Aissue%20state%3... 119 open, 885 closed https://github.com/denoland/deno/issues?q=is%3Aissue%20state... 10 open, 46 closed
comment by dminik · 2026-05-09 · in Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc -
The branch in question: https://github.com/oven-sh/bun/compare/main...claude/phase-a...
comment by rererereferred · 2026-05-09 · in Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc -
…being undertaken by the owners of the project. That said, yes, you’re correct that Bun isn’t GPL: https://github.com/oven-sh/bun?tab=License-1-ov-file
comment by scared_together · 2026-05-09 · in Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc -
…te.rs/s/otxkjw/bun_js_runtime_is_being_vibe_port... > The regular pull requests for bun are wild too: https://github.com/oven-sh/bun/pulls?q=is%3Apr+ > Most are created autonomously by @robobun, checked for duplicates with a GitHub action…
comment by ModernMech · 2026-05-05 · in Zig → Rust porting guide -
…guess that it emits around the same as buying $100 in gas? Or like 50 or so kgs of CO2? [0] https://github.com/oven-sh/bun/compare/main...claude/phase-a... [1] https://github.com/oven-sh/bun/blob/dacc59c62a8f93eabe6d9998...
comment by kingstnap · 2026-05-05 · in Zig → Rust porting guide -
…bugs affecting production that sit unaddressed. For example on of our biggest blockers right now is https://github.com/oven-sh/bun/issues/6608 which was reported in 2023, still affecting us 3 years later.
comment by weli · 2026-05-05 · in Zig → Rust porting guide -
https://github.com/oven-sh/bun/issues/30197 It seems there was an issue where the image API ignored the ICC Profile.(now fixed) Any developer with experience implementing image formats would almost certainly avoid this mistake. This is a…
comment by classicposter · 2026-05-05 · in Zig → Rust porting guide -
the rust port (at least currently) heavily uses unsafe as well https://github.com/oven-sh/bun/compare/claude/phase-a-port#d... that isn't particularly surprising, but the point is I would expect getting things more stable than the zig…
comment by mswphd · 2026-05-05 · in Zig → Rust porting guide -
Did you look at the branch? This is vibed, even with the most liberal definition https://github.com/oven-sh/bun/compare/claude/phase-a-port This single commit is 65k lines of additions https://github.com/oven-sh/bun/commit/ffa6ce211a0267161…
comment by WD-42 · 2026-05-05 · in Zig → Rust porting guide -
…mass rewriting Zig code into Rust which is currently at 773,950 additions and 151 deletions: [0]: https://github.com/oven-sh/bun/compare/claude/phase-a-port
comment by archargelod · 2026-05-05 · in Zig → Rust porting guide -
…a great job of exposing room for improvement in nodejs. For example, i'd been following this issue https://github.com/oven-sh/bun/issues/14102 and eventually all the libraries shipped "if bun do x" into them, which is the opposite of…
comment by STRiDEX · 2026-05-04 · in I am worried about Bun -
…on it, and so many software engineers depend on Claude Code to help get their work done. [0]: https://github.com/oven-sh/bun/pull/30219 [1]: https://github.com/oven-sh/bun/pull/30098 [2]: https://github.com/oven-sh/WebKit/pull/211 [3]:…
comment by Jarred · 2026-05-04 · in I am worried about Bun -
Where? bun's doc site search engine doesn't show it but there's an open PR on the topic. https://github.com/oven-sh/bun/issues/26373 Doc site says: --production sets flag --minify, process.env.NODE_ENV = production, and production-mode JSX…
comment by burnt-resistor · 2026-04-06 · in We replaced Node.js with Bun for 5x throughput -
…needs the same. There's a PR for Bun that gives the same security but it's been sitting for months https://github.com/oven-sh/bun/pull/25911 I want to migrate an existing project to Bun but cannot until it has a security permission system…
comment by matorl · 2026-04-06 · in We replaced Node.js with Bun for 5x throughput -
…that Bun automatically loads .env files if they're present almost disqualifies it from most tasks https://github.com/oven-sh/bun/issues/23967 It makes it hard to take them too seriously with such a design choice - a footgun really. It's so…
comment by loevborg · 2026-04-03 · in Bun: cgroup-aware AvailableParallelism / HardwareConcurrency on Linux -
…implying that they've made up the performance difference. There's a comment with a benchmark here: https://github.com/oven-sh/bun/blob/4760d78b325b62ee62d6e47b... referencing the commit where they removed the ability to link with libgit2…
comment by llimllib · 2026-04-02 · in We sped up bun by 100x -
…and just made it up. I guess there really is a class of "engineers" that the AI can replace. [1]: https://github.com/oven-sh/bun/blob/3ed4186bc8db8357c670307f... [2]: https://github.com/oven-sh/bun/commit/011e157cac7698050370e2...
comment by delusional · 2026-04-02 · in We sped up bun by 100x -
…I get approached with "we should consider using ____" is to send them to their issues page ( e.g. https://github.com/oven-sh/bun/issues ) and then be like "spend 60-90 minutes minimum here reviewing the issues - then come back and tell me…
comment by bdangubic · 2026-04-02 · in Claude Code's source code has been leaked via a map file in their NPM registry