引用MaxBarraclough · 2020-07
“it looks like the good ideas from Rust may find their way into SPARK”
指出 Rust 的好想法可能进入 SPARK
在 SPARK 中引入受 Rust 借用检查器启发的基于权限的指针别名分析
演绎式软件验证里,带指针的程序因指针别名而很棘手。论文为面向关键任务软件形式化验证的 Ada 子集 SPARK 引入指针,采用受 Rust 借用检查器和仿射类型启发的基于权限的静态别名分析,强制执行“并发读、独占写”策略。该分析已在 GNAT Ada 编译器中实现并用一批有挑战性的例子测试;论文还对 SPARK 的精简版本给出分析规则的形式化描述并证明可靠性,并讨论实现、与 Rust 做比较。
HN 上的人用它说明 Rust 的好点子正在进入 SPARK,借用检查即将进入 SPARK,且 SPARK 对指针类型有类似 Rust 的移动语义。
“it looks like the good ideas from Rust may find their way into SPARK”
“On the plus side, borrower-checking is coming to SPARK. [1][2]”
“The SPARK subset of Ada^1 has a similar kind of move semantics for pointer types^2.”