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

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

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

arXiv:2101.04622 (cs)
[提交于 2021年1月12日]

标题:Communication-Safe Web Programming in TypeScript with Routed Multiparty Session Types

作者:Anson Miu, Francisco Ferreira, Nobuko Yoshida, Fangyi Zhou
查看论文《Communication-Safe Web Programming in TypeScript with Routed Multiparty Session Types》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Modern web programming involves coordinating interactions between browser clients and a server. Typically, the interactions in web-based distributed systems are informally described, making it hard to ensure correctness, especially communication safety, i.e. all endpoints progress without type errors or deadlocks, conforming to a specified protocol. We present STScript, a toolchain that generates TypeScript APIs for communication-safe web development over WebSockets, and RouST, a new session type theory that supports multiparty communications with routing mechanisms. STScript provides developers with TypeScript APIs generated from a communication protocol specification based on RouST. The generated APIs build upon TypeScript concurrency practices, complement the event-driven style of programming in full-stack web development, and are compatible with the Node.js runtime for server-side endpoints and the React.js framework for browser-side endpoints. RouST can express multiparty interactions routed via an intermediate participant. It supports peer-to-peer communication between browser-side endpoints by routing communication via the server in a way that avoids excessive serialisation. RouST guarantees communication safety for endpoint web applications written using STScript APIs. We evaluate the expressiveness of STScript for modern web programming using several production-ready case studies deployed as web applications.
评论: Long version for the paper accepted at CC '21
主题: 程序设计语言 (cs.PL); 软件工程 (cs.SE)
引用方式: arXiv:2101.04622 [cs.PL]
  (或者 arXiv:2101.04622v1 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2101.04622

提交历史

来自:Fangyi Zhou
[v1] 2021年1月12日 星期二 17:22:39 UTC
全文链接:

访问论文:

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

当前浏览上下文:

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

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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