5 ms·
Popularity isn't what defines rust. Speed, concurrency, and safety are. ;)
by timschmidt 3y ago
Popularity isn't what defines rust. Speed, concurrency, and safety are. ;)
- bluGill 3y agoI'd say Safety, speed, and concurrency in that order. When Rust advocates talk about the borrow checker I - as a C++ developer - get interested. I can get similar safety and speed from C++ if I use modern C++, but it is too easy to drop back to the unsafe C++ even when modern C++ does the job. (You can drop to unsafe rust if you need, but it isn't as easy, and thus I would expect that Rust developers are not doing that unless they have a real need)
- frankjr 3y ago> I can get similar safety and speed from C++ if I use modern C++ Which modern C++ feature prevents data races?
- kimixa 3y agoRAII mutex locks are a pretty good tool. But like all "modern" c++ features still require programmer diligence to use correctly. Though there are likely other tools outside a compiler error to help enforce this, like static analyzers, or even thread sanitizer to help detect possible issues on a running system. And just like rust do little to protect against general race conditions, deadlocks, or the many other logic issues you can pretty easily hit around threading. Looking back at my experience around issues that involve threads, I suspect the vast majority of issues I see aren't data races.
- frankjr 3y ago> And just like rust do little to protect against general race conditions IIRC those should be impossible if you avoid `unsafe`.
- bluGill 3y agoGood architecture. Which isn't a c++ feature, but data races are not a big problem in my system because our architecture makes this easy. (We use qt signals/slots for cross thread messages)
- lionkor 3y agoHype isn't popularity, its usually a loud minority, and the kind of people happy to jump on anything. That said, Zig is cool, and deserves some attention
- nindalf 3y agoZig is great no doubt, but the irony in this comment increased my RBC count.
- codetrotter 3y agoIt increased your Royal Bank of Canada count?
- CRConrad 3y agoPerhaps his Red Blood Corpuscle count.
- deleted 3y ago[deleted]
- sophacles 3y agoIt's worth noting there's a difference also between hype and genuine enjoyment/satisfaction with a product. Look at sqlite threads - they happen here all the time, and there's cyclic periods where you'll see 2-3 a day for a week or two. This has been going on since forever, and there always seems to be someone in the comments wanting to jump on the "anti-hype train", even though after over a decade of popularity and satisfied users it might not actually be hype.