5 ms·
Corporate support or not, Rust seems to be a better contender for the crown of the sane successor to C++. D might have been an important evolutionary step, pos
by nine_k 8y ago
Corporate support or not, Rust seems to be a better contender for the crown of the sane successor to C++.
D might have been an important evolutionary step, possibly showing what does not work well for the niche it was trying to fill.
- iainmerrick 8y agoRust has Mozilla. Support from a big corp is one way to get things like IDE support ironed out, as they can throw extra resources at it.
- fnord123 8y agoThe IDE support has come from various places including Jetbrains.
- bluejekyll 8y agoJetbrains has sponsored an alternative to the RLS, Rust Language Server. The RLS is used in VSCode, I think Atom, I’ve seen a port for Emacs, and I think Sublime. The community effort is behind the RLS, the Jetbrains plugin for IntelliJ doesn’t use any of the Rust compiler, as far as I’m aware, but it does have a lot of fans, so they’re doing something right. As a Java fan of IntelliJ, I still prefer the RLS+VSCode, but it’s great seeing all the IDEs being developed for Rust!
- earenndil 8y agoIDE support came from the community as an intellij addon, which jetbrains then officially sponsored. But they didn't decide to throw their own resources at making such a thing from scratch.
- leshow 8y agoLots of people use RLS, and AFAIK that's created by folks working at mozilla, though no doubt now it's mostly a community effort.
- curtis 8y agoI think Rust is the clear winner for OS-level programming. I'm not at all sure that it's the right solution for application-level programming. I think Go got two things right for the statically compiled application-level space: Fast compile times and garbage collection. Of course I feel like they got everything else wrong [1], but that's what we've got in that space right now. I think that D might be a much better fit for this space, but it doesn't matter because Go has sucked up all the oxygen. [1] I realize that this is not a universally held opinion, but it certainly seems to be pretty widely held.
- kqr 8y agoHow does Rust have a clear hand over Ada?
- nine_k 8y agoMmm.. lifetimes analysis? I'm no expert in either Ada or Rust, but I _suspect_ that type system is more expressive in Rust, allowing for more precise static constraints. Ada, of course, has decades of prod experience, though.
- pjmlp 8y agoRust isn't as expressive as SPARK, which got merged back into Ada 2012.
- elcritch 8y agoNot familiar with the deps of Ada memory management. It has a form of checked RAII, but no idea if it’s done via linear types. However Ada still has a more sophisticated type system for refined typed, aka sub-integer or float types. See [0] for a discussion on Rust issues. If you combine Ada with Spark you get some (still) amazing compile type proof checking of projects. [1] Rust _could_ develop to have similar abilities (I hope!). But it’d need more generalized linear types or dependent types. Though one could write macros with stargeted higher level type checking DSL for, say, embedded development targets. 0: https://github.com/rust-lang/rfcs/issues/671 https://github.com/rust-lang/rfcs/issues/671 1: https://docs.adacore.com/spark2014-docs/html/ug/en/source/type_contracts.html https://docs.adacore.com/spark2014-docs/html/ug/en/source/ty...