arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1311.3687cs.LO
收藏

在函数式编程中计算风险

Calculating risk in functional programming

Daniel Murta, Jose Nuno Oliveira

摘要:

在容忍硬件不可靠性的趋势下,准确性被用来换取成本节约。在不太可靠的机器上运行,“功能正确”的代码变得有风险,人们需要知道风险是如何传播的,以减轻它。然而,风险估计似乎超出了普通程序员的技术能力和核心实践。在本文中,我们建议,风险建设性地处理在功能性编程(a)编写程序,可以选择预期和错误的行为,并通过(b)推理他们在线性代数扩展到标准,一个香格里拉Bird-Moor代数编程。特别是,传播的故障在标准的程序转换技术称为元组和融合计算,使故障的整体表示的故障的部分。

英文摘要:

In the trend towards tolerating hardware unreliability, accuracy is exchanged for cost savings. Running on less reliable machines, "functionally correct" code becomes risky and one needs to know how risk propagates so as to mitigate it. Risk estimation, however, seems to live outside the average programmer's technical competence and core practice. In this paper we propose that risk be constructively handled in functional programming by (a) writing programs which may choose between expected and faulty behaviour, and by (b) reasoning about them in a linear algebra extension to standard, a la Bird-Moor algebra of programming. In particular, the propagation of faults across standard program transformation techniques known as tupling and fusion is calculated, enabling the fault of the whole to be expressed in terms of the faults of its parts.

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

↑