A world built on datoms
datom.world is a multi-platform system built on tuples and streams. It treats all computation as stream processing, where functions consume and produce streams of tuples.
Tuples are immutable elements in an open moduli space, graded by dimension n. The vocabulary of dimensions is open: applications declare new dimensions as needed. A datom is specifically the canonical 5-tuple [e a v t m] (entity, attribute, value, transaction, metadata), known as d5. Shorter projections — [v] (d1, content-addressed blobs) and [s a v] (d3, RDF-style triples) — serve as universal floors: d1 for content addressing, d3 for semantic interpretability of fact-shaped data.
Core components:
- Yang: Compiler frontend that transforms source code (Clojure/Python/PHP) into Universal AST datoms
- Yin VM: Family of CESK continuation machines (stack‑based, register‑based, semantic) that execute projections of the Universal AST
- DaoStream: Stream transport foundation modeling all IO as streams
- DaoJing: Content-addressed key-value store holding immutable datom segments; dumb storage, no matching or querying
- DaoSpace: Tuple space for stigmergic coordination; a query library (associative matching, Datalog) over indexes agents build on their own streams and persist to DaoJing
- PostGraphics: A backend-neutral graphics frame vocabulary plus a reference Flutter terminal. Producers emit frame programs as data; terminals interpret them as drawing.
- Shibi: Capability tokens for authentication and authorization in stream descriptors
Philosophy: Everything is data, everything is a stream. Functions are interpreters that consume streams (often datoms) and transform them into higher‑dimensional structures. Structure emerges from constraints, not global ontologies. Graphs are constructed from tuples, not assumed.
Try the live demo at https://datom.world/demo.html
This project uses mise to manage development tools.
To install the required versions of Java, Clojure, Node.js, and Flutter, run:
mise install
Start the browser demo build:
clj -M:cljs -m shadow.cljs.devtools.cli watch demo
or open a CLJ REPL and start the build from there:
clj -M:cljs -m shadow.cljs.devtools.cli clj-repl
shadow.user=> (shadow/watch :demo)
Start a CLJS REPL:
clj -M:cljs -m shadow.cljs.devtools.cli cljs-repl demo
cljs.user=> (js/alert 1)
Open http://localhost:9000 (or try the live demo at https://datom.world/demo.html)
The project uses unified auto-discovery for tests across all three compilation targets. Any namespace on the test path ending in -test will be automatically discovered and executed.
We use Babashka (bb) as a unified task runner.
To run all tests across all platforms:
bb test
Or you can run tests for specific platforms:
bb test:clj # Runs JVM tests
bb test:cljs # Runs Node tests via shadow-cljs
bb test:cljd # Runs Dart tests
The active ClojureDart demo boots a Flutter surface backed by dao.postgraphics/postgraphics-widget and a remote Yin REPL. The demo entrypoint is src/cljd/datomworld/demo/main.cljd, which opens a picker of five demos: the dao.gui prototype, the glowing artifact, the solar system, the Earth and Moon, and the voxel scene.
Install toolchains first:
mise install
A dedicated Android emulator helper is included:
bin/run-android-emulator.sh
That script:
- boots the
Datomworld_Pixel_3_API_34AVD - waits for Android boot completion
- runs
flutter runagainst that emulator instead of your phone
Useful variants:
bin/run-android-emulator.sh --boot-only
bin/run-android-emulator.sh --avd Pixel_3_API_34
If you want to launch the emulator manually:
emulator -avd Datomworld_Pixel_3_API_34
flutter run -d emulator-5554
The dao.gui prototype screen starts a REPL server on port 7777 (Android; 7778 on iOS) and exposes helpers for pushing either raw PostGraphics frames or dao.gui UI compiled into PostGraphics.
Connect from a desktop REPL:
mise exec -- clj -M:clj-yin-repl
Then from the Yin REPL:
(connect "daostream:ws://<ip>:7777")
(show-demo-ui!)
(show-sample-frame!)
(clear-frame!)
Push a raw frame:
(set-frame!
[{:op/kind :frame/clear :color [0 0 0 1]}
{:op/kind :draw/fill-rect
:rect [20 20 120 60]
:color [0.2 0.6 1 1]}])
Or compile dao.gui UI directly:
(set-ui!
[:column
[:rect {:width 80 :height 24}]
[:text {:value "hello" :font-size 18}]])
Launch the interactive Yin REPL to experiment with the Yin VM and manipulate datoms directly.
For details on how to build, run, and connect to the Yin REPL across all platforms (JVM, Node.js, and ClojureDart), see the Yin REPL v2 Usage Guide.