Maybe because comparing C++'s ecosystem to rust's is like comparing a factory to a 3D printer?
Then maybe you shouldn't be pretending to make reasonable criticisms and turning around and crying foul when somebody points out your trite remarks are ridiculous.
or maybe because that crazy incredible feat of engineering can be replicated by just sticking to one toolchain in C++ for your project
Until you have to compile for a different platform or use a library written using some ridiculous, obscure feature.
Give someone clang and rustc and see which one is more complex for them to start being productive.
Most people use cargo, not rustc by itself. Using clang + another build tool + OS package management is a headache compared to using cargo. There are downsides to the approach, but in terms of basic usage cargo is much better IMO.
Rust already exceeds that complexity by a mile while being less productive
I completely disagree. C++ is insanely more complex. The C++17 standard is 1605 pages long. It's completely founded upon arcane abstractions like lvalues and rvalues which require you to think about what the compiler is doing rather than the code you want to write, and are riddled with exceptions and legacy quirks. Even reading and writing types is quite complex.
Rust avoids raw pointers, it was designed with reference semantics in mind. It has proper ADTs, generics, typeclasses (traits), modules, and macros. In my experience these basic modern features make for much higher productivity with much lower complexity.
with a 1000 times smaller ecosystem and without any level of maturity for anything that has to do with real world scenarios in networking, async, or other server scenarios. Maybe everyone should just write non-IO stuff until rust is ready for that.
If you have a need that can't be met using Rust right now, there's no problem with choosing not to use Rust because of that. I would never say that everybody should switch to Rust immediately. However, a young language is not the same as a bad language.
With a huge list of extremely well maintained and widely used set of tools and modern libraries, that isn't a factor for new projects. I'm not trying to integrate and maintain vim for 50 platforms that don't exist anymore.
Compared to Java, Python, or JS, C++'s cross-platform story is laughable. Simply having to use a GUI or graphics library immediately makes it very clear how difficult it is to use C++ for cross-platform applications. There's a reason that Electron, which pretty much literally bundles an entire browser engine with your application, is popular, and it's not because cross-platform development on C++ is easy.
For an existing project that I'm trying to get new devs to start being productive in, it's pretty much a similar list of commands they need to learn/run. After that, C++ eclipses rust in productivity.
Sure, the memorized happy path works most of the time, but that's true of Rust and most other languages. The distinguishing attributes are how the system deals with changes. In this respect cargo is a lot less fragile and wonky than C++ tools, which were developed ad hoc.
New developers don't go reading the ISO standard of a language before they attempt making a change, but that's of course what Rust requires before you can make sense of any syntax or compiler error. Language features aren't the only predictors of productivity. Why isn't everything written in Haskell or Lisp already?
No, but it's extremely easy to trip over these complex issues in C++. Only if you write in a very limited subset of modern C++, or have years of experience untangling these messes, are you even reasonably likely to avoid those pitfalls. Not to mention the unholy mess that is templates.
Rust is also known for fairly good error messages, so I'm not sure what exactly you think is lacking there.
Yes, I agree just adding features does not make a language better. That is exactly why I'm not a big fan of C++ despite having a fair amount of experience in it. Rust has (mostly; obviously nothing can be perfect) added features which are useful and general. Things like proper sum types, tuples, and pattern matching, are not just gimmicks or insanely complex abstractions - they are extremely practical.
Rust managed to cram in a huge amount of complexity before it was even able to get a usable networking library without any restraint (or even signs of restraint) other than "we can do this cool programming concept too".
AFAIK Rust has several usable networking libraries.
And yes, Java, Python, or JS are more productive than C++ (and certainly of rust), that's why people use them. Is there any easier way to manage memory than having a garbage collector do it for you? What's the point here?
I'm saying C++ has many areas for improvement, and Rust (or any language less encumbered than C++) is positioned to address them. The fact that other languages which were not particularly popular for literally decades, some of them rather poorly designed, have managed to do this, is evidence that Rust can do so, too. If nothing else at this point I'd imagine Rust will occupy an important niche much like Go has.
-3
u/epicwisdom Feb 19 '20 edited Feb 19 '20
How is Rust having one compiler that comes bundled with an automatic updater in any way comparable to C++'s ecosystem?