论文标题

部分可观测时空混沌系统的无模型预测

Do Mutable Variables Have Reference Types?

论文作者

Kiselyov, Oleg

论文摘要

隐式异质元图(又称离岸)是一种具有正确性保证的C生成C的有吸引力的方法:生成OCAML代码,正确的保证更易于建立,然后将该代码映射到C中。关键的想法是,简单的命令式OCAML代码看起来像是不及时的C.遗憾的是C.遗憾的是,它是虚假的,它是错误的,它是错误的。过去,通过强大的临时限制来挽救这种方法。本文首次系统地研究了问题,并发现不需要限制的一般解决方案。在此过程中,我们通过参考类型的值来阐明建模可变变量的微妙,并直观且正式清晰地到达。我们还可以解释C分配而不诉诸L值。

Implicit heterogeneous metaprogramming (a.k.a. offshoring) is an attractive approach for generating C with some correctness guarantees: generate OCaml code, where the correctness guarantees are easier to establish, and then map that code to C. The key idea is that simple imperative OCaml code looks like a non-standard notation for C. Regretfully, it is false, when it comes to mutable variables. In the past, the approach was salvaged by imposing strong ad hoc restrictions. The present paper for the first time investigates the problem systematically and discovers general solutions needing no restrictions. In the process we explicate the subtleties of modeling mutable variables by values of reference types and arrive at an intuitively and formally clear correspondence. We also explain C assignment without resorting to L-values.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源