How dont-rely-on-nulls/rnt works
RNT is an experimental OCaml database kernel, not a query-language product. Its documented access model is object paths and explicit handles; its shipped query capability is a first-order-logic evaluator for retrieval. The graph follows documented object, relation, versioning, evaluator, and storage responsibilities. Source excerpts were unavailable, so edges are limited to relationships stated in the README; the FOL evaluator’s internal call sequence is not inferred.
Main entry points: SubstantialRelation.ml Relations · Path.ml Path lookup · Branch.ml Branches · Session.ml Snapshot sessions
Components 19
Object access
- Object namespace
lib/kernel/Namespace.ml - Path lookup
lib/kernel/Path.ml - Object prototypes
lib/kernel/Prototype.ml - Explicit handles
lib/protocols/Handle.ml - Object protocols
lib/protocols
Relational runtime
- Branches
lib/kernel/Branch.ml - Snapshot sessions
lib/kernel/Session.ml - Relations
lib/kernel/SubstantialRelation.ml - Ephemeral relations
lib/kernel/EphemeralRelation.ml - Tuples
lib/kernel/Tuple.ml - Content identity
lib/kernel/Identity.ml - Prolly-tree indexes
lib/kernel/Merkle.ml - Enumeration and cursors
lib/protocols/Enumerable.ml - Cursor protocol
lib/protocols/Cursor.ml
Query subsystem
- Evaluator protocol
lib/protocols/Evaluator.ml - FOL evaluator
lib/evaluators/FOL.ml
Storage
- Storage interface
lib/kernel/Storage.ml - LMDB backend
lib/backend/storage/LMDB.ml
Other components
- Client
Connections 13
- Client → Path lookup: looks up
README.org - Path lookup → Object namespace: traverses
README.org - Client → Explicit handles: accesses through
README.org - Object prototypes → Object protocols: implements
README.org - Branches → Snapshot sessions: snapshot pinned by
README.org - Snapshot sessions → Branches: pins snapshot
README.org - Relations → Tuples: contains
README.org - Tuples → Content identity: hashed as
README.org - Relations → Prolly-tree indexes: indexed by
README.org - Relations → Enumeration and cursors: exposes enumeration
README.org - Enumeration and cursors → Cursor protocol: provides cursor
README.org - FOL evaluator → Evaluator protocol: implements
README.org - Storage interface → LMDB backend: dispatches to
README.org