首页    期刊浏览 2024年12月04日 星期三
登录注册

文章基本信息

  • 标题:The Lax Braided Structure of Streaming I/O
  • 本地全文:下载
  • 作者:Alan Jeffrey ; Julian Rathke
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2011
  • 卷号:12
  • 页码:292-306
  • DOI:10.4230/LIPIcs.CSL.2011.292
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要:We investigate and implement a model of typed streaming I/O. Each type determines a language of traces analogous to regular expressions on strings, and programs are modelled by certain monotone functions on these traces. We show that sequential composition forms a lax braided monoid in the category of types and programs. This lax braided structure allows programs to be represented diagrammatically using Joyal and Street's string diagrams in 3D space. Monotone functions over traces cannot be executed efficiently, so we present an equivalent monoidal category of transducers. We demonstrate that transducers can be executed efficiently, theoretically by showing that programs with diagrams embedded in the plane can be executed in O(1) space, and experimentally by an implementation in the Agda dependently typed functional language. Agda supports machine-assisted proof: we have mechanically verified that the transducer implementation and the I/O model form lax braided monoidal categories.
  • 关键词:semantics; categorical models; streaming I/O; Agda
国家哲学社会科学文献中心版权所有