Shared Kotlin Multiplatform primitives for Eignex libraries and applications.
- Primitive collections: lists, deques, sets, maps, and fixed-size or growable packed bitsets.
- Array algorithms: stable argsort, primitive binary search and allocation-free argmax.
- Concurrency primitives: synchronous locks, atomic cells and additive counters.
- Numeric primitives: checked and saturating Long arithmetic, a signed 128-bit accumulator, arbitrary-precision integers and exact rational numbers.
- Hashing: deterministic SplitMix64 mixing and 64-bit byte/string hashes.
- Random sampling: normal, Gamma, Beta and Poisson draws, counter-based streams and scrambled Sobol points.
- Text input: chunked character sources, buffered character reading and compressed file input.
- Host concurrency: ordered parallel execution on JVM threads and Native workers.
- Process support: properties/environment, standard output flushing, error output and process exit.
- Runtime identity and diagnostics: reference identity hashing, JVM heap samples and cumulative JIT compilation time.
Primitive collection benchmarks and the eignex-lab adapter are in util-bench.
Snapshot releases use a fresh -ci.<run>.<attempt>-SNAPSHOT version for each publication attempt.
The release job verifies that every target has the same immutable timestamped pin and records it in
the job summary. Consumers should use that one pin for the root module and every platform constraint.
- Packages follow responsibility; source sets determine availability. Host-only APIs include big numbers, runtime/process helpers and parallel execution; file input requires JVM or POSIX Native.
- Collections are mutable and not thread-safe. Read-only views are not snapshots; swap removals reorder elements; map presence requires
containsKey. - Storage access lives in
collections.storage; budgeted/yielding operations live incollections.cooperative. Borrowed arrays remain container-owned; capacity accounting is not heap measurement. - Counters provide
add/load; cells provide replacement and exact updates. Separate operations are not atomic. - Callers close
CharSourceresources. Hashes and random generators are noncryptographic;hash64output is stable. - Reference identity lives in
runtime; heap and compiler diagnostics live inruntime.diagnostics. Detailed contracts live in KDoc.