计算机科学 > 计算机科学中的逻辑
[提交于 2023年2月21日]
标题:Denotational Semantics and a Fast Interpreter for jq
查看中文 PDF 查看原文 PDF EasyResearch 阅读摘要: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.
提交历史
来自:Michael Färber[v1] 2023年2月21日 星期二 10:13:20 UTC