Before you begin, ensure you have:
-
just — task runner (install guide)
-
Platform-specific requirements listed below
| Platform | Additional Requirements |
|---|---|
Linux |
See README.adoc |
macOS |
See README.adoc |
Windows |
See README.adoc |
# Clone and set up
git clone https://github.com/hyperpolymath/tangle.git
cd tangle
# Build the compiler (`just setup` never existed)
sudo apt-get install -y ocaml ocaml-dune menhir
cd compiler && dune buildThere is no setup script — the build IS the setup. dune build produces a
single self-contained native executable at
compiler/_build/default/bin/main.exe, which needs nothing at runtime beyond
libc. There is no configuration step and no install location to choose.
# `just stapeln-run` does not exist. Run the built binary:
./compiler/_build/default/bin/main.exe --repl# `just run` does not exist. Invoke the compiler on a file:
./compiler/_build/default/bin/main.exe --eval examples/isotopy.tangleExpected output — one line per assertion, exit 0 (verified, not assumed):
$ ./compiler/_build/default/bin/main.exe --eval examples/isotopy.tangle
assertion passed
assertion passed
assertion passed
assertion passed
assertion passed
assertion passed
assertion passed
assertion passed
$ echo $?
0That file is worth reading: it asserts Reidemeister II cancellation and far
commutation, and it only passes because ~ decides braid-group equivalence
(TG-7, #50). Before that change it failed with Runtime error: Assertion
failed.
If something isn’t working:
just doctorThis checks all dependencies, permissions, paths, and connectivity. If it finds issues, it will suggest fixes.
To attempt automatic repair:
# `just heal` does not exist. The real self-checks are:
just doctor # diagnostic
just check-all # build + full suite + corpus gate-
CLI:
./compiler/_build/default/bin/main.exe --replthen explore; see README.adoc -
Guided tour:
just tour -
Report a problem:
just help-me(pre-fills diagnostic context)
# Nothing is installed system-wide: delete the clone and any copy you made.
rm -f ./tanglecYou will be asked:
-
Which uninstall tier (Bennett reversible, parameter-based, standard, or secure)
-
Whether to include or exclude your data
-
Whether to clear caches and LLM models