4 ms·
Any GC language will help, indeed. But there is much, much more to safety than deallocating memory.
by Yoric 6y ago
Any GC language will help, indeed. But there is much, much more to safety than deallocating memory.
- _wldu 6y agoThis sort of extremist view is typical of rust proponents and is also why rust has a bad reputation. Java, Go, C# are all extremely safe and performant languages.
- coldtea 6y ago>Any GC language will help, indeed. But there is much, much more to safety than deallocating memory. Yes, but that's the main allure of Rust. As for the rest (e.g. resource releasing, avoiding concurency issues, avoding not-exhastive mathces, injection, etc.), other languages have their own ways as well, including Java. If those are your main concerns (and not also top-speed) I don't think Rust is worth the extra cost (learning slope, slow compilation times, single implementation, fewer libs and developer tools, etc).
- couchand 6y ago> Yes, but that's the main allure of Rust. Not really. That's often touted as the banner feature, but it's the expressive type system that really makes Rust a better candidate than, for instance, Java.
- johnnycerberus 6y agoYou can use Scala 3 which is even more powerful than Rust and you get all the benefits + extra sauce.
- Yoric 6y agoNote that I'm not dissing other languages. Each language has their pros and cons. It just happens so that Rust is my current sweet spot for the kind of applications I currently need to write. My main point in this particular discussion is that Rust has way fewer gotchas than most other languages used in the industry, including Python and JavaScript. Whether these gotchas are problems for your use cases, only you know. I know that such sleepless nights tracking such gotchas have killed my will to write and maintain large codebases in Python or JavaScript (or C++), at least for a few years.