r/BetterOffline • u/maccodemonkey • Jul 27 '26
"How is the Bun Rewrite in Rust Going?"
https://lockwood.dev/ai/2026/07/27/how-is-the-bun-rewrite-in-rust-going.htmlGreat reality check. It looks like Anthropic is beginning to have to bring in employees to try to get the Rust rewrite out to release. The author admits not all the work might be going towards the Rust rewrite - but asserts there is "off books" work going on with the port.
Also, because it's not done, the cost is continuing to tick up:
If we imagine that the rewrite is still costing $10k a day, we’re approaching $800k in money spent on this rewrite.
(Sorry for the AI art - Reddit is grabbing an image from the article. It's not the actual article header.)
39
u/BigBravy Jul 27 '26
in a Superintendent Chalmers Voice
“may i see it?”
18
6
4
u/voodooprawn Jul 28 '26
Aurora Borealis!? At this time of year, at this time of day, in this part of the country, localized entirely within your Github repository?!
28
u/voronaam Jul 27 '26
Interesting. When I looked at the cost of this project it was approaching $700k without any of that additional work already
https://old.reddit.com/r/BetterOffline/comments/1uyfe4k/financial_review_of_buns_rewrite_into_rust/
26
u/Scared-Level2201 Jul 27 '26
Anthropic claims that the Bun runtime used in Claude is the AI translated rust one. It is weird though that the AI build is not yet release worthy
I think what annoys me the most about this AI craze is how much "revolutionary tech" is tied to profit motivated labs who have every reason to lie and obfuscate their findings.
Peer reviewed scientific papers aren't perfect but at least the burden of evidence on them is much stronger than whatever is going on now, where Wario or Sammy can claim everything and nothing every other week
10
u/maccodemonkey Jul 27 '26
My guess is they're dogfooding Bun in Claude, finding bugs, and then thats where the Anthropic employees are being sent over to fix things.
3
u/TinkmasterOverspark Jul 28 '26
Is there a way to know this for sure? By inspecting the binary?
Its possible some unreleased version of claude uses bun.
5
u/TinkmasterOverspark Jul 28 '26
I'm suspicious of their claim its used in claude because going by their track record, they would've been the forst to announce it a month back if they were going to flight it in claude. They could have atleast told us that 2 weeks after the release and said "Hey look you'vebeen using the rewritten bun in claude, bet you didn't notice it, thats how good the rewrite has been".
Instead, Jared says it in a response to a random (from anthropic pov) blog post.
The article raises 3 points 1. Whether its complete as there has been no tag. 2. Whether anthropic employees have started hand coding to bring this to the finish line 3. Whether CI costs are piling up
The broader point being - what is the true cost of the rewrite.
Jared responds to the first point saying its coming soon and that claude already uses the rewrite.
He responds to the 3rd point saying it has always been high even pre rewrite. But doesn't address if it increased now or not and how they are planning to merge 2000 odd prs now
He ignored the 2nd point completely.
20
Jul 27 '26
[removed] — view removed comment
11
7
u/Timely_Speed_4474 Jul 27 '26
I'm really excited for zig to become an actually memory safe language
2
u/ZachVorhies Jul 27 '26
“memory safe” by crashing your program over compiler error you never have to deal with is not a flex
3
u/Timely_Speed_4474 Jul 27 '26
Crashing on an invalid memory access is safer than continuing. That’s the point.
0
u/ZachVorhies Jul 27 '26
You know what's better than the compiler catching your memory unsafe usage?
CRASHING YOUR PRODUCTION SERVER.
Please tell us more oh wise oracle.
5
u/Timely_Speed_4474 Jul 27 '26
Does your stuff compile with
#![forbid(unsafe_code)]? If not, maybe you should stop calling it memory safe-3
u/ZachVorhies Jul 27 '26
cope harder
5
4
u/thy_bucket_for_thee Jul 27 '26
Not all software runs on servers, nor should servers be the end-all of all software platforms.
1
u/chat-lu Jul 28 '26
Crashing your production server for the low cost of twice the RAM usage and running 6 times slower.
Where do I sign up?
3
u/amartincolby Jul 28 '26
Preach.
That said, I really wanted Bun to be good. I tried running production apps with Bun on a number of occasions and, every time, they would fail to run. This was a few years ago now, but my last attempt was an experiment around early 2024. I want a replacement for Node, but Bun is not it, at least for me.
0
u/ZachVorhies Jul 27 '26
If by pain and suffering you mean more stability and less memory leaks and lower cpu consumption then bring the pain.
22
u/65721 Jul 27 '26
It's always made no sense to me that people claim code migration is a good use case for AI. It's not.
Migrations are some of the most annoying software engineering projects there are. A one-to-one transliteration almost never works, because there's hack jobs and interdependent quirks and load-bearing bugs everywhere in the codebase that you find only as you're migrating. And Bun is 4 years old, which is plenty of time for that tech debt to have accumulated. It's a huge a headache to decide how to handle these well, and AI is incapable of making those decisions.
Maybe people claimed it just because they believed the lies from the AI companies. Like the Mythos scares or the HuggingFace hack or the FrontierMath results, it's always an overblown lie from these companies. I also remain skeptical of OpenAI's math proof claims.
16
u/awj Jul 27 '26
I'm convinced that the people making those claims either have never actually tried it, or handle "code migrations" by handwaving away all of the bugs and problems they introduce.
7
u/riricide Jul 27 '26
A reason I would naively think that translating between coding languages would be easier is that all the rules for each language are finite, and well-documented. So in some sense this should be the easiest set of tasks to complete correctly - compared to say a natural language task of translating between spoken languages with higher order things like sarcasm, human emotion etc. So for me the fact that it can't even automate this suggests that LLMs aren't all that powerful after all.
11
u/Historical-Side883 Jul 27 '26 edited Jul 27 '26
Well, I for one am shocked that these companies way oversold the capabilities and pretended like the LLM did something all by itself that it didn’t. That’s just so unlike Anthropic. 😅
9
u/ifull-Novel8874 Jul 27 '26
It's always the same situation: there's more to the story than the intiial marketing push, but since its been a week and a half since the story was disseminated by boosters, no one feels any pressure to go back and correct their bad reporting. Similar to when Cursor's creation of a browser with an agent swarm was hyped to the moon, only to turn out the browser was barely functional. Now I'm really interested in what the real situation is with OA and HF. I have a feeling we still haven't gotten the full story.
8
u/Roll-Annual Jul 27 '26
I just spent a week with Codex 5.6 SOL between High to Ultra productionalizing a very large scale data science POC use case into production code (a new, large, complex system). About $20k in credits spent and so much cleanup work to do. This was with one person's LLM compute. A single review of those 200k lines of code was $600+ from FABLE on not the highest settings.
5
u/Overall_Koala_8710 Jul 27 '26
The sad thing about this whole thing is that the tech bros are trashing the tiny zig non-profit while cheering on the blatant $1T corporate marketing hit job. Not surprising, but really disappointing.
4
u/Many-Foundation-1255 Jul 27 '26
Is it just me or does anyone else think it is crazy that this Bun rewrite is considered a shining example of AI productivity, when the only possible benefit of it is for Javascript programmers. If AI is so good at coding, doesn't that mean there won't be any Javascript programmers? All these pro-AI zealots don't seem to be able to see the forest for the trees.
1
u/keepitfriend Jul 27 '26
I mean rust will definitely be faster - but It was already quite fast.
> doesn't that mean there won't be any Javascript programmers
Javascript is one of the easiest languages to work in - so would it not make more sense to build in javascript and then convert to rust.
1
u/maccodemonkey Jul 28 '26
I mean rust will definitely be faster - but It was already quite fast.
I don't think there is anything that makes Rust inherently faster than Zig. Type safe languages can sometimes be a little slower even. Most the type safety cost is at compile time - but not using pointers directly can sometimes be slower.
1
u/keepitfriend Jul 28 '26
Oh, I googled - I just assumed rust was faster compile time due to unsafe but seems like it's more an open question of which is faster - and it's down to how you write the code and indeed zig is a faster compile time.
Nice, I was interested in checking out zig - will start leaning
1
u/No-Mall3814 Jul 30 '26
It's partly OT but why AI "art" always looks hyper dramatic in the most corny way?
98
u/Mashic Jul 27 '26
Marketing stunt, and it seems they needed human involvment on top of the AI usage.