News for hackers. Stuff that matters.
Re:Announcing Rust 1.100.0 by esFran on Friday November 13, 2026 @06:01AM (#50481741)
I've been thinking for a while about learning a programming language other than SQL and Python. I'm weighing three candidates: C, C++ (modern C++, with smart pointers and so on) or Rust, and I can't make up my mind. C is ideal because it would get me into the Linux world and make me 100% portable. But the threat Rust poses on the security front is significant. C++ is a real dark horse: almost all high-performance libraries are written in C++, as are critical pieces of software such as 3D engines, drone controllers and robotics. But the threat from Rust is still felt.

I have to choose: what would you recommend? I think C++ could be the perfect fit, but it keeps me out of Linux kernel development. With LLMs, is the safety advantage of Rust's borrow checker mitigated?

Re:Announcing Rust 1.100.0 by rswail on Friday November 13, 2026 @07:34AM (#50482626)
C is a simple language that is easy to understand but also easy to make classic mistakes like use-after-free and array boundaries.

C++ is an extremely complex language with lots of features and libraries and mountains of code, but it's not necessarily easy to write or debug. Compiler warnings alone can be crazy, considering the templating feature is almost a compile-time turing complete language.

Rust has some (to me) ugly syntax, but it tries to avoid the footguns of C++ while maintaining its commitment to removing the classic C problems in safe code. It also tries to maintain "zero cost abstractions" that are easier to program, but don't impact execution speed, primarily by having a much smarter compiler than C or C++.

I'd learn Rust. C will be easy after that, and C++ may be unnecessary.

Re:Announcing Rust 1.100.0 by esFran on Friday November 13, 2026 @09:09AM (#50483726)
Thanks!
Re:Announcing Rust 1.100.0 by Buttons840 on Friday November 13, 2026 @10:13AM (#50484732)
Learn whichever one makes you most excited right now.

Don't worry, you can change your mind. If you end up learning a little of all 3, that's a good thing.

The time you spend analyzing which you should learn would be better spent learning the worst possible pick of the 3.

But don't feel too bad, I also procrastinate by analysis. Many of us do. :)

Re:Announcing Rust 1.100.0 by close2 on Friday November 13, 2026 @01:34PM (#50487787)
What are your plans? C is a simple language, which brings you closer to assembler. It does allow some unusual syntax, which is why obfuscated C contests exist, but you will be able to program and understand basic C in very little time. rust is different. Even if you are an experienced programmer you will encounter new concepts and patterns.

If you just want to learn a language for the fun of it, I would still start with C.

Learn rust, if you want to create "real" programs.

Re:Announcing Rust 1.100.0 by kstrauser on Saturday November 14, 2026 @10:19AM (#50497719)
I’ve used Python since the 90s. Rust feels very much in the spirit of it to me: a Rust program ends up shaped a lot like the Python equivalent would. Not identical, or it’d just be Python, but similar.