Skip to content

Releases

0.3.0

Choose a tag to compare

@github-actions github-actions released this 25 Oct 08:42

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

0.2.0

Choose a tag to compare

@github-actions github-actions released this 16 Aug 11:24
ecb33c0

libjcccol 0.2.0

The standard library for the COL programming language, designed for use with the JCC compiler.

What's Changed

COL string runtime — new <jcccol/strings.h>, adding concat, substr, indexof, string (from i64, f64, bool), readln and eof. Every string function returns a fresh block; allocation failure exits with a diagnostic rather than returning NULL.

Garbage collector — new <jcccol/jcc_gc.h>, vendored from libjccbas, since strings are COL's first heap type. Its symbols keep their upstream jcc_gc_* names because JCC emits those for both BASIC and COL.

Breaking: millis is now col_millis. Every exported symbol is col_-prefixed, with overloadable functions mangled col_<name>[_<type>...]. JCC-emitted IR references these names directly, so this is an ABI break. The vendored collector is the sole exception. See ADR 0001.

Known mismatch: col_string_bool returns "true"/"false", while jcc's println still prints booleans as 1/0, until println follows.

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/MinGW64)
  • Windows ARM64 (Clang, MSYS2/CLANGARM64)
  • macOS ARM64 (Apple Silicon)
  • macOS x86_64 (Intel)
  • Linux x86_64
  • Linux ARM64

Installation

  1. Download the appropriate archive for your platform
  2. Extract the archive
  3. The package contains:
    • lib/libjcccol.a — Static library
    • include/jcccol.h — Umbrella header
    • include/jcccol/ — Per-module headers
    • README.md — Documentation
    • LICENSE — GPL-3.0 license text

Usage

Link COL programs against lib/libjcccol.a and add include/ to the compiler's include search path. See the JCC documentation for integration instructions.

0.1.0

Choose a tag to compare

@github-actions github-actions released this 24 May 12:11

libjcccol 0.1.0

The standard library for the COL programming language, designed for use with the JCC compiler.

What's Changed

See the commit history for detailed changes in this release.

Platform Support

This release includes a static library (libjcccol.a) for the following platforms:

  • Windows x86_64 (Clang, MSYS2/MinGW64)
  • Windows ARM64 (Clang, MSYS2/CLANGARM64)
  • macOS ARM64 (Apple Silicon)
  • macOS x86_64 (Intel)
  • Linux x86_64
  • Linux ARM64

Installation

  1. Download the appropriate archive for your platform
  2. Extract the archive
  3. The package contains:
    • lib/libjcccol.a — Static library
    • include/jcccol.h — Umbrella header
    • include/jcccol/ — Per-module headers
    • README.md — Documentation
    • LICENSE — GPL-3.0 license text

Usage

Link COL programs against lib/libjcccol.a and add include/ to the compiler's include search path. See the JCC documentation for integration instructions.