Skip to content

grayscale: v0.13.0

Choose a tag to compare

@github-actions github-actions released this 25 Oct 17:24
92f8251

0.13.0 (2026-10-25)

Features

  • attributes: add #define and the -define: flag for build-time constant overrides (#3210) (d5fff9b)
  • loops: add labeled break and continue for nested loops (#3246) (96772b2)
  • runtime: add function_name and caller_name (#3135) (96a98c2)
  • stdlib: add wrap_add, wrap_sub, wrap_mult and wrap_div builtins behind unsafe (#3245) (7484b1a)
  • types: add distinct alias for nominal primitive types (#3211) (d46eb47)

Bug Fixes

  • cli: tell PowerShell users to dot-source the installed completion script (a9749d4)
  • cli: tell PowerShell users to dot-source the installed completion script (3aa2348)
  • codegen: accept a C value of 2^63 or more as a u64 (#3227) (60a8043)
  • codegen: check an arena is live before recording its reset count (5c3b521)
  • codegen: check overflow and division by zero in compound assignment and negation on a generic-typed value (#3239) (5c3d559)
  • codegen: emit a parameter default in the declaring module's scope (204a99d)
  • codegen: range-check an extern u64 above INT64_MAX stored into a narrow signed type (e936be2)
  • codegen: resolve generic parameter types when a call omits a defaulted argument (#3237) (621f248)
  • codegen: type a wrap builtin call by its first operand inside a generic body (bcd645a)
  • compiler: repair generic dispatch segfault, call-result handle temporaries, and global arena liveness guard (1e935b9)
  • diagnostics: escape a lone C1 control byte in quoted source (9333da9)
  • io: sort io.walk entries and skip symlinked directories (#3260) (852c053)
  • parser: limit the length of an or-branch chain with E2001 (a3ac88d)
  • parser: reject a non-label token after break or continue on the same line (bfd2ab5)
  • parser: report E6014 for any token after import that is not a module or path (#3214) (6a16c9a)
  • runtime: panic when a formatted result exceeds the maximum string length (#3236) (88ba7ec)
  • runtime: panic with P0117 on a dereference after mem.reset (#3216) (8d1b56f)
  • runtime: stop a panic inside a global arena swap from destroying the arena twice (47d34c6)
  • scripts: ignore the compiled check_stray_binaries and skip it in its own scan (b30a887)
  • scripts: skip class files and symlinks in check_stray_binaries (f381f4f)
  • server: send response bodies larger than 64 KB in full (#3233) (b789d56)
  • stdlib: answer 400 or 413 instead of running the handler on an incomplete request (8391f59)
  • stdlib: include the atomic header in sync so TinyCC builds the mutex checks (ddff0c3)
  • stdlib: panic on a closed-channel send and a channel capacity below 1 (2dfbfb2)
  • stdlib: panic when a binary decode function gets an array of the wrong length (#3243) (4e0d50f)
  • stdlib: reject a copy of a destroyed mutex or joined thread handle (925f83e)
  • tests: drop channel unit tests that expect the old capacity and closed-send behavior (897fd22)
  • tests: let ASan return NULL for the xalloc failure tests (1d236c9)
  • tests: make the sprintf length overflow test exceed INT_MAX on glibc (5a3ca52)
  • tests: receive the whole reply in the split segment server test (6ebace0)
  • tests: replace usleep with nanosleep in the stdlib unit tests (0a16b7a)
  • tests: stop passing a value to size_of in type_builtins_evaluate_argument (c4913f6)
  • tests: use sleep_ms instead of usleep in the C created thread test (fd62ada)
  • typechecker: a number read through a pointer parameter is not its address to C (#3224) (8ae06ed)
  • typechecker: accept ^void as a local variable type (#3225) (76f72bb)
  • typechecker: accept a distinct element for array and map functions of the same distinct type (50e2b0b)
  • typechecker: accept an imported enum named like a type in the importing file (#3241) (0748579)
  • typechecker: accept distinct numbers for min, max, clamp, abs, neg and sign (ed55bd8)
  • typechecker: bind a caller's type argument to the caller's type in an imported generic (#3238) (db61a24)
  • typechecker: check an enum variant's explicit value as a compile-time expression (eaa9289)
  • typechecker: check binary f32 encoder arguments as f32 (#3242) (bba303f)
  • typechecker: classify the typedef a pointer parameter points at on the GCC path (40f6f46)
  • typechecker: count a stdlib pointer writer call as a write through the parameter (62e9960)
  • typechecker: detect self-containment through a fixed-size array in E3061 (1f1b1ce)
  • typechecker: dispatch a struct function call on a generic-typed receiver per instantiation (#3240) (eb8663f)
  • typechecker: evaluate runtime name defaults in the callee and reject distinct values for primitive builtin and stdlib parameters (d5e50c1)
  • typechecker: key a reassigned arena field path apart from the arena it named before (c068ba3)
  • typechecker: limit the misspelled-statement error to bare declarations (a66d86c)
  • typechecker: reject a payload variant named without its payload with E3113 (a678e79)
  • typechecker: reject a string passed to extern setbuffer with E3216 (5c1b806)
  • typechecker: reject a tagged enum that contains itself by value (#3232) (725c3a7)
  • typechecker: reject a value argument to size_of with E5069 (2373152)
  • typechecker: reject a void call as an array literal element (#3212) (8e844ef)
  • typechecker: reject a void when subject with E3187 (d584942)
  • typechecker: reject member access and struct function calls on a void call with E3187 (589970d)
  • typechecker: reject or_panic, or_default and or_return on a non-fallible stdlib or builtin call (#3244) (1b23479)
  • typechecker: reject stdlib module names as for and for_each loop variables (#3215) (8b2a2df)
  • typechecker: reject void as a function parameter type (#3213) (0931db2)
  • typechecker: report E4002 for a bare fallible stdlib name used as a value (841e782)
  • typechecker: report misspelled statement keyword before an identifier (#3209) (d7e7b8d)
  • typechecker: resolve a function pointer typedef when checking an extern callback (b066d52)
  • typechecker: resolve names inside an imported module against the module before the importer's file scope (e4ed121)
  • typechecker: suggest the statement word for every misspelled statement shape (89522a5)
  • typechecker: warn when a for loop variable shadows an outer variable (#3218) (bb10de2)
  • typechecker: warn when a when binding or function parameter shadows an outer variable (861a20c)
  • util: return NULL instead of overreading when read_file_to_string cannot seek (40f03d7)

Performance Improvements

  • codegen: free the dotted struct function names with their namespaced names (e2b9cdb)