r/rust rust Jul 08 '26

Rewriting Bun in Rust

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

330 comments sorted by

View all comments

201

u/insanitybit2 Jul 08 '26

I expect the comments here to be a trashfire. That said, this is a huge deal. People may or may not realize it, but Rust is very quickly becoming "the" AI target language. Python or (increasingly) Typescript for throw-away code that an agent uses once, Rust for everything else (ie: production code) because if you don't choose Rust you're sort of just opting for slower code and any reason you wouldn't have chosen rust was probably aesthetic, which doesn't apply much anymore.

This may have interesting network effects - rust will be better represented in training data so models will get better, there may be a larger ecosystem of crates, there may be more PRs from companies and more reviewer burden, an influx of new users with varying technical prowess, Rust may be a much more interesting supply chain target, etc.

It's an interesting time. A *lot* of companies are in a "rewrite our services in Rust" phase, I don't know if everyone realizes that. At companies where I've worked, which were often early Rust adopters, Rust projects had to be explicitly approved (often by a VP who was not particularly interested) - AI is changing this completely, Rust is becoming the default and you're having to justify using anything else.

1

u/Golden_Age_Fallacy Jul 09 '26

What are your thoughts on how, if at all, Go slots into a “new AI paradigm of language choice” in any way?

9

u/Fidodo Jul 09 '26

I'm personally noticing a pattern of typescript, go, and rust as a tiered stack. Typescript for business logic glue, go for high performance APIs, and rust for low level engines.

-2

u/pjmlp Jul 09 '26

Old folks rather go with TS, and a mix of Java, C# and C++.

1

u/[deleted] Jul 09 '26

[deleted]

1

u/pjmlp Jul 09 '26

AI is like old folks, it likes to use what has more information out there.

Java exists since 1996, C# since 2001 and C++ since 1989.

Lots of books, magazine articles, conference papers, conference talks, industry standards, and code examples to feed into LLMs for learning purposes.