logoalt Hacker News

Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc

604 pointsby heldridayesterday at 10:12 AM583 commentsview on HN

https://xunroll.com/thread/2053047748191232310

Recent and related: Zig → Rust porting guide - https://news.ycombinator.com/item?id=48016880 - May 2026 (540 comments)


Comments

mjtkyesterday at 11:42 PM

The flagship product is both the cash cow (subsidizes rewrite) AND the labor (amortizes? rewrite).

m4rtinkyesterday at 1:56 PM

What license is this ? Let me guess, its is no GPL...

show 2 replies
pdhborgesyesterday at 7:17 PM

Curious how the test suite was applied. Was it ported from Zig to Rust beforehand?

show 1 reply
dlenskiyesterday at 7:41 PM

Deleted

show 2 replies
timetraveller26yesterday at 7:08 PM

3 years from now: Linux ported to Rust in 6 days.

And on the seventh day Claude ended His work which He had done, and He rested on the seventh day from all His work which He had done

show 1 reply
artoyesterday at 7:45 PM

The fastest large-scale rewrite in the history of software engineering, likely

hacker_88yesterday at 10:20 PM

Merge with Deno

matrix12yesterday at 9:27 PM

will this mean opencode is finally portable?

show 1 reply
Amber-chentoday at 1:25 AM

This is a good reminder that tooling choices compound over time. The short-term speedup matters less than whether the next maintainer can still reason about the system.

sourcegriftyesterday at 11:25 PM

Do scala.js next

AtNightWeCodeyesterday at 8:58 PM

Kinda crazy to use AI to switch from zig to rust in a tool that runs js. Bin bun and use a real lang to begin with. No reason to have that extra layer anymore.

show 2 replies
amaiyesterday at 8:55 PM

Bunner

born-jreyesterday at 7:16 PM

Being anthropic accuired project does he have access to mythos or it’s normal Claude we plebs have access to

show 2 replies
the__alchemistyesterday at 10:03 PM

Bun alert!

ekjhgkejhgkyesterday at 8:04 PM

Explain it for dummies. Isn't Zig a programming language? Why are they re-writting a programming language in another programming language?

show 1 reply
up2isomorphismtoday at 12:22 AM

best way to kill an open source project in 2025 - use AI to port it to Rust.

sergiotapiayesterday at 9:04 PM

jared's post is singlehandedly shitting on Zig's reputation. not good juju for him to post like that.

"I am so tired of worrying about & spending lots of time fixing memory leaks and crashes and stability issues"

bun was zig's poster child. if it moves away, it becomes yet another random language like nim or crystal.

BLACKCRABtoday at 8:24 AM

[dead]

chenzhekltoday at 8:07 AM

[dead]

Ati985today at 6:01 AM

[dead]

lerp-ioyesterday at 7:43 PM

[flagged]

Jimmy0252yesterday at 11:41 PM

[dead]

marsven_422today at 5:43 AM

[dead]

redsocksfan45yesterday at 7:42 PM

[dead]

jdw64yesterday at 9:16 PM

[dead]

black_13yesterday at 11:20 AM

[dead]

rvzyesterday at 10:56 AM

[flagged]

show 2 replies
roschdalyesterday at 9:18 PM

Meh. I prefer Java, all hours of the day, every day of the week.

parliament32yesterday at 7:34 PM

Ew

pjmlpyesterday at 7:26 PM

> why: I am so tired of worrying about & spending lots of time fixing memory leaks and crashes and stability issues. it would be so nice if the language provided more powerful tools for preventing these things.

As expected, Modula-2 / Objective Pascal like safety was great during the last century, before automatic resource management, and improved type system became common in this century.

Naturally also have to note, wasn't this supposed to be only an experiment, nothing serious?

heldridayesterday at 10:12 AM

An update on Bun’s experimental migration from Zig to Rust:

The Rust rewrite now passes 99.8% of Bun’s pre-existing Linux x64 glibc test suite.