News for hackers. Stuff that matters.
Re:Rust Is Tier-1 Language at Microsoft by mokre on Thursday September 10, 2026 @05:26PM (#49650368)
What with this llms not so good in rust mantra? Something changed? In my experience they are pretty good, but haters gonna hate.
Re:Rust Is Tier-1 Language at Microsoft by JoshTriplett on Thursday September 10, 2026 @08:03PM (#49651789)
LLMs are unusually good at Rust; it's an optimization target. And the constraints provided by "successfully compile with the Rust compiler" make it work well for agent iteration.

(I have mixed feelings about that, but empirically it holds true.)

Re:Rust Is Tier-1 Language at Microsoft by eru on Thursday September 10, 2026 @09:50PM (#49652589)
Yes, I found these agents to be better at producing acceptable Rust than at producing acceptable Python code.

In addition to the Rust compiler, you can also tell them to make clippy happy. Both in normal mode or if you are feeling nitpicky, you can also tell them to make clippy::pedantic happy.

Re:Rust Is Tier-1 Language at Microsoft by throwaway2037 on Friday September 11, 2026 @04:29AM (#49655199)
Can you give an example where an LLM produced low quality Python code? Python is such a simple language. This seems hard to imagine. Plus, the amount of open source Python that LLMs can be trained upon is enormous.
Re:Rust Is Tier-1 Language at Microsoft by Cnidarias on Friday September 11, 2026 @06:37AM (#49656154)
I am looking at an MR a colleague threw at me right now where the code quality produced is atrocious.

Multiple redefinitions of enums - except they aren't enum but random lists of strings - that also diverge in different files.

Things consistently typed as `Any` or `dict[str, Any]` even though the functions clearly are expecting specifics, not `Any`

This is the worst MR I've had to review yet in my life. Absolute garbage.

Re:Rust Is Tier-1 Language at Microsoft by throwaway2037 on Monday September 14, 2026 @10:20AM (#49697335)
Okay, so, single point anecdata? Yeah, no, I don't belive you. Overall, LLMs are very good are writing Python. Whatever you can throw at mean in terms of anecdata can be easily defeated by 1000+ blog posts of people using LLMs to write high quality Python. See: Simon Willison!
Re:Rust Is Tier-1 Language at Microsoft by JoshTriplett on Friday September 11, 2026 @08:58AM (#49657693)
FWIW, I wouldn't recommend turning on all of `clippy::pedantic` as a unit. It's a category of lints, but some of them have much more value than others, and turning them all on may make your experience of Rust feel unpleasant and nitpicky.
Re:Rust Is Tier-1 Language at Microsoft by Tanjreeve on Thursday September 10, 2026 @05:50PM (#49650601)
Most people it's good at syntax and the error messages give you a good loop. But the domains rust actually makes sense in tend to be quite punishing on slop both culturally and technically.
Re:Rust Is Tier-1 Language at Microsoft by dgroshev on Thursday September 10, 2026 @07:27PM (#49651526)
To add to this, I find that the delta between the amount of code and pain you get with good and bad abstractions is substantially higher in rust than other languages. It's alright to muddle through in Python or TS, but with Rust bad abstractions are punishing.

LLMs are pretty bad at picking abstractions.

Re:Rust Is Tier-1 Language at Microsoft by eru on Thursday September 10, 2026 @09:50PM (#49652595)
It's good that it's punishing when the abstraction are bad: then you notice. With Python or TS, as you say, you get less feedback.
Re:Rust Is Tier-1 Language at Microsoft by dgroshev on Friday September 11, 2026 @04:09AM (#49655047)
That's true, although inconvenient for production code that needs to be delivered yesterday.

Sadly, agents don't mind generating gigatons of code instead of refactoring the abstractions.