Scoria Language mark Scoria Language mark

Scoria Language Release Notes

macOS & Linux · Compiled via C

Version 0.2.0

Major language, compiler, and standard library release featuring a self-hosted compiler, source-level debugging, function execution tracing, project manifests, and 27 standard modules.

Language

  • Interfaces, generics & lambdas: Structural interfaces, generic structs and enums, lambdas with chained list functions (each, keep, has, all, count, first, sort_by), and functions as values with & mutable parameters.
  • Ergonomics & value types: Default parameter values, operator methods (+, -, *, /, %, ==, <), fixed-size value arrays (t[N]), static module globals, and multi-file modules (use / export).
  • Diagnostics & tracing: Integrated test blocks and debug function modifiers that print stderr execution traces with old-to-new variable diffs and grouped loop iterations.
  • Safe operations: Integer bitwise, wrapping, and saturating methods alongside fallible bounds and checked arithmetic helpers (get, try_slice, try_byte_at, checked_*).

Compiler & Toolchain

  • Self-hosted compiler: Complete self-hosted Scoria compiler with incremental .scoria-cache/ translation-unit caching.
  • Source-level debugging (-g): Emit .sco line mappings, readable variable and field names, and typed list definitions across scoria run, build, test, and emit-c.
  • Project manifests & auditing: scoria.toml support (scoria init, scoria deps) with [build] C library linking, plus scoria audit to report trust blocks, raw pointers, and extern declarations.
  • Developer tools: Integrated scoria test, canonical scoria fmt, and scoria lsp.

Standard Library

  • Concurrency & signals: std.thread with compile-time thread-safety checks and panic recovery (thread.catch), std.sync (mutexes, read-write locks, channels, atomics, wait groups), and std.signal.
  • Networking & web: Non-blocking std.net polling, production std.http client and server (keep-alive, routing, multipart, streaming), std.tls, and std.ws.
  • Data & system modules: Expanded to 27 standard modules including reflection-driven std.json (encode / decode<t>), std.crypto, std.regex, std.csv, std.fs, std.path, std.process, std.time, std.random, std.url, and std.cli.
Version 0.1.0

Foundational Scoria language and C-targeting compiler introducing copy-on-write value semantics, explicit call-site mutation, and deterministic memory safety without garbage collection.

Core Language & Compiler

  • Memory & mutation model: Value semantics with copy-on-write, explicit & on mutating parameters and call sites, maybe-values (t?), and errors as values (| error, ?, ??, else).
  • Resources & interop: shared and weak handles, defer resource cleanup, and trust blocks for raw pointers and extern C calls.
  • Core modules & CLI: std.io, std.os, std.math, and std.mem with scoria run, build, check, and emit-c.