5 ms·
To me, it feels like Rust really only has value to people who aren't already using C++14/17. The incremental benefit in certain areas is small, and it steps bac
by banachtarski 9y ago
To me, it feels like Rust really only has value to people who aren't already using C++14/17. The incremental benefit in certain areas is small, and it steps backwards in other areas.
- MrBuddyCasino 9y agoMaybe I'm living in a special kind of bubble, but I have yet to meet a C++ programmer IRL who doesn't hate it.
- pjmlp 9y agoHello, now you know me. I leave that special spot for C.
- Ygg2 9y agoSay what you want about C, but at least it doesn't require reading several LotR length books, to be up to date with all the stuff. Sadly, Rust, seems to be getting a few tomes of its own as well :P
- pjmlp 9y agoActually it does, for anyone that cares about how to write portable and safe code in C. There is this myth that C is a simple language, when devs stick to a single OS/compiler combo.
- Ygg2 9y agoC is a simple language. It has order of magnitude less concepts than C++. It's application is complex. In same way Lisp is a simple language, but its application can be just as complex.
- banachtarski 9y agoThere are dozens of us. Dozens! You need to search for programmers that have problems in the microsecond to millisecond scale.
- exceptione 9y ago«The incremental benefit in certain areas is small, and it steps backwards in other areas.» As someone who doesn't know about C++ and Rust, can you elaborate on that?
- pjmlp 9y agoRust is better in that it enforces at language level best practices regarding memory use and thread safety, that are only possible in C++ via conventions or external tools like sanitizers. C++ still wins down on available compilers, supported hardware and OSes, IDEs, debuggers, libraries, GUI tooling, SIMD, GPGPU, industry certifications for critical systems, ... For example AUTOSAR just recently moved away from C to C++14 as suggested language for car computer systems, imagine how long it will take for them to suggest other language.
- rapsey 9y agoYou did not list any steps backwards just that the ecosystem is less mature
- pjmlp 9y agoSure I did, lack of SIMD and GPGPU support for example. If you prefer to be more specific, generics in Rust are still not as powerful as in C++, lacking const parameters and HKT, although they are coming. Also compile time code execution is not yet supported, although quite a bit can be achieved with macros.
- steveklabnik 9y agoAssuming nothing catastrophic happens in the next five days, https://github.com/rust-lang/rust/pull/49664 https://github.com/rust-lang/rust/pull/49664 can be merged, by the way. So that'll be one thing off your list as of 1.27.
- RazrFalcon 9y agoSo nothing about ADT, pattern matching, modules, better std, explicit unsafe and cargo?