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

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

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

arXiv:2004.01321 (cs)
[提交于 2020年4月6日]

标题:Generating Interactive WebSocket Applications in TypeScript

作者:Anson Miu, Francisco Ferreira, Nobuko Yoshida, Fangyi Zhou
查看论文《Generating Interactive WebSocket Applications in TypeScript》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Advancements in mobile device computing power have made interactive web applications possible, allowing the web browser to render contents dynamically and support low-latency communication with the server. This comes at a cost to the developer, who now needs to reason more about correctness of communication patterns in their application as web applications support more complex communication patterns. Multiparty session types (MPST) provide a framework for verifying conformance of implementations to their prescribed communication protocol. Existing proposals for applying the MPST framework in application developments either neglect the event-driven nature of web applications, or lack compatibility with industry tools and practices, which discourages mainstream adoption by web developers. In this paper, we present an implementation of the MPST framework for developing interactive web applications using familiar industry tools using TypeScript and the React.js framework. The developer can use the Scribble protocol language to specify the protocol and use the Scribble toolchain to validate and obtain the local protocol for each role. The local protocol describes the interactions of the global communication protocol observed by the role. We encode the local protocol into TypeScript types, catering for server-side and client-side targets separately. We show that our encoding guarantees that only implementations which conform to the protocol can type-check. We demonstrate the effectiveness of our approach through a web-based implementation of the classic Noughts and Crosses game from an MPST formalism of the game logic.
评论: In Proceedings PLACES 2020, arXiv:2004.01062
主题: 程序设计语言 (cs.PL); 软件工程 (cs.SE)
引用方式: arXiv:2004.01321 [cs.PL]
  (或者 arXiv:2004.01321v1 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2004.01321
期刊参考: EPTCS 314, 2020, pp. 12-22
相关 DOI: https://doi.org/10.4204/EPTCS.314.2

提交历史

来自:EPTCS
[v1] 2020年4月6日 星期一 00:00:00 UTC
全文链接:

访问论文:

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

当前浏览上下文:

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

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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