Releases
grayscale-v0.12.0
Compare
Sorry, something went wrong.
No results found
0.12.0 (2026-10-16)
Features
arrays: add arrays.sort_by (#3046 ) (2ca93a1 )
benchmarks: record the C compiler in benchmark output (#3014 ) (45aeceb )
build: add per-target help to make (make help TARGET=<name>) (#3117 ) (fb1f267 )
cli: install shell completion scripts during make install, gray update, and gray install (#3076 ) (6465a95 )
cli: shell tab-completion for the gray CLI (#2117 ) (d55cc40 )
net: add net.receive_line (#3051 ) (ffdb62a )
parser: add or_default for fallible calls (#2949 ) (92544fd )
parser: add or_panic for fallible functions (#2453 ) (fab8cf0 )
parser: declare multiple variables or constants on one line (#2923 ) (fba6b4e )
stdlib: add add_minutes, add_months, start_of_month, and end_of_month to the time module (#3069 ) (290f280 )
stdlib: add counts, rand_bytes, roll_dice, mirror, is_vowel, and is_consonant (#3070 ) (f75d829 )
stdlib: add cpu_usage, memory_usage, disk_usage, and load_average to the os module (#3071 ) (df3a171 )
stdlib: add get_or_insert, sorted_keys, get_and_remove, and find_key to the maps module (#3065 ) (006416f )
time: add time.from_parts (#3047 ) (db7a901 )
typechecker: generate names() and variants() for plain enums (#2326 ) (3436f2a )
typechecker: require unsafe for raw, mem, threads, and extern calls (#2660 ) (e5d7371 )
Bug Fixes
build: document CC and GRAY_CC in make help and build the benchmark stopwatch with the selected compiler (#3113 ) (81dd1bb )
build: quote $(MAKE) in the embed tag call and fail when no embedded sources are found (4345532 )
build: reject multiple make targets in one invocation (#3112 ) (28b1afd )
cli: accept --no-color, --arena-limit, and --cc on gray check and gray watch (#3090 ) (ab23cf7 )
cli: check a directory as one merged module and drop the main requirement (#3100 ) (1f4413b )
cli: describe --cc accepting commands, precedence, and examples in gray --help (#3114 ) (9b2e586 )
cli: expand ~ when completing source paths at the root command (#3079 ) (90dd8fa )
cli: join a multi-line function signature in gray doc (#3084 ) (58ead7a )
cli: keep a multi-line variable initializer in the gray doc signature (#3085 ) (da1ea71 )
cli: leave multi-line raw string contents untouched in gray fmt (#3082 ) (8980663 )
cli: name the command and show usage when required arguments are missing (#3075 ) (9b81974 )
cli: name the default cross build output after the target so it keeps the native binary (#3102 ) (17c68e6 )
cli: offer symlinked directories in root tab completion (#3080 ) (e174650 )
cli: pass arguments after the file to the program in gray <file> (#3092 ) (086d897 )
cli: read escaped quotes in a gray doc description (#3086 ) (e3338db )
cli: redact only a path that is under the home directory in gray report (#3108 ) (0c2d20e )
cli: refuse to format a file with lexer or parser errors (#3095 ) (c591922 )
cli: reject a -q value that is not a warning code instead of reading it as the input file (#3105 ) (eaa6057 )
cli: reject an --arena-limit value that overflows instead of wrapping (#3104 ) (a597233 )
cli: reject dot segments in the gray update trusted URL check (#3093 ) (fb7b335 )
cli: reject surplus arguments to version, report, cross targets, man, and update (#3094 ) (c18acbd )
cli: resolve the C compiler in gray report in the order grayc uses (#3109 ) (ea6add0 )
cli: skip #doc text inside raw strings and block comments in gray doc (#3083 ) (48a9b22 )
cli: stop offering flag-like names in gray man completion (#3078 ) (d088c79 )
cli: strip trailing whitespace and collapse blank lines in CRLF files (#3097 ) (b58e537 )
cli: watch every file a watched file imports, transitively (#3089 ) (9120a7e )
codegen: copy a string assigned to a global through a variable into the heap arena (#3128 ) (632cd4b )
codegen: copy composite defaults in maps.get_or_insert on store and on return (1cdbe88 )
codegen: default a #json enum field the JSON omits to the enum's default variant (522e43c )
codegen: emit an empty map for {} in a map-typed struct literal field (0c09a37 )
codegen: escape source filenames written into generated C (#3098 ) (a0c7fe4 )
codegen: evaluate the map argument once in maps.get_or_insert and maps.get_and_remove (fafe025 )
codegen: give array literals an explicit element count so TinyCC snapshots compile them (#3131 ) (725f16a )
codegen: write a bare f32 or f64 argument to json.encode with enough digits to round-trip (e804ddd )
codegen: write arrays.sort_by results through the live array buffer and drop the unchecked malloc (#3046 ) (45b8ade )
diagnostics: cut a long source line to a window around the error column (#3103 ) (b20433f )
driver: archive the cross runtime with zig ar so windows-amd64 links (#3101 ) (e79711e )
driver: declare glibc's default feature set so extern interop sees realpath (#3123 ) (c60a049 )
driver: hash the embedded runtime at run time when no build tag is injected (25467d5 )
driver: name the extracted runtime directory by every embedded input (#3073 ) (38b7b60 )
driver: pass -Wl,-w only on Apple so GNU ld older than 2.40 links (#3127 ) (bac4eeb )
driver: refuse a build output path that is the input file (#3087 ) (a79bb60 )
driver: reject a -q warning code that is not in the registry (#3106 ) (bfc7a91 )
driver: report an unusable build output path instead of toolchain errors (#3088 ) (cf1e5fa )
driver: use _XOPEN_SOURCE instead of _DEFAULT_SOURCE so string.h does not pull in strings.h (20e24ae )
parser: evaluate multi-name declaration initializers before binding any name (6a03a6d )
parser: reject long pointer type prefixes and binary operator chains instead of overflowing the stack (#3099 ) (e5d963a )
runtime: provide the atomic operations for TinyCC snapshots without stdatomic.h (#3121 ) (db7a2a1 )
scripts: emit blank example lines in gray man instead of a stray comment marker (#3111 ) (c15d3c9 )
stdlib: declare getloadavg when the os module is built for Linux (f72e994 )
stdlib: draw whole characters in random.rand_string and never return a surrogate from rand_char (7948330 )
stdlib: drop glibc's regexec array size for TinyCC so regex.h parses (#3126 ) (ac92a68 )
stdlib: give server connection and spawned threads their own heap arena for new() (#3107 ) (0484ff5 )
stdlib: keep a spawned thread's used heap arena alive until the program exits (#3122 ) (dff31cc )
stdlib: panic when json.parse reads a mistyped array element or a non-array array field (67de8f2 )
stdlib: panic when the random.roll_dice total overflows i64 (a66edeb )
stdlib: parse http URL authority by query and fragment and reject over-long parts as invalid input (7280f35 )
stdlib: read io lines without getline on Windows (28cb20e )
stdlib: reject an http header value containing NUL as invalid input (30bfdd0 )
stdlib: reject an http URL containing a space or control byte as invalid input (e6e5256 )
stdlib: reject an http URL with a port outside 1-65535 or with userinfo as invalid input (397f886 )
stdlib: reject http request headers with CR, LF, or a non-token name (a479f64 )
stdlib: report random.roll_dice total overflow at the call site with its own panic code (7f07788 )
stdlib: report time arithmetic overflow at the call site with its own panic code (4fa85e6 )
stdlib: step past shadowing headers through arpa so TinyCC reaches system headers on Debian layouts (#3129 ) (5f1db13 )
stdlib: step past shadowing strings.h when glibc string.h reaches it mid-runtime.h under TinyCC (#3130 ) (1794e0a )
stdlib: store enum keys of arrays.counts at map-key width (ab146d2 )
stdlib: use the portable overflow helpers so programs build with tcc (#3118 ) (d0c1adb )
stdlib: write f32 and f64 values in json.encode with enough digits to round-trip (5b3c369 )
tests: mark unsafe calls in tests and reword E5065 as 'unsafe function' (b91372d )
tests: redirect stdin by descriptor so test_stdlib builds on mingw (#3124 ) (173f59b )
typechecker: accept a #json struct declared in an imported module in json.encode and json.parse (6a353ae )
typechecker: accept a func-typed value as an arrays callback argument (c4e58ac )
typechecker: check a module-qualified arrays callback's signature (97d7c74 )
typechecker: check maps.sorted_keys key type at each generic instantiation (6215f24 )
typechecker: clear a label's reference flags when a member access is rewritten into one (#3125 ) (717fa33 )
typechecker: do not treat a loop that contains a break as returning on every path (fe54b5e )
typechecker: emit registry messages for E7015 and the non-call or_* operand (E3211) (2673ae2 )
typechecker: hide a multi-name declaration's earlier names from its file-scope initializers (3abad46 )
typechecker: print the declared name of an imported type in E3043 (0050c56 )
typechecker: reject {} for a map-typed struct literal field (bbc842a )
typechecker: reject {} where a map is expected in a return, assignment, argument, stdlib default or map element (aabdb78 )
typechecker: reject a discarded arrays.find, maps.find_key or maps.get_and_remove result (a4ec1eb )
typechecker: reject a field or element of a temporary passed to a mutable parameter (1d24d24 )
typechecker: reject a literal or call result passed to a stdlib mutable parameter (af9618a )
typechecker: reject defer inside an unsafe block (8edce5b )
typechecker: reject json.parse as the initializer of an untyped declaration (c3794a7 )
typechecker: reject json.parse outside a declaration or return value (557f5a7 )
typechecker: reject len() on a user struct named Builder or Channel when its module is not imported (b8a5082 )
typechecker: reject or_panic, or_default and or_return on a non-call operand (7062d2a )
typechecker: reject SourceLocation struct literals (#3074 ) (9f4c32f )
typechecker: suggest or_default instead of or_panic when a multi-value fallible call is unhandled (799eb65 )
typechecker: type Enum.names() and Enum.variants() when the enum is declared in an imported module (5d2e032 )
typechecker: warn on unused variables in nested blocks and position each multi-name declaration at its name (f8cf661 )
typechecker: warn W1001 on a variable that is only written, never read (aea1044 )
typechecker: word E7015 so a user struct named like a stdlib type is not read as listed (a89754b )
You can’t perform that action at this time.