You may notice a lack of other modern compiled languages like Zig, so take that bias in mind :)
You may notice a lack of other modern compiled languages like Zig, so take that bias in mind :)
I'm really curious to know what makes rust so special? Mind you that I know nothing about it.
[0]: https://doc.rust-lang.org/book/ch06-01-defining-an-enum.html...
[1]: https://doc.rust-lang.org/book/ch16-04-extensible-concurrenc...
[2]: https://lights0123.com/blog/2020/07/25/async-await-for-avr-w...
[3]: https://doc.rust-lang.org/book/ch03-02-data-types.html#data-...
[4]: https://doc.rust-lang.org/book/ch06-02-match.html#the-match-...
[5]: https://doc.rust-lang.org/book/ch03-05-control-flow.html#ret...
[6]: https://doc.rust-lang.org/book/ch13-02-iterators.html
[7]: https://doc.rust-lang.org/book/ch13-04-performance.html
RUST lacks in real world scalability and applicability, it's still toy language even after years of development.
Do you have any features that you think experienced programmers are excited with? Or features that are required to provide real world scalability and applicability?
Number one feature versus Kotlin, C++, C#, C, Haskell, Python, Ruby, etc. is how easy it is to refactor large-scale Rust code bases safely.
Refactoring a large C++ code-base is almost impossible to do correctly without introducing lots of bugs, undefined behavior, security vulnerabilities, etc.
We did a major refactor (completely parallelized an ~700k LOC application) in a relatively short span of time (6 months) in Rust without issues.
We are also not the only ones that did this. Mozilla tried to parallelize Firefox using C++, and this failed so hard, that they actually chose to develop Rust far enough first, to be able to do that in Rust instead, and all that work actually landed on Firefox a couple of years ago already. I wouldn't consider Firefox a "toy" project.
I thought rust had a steep learning curve and borrow mechanics were hard. Boy howdy, "Real" c++ makes rust look like a cake walk. C++ has basically all the borrow mechanics of rust, it's just verbose, tedious , idiosyncratic, and bolted on. Plus umpteen other ways to pass data around.
The package and build system just works.
IMHO The "only" real advantages c++ has over rust are momentum, availability, and the ability to natively use C can code. The mind share, library ecosystem, and ubiquity are unmatched. However I see a point where wrapping FFI becomes easy enough that this last advantage becomes a draw. The second is fixed by more compiler support.
Compared to Java, rust is less verbose, faster, less memory, and better abstractions, though I haven't touched Java in 5 years.
The rust experience is so much better than C++ that I see it continuously eating into mind share. I think the joy comes from the relief of frustration of working with automatic foot guns for years.