arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1312.2334cs.PLcs.LO
收藏

推断代数效应

Inferring Algebraic Effects

Matija Pretnar

摘要:

我们提出了一个完整的多态效果推理算法ML风格的语言处理程序不仅异常,但任何其他代数效果,如输入和输出,可变引用和许多其他。我们的主要目标是为程序员提供有关程序有效行为的有用见解。处理程序通过减少可能的效果和由此产生的冗长输出来提供帮助,这些输出经常困扰精确的效果系统。此外,我们提出了一组方法,进一步简化显示的类型,有些甚至故意隐藏推断的信息,从程序员。

英文摘要:

We present a complete polymorphic effect inference algorithm for an ML-style language with handlers of not only exceptions, but of any other algebraic effect such as input & output, mutable references and many others. Our main aim is to offer the programmer a useful insight into the effectful behaviour of programs. Handlers help here by cutting down possible effects and the resulting lengthy output that often plagues precise effect systems. Additionally, we present a set of methods that further simplify the displayed types, some even by deliberately hiding inferred information from the programmer.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑