首页> 外文会议>IEEE Symposium on Visual Languages and Human-Centric Computing >Let#039;s hear both sides: On combining type-error reporting tools
【24h】

Let#039;s hear both sides: On combining type-error reporting tools

机译:让我们听到两侧:在组合类型错误报告工具上

获取原文

摘要

Producing precise and helpful type error messages has been a challenge for the implementations of functional programming languages for over 3 decades now. Many different approaches and methods have been tried to solve this thorny problem, but current type-error reporting tools still suffer from a lack of precision in many cases. Based on the rather obvious observation that different approaches work well in different situations, we have studied the question of whether a combination of tools that exploits their diversity can lead to improved accuracy. Specifically, we have studied Helium, a Haskell implementation particularly aimed at producing good type error messages, and Lazy Typing, an approach developed previously by us to address the premature-error-commitment problem in type checkers. By analyzing the respective strengths and weaknesses of the two approaches we were able to identify a strategy to combine both tools that could markedly improve the accuracy of reported errors. Specifically, we report an evaluation of 1069 unique ill-typed programs out of a total of 11256 Haskell programs that reveals that this combination strategy enjoys a correctness rate of 79%, which is an improvement of 22%/17% compared to using Lazy Typing/Helium alone. In addition to describing this particular case study, we will also report insights we gained into the combination of error-reporting tools in general.
机译:生成精确和有用的型错误消息现在是现代三十多年的功能编程语言的实现的挑战。许多不同的方法和方法已经尝试解决这一棘手的问题,但在许多情况下,当前类型的错误报告工具仍然缺乏精度。基于不同方法在不同情况下运作的相当明显的观察,我们研究了利用它们多样性的工具组合是否可以导致提高准确性的问题。具体而言,我们已经研究了氦气,一个哈斯克尔实现,特别是在产生良好类型的错误消息和懒惰的键入时,我们先前开发的方法,以解决类型检查的过早误差承诺问题。通过分析两种方法的各个优势和弱点,我们能够识别将两种工具结合起来的策略,这些工具可以显着提高报告的错误的准确性。具体而言,我们报告了总共11256个哈斯克尔计划的1069个独特不良计划的评估,揭示了这种组合策略享有79%的正确率,这与使用懒惰打字相比,增加了22%/ 17% /单独的氦气。除了描述这个特殊的案例研究外,我们还将报告我们在一般而言的错误报告工具组合中的见解。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号