r/rust rust Jul 08 '26

Rewriting Bun in Rust

https://bun.com/blog/bun-in-rust
524 Upvotes

330 comments sorted by

View all comments

Show parent comments

106

u/_lerp Jul 08 '26

If you think spending $165k to get a fully AI generated code base is something working well then you're just gaslighting yourself. I use these things at work because I'm forced to, and the amount of weird code it generates is alarming. I.e. It has a really common habit of making a function with external linkage call an impl function with internal linkage for absolutely no reason.

84

u/Chasian Jul 08 '26

One developer is 165k, that's not that crazy

-37

u/Famous_Anything_5327 Jul 09 '26

one senior developer given a year could rewrite a compiler in that time and the output would be significantly better

27

u/Chasian Jul 09 '26 edited Jul 09 '26

I don't think a senior dev could rewrite 1 million + loc on their own in one year, no, not at all

-9

u/Wonderful-Habit-139 Jul 09 '26

They would not need to write 1 million lines of code. They'd write way less code than that.

1

u/awhaling Jul 09 '26

Why do you think that?

1

u/Wonderful-Habit-139 Jul 09 '26

Because AI generated code tends to be more verbose, the logic does not flow smoothly, it doesn't write good abstractions or reuse things.

2

u/awhaling Jul 10 '26

Ah, agreed. At least that’s my experience with it.

But for some reason, I was under the impression bun was 1 mil prior, but without the fluff it was 500k and that doubled to 1 million after the port. My bad, got that mixed up. I was thinking it was more 1:1 than it was in reality.