News for hackers. Stuff that matters.
Re:Unsafe Rust Is Harder Than C by andrewmcwatters on Friday October 25, 2024 @02:13PM (#41947968)
I feel a sort of professional obligation to learn the cryptic unnecessary glyphs and runes that Rust and its ilk proliferate all for this important concept that is memory safety.

However, I would much rather that more languages like Go and Zig simply take off in popularity instead, and that we just reject the eyesore and cognitive mess that is Rust syntax. It’s a language which has no regard for beauty.

Re:Unsafe Rust Is Harder Than C by jcrites on Friday October 25, 2024 @02:43PM (#41948304)
For what it's worth, I disagree. I think it would be difficult to design a language more elegant than Rust while accomplishing the same goals. Maybe those goals aren't ones that everyone cares about, and that's OK.

It's a language that's definitely worth learning; it expands the mind in a way that languages like Go (or Java, or any GC language) will not. There is a great beauty and elegance to its design.

Re:Unsafe Rust Is Harder Than C by OtomotO on Friday October 25, 2024 @02:53PM (#41948421)
I would love a much simpler Rust...a Zig with a borrowchecker, a small stdlib (like Rust), some official package manager.

I agree that Rust has a lot of syntactic warts but the common stuff I find beautiful

Re:Unsafe Rust Is Harder Than C by MarkSweep on Friday October 25, 2024 @04:37PM (#41949438)
As long as we counting Go as an alternative to Rust, there are a whole host of other garbage collected languages that provide memory safety benefits compared to the status quo of C and C++. Languages like Ruby, Java, Python, C#, and PHP.

Personally I don’t think it makes sense to write all software in Rust. A GC makes it much easier to write certain patterns that are frustrating to write in Rust.

Re:Unsafe Rust Is Harder Than C by fjasdyfs on Sunday October 27, 2024 @02:16PM (#41964453)
I agree the syntax in Rust can be hairy however presenting Go as an alternative to Rust makes zero sense. They have completely different runtime characteristics and goals.