๐—•๐˜‚๐—ป ๐—ฅ๐—ฒ๐˜„๐—ฟ๐—ผ๐˜๐—ฒ ๐—œ๐˜๐˜€๐—ฒ๐—น๐—ณ ๐—ช๐—ถ๐˜๐—ต ๐—”๐—œ ๐—ถ๐—ป ๐Ÿต ๐——๐—ฎ๐˜†๐˜€

Bun just translated its entire codebase from Zig to Rust. An LLM wrote most of it. This process took 9 days. The pull request added over 1 million lines of Rust code.

Rewriting software is different from translating software.

A rewrite means humans rethink the architecture. They fix old mistakes. Translation means you push code through a machine. You hope the output works.

This creates massive risks for developers.

I call this tech debt laundering.

You had a Zig codebase with known issues. Now you have a Rust codebase with unknown issues. The debt did not go away. It just moved to a new language.

The old code was battle-tested. The new code is battle-translated. Those are not the same thing.

Companies depend on Bun for their infrastructure. They are now running code that was mostly generated by a machine rather than engineered by humans.

I use LLMs every day. I use them to write small functions. I do not use them to translate entire systems that thousands of people rely on.

Speed is the problem. Nine days is enough to see if code compiles. It is not enough to see if humans understand the code.

Would you run LLM-translated code in your production environment? What would make you trust it?

Source: https://dev.to/adioof/bun-rewrote-itself-from-zig-to-rust-using-an-llm-in-9-days-that-should-terrify-you-5om

Optional learning community: https://t.me/GyaanSetuAi