API Reference tamale v#0.1.0
Copy MarkdownModules
Present some golbal types.
The anchor algebra.
Coordinate anchor: an interval in some coordinate system (:tick,
:seconds, {:frames, hz}, ...).
Identity anchor.
Compound anchor: ref travels by identity (Ordinal rules), then the
absolute interval is re-derived from the element's current span at use
time — Tamale.Anchor.project/3, with element spans supplied by the
Caller.
The single kernel-mandated channel-adapter callback.
Exact rational coordinates — the kernel's only number.
Canonical digests — the portable replacement for BEAM-specific
term_to_binary hashing. Spec: docs/spec/canonical-digest.md.
Edit operations — the kernel's first-class edit intent.
Delete id. Terminal for anchors referencing it.
Insert id after after_id (:head inserts at the front).
Merge adjacent ids into into, which must be hd(ids).
Move id to right after after_id (:head = front).
Re-time id from old_span to new_span ({start, stop} in the
space's native coordinate). Identity and order are untouched; the spans
exist so the adapter layer can build warps for Anchor.Metric.
Split id into children; hd(children) must equal id.
Semantic survival: a user edit is (base_digest, payload).
A versioned identity space: an ordered set of element ids, an append-only op log, and nothing else.
Anchor transport along the op log — the whole of rebase.
A monotone partial map between coordinate systems — the transport medium
for Tamale.Anchor.Metric.