计算机科学 > 程序设计语言
[提交于 2021年8月25日]
标题:The Choice Construct in the Souffle Language
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Datalog has become a popular implementation language for solving large-scale, real-world problems, including bug finders, network analysis tools, and disassemblers. These applications express complex behaviour with hundreds of relations and rules that often require a non-deterministic choice for tuples in relations to express worklist algorithms. This work is an experience report that describes the implementation of a choice construct in the Datalog engine Souffle. With the choice construct, we can express worklist algorithms such as spanning trees in a few lines of code. We highlight the differences between rule-based choice as described in prior work, and relation-based choice introduced by this work. We show that a choice construct enables certain worklist algorithms to be computed up to 10kx faster than having no choice construct.
提交历史
来自:Bernhard Scholz[v1] 2021年8月25日 星期三 13:01:43 UTC