计算机科学 > 程序设计语言
[提交于 2021年3月15日]
标题:Classical (Co)Recursion: Mechanics
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Primitive recursion is a mature, well-understood topic in the theory and practice of programming. Yet its dual, primitive corecursion, is underappreciated and still seen as exotic. We aim to put them both on equal footing by giving a foundation for primitive corecursion based on computation, giving a terminating calculus analogous to the original computational foundation of recursion. We show how the implementation details in an abstract machine strengthens their connection, syntactically deriving corecursion from recursion via logical duality. We also observe the impact of evaluation strategy on the computational complexity of primitive (co)recursive combinators: call-by-name allows for more efficient recursion, but call-by-value allows for more efficient corecursion.
提交历史
来自:Paul Downen[v1] 2021年3月15日 星期一 16:46:09 UTC