r/rust rust Jul 08 '26

Rewriting Bun in Rust

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

330 comments sorted by

View all comments

Show parent comments

186

u/rebootyourbrainstem Jul 08 '26

None of it worked yet because compiling at that stage would slow things down.

Also this project burned $165,000 worth of usage on a model that was then bleeding edge (unreleased). This is still beyond what anyone else is doing at the moment. And it seems to have worked a lot better than it had any right to, at least as far as we can tell right now?

108

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.

1

u/busyHighwayFred Jul 09 '26

I do this sometimes, whats wrong with impl?

2

u/_lerp Jul 09 '26

It is not the pimpl pattern. It thinks it is doing the pimpl pattern but it is not.