论程序设计语言语义的易学性

ICE@DisCoTec Pub Date : 2017-08-07 DOI:10.4204/EPTCS.261.7
D. Ghica, Khulood AlYahya
{"title":"论程序设计语言语义的易学性","authors":"D. Ghica, Khulood AlYahya","doi":"10.4204/EPTCS.261.7","DOIUrl":null,"url":null,"abstract":"Game semantics is a powerful method of semantic analysis for programming languages. It gives mathematically accurate models (\"fully abstract\") for a wide variety of programming languages. Game semantic models are combinatorial characterisations of all possible interactions between a term and its syntactic context. Because such interactions can be concretely represented as sets of sequences, it is possible to ask whether they can be learned from examples. Concretely, we are using long short-term memory neural nets (LSTM), a technique which proved effective in learning natural languages for automatic translation and text synthesis, to learn game-semantic models of sequential and concurrent versions of Idealised Algol (IA), which are algorithmically complex yet can be concisely described. We will measure how accurate the learned models are as a function of the degree of the term and the number of free variables involved. Finally, we will show how to use the learned model to perform latent semantic analysis between concurrent and sequential Idealised Algol.","PeriodicalId":394631,"journal":{"name":"ICE@DisCoTec","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2017-08-07","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"On the Learnability of Programming Language Semantics\",\"authors\":\"D. Ghica, Khulood AlYahya\",\"doi\":\"10.4204/EPTCS.261.7\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Game semantics is a powerful method of semantic analysis for programming languages. It gives mathematically accurate models (\\\"fully abstract\\\") for a wide variety of programming languages. Game semantic models are combinatorial characterisations of all possible interactions between a term and its syntactic context. Because such interactions can be concretely represented as sets of sequences, it is possible to ask whether they can be learned from examples. Concretely, we are using long short-term memory neural nets (LSTM), a technique which proved effective in learning natural languages for automatic translation and text synthesis, to learn game-semantic models of sequential and concurrent versions of Idealised Algol (IA), which are algorithmically complex yet can be concisely described. We will measure how accurate the learned models are as a function of the degree of the term and the number of free variables involved. Finally, we will show how to use the learned model to perform latent semantic analysis between concurrent and sequential Idealised Algol.\",\"PeriodicalId\":394631,\"journal\":{\"name\":\"ICE@DisCoTec\",\"volume\":\"1 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2017-08-07\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"ICE@DisCoTec\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.4204/EPTCS.261.7\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"ICE@DisCoTec","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.4204/EPTCS.261.7","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

游戏语义是一种强大的编程语言语义分析方法。它为各种各样的编程语言提供了精确的数学模型(“完全抽象”)。博弈语义模型是术语与其句法上下文之间所有可能相互作用的组合特征。由于这种相互作用可以具体地表示为一系列序列,因此有可能问它们是否可以从示例中学习。具体来说,我们正在使用长短期记忆神经网络(LSTM),一种被证明在学习用于自动翻译和文本合成的自然语言方面有效的技术,来学习顺序和并发版本的理想算法(IA)的游戏语义模型,这些模型在算法上很复杂,但可以简洁地描述。我们将测量学习模型的准确性,作为术语的程度和所涉及的自由变量的数量的函数。最后,我们将展示如何使用学习模型在并发和顺序理想算法之间执行潜在语义分析。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
On the Learnability of Programming Language Semantics
Game semantics is a powerful method of semantic analysis for programming languages. It gives mathematically accurate models ("fully abstract") for a wide variety of programming languages. Game semantic models are combinatorial characterisations of all possible interactions between a term and its syntactic context. Because such interactions can be concretely represented as sets of sequences, it is possible to ask whether they can be learned from examples. Concretely, we are using long short-term memory neural nets (LSTM), a technique which proved effective in learning natural languages for automatic translation and text synthesis, to learn game-semantic models of sequential and concurrent versions of Idealised Algol (IA), which are algorithmically complex yet can be concisely described. We will measure how accurate the learned models are as a function of the degree of the term and the number of free variables involved. Finally, we will show how to use the learned model to perform latent semantic analysis between concurrent and sequential Idealised Algol.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
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学术官方微信