3 ms·
Mmm.. 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 co
by nine_k 8y ago
Mmm.. 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...