跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 程序设计语言

arXiv:1902.00735 (cs)
[提交于 2019年2月5日]

标题:Event Loops as First-Class Values: A Case Study in Pedagogic Language Design

作者:Joe Politz, Benjamin Lerner, Sorawee Porncharoenwase, Shriram Krishnamurthi
查看论文《Event Loops as First-Class Values: A Case Study in Pedagogic Language Design》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:The World model is an existing functional input-output mechanism for event-driven programming. It is used in numerous popular textbooks and curricular settings. The World model conflates two different tasks -- the definition of an event processor and its execution -- into one. This conflation imposes a significant (even unacceptable) burden on student users in several educational settings where we have tried to use it, e.g., for teaching physics. While it was tempting to pile on features to address these issues, we instead used the Scheme language design dictum of removing weaknesses that made them seem necessary. By separating the two tasks above, we arrived at a slightly different primitive, the reactor, as our basis. This only defines the event processor, and a variety of execution operators dictate how it runs. The new design enables programmatic control over event-driven programs. This simplifies reflecting on program behavior, and eliminates many unnecessary curricular dependencies imposed by the old design. This work has been implemented in the Pyret programming language. The separation of concerns has enabled new curricula, such as the Bootstrap:Physics curriculum, to take flight. Thousands of students use this new mechanism every year. We believe that reducing impedance mismatches improves their educational experience.
主题: 程序设计语言 (cs.PL)
引用方式: arXiv:1902.00735 [cs.PL]
  (或者 arXiv:1902.00735v1 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.1902.00735
期刊参考: The Art, Science, and Engineering of Programming, 2019, Vol. 3, Issue 3, Article 11
相关 DOI: https://doi.org/10.22152/programming-journal.org/2019/3/11

提交历史

来自:Joe Politz
[v1] 2019年2月5日 星期二 00:00:00 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.PL
< 上一篇   |   下一篇 >
最新 | 近期 | 2019-02
切换浏览方式为:
cs

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站