...
首页> 外文期刊>LIPIcs : Leibniz International Proceedings in Informatics >Model-View-Update-Communicate: Session Types Meet the Elm Architecture
【24h】

Model-View-Update-Communicate: Session Types Meet the Elm Architecture

机译:Model-View-Update-Communicate:会话类型满足ELM架构

获取原文
   

获取外文期刊封面封底 >>

       

摘要

Session types are a type discipline for communication channel endpoints which allow conformance to protocols to be checked statically. Safely implementing session types requires linearity, usually in the form of a linear type system. Unfortunately, linear typing is difficult to integrate with graphical user interfaces (GUIs), and to date most programs using session types are command line applications. In this paper, we propose the first principled integration of session typing and GUI development by building upon the Model-View-Update (MVU) architecture, pioneered by the Elm programming language. We introduce ??MVU, the first formal model of the MVU architecture, and prove it sound. By extending ??MVU with commands as found in Elm, along with linearity and model transitions, we show the first formal integration of session typing and GUI programming. We implement our approach in the Links web programming language, and show examples including a two-factor authentication workflow and multi-room chat server.
机译:会话类型是用于通信信道端点的类型学科,其允许静态检查协议。安全地实现会话类型需要线性,通常以线性类型系统的形式。不幸的是,线性键入难以与图形用户界面(GUI)集成,并且迄今为止使用会话类型的大多数程序是命令行应用程序。在本文中,我们通过建立在模型 - 查看更新(MVU)架构上,由ELM编程语言开创的第一个原则性集成了会话键入和GUI开发。我们介绍了MVU,第一个正式模型的MVU架构,并证明了它的声音。通过扩展?? MVU与ELM中发现的命令,以及线性和模型过渡,我们展示了会话键入和GUI编程的第一次正式集成。我们在链接Web编程语言中实现我们的方法,并显示一个示例,包括双因素身份验证工作流和多房间聊天服务器。

著录项

获取原文

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号