Skip to content

grayscale: v0.6.0

Choose a tag to compare

@github-actions github-actions released this 01 Sep 17:56
fbc80f0

0.6.0 (2026-09-01)

Features

  • cli: add #test attribute and gray test command (#2092) (b582cec)
  • fmt: support i128/u128/i256/u256 in format directives (#2586) (79767a3)
  • parser: single-line attribute lists via #[...] container syntax (#2599) (88c6ffe)
  • stdlib: add char-editing functions to strings module (#2560) (3051efa)
  • stdlib: add chars module with to_upper/to_lower (#2559) (1a49060)
  • stdlib: add strconv format_int, format_uint, quote, unquote (#2434) (edcdbaf)
  • typechecker: infer type for mut array/map literals of primitives (#2374) (f6c6024)
  • typechecker: support + and += for string concatenation (#2383) (14524b8)

Bug Fixes

  • build: link builtins.o into the stdlib unit test binary (70e2bec)
  • cli: discover #[test] list-form functions in gray test prescan (c0223bf)
  • cli: don't treat #test inside a string as a test function (77740ee)
  • cli: drain test binary stdout with a growable reader (3e95638)
  • cli: emit stdlib man examples in generator TSV (13baf0f)
  • cli: find the test protocol nonce anywhere in a line (c0da050)
  • cli: gray check success message green and ending in '!' (#2594) (fd2674d)
  • cli: nonce-guard gray test result protocol against stdout forgery (f28dc6a)
  • codegen: allocate string array element += result in the outer loop arena (e0c8ad5)
  • codegen: deep-copy plain string array element assignment to the outer loop arena (6c041f4)
  • codegen: escape string struct-field assignment to the outer loop arena (450c7f1)
  • codegen: filter incompatible flags off bigint fmt directives (34a93a4)
  • codegen: module-qualified enum in a multi-return tuple uses its real C type (#2573) (8a59a2c)
  • codegen: module-qualified stdlib calls no longer resolve to same-named struct functions (#2561) (5ea3b8e)
  • codegen: println of a SourceLocation walks its fields (#2585) (3963971)
  • codegen: store wide integers in map key/value slots as their real C type (af05adc)
  • codegen: strip imported files' #test functions from a test build (d721b80)
  • codegen: treat 'in', '&&', '||' as bool-valued for wide-int operands (2ccee07)
  • lexer: 'module' is no longer a reserved keyword (#2595) (13361d2)
  • lexer: decode non-ASCII and escaped codepoints in char literals (6261b77)
  • parser: #strict and #flags error on wrong target (#2566) (eb98f54)
  • parser: count duplicate entries in #[...] toward list length (8805f07)
  • parser: or_return works for calls returning (T, ..., Error) (#2571) (be65b6f)
  • parser: reject #[...] whose closing ']' is on a later line (8b746f2)
  • parser: reject duplicate attribute usage (#2600) (0ea6280)
  • parser: reject UTF-16 surrogate codepoints in char literal escapes (94f5c68)
  • parser: validate #[...] entry arguments like the stacked form (7fc231f)
  • runtime: restore gray_call_depth around each #test run (7a0eb6a)
  • stdlib: harden csv.read_file against non-seekable input (#2607) (81b9f51)
  • stdlib: remove fmt.format, threads.current, and uuid.generate_hyphenated aliases (#2602) (e264a42)
  • typechecker: #strict when with all arms returning is terminating (#2565) (26a7fa1)
  • typechecker: allow a container of func refs as a struct field type (#2495) (a62e832)
  • typechecker: E3061 catches recursive structs cycled through a type alias (#2529) (718e891)
  • typechecker: implicit enum selector keeps type context in module-qualified struct calls (#2493) (bce8e53)
  • typechecker: imported struct type passable as a generic type argument (#2494) (85618f0)
  • typechecker: infer wide-int element type for mut array literals (3124562)
  • typechecker: reject #flags enum with more than 63 variants (cb5af06)
  • typechecker: reject #test on main as program entry point (7b22d61)
  • typechecker: reject a func return type at the declaration (#2568) (0d34528)
  • typechecker: reject addr/raw/ref on a dynamic array element (#2604) (d2b7f2e)
  • typechecker: reject enum-variant access on a struct type name (#2521) (0a6df1c)
  • typechecker: reject fallible stdlib calls in expression position (#2450) (dafe7c2)
  • typechecker: require import @json for #json structs (#2601) (4cca074)
  • typechecker: reserve 'main' for the entry-point function (71a8460)
  • typechecker: scope string += E3048 to string targets (c8193f3)
  • typechecker: track addr() laundered through array/map/struct literals (#2605) (1d6c017)
  • typechecker: type sqlite.query rows as map[string:string] (1f25b58)
  • typechecker: validate all pairs in inferred mut map literals (bea5a7f)