ludic/docs/language/structure
Orkuncakilkaya ab0b84b87e feat(lang): 27.3 - a reducer on a table's row: reducer T in S.table on A, @Target, Row<T>, @RowVerb, @Column
An action names one row of a ludic.base Table<T> by its handle, in a field marked @Target, and
`reducer Deer in Herd.deer on Spook(r: mut Row<Deer>, n: Noise, a: Spook)` runs once, for that row
alone (the table may sit down a path, S.w.tab). The drain resolves the handle (tb_row) and hands the
reducer a Row<T> - new in ludic.base: tb, row, h, rec - that the queue keeps, one per row reducer,
filled in place, so a targeted action allocates nothing; a stale handle runs nothing, and
LUDIC_ACTIONS_LOG=1 prints a line for it (@alloc_ok). Row reducers order among an action's by their
state's name, then the table's path.

Checked at compile time (actions_rows.ludic): the row reaches r.rec and r.h only - r.tb / r.row
refused, the view never assigned, stored, copied or handed on except to a @RowVerb (a function of
the record's own module taking Row<T> first; any other function taking a row is refused); a field
marked @Column (a table column mirrors it) is not written through r.rec; only the module owning the
state declares a row reducer; one @Target, an int, per action; the states between the row and the
action are read. `mut` is allowed on a Row<T> parameter.

ludic schema's code section gains row_reducers (record, table, state, action, target, predicted,
net, module, at) and row_verbs (name, record, module, at), and every action its target; row
reducers are left out of `reducers`. ludic deps and ludic-lsp name a row reducer
`reducer Deer in Herd.deer on Spook`. vocab: @Target, @Column, @RowVerb; docs/language pages;
LANGUAGE.md "A reducer on a row"; examples actions/rows and ten rejects; test.ludic feat, reject and
schema cases (not run); changes/row-reducers.md. Reseeded; bootstrap-cfree fixpoint holds (307497
lines); Maroon Lake's `ludic build --check` is clean against this tree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 16:14:59 +03:00
..
_section.md docs: automated documentation pipeline (per-symbol source → pages) 2026-08-29 16:25:54 +03:00
kw-action.md docs/language: a page for every keyword and attribute the vocabulary has 2026-09-29 23:59:47 +03:00
kw-alias.md docs/language: a page for every keyword and attribute the vocabulary has 2026-09-29 23:59:47 +03:00
kw-as.md docs/language: a page for every keyword and attribute the vocabulary has 2026-09-29 23:59:47 +03:00
kw-bind.md docs/language: a page for every keyword and attribute the vocabulary has 2026-09-29 23:59:47 +03:00
kw-component.md docs/language: a page for every keyword and attribute the vocabulary has 2026-09-29 23:59:47 +03:00
kw-const.md docs(api): per-symbol pages, fuzzy search, deep token linking, hover cards 2026-08-29 17:53:22 +03:00
kw-def.md docs/language: a page for every keyword and attribute the vocabulary has 2026-09-29 23:59:47 +03:00
kw-entry.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
kw-enum.md docs(0.S): the doc fences migrated by ludic migrate state; LANGUAGE.md's state section says what the tool and the checker do now; no module-level var left in the docs 2026-09-25 15:37:29 +03:00
kw-export.md docs/language: a page for every keyword and attribute the vocabulary has 2026-09-29 23:59:47 +03:00
kw-extern.md refactor(lang): rename builtins flr->floor and fx->fixed 2026-08-30 02:01:56 +03:00
kw-fn.md feat(jobs): real OS threads - Job.parallel_for, fn name, thread-safe Sync 2026-09-15 13:52:22 +03:00
kw-friend.md docs/language: a page for every keyword and attribute the vocabulary has 2026-09-29 23:59:47 +03:00
kw-from.md docs/language: a page for every keyword and attribute the vocabulary has 2026-09-29 23:59:47 +03:00
kw-function.md refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
kw-handler.md docs(api): per-symbol pages, fuzzy search, deep token linking, hover cards 2026-08-29 17:53:22 +03:00
kw-import.md feat(tooling): JetBrains IDE support, LSP navigation, barrel imports, package scripts and hooks 2026-09-16 16:13:31 +03:00
kw-internal.md docs/language: a page for every keyword and attribute the vocabulary has 2026-09-29 23:59:47 +03:00
kw-let.md docs(api): per-symbol pages, fuzzy search, deep token linking, hover cards 2026-08-29 17:53:22 +03:00
kw-model.md docs(api): per-symbol pages, fuzzy search, deep token linking, hover cards 2026-08-29 17:53:22 +03:00
kw-module.md docs/language: a page for every keyword and attribute the vocabulary has 2026-09-29 23:59:47 +03:00
kw-mut.md docs/language: a page for every keyword and attribute the vocabulary has 2026-09-29 23:59:47 +03:00
kw-namespace.md feat(lang): #76 namespace block form with export/internal visibility 2026-09-02 08:14:54 +03:00
kw-new.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
kw-numbers.md docs/language: a page for every keyword and attribute the vocabulary has 2026-09-29 23:59:47 +03:00
kw-of.md docs/language: a page for every keyword and attribute the vocabulary has 2026-09-29 23:59:47 +03:00
kw-open.md docs/language: a page for every keyword and attribute the vocabulary has 2026-09-29 23:59:47 +03:00
kw-phase.md docs(api): per-symbol pages, fuzzy search, deep token linking, hover cards 2026-08-29 17:53:22 +03:00
kw-port.md docs/language: a page for every keyword and attribute the vocabulary has 2026-09-29 23:59:47 +03:00
kw-prefab.md feat(engine): #90 atlas-aware Sprite component, #91 become from listeners, 0.3.x ergonomics batch 2026-09-04 01:36:08 +03:00
kw-program.md docs(0.S): the doc fences migrated by ludic migrate state; LANGUAGE.md's state section says what the tool and the checker do now; no module-level var left in the docs 2026-09-25 15:37:29 +03:00
kw-prop.md docs/language: a page for every keyword and attribute the vocabulary has 2026-09-29 23:59:47 +03:00
kw-property.md docs(api): per-symbol pages, fuzzy search, deep token linking, hover cards 2026-08-29 17:53:22 +03:00
kw-public.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
kw-reducer.md feat(lang): 27.3 - a reducer on a table's row: reducer T in S.table on A, @Target, Row<T>, @RowVerb, @Column 2026-09-30 16:14:59 +03:00
kw-registry.md docs/language: a page for every keyword and attribute the vocabulary has 2026-09-29 23:59:47 +03:00
kw-return.md refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
kw-ui.md docs(0.S): the doc fences migrated by ludic migrate state; LANGUAGE.md's state section says what the tool and the checker do now; no module-level var left in the docs 2026-09-25 15:37:29 +03:00
kw-unsafe.md docs/language: a page for every keyword and attribute the vocabulary has 2026-09-29 23:59:47 +03:00
kw-uses.md docs/language: a page for every keyword and attribute the vocabulary has 2026-09-29 23:59:47 +03:00
kw-var.md docs(0.S): the doc fences migrated by ludic migrate state; LANGUAGE.md's state section says what the tool and the checker do now; no module-level var left in the docs 2026-09-25 15:37:29 +03:00
kw-view.md docs/language: a page for every keyword and attribute the vocabulary has 2026-09-29 23:59:47 +03:00