指称语义与jq快速解释器
Denotational Semantics and a Fast Interpreter for jq
摘要:
jq是一种广泛使用的工具,它提供了一种程序设计语言来操作JSON数据。然而,它的语义目前只由它的实现指定,这使得很难推理它的行为。为此,我为jq语言的一个子集提供了语法和指称语义。特别是,语义提供了一种新的方式来解释更新。我在一个名为jaq的新的jq语言解释器中实现了语义的扩展版本。尽管jaq使用了比jq简单得多的方法来执行jq程序,但在13个基准测试中,有10个测试jaq比jq快。
英文摘要:
jq is a widely used tool that provides a programming language to manipulate JSON data. However, its semantics are currently only specified by its implementation, making it difficult to reason about its behaviour. To this end, I provide a syntax and denotational semantics for a subset of the jq language. In particular, the semantics provide a new way to interpret updates. I implement an extended version of the semantics in a novel interpreter for the jq language called jaq. Although jaq uses a significantly simpler approach to execute jq programs than jq, jaq is faster than jq on ten out of thirteen benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。