Commit Graph
11 Commits
Author SHA1 Message Date
piexel 8b7accd19d Add WorldRandom.pick and shuffle so stages need no JDK random APIs
pick(items) is items.get(nextInt(items.size())) and throws on an empty
list. shuffle(items) is Fisher-Yates from the last index down, swapping
i with nextInt(i + 1). RandomAccess lists swap through List.set; other
lists are shuffled in an array copy and written back through their
ListIterator, with the same result. Both are pinned to the Python
reference, including draw counts.
2026-10-06 11:48:44 +02:00
piexel 525c372fc5 Document WorldRandom, id ownership for feature ids and mantle keys, and accumulating ModuleHost
DESIGN describes WorldRandom's algorithms per method, why it does not
implement RandomGenerator, why StrictMath suffices for the gaussian and how
the pinned values are produced. README and CONTRACTS name it as the
generator stages and object generators see. The namespace rule now reads
that feature ids and mantle keys are the module id or below it, with the
new error text, and ModuleHost's methods are documented to accumulate.
2026-10-06 11:37:24 +02:00
piexel 1df8bb3808 Document per-stage random streams, namespace ownership, LoadedPack and jar copies
README, DESIGN and CONTRACTS now describe: the per-stage random stream
contract and why java.util.Random; module-prefixed stage ids, module ids
without '/', reserved namespaces and settings/registration namespaces;
info() read once; LoadedPack and ModuleHost as the host entry point; and
loading from temporary jar copies with stale-copy cleanup.
2026-10-05 21:40:37 +02:00
piexel f5cf4b3ab6 Document the non-exported JDK package error and sun.misc.Unsafe
DESIGN gains the export row at the top of the class check table, why it
comes first, how --add-exports ...=ALL-UNNAMED is honoured and that
qualified exports do not count. CONTRACTS and README name sun.misc.Unsafe
from jdk.unsupported as the supported route, README shows the new error
group and the addExportsTest task.
2026-10-05 21:11:44 +02:00
piexel e34acf2fbb Document optional packages and the unavailable-JDK-module error
README, DESIGN and CONTRACTS describe how a module declares optional
packages in info() (with an example), that they cover only its own jar
and never excuse a load error, why missingClasses() drops excused
classes, and the new error for classes of JDK modules outside the
platform class loader, including the check order and that one error
groups every kind of unusable class.
2026-10-05 21:01:34 +02:00
piexel 3873894a22 Document exposed host packages and optional pack dependencies
README, DESIGN and CONTRACTS now say that modules may use any library
they ship in the pack but never Iris's copy, that classes nobody has
only warn, how each missing reference is classified, and that the host
chooses which packages besides the always-exposed API pack modules can
see, meant for built-in modules' stage constants.
2026-10-05 20:32:14 +02:00
piexel b7b3993a8d Document what pack modules can see and the class checks
Modules compile against the API compileOnly, never ship it, and can use
only the API, the JDK and their own pack's jars. Describe the pack
loader's parent, the resource rule, the reserved com.volmit. prefix, the
load-time class reference check and its limits, and the new errors.
2026-10-05 18:26:27 +02:00
piexel 862f4d19be Document module names, duplicate classes and the load summary
Drop version gating as an open question: packs ship their module jars
and nothing is downloaded, so compatibility is the pack publisher's
responsibility. Describe the duplicate-class rule including
multi-release jars, the per-pack log summary, and the adapter's job of
routing System.Logger output.
2026-10-05 18:02:31 +02:00
piexel 4fa6ddcd7a Document module jars, entry points and pack loading 2026-10-05 17:49:48 +02:00
piexel e918cd44a8 Rewrite docs for the module-owned stage graph
README, DESIGN and CONTRACTS now describe stages, ordering, fusion, activation,
outputs and diagnostics, and drop the removed modifier and planner types.
2026-10-05 17:24:51 +02:00
piexel 9043d93fbd Baseline IrisApi draft before stage-graph redesign 2026-10-05 17:01:18 +02:00