约束和模块化(主题演讲)

A. Borning
{"title":"约束和模块化(主题演讲)","authors":"A. Borning","doi":"10.1145/2892664.2897724","DOIUrl":null,"url":null,"abstract":"A constraint is a declarative description of a relation that we want to have hold, for example, that a set of icons be equally spaced and positioned at the bottom of a window, or that a resistor in an electrical circuit simulation obey Ohm’s Law. A constraint can support modularity in programs by providing a succinct way to express some property, in a way that lets it be combined flexibly with other constraints. Historically there have been two principal views of constraints in programing languages: as equations to be solved, or as relations to be maintained in the face of change. In this talk I’ll concentrate on the second view and how such constraints can be used in building interactive systems. There is a long history of work in this area. A key early system was Ivan Sutherland’s Sketchpad from 1963 [5]; a less notable but still early system was my own ThingLab from 1979 [1]. In this talk I’ll describe a little of that history, including a demo of a revived version of ThingLab, using the original code from 1979 running in a web browser using an interpreter written in Javascript. I’ll then describe some recent work on constraints for interactive systems, including Babelsberg and Wallingford. Babelsberg [3, 4] is a family of object constraint languages that allows constraints to be integrated with an existing object-oriented language. In particular, Babelsberg enables the programmer to write constraints that include object-oriented constructs such as message sends and that respect object encapsulation, as well as explicit constraints on object identity. Finally, Wallingford [2] is a new constraint reactive programming language implemented in the Rosette solver-aided programming language [6, 7]. Wallingford adopts many of the approaches in Babelsberg to integrating constraints and object-oriented programming, and adds reactive constraints that enable the system to respond to events by declaring constraints that become active when an event occurs, or while a condition holds.","PeriodicalId":413254,"journal":{"name":"Companion Proceedings of the 15th International Conference on Modularity","volume":"123 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2016-03-14","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Constraints and modularity (keynote)\",\"authors\":\"A. Borning\",\"doi\":\"10.1145/2892664.2897724\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"A constraint is a declarative description of a relation that we want to have hold, for example, that a set of icons be equally spaced and positioned at the bottom of a window, or that a resistor in an electrical circuit simulation obey Ohm’s Law. A constraint can support modularity in programs by providing a succinct way to express some property, in a way that lets it be combined flexibly with other constraints. Historically there have been two principal views of constraints in programing languages: as equations to be solved, or as relations to be maintained in the face of change. In this talk I’ll concentrate on the second view and how such constraints can be used in building interactive systems. There is a long history of work in this area. A key early system was Ivan Sutherland’s Sketchpad from 1963 [5]; a less notable but still early system was my own ThingLab from 1979 [1]. In this talk I’ll describe a little of that history, including a demo of a revived version of ThingLab, using the original code from 1979 running in a web browser using an interpreter written in Javascript. I’ll then describe some recent work on constraints for interactive systems, including Babelsberg and Wallingford. Babelsberg [3, 4] is a family of object constraint languages that allows constraints to be integrated with an existing object-oriented language. In particular, Babelsberg enables the programmer to write constraints that include object-oriented constructs such as message sends and that respect object encapsulation, as well as explicit constraints on object identity. Finally, Wallingford [2] is a new constraint reactive programming language implemented in the Rosette solver-aided programming language [6, 7]. Wallingford adopts many of the approaches in Babelsberg to integrating constraints and object-oriented programming, and adds reactive constraints that enable the system to respond to events by declaring constraints that become active when an event occurs, or while a condition holds.\",\"PeriodicalId\":413254,\"journal\":{\"name\":\"Companion Proceedings of the 15th International Conference on Modularity\",\"volume\":\"123 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2016-03-14\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Companion Proceedings of the 15th International Conference on Modularity\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/2892664.2897724\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Companion Proceedings of the 15th International Conference on Modularity","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/2892664.2897724","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

约束是对我们想要保持的关系的声明性描述,例如,一组图标间距相等并位于窗口底部,或者电路模拟中的电阻器遵守欧姆定律。约束可以通过提供一种简洁的方式来表达某些属性,从而支持程序中的模块化,这种方式允许它与其他约束灵活地组合在一起。从历史上看,编程语言中的约束有两种主要观点:作为要解决的方程,或者作为面对变化时要保持的关系。在这次演讲中,我将集中讨论第二种观点,以及如何在构建交互式系统时使用这些约束。这一领域的研究历史悠久。一个关键的早期系统是1963年Ivan Sutherland的Sketchpad [5];1979年我自己的ThingLab系统就不那么引人注目了[1]。在这次演讲中,我将描述一下这段历史,包括一个更新版本ThingLab的演示,使用1979年的原始代码在web浏览器中运行,使用Javascript编写的解释器。然后,我将描述最近关于交互系统约束的一些工作,包括Babelsberg和Wallingford。Babelsberg[3,4]是一个对象约束语言家族,它允许约束与现有的面向对象语言集成。特别地,Babelsberg使程序员能够编写约束,包括面向对象的构造(如消息发送)和尊重对象封装的约束,以及对对象标识的显式约束。最后,Wallingford[2]是在Rosette求解器辅助编程语言[6,7]中实现的一种新的约束响应式编程语言。Wallingford采用了Babelsberg中的许多方法来集成约束和面向对象编程,并添加了响应性约束,使系统能够通过声明约束来响应事件,这些约束在事件发生或条件保持时变为活动状态。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Constraints and modularity (keynote)
A constraint is a declarative description of a relation that we want to have hold, for example, that a set of icons be equally spaced and positioned at the bottom of a window, or that a resistor in an electrical circuit simulation obey Ohm’s Law. A constraint can support modularity in programs by providing a succinct way to express some property, in a way that lets it be combined flexibly with other constraints. Historically there have been two principal views of constraints in programing languages: as equations to be solved, or as relations to be maintained in the face of change. In this talk I’ll concentrate on the second view and how such constraints can be used in building interactive systems. There is a long history of work in this area. A key early system was Ivan Sutherland’s Sketchpad from 1963 [5]; a less notable but still early system was my own ThingLab from 1979 [1]. In this talk I’ll describe a little of that history, including a demo of a revived version of ThingLab, using the original code from 1979 running in a web browser using an interpreter written in Javascript. I’ll then describe some recent work on constraints for interactive systems, including Babelsberg and Wallingford. Babelsberg [3, 4] is a family of object constraint languages that allows constraints to be integrated with an existing object-oriented language. In particular, Babelsberg enables the programmer to write constraints that include object-oriented constructs such as message sends and that respect object encapsulation, as well as explicit constraints on object identity. Finally, Wallingford [2] is a new constraint reactive programming language implemented in the Rosette solver-aided programming language [6, 7]. Wallingford adopts many of the approaches in Babelsberg to integrating constraints and object-oriented programming, and adds reactive constraints that enable the system to respond to events by declaring constraints that become active when an event occurs, or while a condition holds.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书