datalog: dl-set-strategy! hook (Phase 6 stub, 179/179)
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 23s

Adds a user-facing strategy hook: dl-set-strategy! db strategy and
dl-get-strategy db. Default :semi-naive; :magic is accepted but
the actual transformation is deferred — the saturator currently
falls back to semi-naive regardless. Lets us tick the Phase 6
"Optional pass — guarded behind dl-set-strategy!" checkbox while
keeping the equivalence/perf tests pending future work.

3 new eval tests.
This commit is contained in:
2026-05-08 09:38:59 +00:00
parent 18fb54a8c5
commit 148c3f2068
5 changed files with 64 additions and 10 deletions

View File

@@ -1,13 +1,13 @@
{
"lang": "datalog",
"total_passed": 176,
"total_passed": 179,
"total_failed": 0,
"total": 176,
"total": 179,
"suites": [
{"name":"tokenize","passed":26,"failed":0,"total":26},
{"name":"parse","passed":18,"failed":0,"total":18},
{"name":"unify","passed":28,"failed":0,"total":28},
{"name":"eval","passed":22,"failed":0,"total":22},
{"name":"eval","passed":25,"failed":0,"total":25},
{"name":"builtins","passed":19,"failed":0,"total":19},
{"name":"semi_naive","passed":8,"failed":0,"total":8},
{"name":"negation","passed":10,"failed":0,"total":10},
@@ -15,5 +15,5 @@
{"name":"api","passed":11,"failed":0,"total":11},
{"name":"demo","passed":18,"failed":0,"total":18}
],
"generated": "2026-05-08T09:35:25+00:00"
"generated": "2026-05-08T09:38:47+00:00"
}