Repository navigation
libjcccol 0.3.0
The standard library for the COL programming language, designed for use with the JCC compiler.
What's Changed
Random numbers and sleep — <jcccol/core.h> adds rnd, randomize and sleep (milliseconds). rnd uses its own xoshiro256** generator rather than libc rand, so a seed gives the same sequence on every platform. Without randomize, the first call seeds from millis.
Text helpers and parsing — <jcccol/strings.h> adds strip, repeat, replace, and i64/f64 for parsing a string. Parsing is strict: anything other than one number, apart from surrounding whitespace, returns 0, so "0" can't be told apart from invalid input.
128-bit integers — string now also takes an i128 (col_string_i128), for COL's new 128-bit integer type. libc has no printf conversion for that width.
64-bit targets only. The public headers now use __int128, so including jcccol.h on a 32-bit target fails to compile. Every release platform is 64-bit.
Breaking: Windows x86_64 is built with MSYS2 CLANG64, against UCRT instead of msvcrt. A program that links the Windows x86_64 archive must also target UCRT.
See the commit history for detailed changes.
Platform Support
This release includes a static library (libjcccol.a) for the following platforms:
- Windows x86_64 (Clang, MSYS2/CLANG64)
- Windows ARM64 (Clang, MSYS2/CLANGARM64)
- macOS ARM64 (Apple Silicon)
- macOS x86_64 (Intel)
- Linux x86_64
- Linux ARM64