News for hackers. Stuff that matters.
Re:Rust Is Tier-1 Language at Microsoft by bluGill on Thursday September 10, 2026 @11:58AM (#49645924)
The other things I've seen beginners do is throw unsafe at everything.
Re:Rust Is Tier-1 Language at Microsoft by tredre3 on Thursday September 10, 2026 @12:33PM (#49646509)
The things that unsafe enables are arbitrary pointers, FFI, and accessing union members in a C struct. It seems highly unlikely to me that unsafe would fix any beginner's problem.

.clone() on the other hand is indeed an easy/quick fix for a lot of issues you'd face when learning rust.

Re:Rust Is Tier-1 Language at Microsoft by suddenlybananas on Thursday September 10, 2026 @12:41PM (#49646618)
I think beginner programmers are unlikely to use unsafe when learning rust but people coming from c or c++ who are beginners at rust might use unsafe all over the place.
Re:Rust Is Tier-1 Language at Microsoft by bluGill on Thursday September 10, 2026 @12:43PM (#49646658)
Exactly - we have been using C or C++ for decades and most of us have a lot of experience. We think like programmers in the languages meaning we often do things that Rust won't allow without unsafe. A small percent of the time that is the right thing (which is why Rust have unsafe), but very often there is a Rust way that is just as performant if only we knew how to think like Rust programmers.
Re:Rust Is Tier-1 Language at Microsoft by Pannoniae on Thursday September 10, 2026 @01:00PM (#49646912)
Sadly it still feels like it's one of the languages where the language doesn't trust you, it tries to force you to do things "the right way". I do love quite a few of its design like how traits are, not forcing every method into the declaration, and the standard library is much less crazy than the C++ version.

Sadly, other things a bit less so - the story for the thin battery-less stdlib + npm-style churn encourages bloat, and the semantics are obsessed with safety at a heavy cost to productivity unless you spam clone() and reference-counting - but then your program becomes slow, kind of negating the advantages, you might as well have written it in C# or something...

Re:Rust Is Tier-1 Language at Microsoft by rblatz on Thursday September 10, 2026 @02:13PM (#49648042)
Yeah it doesn’t trust you, and for good reason the decades of developers making the same mistakes over and over again. If everyone was perfect you wouldn’t need Rust, but no one is perfect and that’s why Rust exists.
Re:Rust Is Tier-1 Language at Microsoft by bluGill on Thursday September 10, 2026 @02:51PM (#49648569)
Most of the time the rust way is just as good, just different.
Re:Rust Is Tier-1 Language at Microsoft by uecker on Thursday September 10, 2026 @01:09PM (#49647060)
Yes, but this this is not a problem at all because any bug caused by misuse of unsafe (or unwrap) is entirely the fault of the programmer (or the AI) and not of Rust. /s