
Modern low-level utility library for performance-sensitive development: native-style memory buffers with configurable endianness, deterministic binary layouts, math types, profiling, concurrency primitives, and KSP code-generation.
koltin-std is a modern Kotlin Multiplatform utility library focused on low-level development, performance, and cross-platform consistency.
Unlike the Kotlin Standard Library, kotlin-std provides additional primitives that are commonly needed when building game engines, graphics applications, native libraries, and other performance-sensitive software.
The project is designed to work consistently across JVM, Android, iOS, Kotlin/Native, JavaScript, and WebAssembly.
NativeBuffer
The project also includes kotlin-std-gen, a KSP processor capable of generating high-performance binary serialization code for kotlin-std memory APIs.
Kotlin's standard library intentionally stays relatively small and platform-agnostic.
kotlin-std focuses on functionality frequently required by engine and systems development:
The goal is to make writing low-level multiplatform code feel as natural as writing JVM applications.
dependencies {
implementation("io.github.cheerwizard:kotlin-std:<version>")
}If you want to use automatic code generation:
plugins {
alias(libs.plugins.ksp)
}
dependencies {
implementation("io.github.cheerwizard:kotlin-std:<version>")
ksp("io.github.cheerwizard:kotlin-std-gen:<version>")
}Current development is focused on:
Contributions, bug reports and feature requests are welcome.
If you discover a bug or have an idea for improving the library, please open an issue or submit a pull request.
Licensed under the Apache License, Version 2.0.
See the LICENSE file for details.
koltin-std is a modern Kotlin Multiplatform utility library focused on low-level development, performance, and cross-platform consistency.
Unlike the Kotlin Standard Library, kotlin-std provides additional primitives that are commonly needed when building game engines, graphics applications, native libraries, and other performance-sensitive software.
The project is designed to work consistently across JVM, Android, iOS, Kotlin/Native, JavaScript, and WebAssembly.
NativeBuffer
The project also includes kotlin-std-gen, a KSP processor capable of generating high-performance binary serialization code for kotlin-std memory APIs.
Kotlin's standard library intentionally stays relatively small and platform-agnostic.
kotlin-std focuses on functionality frequently required by engine and systems development:
The goal is to make writing low-level multiplatform code feel as natural as writing JVM applications.
dependencies {
implementation("io.github.cheerwizard:kotlin-std:<version>")
}If you want to use automatic code generation:
plugins {
alias(libs.plugins.ksp)
}
dependencies {
implementation("io.github.cheerwizard:kotlin-std:<version>")
ksp("io.github.cheerwizard:kotlin-std-gen:<version>")
}Current development is focused on:
Contributions, bug reports and feature requests are welcome.
If you discover a bug or have an idea for improving the library, please open an issue or submit a pull request.
Licensed under the Apache License, Version 2.0.
See the LICENSE file for details.