Skip to content
EignexPublic

About

Shared Kotlin Multiplatform utilities: primitive collections, array helpers, concurrency primitives, and platform support.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Eignex

Util

Build

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.

API notes

  • 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 in collections.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 CharSource resources. Hashes and random generators are noncryptographic; hash64 output is stable.
  • Reference identity lives in runtime; heap and compiler diagnostics live in runtime.diagnostics. Detailed contracts live in KDoc.

About

Shared Kotlin Multiplatform utilities: primitive collections, array helpers, concurrency primitives, and platform support.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages