AWKLog
AWKLog is a minimalist Datalog interpreter written in pure POSIX awk, using semi-naive evaluation. It can be copied into a project and used during build or test stages with no extra dependencies, replacing heavyweight Datalog engines like Souffle or SWI-PL, and can query task databases stored as text files in git.
What it addresses
Pulling a full-blown Datalog engine such as Souffle or SWI-PL as a build dependency is a pain and overkill for use cases like generating C source from specifications, build-time verification, or maintaining a task database.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
AWKLog
AWKLog is a minimalist Datalog interpreter written in pure POSIX awk, using semi-naive evaluation. It can be copied into a project and used during build or test stages with no extra dependencies, replacing heavyweight Datalog engines like Souffle or SWI-PL, and can query task databases stored as text files in git.
Problem: Pulling a full-blown Datalog engine such as Souffle or SWI-PL as a build dependency is a pain and overkill for use cases like generating C source from specifications, build-time verification, or maintaining a task database.
Audience: Developers who need Datalog as a build/test-stage dev tool, including for task databases maintained in project git repos.
Posted by @stass · Original source ↗
Story title · @stass · · Source ↗
Show HN: AWKLog – a minimalist Datalog interpreter in Awk
Submitted URL · @stass · · Source ↗
https://github.com/stass/awklog
Source text · @stass · · Source ↗
So I (with the help of Claude) built awklog, a pure POSIX awk based interpreter. Copy it to your project and use during build stage or test stage with no extra dependencies.
Source text · @stass · · Source ↗
However pulling a full blown Souffle or SWI-PL as a build dependency is always a PITA and also an overkill.
Source text · @stass · · Source ↗
It's a semi-naive interpreter, so decently fast, and certainly fast enough for anything you might need to do as a dev tool.
Source text · @stass · · Source ↗
One cool usecase in particular I've been a heavy user of is a task system maintained directly in the project git repo. Just create a text file with tuples describing your tasks, their states, dependencies, hypotheses and so on.
Source text · @stass · · Source ↗
For many of the projects I work on I found myself wanting to use a relational language like Datalog to generate C source from specifications, do verification during build or maintain a task database.