Bun 1.4 Rust rewrite is not looking good

99 points by robinheghan


FRIGN

Looking at the clanker pull requests for Bun, e.g. this one, number 39590 (!), I cannot help but get a deeply dystopian feeling.

If the internet is not dead, at least collaborative programming is for a significant part: It's just machines talking to machines. And the code is so messy, which human would be willing and able to even read it? Or is the result going to be so messy that one requires the assistance of a machine to even traverse it?

The big AI companies are hooking people on the agentic programming part, but they are like drug dealers, making people dependent on their services (and forcing monthly subscription costs) to even be able to understand the masses of code spat out by those tools. The more dependent we are as a society, the more they can dictate the prices.

viraptor

I'm tired of seeing this claim for rust rewrites:

The number of unsafe blocks in the Rust code suggests the rewrite did not deliver the memory safety that was given as the reason for doing the rewrite in the first place.

This project replaced an implicit "unsafe" attached to every block of zig code with a few explicit ones that are still being removed. This includes explicit ones which cannot be removed (extern C) On the first 5 pages of GitHub search for that keyword, I found only 1 case that seems questionable. And some that could be probably removed with a change of architecture. But this quote from the post is not supported in any way. Bun never claimed to go purely safe Rust with no C dependencies and any removal of unsafe blocks is their progress in the right direction wrt. memory safety.