7 ms·
Let’s revisit this when Rust has... - the number of users - the amount of mission-critical legacy code that has to compile - the number of compiler vendors
by aaaaaaaaaab 8y ago
Let’s revisit this when Rust has...
- the number of users
- the amount of mission-critical legacy code that has to compile
- the number of compiler vendors
- age
... comparable to C++’s.
- paulddraper 8y ago> ... comparable to C++’s. When? 2018? 1990?
- pjmlp 8y agoIn the 1990's we already had a couple of OS vendors shipping C++ compilers on their OS SDKs (Apple, IBM, Microsoft, Be, Symbian). So far that is only true of Redox.
- noir_lord 8y agoTo be fair though 1990's C++ written in the recommended way is almost a completely different language to 2018 C++. The change isn't as marked as say perl5 and perl6 but it is still huge. I've no dog in either fight though, I moved to managed languages a long time ago (Object Pascal was the last compiled language I used in anger).
- pjmlp 8y agoTrue, but many of the "modern C++" stuff like RAII, type safe strings, arrays, collections were already possible in C++ compilers for MS-DOS for example, it was a matter of actually using them. Not sure which managed languages you mean, those that I use also provide the option to compile to native code just like Object Pascal, if I wish to do so.
- deleted 8y ago[deleted]
- steveklabnik 8y agoAnd Fuchsia.
- pjmlp 8y agoFuchsia is still largely written in C++, with a couple of modules like the TCP/IP stack, written in Go, and Dart for the UI layer. To what extent is Rust being adopted by the Fuchsia team?
- steveklabnik 8y agoThere’s a few hundred thousand lines of Rust in Fuchsia. (Garnet’s repo claims 12% Rust as of today.) They’ve been hiring Rust programmers aggressively to add more. They’ve been helping drive the design and implementation of async/await, since they’re big users. Rust is one of the four or five languages that they maintain a sort-of-libc for and use it as an example for writing applications for the OS. (It’s a microkernel, so it’s not really a libc so much as it is their IPC layer, which is how you make the equivalent of syscalls in other languages. “FIDL”)
- pjmlp 8y agoI see, so is that an indication that Zircon might eventually migrate to Rust?
- steveklabnik 8y agoI don’t think there’s any plans to move Zircon. It’s also less pressing, IMHO, since it is a microkernel. Maybe someday, but if I were in charge, it wouldn’t be super high in my list.
- lostmsu 8y agoThere's an official Rust support in SDK? There's an official SDK?
- steveklabnik 8y ago
- taneq 8y agoI'm not sure that's an important comparison. They're not saying that there's no good reason for the current state of C++, or that they can't understand why it's like that. They're just saying that it'd be nice if Rust didn't disintegrate into the same morass of new syntax, primitives, idioms and pitfalls that C++ has become.
- reificator 8y agoLet's also come back to it when Rust is older than C++. It's a new language targeted toward people who want stability and performance, what do you expect to see by now?
- steveklabnik 8y agoRust will never be older than C++ since they both get one year older every year ;)
- deleted 8y ago[deleted]
- StavrosK 8y agoOh age is just an int, and it'll overflow at some point.
- _ek94 8y agoInterpreting GP's comment using the Principle of Charity[1], I assume GP meant "older than C++ is now". [1]: https://en.wikipedia.org/wiki/Principle_of_charity https://en.wikipedia.org/wiki/Principle_of_charity
- reificator 8y agoOr making a joke, which is supposedly verboten here.
- firethief 8y agoSo, when it's too late?
- skywhopper 8y agoNo, the point is to get ahead of C++'s situation so as not to repeat its mistakes. You can't do that if you wait until it's too late.
- paulsutter 8y agoAccording to that we should all be using COBOL Did you hear they’re finally making it object oriented? The name will be ADD ONE TO COBOL