Add a Fathom Syzygy probe NIF (#29)

Vendor the MIT-licensed Fathom C source and compile it into a Rustler NIF (native/fathom_nif). The NIF exposes init/1 (point Fathom at a tablebase directory) and probe/1 (raw WDL/DTZ/move results for a FEN); probes are serialised because Fathom's root probe is not thread safe, and run as dirty NIFs.

Add KRvK/KQvK 3-piece WDL+DTZ fixtures and an integration test proving a known KRvK probe returns Win, DTZ 23 and 15 moves.
This commit is contained in:
2026-11-03 13:41:54 +01:00
parent 3fadd4397c
commit e60c161a3a
20 changed files with 5247 additions and 0 deletions
+6
View File
@@ -42,3 +42,9 @@ npm-debug.log
# graft's local graph cache — regenerable, not committed (run `graft build`).
/graft/
# Rust build artefacts for the Fathom NIF (the source and vendored C are kept).
/native/fathom_nif/target/
# Compiled NIF artefacts (rebuilt from native/ by Rustler).
/priv/native/