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

Haskell中基于类型的资源分析

Type-Based Resource Analysis on Haskell

Franz Siglmüller

摘要:

我们提出了一个摊还分析,近似的Haskell表达式的资源使用。使用GHC的插件API,我们将Haskell代码转换为称为GHC Core的简化表示。然后,我们应用一个基于类型的系统,推导出线性上界的资源使用。这种设置允许我们分析实际的Haskell代码,而以前类似分析的实现不支持任何常用的惰性函数式程序设计语言。

英文摘要:

We propose an amortized analysis that approximates the resource usage of a Haskell expression. Using the plugin API of GHC, we convert the Haskell code into a simplified representation called GHC Core. We then apply a type-based system which derives linear upper bounds on the resource usage. This setup allows us to analyze actual Haskell code, whereas previous implementations of similar analyses do not support any commonly used lazy functional programming languages.

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

↑