"We should rewrite everything in Rust." No. We shouldn't. I'm tired of the Rust evangelism that treats C++ like it's legacy garbage that needs to be thrown out. Here's reality: we have systems in C++ that have been running flawlessly for years. Fast. Rock solid. Battle-tested under real-world load. Someone suggested we rewrite them in Rust "for safety." Let me translate: spend months rewriting working code to solve problems we don't have. Rust is great. I'm not here to bash it. But this obsession with rewriting perfectly good C++ is cargo cult thinking. The "memory safety" argument falls apart when: Your team knows C++ inside and out Your codebase has years of production hardening You have zero memory-related incidents The rewrite itself introduces way more risk than the existing code New projects? Sure, consider Rust. Greenfield where safety is critical? Absolutely. But rewriting working C++ systems just because Rust is trendy? That's not engineering. That's fashion. Your job is to ship value, not chase hype. Sometimes the most innovative thing you can do is... nothing. What "we should rewrite this in X" suggestion have you pushed back on lately? #cpp #rust #softwareengineering #programming
"Why not rewrite C++ in Rust? The case against rewriting working systems"
More Relevant Posts
-
🦀 Stop the Bleeding: Why Rust is the Therapy Your Code Needs Let's be honest, your systems programming workflow involves a lot of praying that your code won't crash at 3 AM. Rust says, "Nah, we can fix that." This infographic is basically a to-do list for solving all your existential coding dread: • Performance: Code runs at native speed. Your users will think you're a genius. Your wallet will thank you for not needing a server farm. 🚀 • Memory Safety: It's guaranteed at compile time. No more \text{segfaults}. Rust eliminated the 'billion-dollar mistake' (the null pointer) and frankly, that's just good finance. 🛡️ • Concurrency: Write parallel code and don't spend the afternoon debugging race conditions. They call it "fearless concurrency" because Rust takes the fear out of your life. 🤯 The Takeaway: Rust gives you Reliability (fewer bugs, more naps), a great Developer Experience (modern tools, supportive community—they're nice!), and Versatility (it runs on basically everything). Stop fighting the memory management gods. Start coding with confidence. Code with Confidence. Build the Future. (And maybe get some sleep.) If Rust could talk, what would its first sassy compile-time error message be? #RustLang #SystemsProgramming #FearlessConcurrency #CodingLife #Tech #Rust #MemorySafety #Performance #Concurrency #WebAssembly
To view or add a comment, sign in
-
-
🚀 Ready to supercharge your code? Meet Rust! 🚀 In a world demanding speed, safety, and concurrency, Rust isn't just a programming language – it's a game-changer. Loved by developers for its performance, memory safety guarantees (without a garbage collector!), and robust concurrency features, Rust is powering the next generation of software, from web assembly to operating systems. Whether you're building high-performance applications, tackling systems programming, or diving into Web3, Rust offers an unparalleled development experience. Its vibrant community and excellent tooling make it a joy to work with. Why Rust? ✅ Performance: Blazingly fast, rivaling C and C++. ✅ Safety: Eliminates entire classes of bugs at compile time. ✅ Concurrency: Fearless concurrency with its ownership model. ✅ Modern Tooling: Cargo, Rustfmt, Clippy – a developer's dream! Are you already building with Rust, or curious to learn more? Share your thoughts below! #Rust #Programming #SoftwareDevelopment #Tech #Innovation #MemorySafety #Performance #Concurrency
To view or add a comment, sign in
-
-
C++ devs watching Rust devs explain memory safety: "We've been managing memory fine for 40 years." Rust devs: "Yeah and causing buffer overflows for 40 years." C++ devs: "Skill issue. Learn to code properly." Rust devs: "Or use a language that prevents it by design?" C++ powers: Your OS Your browser Your game engine Literally everything Rust powers: The future (allegedly) C++ devs ship in days. Rust devs compile for days. Both are incredible. But acting like C++ devs are reckless because they manage memory manually is like saying race car drivers are reckless for using manual transmission. Sometimes you need control. Sometimes you need safety rails. #Cpp #Rust #Programming #DevLife
To view or add a comment, sign in
-
-
Excited to share my latest Medium article on mastering Generics and Traits in Rust! As a senior software engineer, I've distilled best practices that help reduce code duplication, enforce type safety, and design more flexible APIs. From trait bounds to idiomatic usage, this guide is for advanced Rust devs looking to level up their code. What are your favorite Rust patterns? Let's discuss in the comments! #RustLang #SoftwareEngineering #ProgrammingTips #TechBlog
To view or add a comment, sign in
-
Its 2025 and its about to end soon. And you still don't need to pay for a course to learn Rust 🦀 📍Here are my TOP picks: 1. The Rust Book (Link: https://lnkd.in/gMzPiSJg) I wouldn't be doing justice to this LinkedIn post, if I didn't mention The Rust Book. From what I have seen, this is the first resource most Rust Developers begin with. It's a long and comprehensive documentation-style guide that covers all the major concepts of the language. 2. 100 Days Rust Exercise (Link: https://lnkd.in/guF2hrnj) Its a curated set of 100 Rust-focused exercises to practice all the concepts you've learned from The Rust Book. 3. Coding Challenges (CC) by John Crickett (Link: https://lnkd.in/gbcpSC_c) Nothing beats learning-by-doing approach. It's not even a debate. Coding Challenges (CC) a list of challenges where you'll build real world applications from scratch like: Load Balancer, URL Shortener, Web Server and many more... It's a great way to build confidence in writing code in Rust. ---- #rust #programming #software #code
To view or add a comment, sign in
-
-
Parsing Kernel Responses Safely in Rust When building Ginger OS, I spent a lot of time writing manual validation code. Every time I received a byte array from the kernel I'd check the buffer size, verify alignment, and validate padding. I had to do all that before casting to my struct. Then I discovered Rust's zerocopy crate. Instead of writing all those checks myself, zerocopy handles the validation and gives you a safe reference to the structured data. It verifies: * Proper alignment * Correct padding * Valid bit patterns for the type * Buffer size If the bytes don't match the expected structure, you get an error instead of undefined behavior. The end result is that I deleted many lines of validation code. I don't have unsafe code. I'm not doing pointer arithmetic, and I have compile-time safety guarantees. This is exactly the kind of tool that makes systems programming in Rust practical. The ecosystem gives you building blocks that are both safe and performant. #Rust #DevOps #DevSecOps
To view or add a comment, sign in
-
-
I have a question about Rust. I understand that Rust is a good language in its own right, and I’m not here to pick sides on the whole C vs Rust debate, because I honestly think they both have their own applications That being said… What’s the deal with the whole “rewrite it in Rust” thing? I don’t understand why we’re rewriting entire systems in Rust when those systems have been battle-tested and debugged. Can anybody shed some light on this for me? Again, I actually think Rust is a very cool language, but I don’t understand why we’re trying so hard to eliminate C for Rust.
To view or add a comment, sign in
-
So talking about my first impression on rust, so here it is Rust is strict, but it teaches you discipline. The compiler doesn’t just throw errors it explains why. It just doesn’t let you write unsafe code.
To view or add a comment, sign in
-
The Rust Dilemma: Why Isn't the Most Loved Language Everywhere Yet? Rust has been the most admired language for nine consecutive years, yet its adoption rate remains between 12% and 14%. This raises questions about its slow integration into the enterprise world: 1. Why is Rust's enterprise adoption slow? ▪ High Costs & Investment: Transitioning to Rust involves significant costs and training. ▪ Talent Availability: There's a shortage of senior Rust developers to lead projects. ▪ Ecosystem Maturity: Some necessary libraries or protocols in Rust are still developing. ▪ Integration Challenges: Rust doesn’t always fit well with projects heavily reliant on C++. ▪ Risk Aversion: Rewriting stable applications in Rust is often seen as risky. Despite these challenges, major companies like Amazon AWS and Meta are gradually adopting Rust. 2. Where does Rust excel? ▪ Safety-Critical Applications: Ideal for sectors like defense and automotive, where safety is crucial. ▪ Low-Latency Infrastructure: Rust outperforms languages with garbage collection, like Java. ▪ Embedded Development: Offers a modern, safer alternative to C/C++. ▪ Command Line Tools & Cryptography: Rust’s safety features make it popular in these areas. 3. What are Rust's alternatives? ▪ C/C++: Traditional choices but lack Rust’s safety features. ▪ Go/Java/Kotlin: Use runtimes and garbage collectors, not ideal for Rust’s niche. ▪ Other Systems Languages: Zig, Swift, and Julia offer some features but don't match Rust’s safety. In the realm of "safe, high-performance systems programming," Rust remains unrivaled. #RustLang #Programming #SoftwareEngineering #TechAdoption #SystemProgramming
To view or add a comment, sign in
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development