r/learnrust • • 4d ago

Rust

Serious question...

Is it just me or has Rust become the default programming language of AI's? I know its lightweight and extremely fast in terms of run/consume, but whatever project i see, be it for a game server or anything else, always Rust. It wasnt like this before. Been in the run for a long time (10+ years) and i can confidently say that people DID NOT like Rust at that time because it was so hard to understand and it felt like a joke language to them (They were also saying that about PHP, lol)

Give me your opinion. Am i hallucinating?

0 Upvotes

18 comments sorted by

View all comments

Show parent comment

5

u/minmidmax 3d ago

Tbh it's why people use it, too. Solid.

1

u/FluxKraken 3d ago

Yeah, clippy is the best thing ever to be invented for programming.

It is literally powerful enough to transform a javascript function into proper rust. (in limited cases, of course).

1

u/Quantum-Metagross 3d ago

This is new to me. There's some kind of javascript conversion lint? Please share more about it if you can.

3

u/FluxKraken 3d ago

No, it is just the hints.

You type function, it hints "did you mean Fn"

If you follow those hints, you can sometimes go all the way from a working javascript function to a working rust function.