Standard Library
The Karkain standard library is a set of .kark modules importable from
any program through the normal toolchain (import std.string and friends)
on both engines — the Go front end and the self-hosted kcc engine.
Implemented and importable modules
Implemented — these modules are importable, tested, and byte-identical on both engines (Phase 132 API Freeze):
Module |
Purpose |
Functions |
|---|---|---|
String manipulation utilities |
27 |
|
Array and map helpers |
24 |
|
File and stream I/O |
11 |
|
Hex, Base64 and UTF-8 codecs |
7 |
|
SHA-256 / SHA-512 digests |
2 |
|
Assertion and check helpers |
9 |
|
|
Numerical/ML foundation (vector/matrix/tensor ops) |
40 |
|
TCP networking (Address/Endpoint/Connection/Listener) |
10 |
|
HTTP/1.1 client/server building blocks |
20 |
|
Backend-neutral database layer (SQL subset) |
20 |
stdlib/ also contains std.core, std.math, std.system,
std.gpu and std.async, but these are not importable: they use
non-canonical syntax (type annotations, import "libc" blocks, tuples,
Option/Result) and have no runtime builtin backing. They sit behind
the Phase 109 standard-library boundary. See
core, math and
not-implemented.
Modules that do not exist in the repository at all — std.memory,
std.filesystem, std.process, std.os, std.time,
std.concurrency, std.diagnostics — are tracked in
not-implemented.