this post was submitted on 12 Aug 2026
127 points (95.7% liked)

Programmer Humor

32965 readers
1801 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
 
top 18 comments
sorted by: hot top controversial new old
[–] bitjunkie@lemmy.world 24 points 2 weeks ago (2 children)

So bun is going to suck soon?

[–] SwooshBakery624@programming.dev 64 points 2 weeks ago (4 children)

Fun fact: After Anthropic rewrote Bun in Rust, Zig's lead developer stated that they used Bun as an example of how not to write Zig code. So, the answer is that is always did.

Because of the names, your comment sounds utterly ridiculous to someone who has never heard of Bun or Zig.

Source: someone who has never heard of Bun or Zig.

[–] mamg22@sh.itjust.works 14 points 2 weeks ago (1 children)

So they rewrote poor Zig code into what probably is even poorer Rust code, and from what I've seen, using their AI to do it. Yeah, that sounds like they're getting a fully functional and non-buggy piece of software.

[–] Ghoelian@piefed.social 7 points 2 weeks ago* (last edited 2 weeks ago) (2 children)

And they're initially doing it without Rust's ~~memory safety~~ borrow checker iirc, so a big part of the benefit isn't there

[–] Traister101@lemmy.today 5 points 2 weeks ago

Unsafe Rust code doesn't turn off the borrow checker, it basically just allows you to play with pointers and call code that the compiler can't (or can't right now) statically assert is sound. IE if you roll your own Vtable the functions are safe to call, but the compiler can't tell so you have to use unsafe

[–] mamg22@sh.itjust.works 2 points 2 weeks ago* (last edited 2 weeks ago)

Ok this is funny. Like "look bro, we rewrote bun in Rust because it's ✨Safe✨ and all that", and they're not even trying lmao

In all seriousness, part of that issue probably comes from the original code already ignoring the safety features of Zig, and whatever LLM they used to port it just doing the most half-assed thing and doing a literal translation of the code.

The future of software development, ladies and gentlemen

Edit: rust safetyYes I know unsafe in rust doesn't mean unsafe code, it just that the compiler trusts you to correctly use the interfaces and references since it won't check them inside such blocks

[–] 30p87@feddit.org 2 points 2 weeks ago

I mean, Bun itself serves a language that should not exist

not exactly what he stated, but the code was poor even pre ai

[–] Anafabula@discuss.tchncs.de 18 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

It was bought by Anthropic end of 2025 and they vibe coded a rewrite to rust in May 2026

[–] JustJack23@slrpnk.net 12 points 2 weeks ago (1 children)

They haven't had a release after the rewrite, I doubt they will have one soon.

[–] Solemarc@lemmy.world 12 points 2 weeks ago

Even better, they used to release twice a month (minimum), it's been 4 months now.

[–] PattyMcB@lemmy.world 14 points 2 weeks ago (1 children)

Does this mean that half of all the repos on GitHub will soon disappear?

[–] richardisaguy@lemmy.world 4 points 2 weeks ago

AI Users only (1, 4)

[–] moosetwin@lemmy.dbzer0.com 2 points 2 weeks ago (1 children)

where did you get those markers from? I haven't seen them before

[–] copygirl@lemmy.blahaj.zone 7 points 2 weeks ago* (last edited 1 week ago)

Source is a quite useful list of open source software that uses / supports / is supported by AI:

https://codeberg.org/ethical-foss/open-slopware

This is useful if you have concerns and want to be able to choose to avoid such projects.

[–] onlinepersona@programming.dev 2 points 1 week ago

Has bun even released a version since their Rust rewrite?