Skip to content

Changelog

See the full history of Grayscale.

0.14.1

Features

  • lexer: accept \u{...} in string literals (#3323) (e1f2176)

Bug Fixes

  • build: add the path module to the compile-from-source stdlib list so TinyCC links it (#3308) (0666bdf)
  • build: keep make's directory messages out of the embed tag in nested builds (#3307) (0e3ce1e)
  • codegen: bind an indexed literal or call-result field to a temporary (#3316) (1b64b9b)
  • codegen: keep bytes after an embedded NUL in fmt %s (#3335) (069ef9e)
  • codegen: keep the element size of an array literal whose entry deep-copies a struct array (#3361) (5250292)
  • codegen: name a module's enum as written in the cast panic (#3321) (2c138ef)
  • codegen: panic on arrays.sort_by during for_each over the same array (#3360) (b39e84e)
  • codegen: print a module struct's nested fields and its declared name (#3365) (51fb4d0)
  • csv: split parse_delimited on the whole delimiter codepoint (#3324) (c9f1d01)
  • diagnostics: align the underline under the token after multibyte text (#3337) (3bf982f)
  • imports: resolve a file imported directly and through its directory (#3312) (cf70965)
  • imports: scope the name an import binds to the file that writes it (#3310) (6baa7c6)
  • io: match one codepoint for ? and brackets in io.glob (#3334) (428bd52)
  • json: handle invalid UTF-8 in encode, decode and is_valid (#3338) (526db55)
  • lexer: reject invalid UTF-8 bytes in string literals (#3331) (d1e9617)
  • lexer: skip a leading UTF-8 byte order mark (#3336) (2312650)
  • parser: reject a typed func signature as a map value (#3342) (5993e34)
  • parser: report an or_return/or_default/or_panic declaration at the variable's position (#3341) (ddea490)
  • parser: skip char literals when finding the end of an interpolation (#3315) (8024107)
  • regex: make POSIX character classes match ASCII only (#3329) (208a67a)
  • regex: match one codepoint for . and bracket expressions on every platform (#3328) (a5f7dda)
  • regex: treat an invalid UTF-8 byte as one U+FFFD character (#3333) (e00918c)
  • scripts: rename the reserved name 'path' in the stray binary check and sized type test generator (#3306) (6e8e3a9)
  • stdlib: compare strings.contains_any by codepoint (#3325) (1497c68)
  • stdlib: decode UTF-8 strictly through one shared decoder (#3326) (9d988f8)
  • stdlib: return the raw byte from strings.char_at for bytes of 128 or more (#3313) (3fd753d)
  • stdlib: snap strings edit indexes back to a character boundary (#3332) (91e6795)
  • typechecker: a scalar read through a pointer parameter carries no origin (#3340) (f1787d0)
  • typechecker: accept a helper linking two locals of one scope (#3319) (f809288)
  • typechecker: accept an implicit tagged-enum constructor as a call argument (#3314) (aca028a)
  • typechecker: allow a private struct function called through self in an imported struct (#3345) (a5e4aaa)
  • typechecker: apply default parameters to a module-qualified struct function call (#3347) (33d1eb8)
  • typechecker: check a function reference passed to a struct function's func parameter (#3350) (197d24d)
  • typechecker: check the element type of stdlib array parameters (#3367) (10266e8)
  • typechecker: check the return value of a module-qualified struct function call (#3348) (8b7f165)
  • typechecker: detect writes through a pointer parameter made by stdlib array and map mutators, ++/--, and ref() (#3370) (9bc210c)
  • typechecker: enforce const through ref(): mut ref to a const field or element, and writes through a const ref (#3369) (b21f743)
  • typechecker: enforce E3153 on the type argument of new() and size_of() (#3363) (2f514f9)
  • typechecker: escape-check addr(local) stored through a pointer parameter with the dot operator (#3318) (baa4cd1)
  • typechecker: reject a void call as a value argument to string() and generic arrays/maps functions (#3359) (9df6fe2)
  • typechecker: reject assignment and increment through a call result or literal (#3317) (21cac7b)
  • typechecker: reject copy() on a handle type instead of aliasing it (#3362) (d72f7a1)
  • typechecker: reject duplicate globals and global/function/type name clashes across files of a module (#3311) (f31420e)
  • typechecker: reject field access on an enum value and through a pointer to a non-struct (#3366) (446b1d6)
  • typechecker: reject index writes, array/map functions and addr on a module variable from outside (#3354) (2376f55)
  • typechecker: reject surrogates in char(n) and cast(n, char) (#3327) (139bbe8)
  • typechecker: reject type, struct literal and enum member uses of a module the file does not import (#3309) (7c00847)
  • typechecker: reject void as the type in new(), size_of() and alias (#3364) (82be77e)
  • typechecker: report a parameter named main once instead of also as shadowing a function (5b15a9b)
  • typechecker: report a parameter, loop variable or struct named like an imported module (#3352) (268738f)
  • typechecker: report a parameter, loop variable or when binding named like a function (#3349) (e34ec6c)
  • typechecker: report an unhandled fallible call in a multi-value declaration (#3343) (4f088e9)
  • typechecker: report assigning one struct or enum type to another once (#3320) (2c89f57)
  • typechecker: report only E4026 for a type or const named main (#3339) (8c022cd)
  • typechecker: report shadowing of a parameter, loop variable or when binding (#3344) (ab46d0d)
  • typechecker: resolve a module-qualified call to a generic struct function (#3346) (34be85d)
  • typechecker: warn on a when over module-qualified enum variants with no default (#3353) (432f094)

Miscellaneous

  • release: release as 0.14.1 (3d54efd)

0.14.0

Features

  • cli: embed the 14 project template files in the CLI (#3263) (cbe054c)
  • cli: extract the embedded compiler and runtime in Grayscale (#3268) (5699d7a)
  • cli: rerun gray watch when a file is added or removed (#3266) (7bf1b46)
  • cli: scan source lines for test markers in the CLI (#3264) (29d5de0)
  • cli: set the CLI version at build time with -define (#3269) (52e3702)
  • cli: write gray test in Grayscale (#3264) (804e0d7)
  • cli: write hand-rolled argument parsing for the CLI in Grayscale (#3261) (0f6ce2f)
  • encoding: quote shell_escape arguments for cmd.exe on Windows (#3265) (dbc89f7)
  • io: add io.chmod (#3258) (682c56c)
  • io: add io.stat returning FileInfo metadata (#3257) (169e8f1)
  • os: add executable_path (#3255) (3ecff8f)
  • os: add find_executable (#3256) (fcf9b98)
  • os: add signal field to ExecResult (#3254) (69bd998)
  • path: add path module for separator-aware path manipulation (#3253) (b616d93)

Bug Fixes

  • benchmarks: rename the built-in-named path parameter in the fixture generator (b8c1d27)
  • codegen: break the deep-copy cycle for a tagged enum that contains itself through an array or map (#3301) (45305d3)
  • codegen: copy by-value arguments out of the iteration arena for caller-arena calls (#3278) (1bd65a5)
  • codegen: keep the backslash in a string literal escaped backslash before a dollar sign (#3284) (934b5bd)
  • codegen: record each stdlib module once so imports past 64 keep their headers (#3283) (67ca86b)
  • codegen: sanitize C keyword struct field names in struct copy and print (#3280) (fc2c479)
  • codegen: store into a file-scope map in the heap arena inside nested blocks (#3297) (882643f)
  • lexer: reject a NUL byte in source instead of ending the file (#3296) (7c5eccb)
  • parser: let -define override #define constants declared in imported modules (#3285) (63b8b5c)
  • path: copy the split_dir_file directory part into the arena so it is null-terminated (#3282) (a844cb6)
  • tests: drop the binary name assertion from os_executable_path (af6fc9a)
  • tests: rename the path parameters and loop variables in the integration test runner (#3286) (b28779e)
  • tests: rename the reserved path identifier in tests (572c7e6)
  • typechecker: call a func-typed struct field through an index, member, deref, or map receiver (#3300) (30c59cc)
  • typechecker: check the integer arguments of threads.spawn_arg, channels.open, and the atomic functions (#3302) (eaa03e3)
  • typechecker: stop registering unprefixed aliases for module-prefixed functions (#3277) (10ba4ab)

0.13.0

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)

0.12.3

Bug Fixes

  • codegen: check bare func elements against the typed func slot they flow into (#3192) (2977014)
  • codegen: copy composite values stored by index to the outer arena (#3191) (1ddb33e)
  • codegen: copy composite variables embedded in array, map and struct literals (#3193) (d75b6e1)
  • codegen: end stepped range loop instead of panicking past the last element (#3182) (fb23554)
  • codegen: guard indexed and map-lookup arrays during for_each (#3183) (d2d1b52)
  • codegen: guard plain field assignment on array elements during for_each (#3184) (86ac56a)
  • codegen: resolve #json struct field types in the struct's own module (#3202) (758895f)
  • codegen: resolve zero-value struct field types in the struct's own module (#3204) (abd4cfd)
  • codegen: size an empty tagged enum array literal by its element type (#3205) (a46abc5)
  • parser: parse for_each over an index expression on a member chain (#3203) (2e6c902)
  • runtime: keep the recursion depth counter per thread (#3201) (341772e)
  • runtime: reject trailing junk and parse whole input in string casts (#3190) (f112e43)
  • server: read the full request body before running the handler (#3206) (a27fbb7)
  • stdlib: parse the whole string in strconv to_i64, to_u64 and to_f64 (#3188) (b8940c7)
  • stdlib: size f64_to_fixed output from the formatted length (#3189) (53fa0e9)
  • typechecker: compare every enum variant's value for duplicates (#3186) (4c4d4cc)
  • typechecker: reject enum values outside the i64 range (#3187) (c1c5547)
  • typechecker: reject when cases made unreachable by an earlier range (#3194) (899beb5)
  • typechecker: require bool operands for && and || (#3181) (f6d1696)
  • typechecker: run range() over u64 bounds in u64 (#3185) (10428d7)

0.12.2

Bug Fixes

  • atomic: panic when the spinlock allocation fails (#3165) (0f9b9de)
  • channels: enforce --arena-limit in channels.open (#3152) (4012399)
  • channels: panic when channels.open cannot allocate (#3164) (d9b1e6e)
  • channels: panic when channels.open capacity overflows the buffer size (#3163) (b9b19d2)
  • cli: gray update verifies the archive's SHA-256 before installing (#3172) (b2208af)
  • codegen: append, prepend and insert_at on a new() object's array field allocate in the heap arena (#3149) (4de14a2)
  • codegen: copy values stored through a pointer into the heap arena (#3153) (1ffab22)
  • codegen: deep-copy tagged enum payloads when the value leaves its scope (#3155) (3f364e6)
  • codegen: skip the heap copy when storing back an elided array field copy (33557b3)
  • grayc: keep the runtime archive cache in a private per-user directory (#3171) (e72826d)
  • io: copy_file gives the copy the source file's permission bits (#3174) (ef65e53)
  • io: remove_dir_all unlinks a symlink root instead of deleting its target's contents (#3170) (fe7fe71)
  • io: remove_dir_all unlinks symlinks instead of following them (#3161) (d2e76e7)
  • os: exec closes inherited file descriptors in the child (#3175) (8ccd393)
  • runtime: apply --arena-limit to thread and server connection arenas (#3151) (45cdeb6)
  • runtime: enforce --arena-limit in function, block and loop arenas (#3150) (d2587bf)
  • server: reject a request whose method or path contains a NUL byte (#3173) (f69d6c0)
  • typechecker: record pointer origin for a variable declared without mut (#3176) (20ed9ac)
  • typechecker: reject a generic parameter name used as a value (#3154) (751bd02)
  • typechecker: size the function-reference signature buffer to its text (#3162) (ebf1ad8)

Performance Improvements

  • grayc: build the gcc runtime archive at -O3 (#3159) (a493e83)
  • grayc: cache a runtime archive for tcc builds (#3156) (42800ce)
  • runtime: use a sign test for tcc overflow-checked add and sub (#3157) (5d4241e)

0.12.1

Bug Fixes

  • codegen: allocate map-field inserts on a new() object in the heap arena (#3134) (add8f22)
  • codegen: emit compound assignment on a wide integer local typed by a type parameter (fad6db1)
  • codegen: emit wide-integer literal locals in a generic function bound to u128 or u256 (#3140) (085b3b4)
  • codegen: shift a generic unsigned operand at its bound type (#3145) (0c1a3cd)
  • codegen: skip the narrowing cast for a generic local whose value is typed by its type parameter (#3143) (9918bfd)
  • codegen: type expressions on a literal-initialized generic local by its wide binding (#3144) (1583f8e)
  • imports: keep an imported module's variable declarations in source order (#3136) (2474eb8)
  • typechecker: declare a local initialized with cast to a type parameter (#3142) (f01a441)
  • typechecker: dispatch instance struct function calls on a struct literal receiver (#3137) (3a04630)
  • typechecker: keep the flattened-key shadow check for a function of the local's own module (#3146) (641ee03)
  • typechecker: resolve the function a local shadows from the declaring file's scope (#3146) (dc188e5)
  • typechecker: type the tuple result of a module-qualified generic call by its type argument (#3141) (2ab934c)

0.12.0

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)

0.11.5

Bug Fixes

  • codegen: copy a local array or map into the heap when assigned to a new() struct field (#3017) (d7867a1)
  • codegen: initialize a shadowing variable from the outer variable it reads (#3018) (4dee938)
  • codegen: keep the for_each element type across emitting a deep collection chain (#3028) (0dd2d79)
  • csv: reject malformed quoting in parse and read_file (#2988) (26452ad)
  • http: canonicalize response header names (#3057) (7ee2f99)
  • http: decode chunked response bodies and keep the last header (#3053) (adb45e7)
  • http: include a non-default port in the Host header (#3054) (dde6647)
  • http: return a specific error code and fixed message for each request failure (#3055) (a118f37)
  • http: return OutOfRange for a response over the 1 MB limit (#3056) (1428f3f)
  • http: send one Content-Type and drop caller-set Host, Content-Length and Connection (#3052) (eb51e23)
  • json: panic when json.parse input is not a valid JSON document (#2967) (04cfa05)
  • net: classify net.receive failures as Closed, Timeout or the system error (#3049) (0e11b71)
  • net: write the whole string in send and report a failed write (#3050) (77cbd9f)
  • stdlib: step past the stdlib header directory under Clang when the runtime is built from source (#3022) (66c2153)
  • typechecker: check func-typed generic parameter arguments against the bound type (#3026) (25568d5)
  • typechecker: detect duplicate map keys and when cases written as constants (#3031) (2f54c0f)
  • typechecker: reject a local redeclaring a generic parameter's name in the same scope (#3030) (f7a6d1f)
  • typechecker: reject a private type used as a generic type argument (#3027) (f746580)
  • typechecker: warn on a deprecated type in container, pointer, new, size_of, generic and alias positions (#3029) (cde660f)

Performance Improvements

  • driver: default to -O3 when the C compiler is GCC (#3020) (9e42a4f)
  • driver: reuse a cached runtime archive for a --cc compiler (#3021) (8812855)
  • json: copy unescaped runs with memcpy in json_append_escaped (#3024) (726f3bf)
  • runtime: count arena allocations with a flag on the arena (#3025) (06088f4)
  • runtime: cut per-thread state lookups under TCC (#3019) (901ec8a)
  • strings: find candidates with memchr in search, split and replace (#3023) (85fd2eb)

0.11.4

Bug Fixes

  • arrays: order a NaN after every other value in float sort, min and max (#2977) (2f8d8d8)
  • build: remove GCC 11 compiler and linker warnings on macOS (#3013) (81fa229)
  • cli: cast enum values explicitly in the verify test (8bc4325)
  • codegen: convert wide-integer constructors the way cast does (#2994) (4d82f34)
  • codegen: copy composite payloads when constructing a tagged enum variant (#2991) (6f6b52c)
  • codegen: copy nested storage out of arrays and maps results and generic returns (#2958) (5671579)
  • codegen: evaluate the argument of type_of, fields and size_of (#2992) (4c6b578)
  • codegen: iterate for_each over a string by codepoint (#3004) (d021de3)
  • codegen: panic when a string cast to a string-backed enum matches no variant (#3006) (f87492c)
  • codegen: panic when assigning the array or map being iterated in for_each (#2978) (aae3e2d)
  • codegen: pick the membership direction of a wide inline range from its step at runtime (#2996) (c9dece3)
  • codegen: print a bare nil as nil in println, print and string interpolation (#2985) (e1ae989)
  • codegen: restore the maps clear and is_empty branches removed in 60cfefc (d364798)
  • codegen: skip the for_each mutation check when storing a & parameter element temporary back (#2945) (1870525)
  • codegen: store a string-backed enum in map slots as a string (#3005) (20d0cae)
  • codegen: test membership in an inline range with a negative step (#2996) (1cf4616)
  • codegen: type a field read through a generic-typed value by its declared type (#2957) (c761bed)
  • codegen: undefine C library macros that share a name with an emitted identifier (#2961) (103ed06)
  • csv: drop a leading UTF-8 byte-order mark when parsing (#2987) (f31f3d2)
  • csv: quote a lone empty field so encode then parse keeps the row (#2986) (02d2825)
  • driver: build and link the runtime with GCC on macOS (bbf9e14)
  • driver: make the generated C and signature checks work under tcc (#3010) (e9f04f8)
  • encoding: panic on malformed hex in from_hex like hex_decode (#2966) (92310b8)
  • fmt: count characters, not bytes, in padding and the %s width and precision (#2962) (c783b22)
  • input: keep NUL bytes, drop CRLF terminator, add io.stdin_at_eof (#2993) (4102856)
  • io: reject io.copy_file onto the same file instead of truncating it (#2973) (33e4339)
  • io: return an error when io.make_dir_all's path is an existing regular file (#2974) (0448f1d)
  • json: panic when json.parse reads a number or null into a bool field (#2968) (a3b9a27)
  • json: panic when serializing a non-finite floating-point value (#2969) (025f9ab)
  • os: panic on an embedded NUL byte in os.exec's command or arguments (#2970) (81666fa)
  • parser: reject a default value on a mutable (&) parameter (#3002) (d898aa8)
  • platform: declare realpath on Linux under Clang (e936be2)
  • platform: route the crash signal name through a platform helper (#2881) (ac3cd1b)
  • regex: match whole UTF-8 characters instead of bytes (#2989) (600adab)
  • regex: support capture groups in the Windows regex shim (#2880) (ad02d80)
  • runtime: allow updating an existing key's value during map for_each (#2979) (ce85547)
  • sqlite: keep the full text value when a query result contains an embedded NUL byte (#2972) (e22d97b)
  • stdlib: panic on an embedded NUL byte in csv, sqlite, time and regex string arguments (#2971) (8ca2dbe)
  • stdlib: reject an embedded NUL byte in strconv number parsers and os env functions (#2954) (ecb7d0d)
  • stdlib: reject hexadecimal float input in strconv.to_f64 (#2955) (f293a2e)
  • stdlib: restrict the sys-relative libc header lookup under GCC to macOS (354e1b2)
  • stdlib: use gray overflow wrappers in time duration parsing (6e49916)
  • strconv: reject a 0x prefix in base 16 and a nan(...) payload (#2975) (5787dda)
  • strings: reverse by character so a multi-byte character stays valid UTF-8 (#2976) (e1054e6)
  • time: panic or error on i64 overflow in add_days, add_hours, start_of_day, end_of_day and parse_duration (#2990) (ec8febf)
  • time: panic when a timestamp is outside the range gmtime supports (#2965) (2d473c9)
  • typechecker: accept a mutable-receiver call through a const pointer to a mutable variable (#2998) (45b03e4)
  • typechecker: call a no-self struct function through an expression receiver and evaluate the receiver (#3001) (fab2451)
  • typechecker: reject a bool as an integer in call arguments and comparisons (#2983) (fb7aa73)
  • typechecker: reject a bool source in wide-integer constructors (66d8de6)
  • typechecker: reject a local declared with a parameter's name at function-body level (#2960) (d0c15fd)
  • typechecker: reject a mutable-receiver call through a pointer to a const variable (#2997) (c2e7709)
  • typechecker: reject a nil source in bool() and wide-integer constructors (26e1546)
  • typechecker: reject a non-bool condition in if, or and as_long_as (#2984) (6dbd088)
  • typechecker: reject a nonexistent struct function reached through an imported module (#3000) (78a0147)
  • typechecker: reject a single return value discarded by defer and ensure (#2953) (2abd6f7)
  • typechecker: reject a struct function or module function used as a value (#2999) (0940ca3)
  • typechecker: reject an integer in a struct-typed struct field initializer (#2980) (4610cb3)
  • typechecker: reject an integer where a struct is expected in call arguments, generic arguments and assignment (#2981) (3e0c229)
  • typechecker: reject calls through a bare func array element, map value, or loop variable (#2963) (0efaf9a)
  • typechecker: reject implicit conversion of an enum value to an integer or string (#3007) (056a4aa)
  • typechecker: reject mutating arrays and maps functions on a container reached through a const field or index (#2956) (023bf52)
  • typechecker: reject tagged enum, string and nil sources in cast, string(), bool() and wide-integer constructors (#2995) (9a09567)
  • typechecker: report an import after a declaration with its own error code (#2959) (7b2faa0)
  • typechecker: type or reject an arrays call whose result derives from an empty literal (#2964) (a4295b2)
  • typechecker: type-check assignments through a map element or an element's field (#2982) (f4269f8)

0.11.3

Bug Fixes

  • codegen: evaluate named arguments and struct literal fields in the order written (#2934) (3d79b02)
  • codegen: evaluate range() and arrays.insert_at() arguments left to right (#2939) (55ff2d3)
  • codegen: evaluate the index before the right-hand side in array element assignment (#2935) (0ad964b)
  • codegen: map each function's signature to its .gray line so coverage is keyed to .gray files (#2671) (c8a8a28)
  • codegen: maps.get_or_default() evaluates its default argument on every call (#2940) (0ae185e)
  • codegen: print an Error field of a struct as its message instead of the internal pointer (#2942) (04b47f2)
  • codegen: store a container element back after a & parameter call so a growing callee's write reaches it (#2945) (0b543bb)
  • typechecker: accept an f32 literal that rounds to the largest finite f32 (#2947) (cd35e7e)
  • typechecker: ensure with a multi-value call reports E5011 instead of E3040 advice that cannot apply (#2932) (0530ba3)
  • typechecker: reject Error values in array and map literals without a declared type (#2943) (4ad5f03)
  • typechecker: reject fallible and multi-value calls as operands of unary operators, range(), cast(), and member access (#2931) (5ec77b5)
  • typechecker: reject print and println of a composite containing a tagged enum (#2938) (d33dd07)
  • typechecker: report one error for a multi-value call returned from a multi-value function (#2933) (57d265e)

Performance Improvements

  • codegen: skip per-call arenas for self-recursive and call-composed allocation-free functions (#2710) (153f0c9)

0.11.2

Bug Fixes

  • codegen: copying an array field into a mut local and writing it back exhausts the arena (#2928) (934544c)
  • codegen: literal built from a const value or by-value parameter aliases it (#2912) (88f4fb9)
  • codegen: tagged enum payload bindings from an imported module get an unqualified type (#2930) (aca3745)
  • codegen: to_c_string returns a program-lifetime copy instead of a pointer into a reclaimable arena (#2721) (d498875)
  • csv: parse drops the trailing empty field of a row (#2792) (8e3b9b1)
  • io: write functions report success when the data never reached the file (#2831) (61592a8)
  • parser: return swallows the statement on the next line as its return value (#2926) (41b00c9)
  • typechecker: #json struct fields accept nested #json structs and arrays (#2759) (7a86492)
  • typechecker: for_each with both positions discarded warns its collection is unused (#2927) (e6f590c)
  • typechecker: mixed number types in a stdlib call report E5057 once (7b26ff8)
  • typechecker: move diagnostic messages into error_codes.h (#2890) (26f2184)
  • typechecker: tagged enum variant with a pointer payload cannot be constructed from another module (#2929) (49e1034)

0.11.1

Bug Fixes

  • codegen: accept a map literal or call result in http functions and json.pretty_print (#2904) (78d48a6)
  • codegen: cast a wide integer to f32 or f64 without the i64 range check (#2903) (7585d49)
  • codegen: cast between every pair of wide integer types and range-check the value (#2919) (8726d24)
  • codegen: convert each element when an array is cast out of a wide integer element type (14628bf)
  • codegen: convert each element when an array is cast to a wide integer element type (#2920) (069f247)
  • codegen: format a negative i8, i16 or i32 at its own width for %x, %X and %o (#2908) (f1c01e8)
  • codegen: panic when a negative signed scalar is cast to u128 or u256 (#2918) (ee0d386)
  • codegen: range-check a float cast to a wide integer (#2902) (96d0d1c)
  • json: panic when json.parse gets a value of the wrong JSON type for a field (#2911) (df03ce3)
  • json: panic when json.parse reads a number outside the range of an f32 field (#2910) (55cfc96)
  • json: panic when json.parse reads a number outside the range of an i128, u128, i256 or u256 field (#2909) (b47c2c3)
  • parser: accept a bare return followed by a semicolon (#2899) (e75087a)
  • parser: accept a leading ';' after '{' in struct and enum bodies (#2907) (e91c387)
  • random: panic when rand_i64, rand_f64 or rand_char get an empty range (#2906) (1c286a7)
  • random: panic with a dedicated code when choice gets an empty array (#2905) (9ae2e02)
  • runtime: panic instead of clamping when a string cast to i64 or u64 is out of range (0020699)
  • typechecker: allow cast from string to i128, u128, i256 and u256 (#2921) (32675f2)
  • typechecker: check the function signature passed to threads spawn and spawn_arg (#2889) (2587ebc)
  • typechecker: check the handle, pointer and number arguments of the sync, threads, atomic, mem, sqlite and server functions (#2916) (181c7f4)
  • typechecker: check the key, value and map arguments of the maps functions (#2915) (85ead06)
  • typechecker: convert a wide integer stored into a floating-point slot (#2901) (51a0b44)
  • typechecker: report a pointer-depth return mismatch once (#2896) (734bf67)
  • typechecker: report E4016 for an undefined tagged enum payload type (#2853) (2e0f0d7)
  • typechecker: report E4031 for a variable, constant, struct or enum name that two using modules both declare (#2798) (9c796c4)
  • typechecker: require [u8] for the binary decode functions (#2913) (ac738ad)
  • typechecker: type a literal as the wide integer binary encode functions take (#2914) (68a6a8b)

0.11.0

Features

  • grayc: support TinyCC as a C backend (#2826) (54b6498)
  • parser: allow ';' as an optional statement and member separator (#2590) (a882151)

Bug Fixes

  • arrays: order u64 arrays as unsigned and return the element type from get_sum, get_min and get_max (#2783) (869bc73)
  • arrays: sort and is_sorted arrays of i8, i16, i32, u16, u32 and f32 at their real width (#2781) (a74484e)
  • binary: take and return the named type in the 8- to 64-bit encode and decode functions (#2867) (fafac6b)
  • codegen: check that char(n) and casts to char receive a valid codepoint (#2857) (7d99777)
  • codegen: compare unsigned and signed integers by value (#2858) (d267dfc)
  • codegen: default an enum with an explicit first value to its first variant (#2844) (06e9fed)
  • codegen: emit a module-level mut's constant initializer without a runtime range check (#2872) (f08a941)
  • codegen: give a fixed-size array field N slots in new() (#2893) (bc5a770)
  • codegen: overflow- and zero-check compound assignment to integer map values (#2871) (282b5ec)
  • codegen: overflow-check unary negation of i128 and i256 values (311fc26)
  • codegen: print float, f32, and f64 through one width-aware formatter (890d3f5)
  • codegen: range-check narrowing casts from u64 and float sources before converting through int64 (#2856) (dade0c5)
  • codegen: read and write [f32] elements as float in random.choice and arrays.fill (#2849) (5c08674)
  • codegen: resolve the sqlite Database type to GraySqlite * (#2885) (56580dc)
  • codegen: shift sized integers at the operand's width and bound the shift amount by it (#2855) (957a572)
  • codegen: sort arrays of bool at their 1-byte width in sort_asc and sort_desc (#2873) (985e7f4)
  • codegen: stage [f32] values as float in arrays.insert_at and arrays.prepend (#2834) (1af5d92)
  • codegen: store fixed-size [f32, N] arrays as packed float (f7249ce)
  • codegen: support bitwise operators on i128, u128, i256 and u256 values (#2875) (ec9aa87)
  • codegen: zero-fill a fixed-size struct field given fewer elements than its length (1293138)
  • codegen: zero-filled [T, N] slots hold the element type's zero value (#2842) (4da468e)
  • math: panic on overflow in factorial, lcm, gcd, abs and neg (#2785) (3532e4c)
  • math: return the argument type from min, max and clamp (#2866) (a106897)
  • math: support i128, i256 and u128 arguments in abs and neg (#2874) (e279e66)
  • parser: accept a lowercase type alias as the first type in a multi-value return (#2850) (6821456)
  • parser: parse a fixed-size array of any element type (#2841) (cc44edc)
  • parser: stop an E3134 alias error from skipping the next declaration (#2897) (8d1aba8)
  • stdlib: make http and server share one HttpResponse type (#2886) (3c0331e)
  • tests: update codegen e2e tests to the one-signature error and threads.spawn (bc52de3)
  • typechecker: accept an array or map literal reassigned to a variable with sized elements (47bae94)
  • typechecker: check the length of a non-literal value stored into a fixed-size struct field at runtime (#2830) (64db2d2)
  • typechecker: enforce signedness for 128- and 256-bit integers in fmt %d and %u directives (6d582ff)
  • typechecker: give a narrow operand combined with a wide integer the wide type (73c6160)
  • typechecker: print the whole fixed-size array type in E3054 (#2894) (0ebcb1a)
  • typechecker: reject a one-argument random.rand_f64 or random.rand_char call with E5008 (#2882) (0285832)
  • typechecker: reject an alias whose target is not a type (#2891) (3255738)
  • typechecker: reject returning a wide integer as a narrower or differently signed integer (ea44ea3)
  • typechecker: report an f64 strings.repeat count or strings.slice bound once (#2878) (2dec0a7)
  • typechecker: report an undefined parameter or return type inside a func(...) type with E4016 (#2854) (68f5f66)
  • typechecker: require a ^i64 pointer argument for the 64-bit atomic functions (#2868) (82d6311)

Performance Improvements

  • typechecker: index file-scope const integers in a hash table instead of scanning them linearly (5836cd1)

0.10.0

Features

  • range: support i128, u128, i256 and u256 bounds (#2819) (098acc6)

Bug Fixes

  • build: link fmt.c into sanitizer test builds (#2803) (d76a07b)
  • codegen: copy a composite stored into or read out of a container element (#2799) (a3a7956)
  • codegen: evaluate the range end and step once before the loop (#2816) (9631122)
  • codegen: interpolate nested arrays, maps, and structs with the formatter println uses (#2793) (fe98fb9)
  • codegen: let a local binding hide a same-named member brought in by using (#2797) (20d0f38)
  • codegen: stop in/not_in and when-is range() leaking C errors on bigint bounds (#2819) (0fbac8b)
  • extern: probe extern signatures and match C errors under gcc as well as clang (#2805) (c8d5374)
  • stdlib: omit zero components from time.format_duration (#2800) (c72e74e)
  • typechecker: don't implicitly-declare an assignment target that names a global declared later (#2820) (968fc46)
  • typechecker: enforce const and read-only module variables on writes through a module-qualified path (#2773) (3403e43)
  • typechecker: reject a module-qualified type name passed to fields() (b34211c)
  • typechecker: reject a negative literal assigned to u128 or u256 (#2819) (34fe751)
  • typechecker: reject private struct, enum and alias names written in expressions (#2787) (ba21450)
  • typechecker: report a mismatched call argument once instead of twice (#2771) (9abf4d6)
  • typechecker: report the initializer's error, not an undefined variable, for a bare declaration with a void or unknown initializer (#2772) (e8504f5)
  • typechecker: report unused private functions and skip public functions of imported modules in W1003 (#2796) (bc66149)
  • typechecker: scope module imports to the file that declares them (#2769) (901c2f4)
  • typechecker: stop E6008 from rejecting writes into a module container's existing elements (#2821) (887f5f4)

Performance Improvements

  • codegen: emit no arenas or scope marks for allocation-free loops and ifs (#2813) (3453dfc)
  • codegen: skip the scope mark for functions that never allocate (ba6150f)
  • crypto: use ARMv8 SHA2 instructions for SHA-256 compression (#2818) (019cf66)
  • runtime: inline gray_scope_save and gray_scope_restore (#2814) (6618d18)
  • runtime: inline the array index bounds check with an out-of-line panic path (#2815) (34b925d)
  • runtime: un-inline gray_scope_save and gray_scope_restore (f48028e)

0.9.1

Bug Fixes

  • arrays: stop narrowing the chunk size of arrays.split_every to 32 bits (736d2f9)
  • codegen: accept any array expression as the second argument of arrays.is_equal (#2777) (2184861)
  • codegen: allocate stores into module-level containers outside the function scope arena (#2774) (f4421af)
  • codegen: allocate stores through a module-qualified variable outside the function scope arena (fd101ac)
  • codegen: emit an array element reached through a pointer as an lvalue (#2770) (8adcd8c)
  • random: stop narrowing the count of random.sample to 32 bits before the bounds check (9726d5f)
  • runtime: give array capacity overflow its own panic code instead of reusing P0035 (cf9b560)
  • runtime: read sized numeric array and map elements at their stored width in string interpolation (#2782) (3bfb3be)
  • runtime: stop narrowing int indexes and counts to 32 bits before the bounds check (#2784) (15b6e8b)
  • stdlib: check buffer-size arithmetic in strings.repeat and fmt.pad_left/pad_right/center (#2780) (312e16b)
  • stdlib: decode string escapes and keep nested values intact in json.decode and json.parse (#2791) (b1792d6)
  • stdlib: size arrays.flatten elements from the inner arrays instead of assuming 8 bytes (#2779) (4c98c83)
  • strconv: stop narrowing the base of to_int and to_uint to 32 bits before the range check (1b2d188)
  • typechecker: accept a nested array literal for [[T]] and map[K:[T]] when T is a sized numeric type (#2786) (7c1d751)
  • typechecker: check extern call argument kinds against the C parameter types (#2794) (089f8fb)
  • typechecker: check extern struct returns and c_string() arguments against the C return type (#2795) (3284983)
  • typechecker: keep const protection on a pointer through enum payloads, tuple destructures, returned aggregates and pointer-to-pointer (#2776) (6331565)
  • typechecker: reject an extern C value assigned to a map element or nested field (#2775) (bd69adb)
  • typechecker: resolve a func reference to a struct function through a module (#2788) (ce09da2)
  • typechecker: type arrays.split_every and arrays.pair as [[T]] for the input element type (#2778) (5618a6e)

0.9.0

Features

  • arrays: add binary_search, rotate, min_index, max_index (#2436) (474d171)
  • chars: add width, string_width for Unicode display width (#2638) (7b9d786)
  • json: struct field tags for #json serialization (#2722) (ad75a7c)
  • json: support enum fields in #json structs, serialized by backing type (#2564) (e63f1eb)
  • os: add home_dir, lookup_env, environ (#2438) (5870485)
  • structs: fixed-size array struct fields (#2609) (e84dea5)

Bug Fixes

  • arrays: correct byte/char stride in min_index/max_index/binary_search (#2436) (daee179)
  • arrays: correct byte/char stride in sort_asc/sort_desc (07ac8c1)
  • cli: keep #doc when another attribute sits between it and the declaration (#2762) (ae395f5)
  • cli: keep raw C compiler warnings off stderr for a build that succeeds (#2757) (f0918df)
  • cli: make gray check reach extern.func()/extern.CONST validation (7316919)
  • cli: make gray cross build produce a binary for the linux and mac targets (#2763) (ef0fdab)
  • cli: match the compiler's macro-redefinition warning by text both gcc and clang emit (36e0824)
  • cli: report a native crash and keep the program's real exit status (#2758) (f9fb2dc)
  • cli: report two imported C headers that declare a symbol differently (#2756) (a876c65)
  • cli: wire formatGraySource into gray fmt (#2690) (c1c3a7a)
  • codegen: compile an opaque runtime handle global declared with no initializer (#2760) (0e5966a)
  • codegen: defer value-less file-scope struct globals with array/map fields (eb072e9)
  • codegen: disambiguate same-named local C headers from different directories (#2729) (563fdd9)
  • codegen: generate a dedicated json.stringify path for arrays of #json structs (67ed49c)
  • codegen: keep file-scope struct globals' deferred-init placeholder a C constant (c381e06)
  • codegen: only range-check uint/u64 narrowing for extern-sourced values (701a98c)
  • codegen: parse a wide-integer parameter default through the bigint path (b640d67)
  • codegen: parse a wide-integer struct field default through the bigint path (#2750) (1b8091d)
  • codegen: range-check an extern C-interop result narrowed to uint/u64 by declaration or cast (a811fec)
  • codegen: range-check uint/u64 narrowing for extern C-interop values (#2726) (969dc24)
  • codegen: read is_sorted's narrower-than-int64 elements at their real width (8515371)
  • codegen: recursively default fixed-array fields when a struct is zero-constructed (1aa330f)
  • codegen: ring-buffer the module-qualified C type name in gray_type_to_c_codegen (fe9cbdc)
  • codegen: ring-buffer the user-struct C type name in gray_type_to_c_codegen (#2736) (d001707)
  • codegen: sort enum-element arrays at their real width in arrays.sort_asc/sort_desc (765f06f)
  • imports: resolve local extern import headers against the importing file's directory (#2729) (1b60e1b)
  • imports: warn instead of erroring on a directory-then-file redundant import (#2743) (a25d537)
  • json: scope #json field tag consistency (E3171) per struct (#2722) (89257a5)
  • lexer: don't lex !in as the not_in operator when 'in' starts a longer identifier (#2631) (73f2170)
  • main: diagnose a misspelled extern.func()/extern.CONST name (#2730) (2e0e805)
  • main: parse E5050 param count for C functions returning a function pointer (#2728) (ccdeaef)
  • main: stop E6015 help text from claiming a per-target import guard exists (#2734) (da14687)
  • parser: parse a hex/octal/binary literal wider than 64 bits into a wide integer (#2764) (76292c7)
  • runtime: make a bare panic() inside a #test fail only that test (#2761) (e39b5de)
  • stdlib: add unsigned paths to math.abs/min/max/clamp (#2737) (7ee9991)
  • stdlib: decode/encode UTF-8 codepoints in strings.to_chars/from_chars (#2747) (39e7b13)
  • stdlib: make time module's calendar/formatting functions UTC, not local time (#2753) (f824482)
  • stdlib: UTF-8-encode the pad character in fmt.pad_left/pad_right/center (#2748) (825b166)
  • typechecker: accept pointer parameters and returns in a C callback (#2742) (e02b327)
  • typechecker: apply E5051 fixed-array guard through pointer auto-deref (#2609) (6c8f33d)
  • typechecker: auto-address the receiver when a pointer-receiver struct function is called through an instance (#2744) (a417a50)
  • typechecker: catch E5051 through a fixed struct field passed by mutable reference param (84e7e18)
  • typechecker: check fixed-size struct field length on reassignment, not just construction (c13b979)
  • typechecker: coerce arrays.reduce's literal initial value to the accumulator type (#2741) (834888a)
  • typechecker: exempt int-backed enum arrays from the arrays sum/min/max numeric check (53f0c33)
  • typechecker: keep a const-sourced pointer read-only through function returns, struct fields, array elements and map values (#2766) (ad410ae)
  • typechecker: let #strict when over a bool subject be satisfied by handling true and false (#2751) (2944960)
  • typechecker: propagate E3154 stack-address-to-C guard through pointer-parameter functions (#2732) (c12a3a6)
  • typechecker: reject a #flags enum variant whose value is not a single bit (#2765) (9231c27)
  • typechecker: reject a literal zero/negative fixed-size array size (fe1d587)
  • typechecker: reject a multi-value or fallible call as a defer/ensure statement (#2745) (d3db697)
  • typechecker: reject a pointer to a const-declared variable passed to a function that writes through it (1a85922)
  • typechecker: reject a private func/const/mut used by bare name from a sibling file of its directory module (#2739) (2a401e6)
  • typechecker: reject arrays.fill on a fixed struct field when count doesn't match its size (e62c48b)
  • typechecker: reject bare function references to generic functions (#2735) (3456f9f)
  • typechecker: reject fallible/multi-return calls in parameter defaults (#2746) (e549305)
  • typechecker: reject string/array/map/struct C-callback params (#2727) (faad15a)
  • typechecker: reject struct-element arrays in arrays functions requiring a comparable type (c2c018e)
  • typechecker: report a generic function body's diagnostics once, not again per instantiation (#2749) (e51103c)
  • typechecker: require the #json attribute at json.parse/stringify call sites (3a9b350)
  • typechecker: resolve E3158 C-callback check through variable indirection (#2731) (3837f80)
  • typechecker: stop #strict on err.code from flooding 19 redundant E3056 errors (#2752) (e454f1e)
  • typechecker: stop E3163 from naming the same variable in both message slots (#2755) (2a9976e)
  • typechecker: stop rejecting a pointer passed through a callback-taking function whose callback is known and safe (#2754) (da75341)
  • typechecker: type-check struct field default values (#2740) (e879416)
  • typechecker: validate an extern C call's declared or cast type against the real C return type (#2738) (02dfa59)
  • typechecker: validate arrays.rotate's shift-count argument type (44aef60)
  • typechecker: validate C-callback return type for E3158 (#2733) (6c13f02)

0.8.4

Bug Fixes

  • cli: detect doc() attribute inside grouped #[...] lists (#2720) (662bf31)
  • fmt: preserve multi-line call/index argument indentation (#2723) (d51c113)
  • fmt: preserve multi-line collection-literal and boolean-chain continuations (#2723) (755c696)
  • fmt: stop corrupting block and line comments (#2603) (2288201)
  • interop: validate extern.* call arg counts against the real header (#2719) (1ea11af)
  • net: null-terminate net.recv's receive buffer (#2718) (f622c91)

0.8.3

Bug Fixes

  • cc: suppress incompatible-pointer-types and pointer-sign for C interop (ee7dd25)
  • codegen: coerce a literal needle/fill value for wide-int arrays (c44e750)
  • codegen: compare wide-int elements in arrays.contains/index_of/count (302c3ff)
  • handle wide-integer elements in arrays sort/query functions (c24df4d)
  • main: pass -iquote for local extern C header directories (2ee6b14)
  • parser: stop struct field-name error recovery from consuming the next field's type (80562e3)
  • typechecker: accept a mutable pointer dereference as a & argument (3359ee0)
  • typechecker: dispatch struct functions on index and nested-field receivers (#2626) (4e828f9)
  • typechecker: fold const bindings in the E3002 zero-divisor check (31fc172)
  • typechecker: preserve wildcard through array/map literal inference (a9605e5)
  • typechecker: range-check integer literal call arguments (E3036) (bbfdc6f)
  • typechecker: reject a const field or element passed to a mutable param (d17fd07)
  • typechecker: reject a const-pointee field/element passed to a & param (4a2492a)
  • typechecker: reject pointer-param Grayscale functions passed as C callbacks (1edfa9a)

Performance Improvements

  • cli: bake the embedded-runtime hash at build time, skip the re-walk (f67f719)
  • codegen: lower string interpolation to a single N-ary join (e465404)
  • codegen: shrink checked-arithmetic and panic-location emission (c665516)
  • codegen: skip arena management for non-allocating loop bodies (e5e2f65)
  • codegen: skip the per-call function arena for non-allocating scalar functions (41719eb)
  • codegen: watermark enclosing arena for if blocks inside loops (59b5609)
  • compiler: resolve the C compiler by PATH lookup, not a --version spawn (3efc88d)
  • driver: dead-strip unused runtime and stdlib from generated programs (dca6b78)
  • runtime: format into a stack buffer in gray_string_format (66b73ec)
  • runtime: mask instead of modulo in the map probe loop (7059e4e)
  • stdlib: branchless ASCII case and classification in strings (6276ec7)
  • stdlib: fill exact-size result arrays with memcpy, not a push per element (be839e9)
  • stdlib: type-specialized introsort for arrays.sort_* (ff072bd)
  • typechecker: finalize the identifier hashes before masking (170deea)
  • typechecker: grow the type pool instead of aborting at 4096 (3eb1879)
  • typechecker: index module-level vars and struct decls for the &mut checks (1079cb5)

0.8.2

Bug Fixes

  • cli: measure cc phase with a wall clock in --time (ccf4c42)
  • codegen: emit typedefs for all struct decls, not just the first 256 (#2712) (17a4968)

Performance Improvements

  • codegen: reset loop scratch arena per iteration instead of realloc (#2711) (9b92d95)
  • runtime: allocate gray_array_new backing store uninitialized (54e0bd7)
  • typechecker: cache mangled declaration names on the entry (#2703) (bbf1b27)
  • typechecker: cache the resolved module for the file under check (#2705) (656d965)
  • typechecker: first-character gate on integer type-name predicates (#2707) (57a0100)
  • typechecker: index struct decls by name (#2706) (f42d424)
  • typechecker: memoize typechecker_type_from_name (#2704) (5428822)

0.8.1

Bug Fixes

  • typechecker: correct garbled E3027 parameter name in bare-call diagnostic (#2700) (8cf8293)
  • typechecker: enforce E3027 for module-qualified calls (#2699) (2af6fa6)

0.8.0

Features

  • stdlib: add capture-group extraction to regex module (35593ac)
  • stdlib: add classification and escape functions to chars module (d0e043a)
  • stdlib: add count and escape to regex module (9f71fa0)
  • stdlib: add generate_v5 to uuid module (b44d03f)
  • stdlib: add to_bytes and from_bytes to uuid module (782fa5a)
  • stdlib: add version and timestamp inspectors to uuid module (2b766fa)
  • stdlib: add web-escaping functions to encoding module (7267dd5)
  • stdlib: expand os, time, random, arrays, crypto, csv, fmt stdlib modules (120db38)
  • stdlib: json.encode accepts every primitive type (edb594f)

Bug Fixes

  • arrays: read the real element type in contains/index_of/count/remove/get_sum/get_min/get_max (ec8975b)
  • codegen: escape the string in scalar json.encode (9bcd965)
  • codegen: evaluate return values before deferred calls (1a800e0)
  • codegen: evaluate return values before deferred calls (b8c0d33)
  • codegen: materialize each subscript's base in a chain on an rvalue (045c8f1)
  • codegen: parenthesize scalar when/is pattern expressions (c0bc132)
  • codegen: widen for_each-over-string bytes unsigned (d3b6abe)
  • compiler: compile generated programs with the runtime's POSIX feature macro (#2678) (f78cbf4)
  • lexer: allow char-literal escapes inside string interpolation (a9a1a61)
  • memory leaks in typechecker (c744f77)
  • parser: apply the last attribute in a full #[...] list (85067cf)
  • runtime: honor REG_NOTBOL in the Windows regex shim (9e3b9e9)
  • runtime: tear down the runtime via atexit so extern.atexit callbacks run (#2675) (dd1d1e3)
  • stdlib: apply RFC 4180 field quoting in csv.encode (718723b)
  • stdlib: keep regex anchors bound to the string ends during multi-match scans (52bc841)
  • stdlib: regex.split no longer splits on zero-width matches or drops characters (b742c2b)
  • stdlib: reject regex patterns using \d \w \s \b as invalid (d5280cd)
  • stdlib: render a nil UUID canonically in to_string and generate_compact (8e93a30)
  • stdlib: serialize regex operations across threads (54e65f1)
  • stdlib: size regex text buffers to the input instead of a fixed 8 KB (9ed531a)
  • stdlib: stop clamping regex capture groups to 64 (9b8ec80)
  • typechecker: check arena lifetime at pointer escape positions (#2696) (1c80c6e)
  • typechecker: flag addr(local) laundered through a func-typed parameter (#2692) (caa6f0b)
  • typechecker: guard signedness and narrowing on member assignment targets (#2641) (7707ed1)
  • typechecker: keep stdlib functions out of the user FuncSig table (7457d47)
  • typechecker: keep the pointer origin across a for_each loop variable (#2695) (fdc6baa)
  • typechecker: keep the pointer origin across a when payload binding (#2694) (29318b7)
  • typechecker: only reject an opaque-type struct literal when the module is imported (2496289)
  • typechecker: reject a struct literal of a stdlib opaque type (495f99e)
  • typechecker: reject an unqualified call two used modules both provide (E4031) (ef77a55)
  • typechecker: resolve arena-handle aliases in the lifetime checker (#2693) (6078fc4)
  • typechecker: trace pointer escape through opaque func-value calls (#2661) (556a955)
  • typechecker: type-check UUID and [byte] stdlib arguments (ed233cf)
  • typechecker: validate json.encode / csv.encode argument types (1b4087b)

0.7.0

Features

  • stdlib: add strings.Builder for amortized string assembly (#2637) (e7500f8)
  • typechecker: propagate a struct-field arena destroy across a call, and a mem-alloc buried in a returned literal (#2655) (3c84f3f)
  • typechecker: trace @mem arena destroy/reset across a function call (#2655) (1b71c2a)
  • typechecker: track a @mem pointer buried in a struct/array/map field (#2655) (25cb03f)
  • typechecker: track a @mem pointer buried in a tagged-enum payload (#2655) (fa0baf5)
  • typechecker: track a @mem pointer read back out of a multi-return temp (#2655) (4324597)
  • typechecker: track a mem-allocated pointer returned across a call, and an arena reached via a struct field (#2655) (4874b9c)

Bug Fixes

  • codegen: [f32]/[f64] arrays accept float literals and use packed float storage (#2645) (2dcb701)
  • codegen: arrays.append of an inline imported tagged-enum value emits valid C (#2618) (4fc102a)
  • codegen: bind wide-integer for_each loop variables as the bigint type (a95eadb)
  • codegen: cast multi-return func-typed callback calls to a matching anonymous struct (4effc92)
  • codegen: defer/ensure only runs for returns that reach it (#2619) (88d99f7)
  • codegen: derive the for_each map key binding's C type from the key type (#2624) (4e47e8f)
  • codegen: emit a literal string extern argument as a C string literal (#2682) (6492774)
  • codegen: emit tagged-enum union types in dependency order with structs and parenthesize payload literals (#2654) (6e8435e)
  • codegen: file-scope empty array literal uses the declared element size (#2620) (14e3e49)
  • codegen: guard field reads on a nil Error (239f5e5)
  • codegen: lower ErrorCode.<Variant> qualified selector to GrayErrorCode_<V> (482c746)
  • codegen: make a map index an lvalue so field/nested writes through it work (#2622) (33d8a10)
  • codegen: nil-check indirect func-field calls and fix pointer-deref field call cast (#2652) (c63ccf1)
  • codegen: non-empty integer/byte array literals use the annotated element width (#2644) (715ac71)
  • codegen: parenthesize struct-literal compound literals to survive macro argument splitting (#2632) (7f9bd66)
  • codegen: prefix entry-module file-scope globals to avoid libc name collisions (#2643) (9831f5d)
  • codegen: render #error_code enum values by variant name (2affdfd)
  • codegen: report source location for panics from stdlib and builtin C code (#2659) (2a30dd9)
  • codegen: size map key/value slots to the annotated width for sized-int and f32 types (#2646) (94b88b7)
  • codegen: stop emitting C const for scalar const-declared variables (628ff34)
  • codegen: stop treating a user-module import as a stdlib import for caller-arena wrapping (#2630) (eb8d21d)
  • imports: preflight extern import C headers with a Grayscale diagnostic (#2677) (c5dc32a)
  • mem: catch a @mem pointer dereferenced after an untraceable arena destroy (2001467)
  • module-system: resolve struct names inside func(...) type signatures (#2623) (8157d14)
  • parser: derive reserved-word check from lexer keyword table (#2674) (0117821)
  • parser: empty index expression 'arr[]' emits one diagnostic (#2615) (c6dc106)
  • parser: reject trailing tokens after the expression in ${...} (#2628) (199a726)
  • stdlib: flush stdout for subprocesses, prompts, and add flush() builtin (#2639) (2e562c9)
  • stdlib: forward stdlib headers that shadow a system header (#2676) (7109760)
  • stdlib: stop regex.find_all reading past its truncated text buffer (#2608) (29e4b5b)
  • typechecker: accept literals up to UINT64_MAX for uint and u64 targets (616e279)
  • typechecker: allow a concrete #error_code enum as a normal when subject (5edc3d5)
  • typechecker: arity-check or_return bindings against the call's non-error slots (#2621) (e1e5642)
  • typechecker: compute escape summary for wildcard-return functions (5108bde)
  • typechecker: distinct diagnostic for #strict on 'when err.code' (9a3b431)
  • typechecker: enforce the signed-to-unsigned guard in every value position (#2625) (9bf8bbf)
  • typechecker: flag duplicate when/is branches on enum subjects (#2629) (d2dcaf4)
  • typechecker: guard assignment RHS and struct-literal fields against multi-value calls (e2a6966)
  • typechecker: guard for_each collection and index positions against multi-value calls (361888c)
  • typechecker: guard while condition and map-literal keys against multi-value calls (#2617) (d894eaf)
  • typechecker: imported #error_code enum joins the ErrorCode value space (322337e)
  • typechecker: keep distinct #error_code enums from unifying with each other (3851558)
  • typechecker: loop premark misses a helper-mediated arena destroy (#2655) (78983ce)
  • typechecker: range-check arrays.append/prepend/insert_at element values against the element type (#2647) (541eff1)
  • typechecker: range-check integer literals in struct fields, map values, default params, return, and index assignments (#2640) (430dbd9)
  • typechecker: reject #error_code enum that is also #flags (56cb2d3)
  • typechecker: reject a C interop constant as an error() code (99f5b56)
  • typechecker: reject a local's address escaping through pointer parameters and returned heap-object fields (#2650) (bb94b8c)
  • typechecker: reject addr()/raw()/ref() of a string index expression (#2651) (e1b5f08)
  • typechecker: reject addr()/ref()/raw() of a stack variable passed to a C call (#2657) (ecfda90)
  • typechecker: reject enum/int mismatches in when/is patterns (1306369)
  • typechecker: reject Error as an array element or map key/value (6192220)
  • typechecker: render pointer/array/map types correctly in func-ref signatures (4a3a13b)
  • typechecker: require an explicit cast for unsigned-to-signed in every position (#2625) (d1b6a2d)
  • typechecker: resolve aliases before the E3153 container check (e94034c)
  • typechecker: resolve Error fields in any member-expr position (ac55be8)
  • typechecker: resolve func-ref calls in escape checks; fix scope bug from unresolvable-call fallback (#2655) (39a8cc4)
  • typechecker: run the param-escape check after instance-dispatch rewrite (f06b8a8)
  • typechecker: run the signedness-crossing check on call-initialized mut declarations (#2649) (f531c00)
  • typechecker: see through a func-ref call declared inside a helper's own body (#2655) (030e7bf)
  • typechecker: stop loop premark from double-flagging its own destroy as E3166 (#2655) (f8c887c)
  • typechecker: track ensure mem.destroy(a) in the within-function arena tracker (3957c56)
  • typechecker: track pointer origin through any unresolvable call, not per-shape (795ce32)
  • typechecker: track pointer origin through copy() and bare aggregate reads (0b420f5)
  • typechecker: track pointer origin through multi-return destructuring (de1a860)
  • typechecker: track pointer origin through tagged-enum variant construction (b737891)
  • typechecker: type-check non-primary return slots (68c85a6)
  • types: diagnose a local shadowing a C function called via extern. (#2683) (3694c73)
  • types: give extern. C call results a checked type instead of TYPE_UNKNOWN (ca8c7d6)
  • types: propagate multi-return arity for a func-typed callback destructure (ecf9276)
  • types: reject a C interop value bound to a wildcard ? parameter (#2679) (4ecc142)
  • types: reject named arguments in extern C interop calls (#2681) (9c9b7de)
  • types: run signedness guard for instance-dispatch call arguments (#2642) (90eb7c0)
  • types: type extern C constant access as a C interop value (#2673) (f3e06ac)

0.6.0

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)

0.5.5

Bug Fixes

  • codegen: a user function shadows a 'using'd stdlib function of the same name (#2580) (1465aa6)
  • codegen: build >64-bit integer literals as wide values in all positions (#2572) (b52d725)
  • codegen: make nested container fields usable through a ^T pointer (#2570) (86ba442)
  • codegen: mangle omitted array/map field element types in cross-module struct literals (#2575) (7a13926)
  • codegen: print string-backed enum struct fields and default them to the first variant (#2576) (fd86a00)
  • parser: accept a module-qualified key type in long-form map[K:V] (#2562) (a55f1bc)
  • typechecker: allow in-range integer literal reassignment to unsigned and narrower types (#2578) (3674165)
  • typechecker: only reserve a stdlib opaque type name while its module is imported (#2579) (cf6f7ce)
  • typechecker: reject #json struct fields with no JSON representation (#2563) (8cde7bf)

0.5.4

Bug Fixes

  • benchmarks: auto-reset fixtures and run workloads standalone (#2551) (004ad2c)
  • ci: declare strptime on glibc for time.parse (6cbd174)
  • codegen: bind map-value arrays to a temp for chained index and assign (#2550) (ed003bd)
  • codegen: defer non-constant file-scope initializers to global init (#2545) (e31df3c)
  • codegen: mask bit_not on u8 and u16 back to type width (#2553) (a73b10b)
  • codegen: read cast(arr, [T]) results with the element width, not int64_t (#2555) (a2c59d9)
  • codegen: read packed sized array elements at the real width in compound assign (0c93c5c)
  • codegen: resolve module-level var name when passed to a by-reference parameter (#2546) (5a5751b)
  • tests: fix stdlib time test (32dfb20)
  • threads: detect pthread_create failure instead of corrupting state (#2554) (6822591)
  • typechecker: reject cast() between a string-backed enum and an integer (#2536) (c467d11)
  • typechecker: reject non-integer arguments to char() (#2552) (6839bb1)
  • typechecker: resolve module-level var in member expr inside its own module (#2537) (2e16ffc)
  • typechecker: resolve type aliases inside map, sized-array, and func signature positions (#2524) (838f52a)
  • typechecker: warn when a variable is declared with no value (#2447) (f83e0a8)
  • windows: fix bug in time.c (d276f61)

Performance Improvements

  • benchmarks: add make benchmark real-workload suite (#2551) (ade370d)

0.5.3

Bug Fixes

  • codegen: report the written type name from type_of (#2519) (5974e27)
  • codegen: resolve a written struct name to its declaration (#2496) (5f3cbfd)
  • codegen: validate the value of a cast to an enum (#2531) (d618efe)
  • imports: reject importing the same module twice in one file (#2507) (2b07b2d)
  • parser: accept container type spellings in size_of() and cast() (#2532) (0f1e913)
  • parser: parse a struct literal whose type name starts lowercase (#2500) (d214532)
  • typechecker: answer type-argument positions from the declaration (#2538) (ff2a0c8)
  • typechecker: bind the receiver for an imported struct type (#2492) (b77c734)
  • typechecker: enforce private across module boundaries for structs, enums, and struct functions (#2505) (1afb08e)
  • typechecker: enforce private on bare names from using modules (#2520) (918edcc)
  • typechecker: land plain assignment to a module-level mut variable (#2508) (37644f3)
  • typechecker: let a local shadow a module of the same name (#2504) (4e5d15e)
  • typechecker: let a struct alias be used as a constructor (#2518) (68e4b11)
  • typechecker: mark addr() on a module-level constant as a const source (#2515) (6d88e10)
  • typechecker: reject a builtin function name as an alias name (#2530) (6dd4fbf)
  • typechecker: reject a file-scope constant forward reference (#2516) (8ca6f1d)
  • typechecker: reject a mismatched func ref in a struct literal (#2543) (a147c78)
  • typechecker: reject a public alias of a private type (#2533) (b86ef88)
  • typechecker: reject a reserved type name as an alias name (#2522) (d938222)
  • typechecker: reject a type name used as a value wherever it appears (#2535) (9711bb4)
  • typechecker: report modules whose mangled symbol names collide (#2499) (9c10989)
  • typechecker: resolve a struct alias used as a call qualifier (#2526) (71762dd)
  • typechecker: resolve a struct field's type through its alias (#2542) (e39b5cd)
  • typechecker: resolve alias targets in the declaring module (#2517) (0f9e25f)
  • typechecker: resolve aliases in the fields() type-name guard (#2525) (54a417a)
  • typechecker: resolve and validate the size_of type argument (#2528) (ac5d9f9)
  • typechecker: resolve type aliases in the cast target (#2523) (0b8f498)
  • typechecker: resolve types in a module whose name has an underscore (#2514) (ed4dab9)
  • typechecker: return a pointer from mem.alloc (#2544) (c67692a)
  • typechecker: skip value resolution for <?> type arguments (#2539) (2b9a9a5)
  • typechecker: validate that a cast target names a type (#2534) (2264e4a)

Performance Improvements

  • main: parse arguments into a CompilerOptions struct (b09cbb4)
  • parser: extract the import resolver out of main() (4df828e)
  • runtime: remove unused GRAY_MAX_INLINE_ELEM_SIZE (5384391)
  • typechecker: rename operator_to_string to operator_display_name (03e84a3)
  • util: remove unused diagnostic_warning_help (ff65f8a)

0.5.2

Bug Fixes

  • codegen: emit function forward declarations in their own module (#2485) (b43167b)
  • codegen: emit the mangled symbol for ref(name) inside a module (#2474) (1ed61cb)
  • codegen: resolve unprefixed type names in scope before guessing (4ad74ec)
  • codegen: type an array or map element pointer by its element type (#2497) (fac035e)
  • imports: reject an import of the program's entry point (#2502) (c11883b)
  • imports: report a failed import once, in the file that contains it (#2480) (8d05933)
  • imports: validate and bind the module name at the import site (#2501) (50cf054)
  • typechecker: check argument count on module-qualified calls (#2490) (c3a7333)
  • typechecker: check argument types on module-qualified calls (#2487) (51f4f27)
  • typechecker: check every leaf of a container type, and type bare func (9afa2d1)
  • typechecker: declare a variable whose member initializer failed (b69a7c0)
  • typechecker: enforce private on module-level variables and constants (#2468) (3f75826)
  • typechecker: mark an import used by a container or pointer type (#2491) (d405036)
  • typechecker: mark an import used by a qualified func reference (fa7d781)
  • typechecker: mark an import used when a bare name resolves through using (ab8b2b0)
  • typechecker: name a function as written in diagnostics (#2485) (1954727)
  • typechecker: name the module when two types share a name (#2488) (038d0e4)
  • typechecker: name what a module member is when rejecting assignment (9e6a865)
  • typechecker: reject an undefined lowercase type name (2b72c46)
  • typechecker: reject concrete return type when returning the type argument (#2461) (67e1f1d)
  • typechecker: reject unresolvable module-qualified calls (#2463) (9737079)
  • typechecker: report a private type once, at the annotation that names it (#2506) (629f419)
  • typechecker: report a struct or enum return mismatch once (#2462) (c297392)
  • typechecker: report an unknown module member (bba9445)
  • typechecker: report an unused function in its own file (#2471) (c4e10b5)
  • typechecker: report an unused variable in its own file (#2471) (9615d34)
  • typechecker: resolve bare sibling calls in struct function bodies (#2459) (9c050bc)
  • typechecker: run generic handling on module-qualified calls (#2460) (f1e6967)
  • typechecker: treat ref(mod.func) as the function reference it is (4f89bea)

0.5.1

Bug Fixes

  • typechecker: reserve all builtin function names (999e0cc)
  • typechecker: reserve all builtin function names (cf71f7a)

0.5.0

Features

  • add #deprecated attribute (#2384) (ebc69ef)
  • lang: add keyword aliases fn, elif, switch, case, defer (#2441) (cb15833)
  • stdlib: add math float primitives, power-of-two helpers, and bounds constants (#2435) (141814b)
  • stdlib: add runtime module (#2310) (1c36f59)
  • stdlib: add runtime module for compiler-managed arena and execution introspection (#2310) (ddc16d5)
  • stdlib: add strings split, compare, and case functions (#2433) (2501ddf)
  • stdlib: add time.parse, is_leap_year, since functions (#2439) (4486647)
  • typechecker: add #deprecated attribute for functions, structs, and enums (#2384) (646c93e)

Bug Fixes

  • codegen: escape array copy-assignment to outer arena inside loop scope (#2430) (949dbf1)
  • codegen: escape container field writes to heap arena through new()-tracked pointers (#2424) (5ea3b4e)
  • diagnostics: restore --> file:line:column format string (#2443) (3bef9f4)
  • fmt: translate %b to a real C conversion and require a bool argument (#2428) (0a3908b)
  • imports: rewrite wrapped type names in local var-decl annotations (#2427) (68581b2)
  • lang: reserve is and default as identifiers (#2454) (d079a70)
  • lexer: accept exponent notation in float literals (c7050f3)
  • parser: diagnose misplaced #deprecated and #discard attributes (1b7bd06)
  • parser: reject float literals that overflow a 64-bit float (10f92af)
  • parser: reject reserved keywords as destructuring binding names (#2451) (912ed0a)
  • parser: report the keyword spelling the user typed (8202a6f)
  • parser: require declaration name and type on the same line (#2455) (02c5336)
  • runtime: keep runtime.alloc_count cumulative across loop bodies (d0ae993)
  • stdlib: drop trailing separator in strings.to_snake_case (bef0cfd)
  • stdlib: reject impossible calendar dates in time.parse (12c11b5)
  • tests: deflake is_alive check by spawning a slow worker (5f31477)
  • tests: stop using reserved keyword 'fn' as a variable name (9349e7f)
  • tests: use one membership operator spelling per file (1952366)
  • typechecker: accept nil literal for pointer-typed call arguments (#2426) (049ff0d)
  • typechecker: enforce !in/not_in keyword alias consistency (#2440) (8779ee6)
  • typechecker: guard constant folding against int64 overflow UB (#2392) (eda3e5b)
  • typechecker: recognize stdlib opaque types in new() across all import forms (#2445) (f1791ea)
  • typechecker: resolve stdlib multi-return through the using path (9d4dcf5)
  • typechecker: scope E4014 shadowed-import check to the declaring file (#2429) (89a0a2c)
  • typechecker: show unqualified name for undefined module-qualified types (#2444) (2a99923)
  • typechecker: track pointer origin through assignment for E3063 and E3097 (#2410) (71a1431)

0.4.1

Bug Fixes

  • build: derive sanitizer runtime test sources from one list (#2389) (873ccb9)
  • build: route strndup through the platform layer for MinGW (#2391) (fb166bc)
  • ci: build release artifacts on runners matching the target arch (#2393) (80bc527)
  • codegen: arrow through p^.field on map key assignment (#2400) (732445b)
  • codegen: choose the wide-integer constructor from the source type (#2408) (acb29f1)
  • codegen: escape map assignment copies to the outer arena (#2399) (ea0955f)
  • codegen: give tagged enums their real C type as map values (#2320) (9f4293c)
  • codegen: guard the real array when for_each iterates a field path (#2397) (c8f8371)
  • codegen: initialise container fields a struct literal omits (#2402) (15c3ff9)
  • codegen: keep block temporaries alive in caller-arena functions (#2377) (11b1231)
  • codegen: keep maps mutated through pointers in a live arena (#2380) (008c29e)
  • codegen: route mutable call arguments through one shared helper (#2403) (7e7346c)
  • codegen: run mutable-reference calls in the function arena (#2295) (4150314)
  • codegen: take container argument addresses off the pointer (#2379) (d13751f)
  • codegen: type an empty map literal from its assignment target (#2401) (e36f03e)
  • imports: count struct field types as a use of their module (#2375) (e9c8943)
  • imports: remove the fixed caps on import and directory-file counts (#2416) (30e7c04)
  • imports: rewrite imported type names in struct declarations (#2376) (f7a2cb5)
  • parser: check multi-var bounds before writing to names/types (#2413) (11db2f5)
  • parser: grow the using statement's module list (#2412) (cb39f5b)
  • parser: initialize in_interp in parser_create (#2394) (46239a6)
  • parser: mark the or_return temp synthetic (#2386) (e48f671)
  • runtime: allow arrays.append during for_each iteration (#2387) (4a2f150)
  • runtime: deep-copy map string keys into the map's arena (#2395) (ddc9a0a)
  • runtime: grow arrays in their owning arena (#2378) (f4e2b43)
  • stdlib: use _getpid on MinGW instead of unavailable getpid (677e2fd)
  • support tagged union enums across module boundaries (#2318) (a9a6f4e)
  • typechecker: check signatures on stdlib calls made by bare name (#2417) (0412f8c)
  • typechecker: E3001 should name the value to cast, not the target (#2408) (e950c97)
  • typechecker: enforce reserved 'gray' prefix (#2386) (705ea61)
  • typechecker: negate literal INT64_MIN through unsigned arithmetic (#2414) (b286e36)
  • typechecker: reject interpolating arrays/maps of tagged enums (#2398) (726c72a)
  • typechecker: reject type names as when subjects and non-string error() args (#2419) (888d1ea)

Performance Improvements

  • lexer: intern identifiers and bypass arena copies for keywords (#2144) (6e07382)
  • runtime: make map removal O(1) instead of O(n) (#2147) (a62ed3c)

0.4.0

Features

  • attrs: add #discard attribute for unused return values (#2139) (94ad4fd)
  • builtins: add fields() builtin for struct field introspection (#2220) (a64c6db)
  • builtins: add system() builtin and document raw() (#2221) (12d460f)
  • lang: make variable declarations mutable by default (#2087) (5139454)
  • mem: add raw() builtin for unchecked pointer access (#2194) (095c958)

Bug Fixes

  • build: reject unknown make targets before running anything (#2370) (e9111bd)
  • codegen: bind map to temp in 'in' check to avoid rvalue address (#2315) (7a5a22d)
  • codegen: emit element-wise conversion for array casts (#2371) (33b1eac)
  • codegen: emit lvalue-safe code for ++/-- on struct fields through pointers (#2358) (7e41eb1)
  • codegen: emit tagged enum typedefs after struct body definitions (#2262) (15f7868)
  • codegen: forward-declare tagged enum types for self-referential payloads (#2319) (6bc4f51)
  • codegen: handle dereference args in raw() and addr() (#2322) (7fac2e5)
  • codegen: handle dereferenced container pointer operations (#2346) (acd78f7)
  • codegen: raw() on const struct no longer leaks C error (#2345) (d6fbe60)
  • codegen: rewrite cross-module type refs in merged imports (#2294) (cd91725)
  • codegen: scope-aware raw variable tracking for shadowed pointers (#2324) (928e6b2)
  • codegen: skip nil check for inline raw() dereference (#2323) (a4b379b)
  • codegen: skip struct deep-copy escape for pointer type assignments (#2317) (8df341c)
  • codegen: update raw status on pointer reassignment to addr/raw (#2325) (c86d1c0)
  • codegen: use dot access for multi-return temps with pointer types (#2314) (3299004)
  • parser: allow mut-less array declarations without triggering E2075 (#2363) (f173be9)
  • parser: allow repeated mut/const in multi-var declarations (#2349) (d6b076f)
  • parser: allow size_of(^T) pointer type expressions (#2353) (29c1ddf)
  • parser: reject #discard attribute on struct fields (#2360) (e4794d1)
  • tests: update strconv from_float expectation to match shortest-roundtrip output (#2337) (8f44593)
  • typechecker,codegen: allow ++/-- on pointer dereference targets (#2351) (db1139e)
  • typechecker: auto-dereference pointers from expressions, not just variables (#2355) (333b56c)
  • typechecker: propagate expected type for struct field array initializers (#2263) (85ca91e)
  • typechecker: reject bare pointer as if/for condition (#2356) (9371df9)
  • typechecker: reject different enum types in inline array literals (#2368) (6604a6f)
  • typechecker: reject different struct types in inline array literals (#2367) (1b9d782)
  • typechecker: reject dot-notation calls on non-struct variables (#2354) (56d9b88)
  • typechecker: reject empty inline array literals with no type context (#2369) (2a2c2fa)
  • typechecker: reject import statements after file-scope declarations (#2364) (66f74dd)
  • typechecker: reject int/uint mixing in inline array literals (#2366) (5a09c47)
  • typechecker: reject mixed pointer element types in array literals (#2359) (7437a18)
  • typechecker: reject nested array literals with mismatched element types (#2365) (a6eb829)
  • typechecker: reject ref() reassignment with incompatible signature (#2350) (9cbe510)
  • typechecker: reject type mismatch on pointer dereference assignment (#2342) (49e8541)
  • typechecker: reject type names as arguments to raw() and addr() (#2343) (42f48d8)
  • typechecker: reject type names in fields() builtin (#2361) (c712784)
  • typechecker: reject zero-arg calls to builtins that require arguments (#2344) (7188dbd)
  • typechecker: use cross-module-aware type comparison in assignments and array literals (d761ac8)
  • typechecker: validate argument count and types for ref() calls (#2347) (c831255)
  • typechecker: validate field access through explicit pointer dereference (#2357, #2352) (0c15217)

Performance Improvements

  • codegen: replace linear scans with bsearch for alias and enum lookups (#2331) (b38e03d)
  • stdlib: fix insert_at() overflow UB and use panic infrastructure (#2335) (6b41915)
  • stdlib: iterate order array instead of capacity in JSON map encoders (#2333) (45d2d94)
  • stdlib: replace O(n²) deduplicate with O(n) hash set (#2334) (63d1b47)
  • stdlib: use uninitialized arena alloc for immediately-overwritten buffers (#2332) (5f4cf54)
  • typechecker: extract mark_import_used() to replace 10 inline loops (#2330) (b806c9d)

0.3.0

Features

Bug Fixes

  • build: make install work on Windows (7580baf)
  • cli: embed runtime archive on Windows and shared util headers (32a60b2)
  • cli: prefer a repo-local grayc build over the embedded compiler (ef9dec3)
  • cli: report CPU, RAM, kernel, and compiler on Windows (3f361cb)
  • codegen: mangle identifiers the C standard defines as macros (feeeb04)
  • codegen: materialize rvalue arguments as compound literals (0370551)
  • codegen: pass 64-bit values to upgraded fmt directives (647456d)
  • codegen: resolve struct function names through using-modules (#2291) (e53c25c)
  • codegen: zero-initialize codegen state (a1284f2)
  • compiler: build generated programs with gnu11 and -static on Windows (7c9a49f)
  • compiler: find C compilers that are not on PATH on Windows (8fd81a5)
  • compiler: resolve util headers when building runtime from source (585fe26)
  • runtime: use unsigned limb arithmetic in i128 add/sub/neg (5ad92a7)
  • stdlib: reach the system math.h from the math module header (05e0f72)
  • stdlib: use the system CSPRNG for random seeding on Windows (ce46d5d)
  • stdlib: use the system CSPRNG for uuid and crypto on Windows (d2e9d57)
  • typechecker: unify cross-module enum type identity (bffb8b0)
  • typechecker: unify cross-module enum type identity (#2290) (7de0d67)

0.2.2

Bug Fixes

  • cli: print error message for unknown subcommands (#2288) (d4a2226)
  • codegen: add char/byte element types for arrays.append/insert_at/prepend (#2297) (8092089)
  • codegen: add missing element types for arrays.fill (#2299) (2a52728)
  • codegen: emit concrete enum type in arrays.append/insert_at/prepend (#2242) (7993715)
  • codegen: emit concrete enum type in arrays.append/insert_at/prepend (#2242) (0006121)
  • codegen: use correct C types for wide int arrays.append/insert_at/prepend (#2298) (f89a3a8)
  • codegen: use correct element size for enum array interpolation (#2248) (dda344e)
  • parser: correct or_return fallback count when user provides error value (#2247) (e0cb3e9)
  • parser: parse compound types in tagged enum payloads (#2287) (8789d88)
  • stdlib: add parameterized query API to sqlite module (#1690) (55930b0)
  • stdlib: add parameterized query API to sqlite module (#1690) (b772cc7)
  • stdlib: unescape doubled quotes in csv.parse() quoted fields (#2239) (84561c0)
  • stdlib: unescape doubled quotes in csv.parse() quoted fields (#2239) (cc184a8)
  • tests: register unused buffer test functions in test_util (e55acf1)
  • typechecker: allow explicit deref before struct function calls (#2244) (06e6ab6)
  • typechecker: correct E3001 narrowing hint to use cast() syntax (#2264) (77a78ba)
  • typechecker: emit W3005 for implicit enum selectors and tagged enum patterns in when/is (#2259) (1b28944)
  • typechecker: reject multi-return functions in 5 expression contexts (#2260) (fdbeeb4)
  • typechecker: reject tagged enums in interpolation and map values (#2261) (de576aa)
  • typechecker: resolve implicit enum selectors in map key bracket access (#2246) (93732d9)
  • typechecker: resolve implicit enum selectors in map key bracket access (#2246) (126f6fc)
  • typechecker: resolve implicit enum selectors in map literal values (#2249) (ceaddcd)
  • typechecker: resolve implicit enum selectors in struct field defaults (#2223) (96a410e)
  • typechecker: resolve implicit enum selectors in struct field defaults (#2223) (98763db)

0.2.1

Bug Fixes

  • codegen: emit wide integer intrinsics for struct field access (#2224) (61d0962)
  • codegen: string() on char now returns the character, not the codepoint (#2238) (fb2b6fd)
  • codegen: use bigint to_string for wide integer fields in struct printing (#2230) (ff53192)
  • codegen: wrap left operand in parens for float/unsigned division zero-check (#2243) (481c8f0)
  • parser: handle module-qualified function calls in for_each iterable (#2245) (a960715)
  • stdlib: respect explicit seed in rand64 for deterministic output (#2231) (6c3af87)
  • stdlib: use 64-bit RNG in rand_int for full-range support (#2231) (eef9972)
  • tests: update tests for narrowing checks on reassignment (7d3c9cc)
  • typechecker: add E3100 check for type names in struct-namespaced calls (#2229) (eee3976)
  • typechecker: reject array reassignment with mismatched element types (#2235) (b2a471d)
  • typechecker: reject cross-enum type reassignment (#2234) (176309c)
  • typechecker: reject map reassignment with mismatched key or value types (#2236) (fa29783)
  • typechecker: reject numeric reassignment with narrowing or signedness mismatch (#2232) (8de1c91)
  • typechecker: resolve type aliases in map key validation and map value lookup (#2237) (c1ebcab)
  • typechecker: validate arrays.map callback return type matches element type (#2240) (1f8ef21)
  • typechecker: validate arrays.map callback return type matches element type (#2240) (5e5c711)
  • typechecker: validate arrays.reduce callback return type matches accumulator (#2241) (ef4ca05)
  • typechecker: validate arrays.reduce callback return type matches accumulator (#2241) (27b7f28)

0.2.0

Features

  • builtin: extend new() to support all types (#2193) (6e62ec7)
  • cli: add cross-compilation support via zig cc (#2093) (ff6a08e)
  • lang: add type aliasing with alias keyword (#2136) (6d244d8)

Bug Fixes

  • cli: extract #doc attributes from file-scope variables (#2196) (786c724)
  • cli: restrict project names to ASCII alphanumeric, hyphens, and underscores (#2175) (09c2392)
  • codegen: recognize bigint comparisons as bool in println (#2217) (1307f12)
  • lexer,parser: skip nested strings when tracking interpolation brace depth (#2161) (6043334)
  • parser: support chained member access in for_each collection (#2190) (2246564)
  • runtime: add iteration guard to maps.clear (#2187) (c1eaf00)
  • stdlib: eliminate TOCTOU race in thread detach cleanup (#2181) (99d3080)
  • stdlib: seed PRNG with arc4random/urandom instead of time(NULL) (#2180) (fb64fff)
  • typechecker,codegen: allow explicit type annotations for stdlib opaque types (#2216) (f946806)
  • typechecker: propagate const_source through pointer assignment (#2211) (d232152)
  • typechecker: remove dead E3067, fix E4021 cross-module match, rename E4006 test (#2226) (1844f8a)
  • typechecker: require explicit type on file-scope const primitives (#2120) (9d6504b)
  • typechecker: restore struct context during generic re-check to prevent spurious E4017 (#2197) (fb6e62f)
  • typechecker: revert #2149 optimization that caused NULL result segfault (0fa296b)
  • typechecker: support type parameter forwarding between generic functions (#2059) (376fc83)

Performance Improvements

  • runtime: add gray_arena_alloc_uninitialized to eliminate redundant zeroing (#2151) (567ef36)
  • typechecker: cache typechecker_lookup_using_constant result (#2149) (ad26cf3)

0.1.4

Bug Fixes

  • cli: reject legacy EZ releases in update checks (e8fa984)
  • cli: reject legacy EZ releases in update version checks (2aca3cf)

0.1.3

Bug Fixes

  • codegen: emit overflow checks for compound assignment through pointer dereference (#2164) (f3d4624)
  • codegen: use gray_string_concat for interpolation to preserve null bytes (#2195) (f0951b8)
  • parser: enforce 64KB limit on string interpolation expressions (#2177) (43e05c3)
  • tests: correct e2e test count double-counting in test_e2e_divide_by_zero (46acb35)
  • typechecker: allow addr() on const variables, catch mutation at write sites (#2191) (626809a)
  • typechecker: catch const mutation through nested access and postfix (#2162) (dbb9df5)

0.1.2

Bug Fixes

  • cli: filter releases to grayscale-v* tags, excluding legacy EZ releases (e3805ce)
  • cli: filter releases to grayscale-v* tags, excluding legacy EZ releases (#2201) (05636ae)

0.1.1

Bug Fixes

  • codegen: decrement .iterating guard on early return from for_each (#2163) (ff2581d)
  • codegen: scope ref_vars and bigint_vars per function to prevent cross-function leaks (#2142) (6e59b16)
  • codegen: use 64-bit shift for flags enum bit values (#2186) (04facce)
  • lexer: cap identifier length at 255 characters (#2182) (eef5f87)
  • lexer: saturate line and column counters at INT_MAX (#2183) (1209418)
  • parser: add recursion depth limit for block statement nesting (#2168) (738a388)
  • parser: cap array type nesting depth at 64 levels (#2169) (3101a8f)
  • parser: replace strdup with arena allocation in error paths (#2184) (a92d62f)
  • runtime: correct 256-bit subtraction borrow propagation (#2192) (5a77320)
  • runtime: include source location in runtime panics (#2188) (714accf)
  • runtime: panic on wide integer division by zero (#2178) (7056543)
  • runtime: prevent int32 overflow in array capacity doubling (#2166) (c16947b)
  • runtime: prevent size_t overflow in arena allocation check (#2171) (5001941)
  • runtime: validate digits in bigint decimal parser (#2179) (9ded657)
  • typechecker: allow bitwise operators on #flags enums (#2133) (a57e764)
  • typechecker: auto-deref pointer receivers for struct function dispatch (#2131) (889be08)

Performance Improvements

  • codegen: single categorization pass over program statements (#2148) (4a0ffc6)
  • parser: remove prescan that double-lexed entire source file (#2143) (cc102eb)
  • typechecker: table-driven stdlib return type resolution (#2145) (6b5c27c)

Documentation

  • regenerate ERRORS.md from error_codes.h (57b2e2b)
  • regenerate ERRORS.md from error_codes.h (1139ae5)
  • update CONTRIBUTING.md project structure to reflect current layout (04b6580)
  • update tagline (5c2f4f6)

0.1.0

Features

  • stdlib: add write_bytes(), append_bytes(), temp_file(), temp_dir() to io module (6e761f5)
  • stdlib: add write_bytes, append_bytes, temp_file, temp_dir to io module (#1868) (5875f3e)

0.0.4

Bug Fixes

  • codegen: evaluate when match expression once into a temporary (#2126) (50ea594)
  • codegen: hoist map collection into temporary for for_each iteration (#2128) (358ff60)
  • codegen: inject default params for struct function calls (#2130) (187e5bc)
  • parser: emit E2002 for type keywords as enum binding names (#2129) (9bfe428)
  • typechecker: add child scopes for while and loop bodies (#2127) (aa7e86e)
  • typechecker: emit E3040 for multi-return calls in aggregate contexts (#2114) (013566b)
  • typechecker: emit E3130 for bare func as struct field type (#2121) (ec7232c)
  • typechecker: reject global constant forward references (#2132) (05865bc)
  • typechecker: validate types for compound assignment operators (#2125) (307ce27)

Documentation

  • regenerate ERRORS.md from error_codes.h (c09d816)
  • Updated STANDARD.md (456fef5)

0.0.3

Bug Fixes

  • cli: suppress usage text on runtime panic exit (bc0322b)
  • codegen: add instance dispatch for struct functions (134ff8a)
  • codegen: add source location to runtime panics (#2113) (f1e1790)
  • codegen: correct buffer size for wildcard function name mangling (649c958)
  • codegen: include bigint.h unconditionally as a core header (2c87be0)
  • codegen: inject instance for all struct function dispatch patterns (42bc3ee)
  • codegen: inject self param for both mutable and immutable struct functions (5f528e3)
  • codegen: preserve module prefix for user-defined types in type resolution (f19c004)
  • codegen: prevent infinite recursion in cross-module struct type resolution (2d333cd)
  • imports: detect module name collisions across import statements (8e1cca4)
  • parser: reject wildcard ? in struct field types (#2079) (f0e55f4)
  • parser: use correct length when stripping .gray extension from imports (b2297f0)
  • runtime: add char and byte variants for array contains operator (d220201)
  • runtime: add memory barrier to ARM64 CAS failure paths (#2069) (0fd1da3)
  • runtime: make spinlock_destroy idempotent to prevent double-free crash (#2068) (79687e7)
  • stdlib: resolve isfinite linker failure on macOS arm64 (700fa79)
  • stdlib: use overflow-checked subtraction in time.diff (#2067) (328f2be)
  • tests: resolve 6 failing integration tests (5f20f14)
  • test: use correct endpoint for HEAD request in http_custom_headers (7e9e89c)
  • typechecker: add arg type validation for stdlib functions missing coverage (d3a4114)
  • typechecker: emit E3027 for non-self instance dispatch with & params (#2116) (3df4549)
  • typechecker: register inferred-type vars from wildcard expressions (#2080) (19b05ee)
  • typechecker: reject runtime function calls in const initializers (#2104) (00aa411)
  • typechecker: route instance dispatch through semantic analysis (10c48b3)
  • typechecker: validate arg types for time.diff, os.set_env, os.unset_env (#2064) (ef12499)
  • typechecker: validate callback param types for arrays.any/all/filter/map/reduce (#2063) (ba32c3e)

Performance Improvements

  • typechecker: free owned ret_types arrays in scope_destroy (#2071) (663dba1)

Documentation

  • regenerate ERRORS.md from error_codes.h (0138049)

0.0.2

Bug Fixes

  • compiler: suppress -Winfinite-recursion warning from leaking to user output (#2102) (69729f5)

0.0.1

The Grayscale Programming Language — formerly known as EZ.

Grayscale 0.0.1 is the first release under the new name. The language, compiler, and tooling are identical to EZ 3.9.0 with the following changes:

  • Language renamed from EZ to Grayscale
  • CLI binary renamed from ez to gray
  • Compiler binary renamed from ezc to grayc
  • File extension changed from .ez to .gray
  • Runtime library renamed from libezrt.a to libgrayrt.a
  • All ez_ / EZ_ prefixes renamed to gray_ / GRAY_
  • Repository moved to grayscale-lang/grayscale

See tag ez-3.9.0-final for the last EZ release.

Prehistory (as EZ)

The following changelog entries are from the project's prior life as EZ.

3.8.6

Bug Fixes

  • add depth limit to json.is_valid to prevent stack overflow on deeply nested input (#2020) (0914ab7)
  • add optional host parameter to net.listen() and server.listen() to allow interface-specific binding (#2017) (63e84e6)
  • add scope_destroy() to release scope memory at all typechecker call sites (b6a1ac6)
  • add type_pool_reset() to free heap strings from type pool on shutdown (f9ef806)
  • add typechecker_free() and typetable_free() to release typechecker memory (dce12dc)
  • cap HTTP server at 1024 concurrent connections and apply 30s read timeout per connection (#2011) (7d2d30d)
  • cap os.exec stdout/stderr collection at 64 MiB per stream to prevent memory exhaustion (#2010) (ae9b26d)
  • correct element type parsing for nested bracket types in array initializers (2b61fff)
  • free global_init buffer in codegen_destroy() (6b9ea93)
  • heap-allocate builtin struct field arrays to prevent free-of-static crash (60e273b)
  • initialize ns_func_names fields in codegen_create to prevent garbage free (1ab0464)
  • json.encode always quotes map[string:string] values, escape all control chars (#2019) (c490066)
  • reject CORS origins containing CR or LF to prevent HTTP header injection (P0101) (#2009) (3188d1d)
  • reject https:// URLs in http module with explicit error instead of silent plaintext fallback (#2007) (b25c633)
  • repair result-clobbering NULL and dangling stack pointers in typechecker (#2040, #2045) (e74831a)
  • report 'unexpected end of interpolation expression' instead of EOF in ${...} sub-parser (#2018) (ef0369d)
  • resolve rvalue address-of bug in stdlib codegen (#2053, #2052) (2657125)
  • resolve string enum element type in array indexing and iteration (1a0956a)
  • resolve wildcard-returned enums as TK_ENUM instead of TK_STRUCT (#2054) (a90e756)
  • send HTTP request headers and body separately to remove 8KB body size limit (#2013) (8df4f3e)
  • strdup type_array inputs and resolve remaining free-of-non-heap crashes (ca7aa46)
  • track and free struct-namespaced function name strings in codegen (480c807)
  • use arena allocation for named-arg reorder buffer in tc_resolve_named_args() (58cc8b4)
  • use correct C type for integer enum array element access (bb62a4a)
  • use lvalue check in addr-of wrapping to preserve mutation semantics (#2053, #2052) (c8becba)

Performance Improvements

  • add early-out for equal names in tc_same_enum_type and tc_same_struct_type (#2043) (79d9dc3)
  • add parallel index array to find_enum_index to eliminate O(n) scan after bsearch (#2042) (963cbfc)
  • cache tc_lookup_using_constant result to avoid double call (#2040) (180d0d7)
  • eliminate O(n) inner loop in tc_lookup_using_constant via pre-computed import index (#2041) (ce92138)
  • fix several remaining memory leaks in typechecker and codegen (5f513eb)
  • replace 202 unconditional stack diagnostic buffers with arena allocation via tc_fmt helper (#2044) (287ec00)
  • replace strlen+sprintf heap allocs with snprintf into stack buffer in name-mangling paths (#2045) (1ee7731)

3.8.5

Bug Fixes

  • correct lower bound in uint-to-int cast error message (178bcf3)
  • emit correct HTTP reason phrase and Location header for redirects (611016e)
  • improve compiler parsing, HTTP behavior, and CLI safety (67e1e56)
  • parse fixed-size array of maps type annotation [map[K:V], N] (1b183d1)
  • prompt for confirmation before ez pz --force deletes existing directory (d34a65c)
  • warn when ez doc --output writes outside the current directory (83adb16)

3.8.4

Bug Fixes

  • add missing ez_i128_to_u64 and range-check all wide-to-scalar casts (#2029, #2030) (f6a45ae)

3.8.3

Bug Fixes

  • add range checks to cast between int/uint and i64/u64 (#2026) (fab59e3)
  • add runtime panic for invalid bit shift amounts (#2025) (37afcb3)
  • emit E5039 for const expression overflow, suppress C error (#2028) (1c517f1)
  • overflow-check range loop step increment (#2027) (248316f)
  • reject incompatible bigint types in arithmetic and comparison (#2004) (ab27912)
  • reject string index assignment with E3004 instead of leaking C error (#2005) (594dd13)

3.8.2

Bug Fixes

  • cli: cap update download at 256 MiB to prevent disk exhaustion (#1980) (2b14809)
  • cli: redact home directory from C compiler path in ez report (#1983) (26eeeb0)
  • cli: reject path traversal sequences in ez pz project name (#1979) (badd948)
  • cli: remove unsupported sized integer/float types from ez man docs (#1976) (f660865)
  • cli: restrict update download URLs to trusted GitHub release origin (#1978) (599f8c2)
  • codegen: cast dividend to int64_t in div/mod overflow check to silence Wtautological-constant-out-of-range-compare (2b753be)
  • codegen: cast of negative float to uint/u64 now panics with P0091 (#1964) (37f4d51)
  • codegen: emit T * const for const pointer variables, not const T * (#1937) (381b662)
  • codegen: fixed-size array [T, N] with partial init now has length N (#1965) (9810873)
  • codegen: map compound assignment now reads existing value before applying op (#1971) (c19d6e8)
  • codegen: promote integer literals to double in [float]/[f32]/[f64] array literals (#1963) (c4c39b8)
  • codegen: string(Error) now returns the error message instead of leaking C error (#1977) (72d3f2d)
  • consolidate reserved name lists into shared reserved.h (#1954) (a42a410)
  • leaks: print clear PASS/FAIL summary at end of make leaks output (#1975) (141b947)
  • lexer: catch physical newline in string literal as E1023 (#1959) (683203b)
  • parser: accept complex types in multi-return destructuring positions 2+ (#1962) (a2b0454)
  • parser: emit E2086 when in/not_in/!in has no left-hand value (#1960) (de90608)
  • parser: support blank identifier _ as for loop variable in range iteration (#1972) (3dc99b3)
  • runtime: drain overlong input() lines to prevent stdin contamination (#1981) (0576927)
  • runtime: use pre-addition overflow check in ez_string_concat to eliminate signed UB (#1984) (c1af77d)
  • scripts: handle escaped quotes in error message extraction (790e2cf)
  • typechecker: allow range(n, n) as empty sequence per spec start <= end (#1969) (f4683f9)
  • typechecker: reject == / != on tagged enums with E3124 (#1967) (ce02e3e)
  • typechecker: reject for_each with both positions as _ with E3123 (#1966) (7bda22b)
  • typechecker: reject tagged enum passed to print functions with E5038 (#1968) (d83c720)
  • typechecker: replace misleading 'only structs' phrasing in E3013 messages (b0d1695)

Performance Improvements

  • codegen: collapse buf_append_indent loop into a single buf_appendn call (#1953) (b27f4ed)
  • codegen: eliminate double vsnprintf in emitf for short emissions (#1952) (aaa214d)
  • codegen: replace linear scan in is_c_keyword with bsearch (#1956) (d2ac0a2)
  • error: add cached error/warning counters to DiagnosticList (#1943) (b7ac109)
  • error: build line-offset index in diag_set_source (#1942) (e0c5a5a)
  • error: replace single-file source cache with 4-slot LRU cache (#1947) (48ee72e)
  • imports: limit rewrite_labels outer pass to original main-program nodes (#1946) (22b8643)
  • imports: replace O(n) import-seen scan with FNV-1a open-addressing hash set (#1951) (8f5f9e2)
  • imports: replace while+rescan with a pending import queue (#1945) (b073b80)
  • scan: replace bubble sort in scan_ez_files with qsort (#1944) (1946c88)
  • typechecker: replace O(n) scans in display name and enum helpers with bsearch (#1948) (ea19b7c)
  • typechecker: replace O(n) scans in fallible stdlib lookups with bsearch (#1949) (521246d)
  • typechecker: sort stdlib lookup tables in typechecker_create (#1955) (b54a2f6)
  • typechecker: use stack buffer in levenshtein to avoid malloc on every call (#1950) (75f9ed4)

3.8.1

Bug Fixes

  • main: suppress ld warnings from cc link command with -Wl,-w (3ab0df7)

3.8.0

Features

  • support for_each over inline array literals (#1931) (cadb6a8)

Bug Fixes

3.7.0

Features

  • stdlib: add os.exec() for subprocess execution with stderr capture (c29a8f5)
  • stdlib: add character classification functions to strings module (#1919) (4e1608a)
  • stdlib: add character classification functions to strings module (#1919) (9f172c6)
  • stdlib: add os.exec() for subprocess execution with stderr capture (#1447) (9d8741b)
  • stdlib: capture stdout in os.exec, return (int, string, string, bool) (ec9eaf1)

Bug Fixes

  • cli: separate bare ez output from help output (#1917) (5eee078)
  • typechecker: add stdlib arg count and type validation for math, maps, mem, threads, sync, channels, atomic, fmt, server (#1918) (65818c9)

3.6.3

Bug Fixes

  • typechecker: fix segfault from null result in tc_lookup_using_constant (#1912) (971760c)
  • typechecker: reject arrays.contains() with struct element types (#1901) (a3e2ef4)
  • typechecker: reject maps.contains_value() with struct value types (#1902) (1d1774c)

Performance Improvements

  • codegen: replace malloc/free with stack buffer in NODE_MEMBER_EXPR (#1911) (eb2a80b)
  • typechecker: add hash index to type pool for O(1) lookup (#1909) (624a035)
  • typechecker: add hash table per scope for O(1) symbol lookup (#1910) (dd092e9)
  • typechecker: combine tc_is_using/tc_resolve_using into single-pass lookup (#1912) (b3a5ec2)
  • typechecker: replace is_struct_name and is_enum_name linear scans with sorted bsearch (#1906) (80fa62e)
  • typechecker: replace module and builtin name linear scans with bsearch (#1908) (2b3975e)
  • typechecker: replace strdup with arena_strdup in error paths (#1904) (06a68a3)
  • typechecker: sort stdlib arg tables and use bsearch for lookup (#1907) (486edbc)
  • typechecker: use sorted bsearch for find_func (#1905) (93926c7)

3.6.2

Bug Fixes

  • cli: correct errors in pz server and client scaffold templates (#1888) (88c709b)
  • cli: replace return with exit(0) in pz cli template main() (#1890) (6ddb39c)
  • codegen: escape Error return values from function arena before destruction (#1895) (8c94e57)
  • codegen: materialize rvalue arrays and maps in string interpolation (#1894) (159fd7a)
  • codegen: materialize rvalue maps and arrays in json.encode() (#1898) (6818385)
  • codegen: recognize or_return temp prefix in fallible stdlib result checks (#1893) (1eeb0fc)
  • typechecker: reject fixed-size array types in function parameters (#1892) (257dfda)
  • typechecker: reject sized integer and float type names used as function calls (#1896) (fb3570f)
  • typechecker: validate argument types for server response builder functions (#1887) (4c62066)

3.6.1

Bug Fixes

  • codegen: emit 0 instead of {0} for scalar or_return slots (#1882) (d9e6a23)
  • codegen: use outer arena for struct deep copy inside scoped blocks (#1880) (c0140aa)
  • parser: reject blank identifier declarations missing '=' (#1878) (c7ec8ad)
  • tests: update enum tests (#1885) (a56358d)
  • typechecker: reject integer comparison and assignment with enum types (#1884) (ad2334e)
  • typechecker: unify struct array types across imported files (#1879) (ab424fe)

3.6.0

Features

  • arrays: add map, filter, reduce higher-order functions (#1795) (706ba17)
  • compiler: add tagged union enums with pattern destructuring (#1709) (2af9502)
  • fmt: add printfln, eprintf, eprintfln, sprintfln functions (#1838) (ac94620)
  • implicit enum selector .VARIANT syntax (#1850) (61fd916)
  • named function arguments (639dd40)
  • parser,typechecker: support named function arguments (#1840) (52171e1)
  • stdlib: add map, filter, reduce functions to arrays stdlib module (3ee4f3c)
  • stdlib: add printfln, eprintf, eprintfln, sprintfln to fmt stdlib module (9b2e27a)
  • struct default values (b444ee9)
  • structs: add default field values for struct declarations (#1794) (ad26dd2)
  • tagged union enums with pattern destructuring (7f66e96)
  • typechecker: add implicit enum selector .VARIANT syntax (#1850) (f154522)
  • uuid: add UUID struct type to uuid module (5b92b93)
  • uuid: add UUID struct type to uuid module (#1870) (5f0b2a7)

Bug Fixes

  • codegen: handle default params and mutable refs in cross-module using calls (#1872) (c6ce374)
  • codegen: prefix default-value bindings to prevent variable shadowing (#1840) (bf0e393)
  • codegen: strip module prefixes from struct/enum names in println output (9b0bcf4)
  • codegen: use bare param names in default-value statement expressions (a076141)
  • parser: also reject reserved type names as struct field names (#1859) (62ca179)
  • parser: enforce separate lines for all struct fields and enum variants (#1867) (f50b5c3)
  • parser: reject reserved keywords as struct field names (#1859) (db595c5)
  • parser: restrict 'for x in' to range() and add for_each shadowing warning (d3b4384)
  • stdlib: remove function name aliases csv.decode, csv.format, json.format (189b7f1)
  • tests: remove stale E3042 unit and integration tests (a076141)
  • tests: remove stale E3042 unit test (28bc4a0)
  • tests: update tests using reserved builtin/stdlib/type names (7987209)
  • typechecker: accept stdlib struct types in struct field declarations (#1870) (5ede4d1)
  • typechecker: account for default params in cross-module function calls (#1872) (cc7c6cd)
  • typechecker: add missing arg type validation for strings stdlib functions (#1875) (308108a)
  • typechecker: allow instance dispatch for all struct functions (#1848) (367ef74)
  • typechecker: block builtin and stdlib names from all identifier positions (#1859) (3fbb037)
  • typechecker: compare display names for cross-module struct/enum type matching (#1873) (3165652)
  • typechecker: prevent transitive import type leaking (bc37dd9)
  • typechecker: reject arithmetic and ordering on enum variables (#1858) (0cb5d15)
  • typechecker: reject comparison of different enum types (#1865) (f64aa67)
  • typechecker: reject enum constants passed to mutable parameters (#1844) (0e7f608)
  • typechecker: reject mixed enum types in array literals (#1862) (0838368)
  • typechecker: reject multi-return destructuring with too few variables (#1860) (afbad4c)
  • typechecker: reject return of wrong enum type (#1864) (3f5fb02)
  • typechecker: reject string() on array, map, struct, pointer with E3043 (#1853, #1854) (f4146fa)
  • typechecker: reject string() on string values with E3043 (#1852) (f3d42ee)
  • typechecker: reject wrong enum type in map literal keys and values (#1863) (1b6d845)
  • typechecker: skip early resolve for implicit enum args, propagate array-of-enum expected_type (#1850) (acc0857)
  • typechecker: strip module prefix from struct name in all error messages (#1866) (25aff14)
  • typechecker: strip module prefixes from user-facing error messages (cfeffde)
  • typechecker: use type_display_name in struct function arg errors (#1866) (8c4af9a)
  • typechecker: validate mutable params in instance dispatch path (#1845) (fb98a9c)
  • typechecker: warn when function parameter shadows enum variant (#1861) (26f8e1d)

3.5.15

Bug Fixes

  • parser: backfill default values across grouped params (#1823) (ce8b999)
  • typechecker & parser improvements (7b42747)
  • typechecker: enforce private on struct function references (#1835) (3b82944)
  • typechecker: reject func references to builtin and stdlib functions (#1832) (2306015)
  • typechecker: reject func-typed fields on #json structs (#1836) (63746f3)
  • typechecker: reject struct functions declared on #json structs (#1837) (962cc8f)
  • typechecker: reject unknown directives, arg count mismatches, and dangling % in fmt format strings (#1839) (e306837)

3.5.14

Bug Fixes

  • codegen: println(ref(x)) now prints value instead of address (#1819) (7764562)
  • codegen: use -> instead of . when calling func reference in struct field via pointer (#1830) (6fcee13)
  • parser,codegen: allow bare func as map value type (#1831) (0b6163f)
  • parser: reject typed func signature as array element type with E2082 (e6882a8)
  • tests: update func ref tests to use const and remove invalid reassign test (4558676)
  • typechecker: reject copy() on func references (#1820) (77cca61)
  • typechecker: reject fmt.println as unknown fmt function (b964d64)
  • typechecker: reject func references passed to print functions (#1821) (f49a271)
  • typechecker: reject func-type return values assigned to variables and chained calls (#1829) (1e70edf)
  • typechecker: reject mismatched func ref assigned to struct field (#1822) (c675fee)
  • typechecker: reject mismatched func ref in typed return statement (#1817) (2459c5b)
  • typechecker: reject mut on func reference variable declarations (#1818) (2271ba4)

3.5.13

Bug Fixes

  • codegen: cast integer literals to int64_t in shift expressions to prevent UB for shifts >= 32 (62fd12e)
  • codegen: emit bigint constructor/extractor functions for wide integer casts (#1803) (eea42c8)
  • codegen: implicit scalar-to-bigint assignment and compound operators on wide integer types (#1805, #1806) (27a3356)
  • codegen: prevent double-wrap when assigning cast(expr, bigint) to bigint var (#1803) (e0d9ae9)
  • codegen: prevent double-wrap when negating bigint variable (676999d)
  • codegen: size_of on literals returns correct size, type_of on inferred wide ints returns specific type (#1809, #1810) (191dd5e)
  • codegen: use bigint eq functions in when/is for wide integer types (#1804) (51089e7)
  • codegen: use println_str for string enum values in println/print/eprint (#1801) (ad90143)
  • errors: remove angle bracket placeholders from E3065 and E3069 error messages (225eaef)
  • parser: support custom fallback values in or_return (#1808) (da9f01d)
  • tests: remove cast(string, int) test case from cast_keyword (rejected by E3043) (3639475)
  • tests: remove cast(string, int/float) test cases from cast_conversions (rejected by E3043) (780e9bb)
  • tests: use typed enum array in stress_enums (correct element sizing) (69341e3)
  • typechecker,codegen: restore string enum ↔ string interop (#1801) (f67c08d)
  • typechecker,codegen: string enum type tracking and comparisons (#1801) (158a6c9)
  • typechecker: reject cast(string, int/float/uint) with E3043 (#1807) (c5294c3)
  • typechecker: string enum interop with when/is, return types, and array element assignment (#1801) (1ccf16a)

3.5.12

Bug Fixes

  • cli: restore formatEZSource for fmt unit tests (24e28ff)
  • codegen: correct uuid.generate() mapping and wire missing generate_compact (aa28123)
  • codegen: restore correct uuid.generate() → compact mapping (67ddafc)
  • fmt: implement lexer-based indentation engine for ez fmt (984425f)
  • fmt: implement lexer-based indentation engine for ez fmt (bdc0fe8)
  • parser: reject postfix ^ in return type with E2081 (223e3c7)
  • tests: replace httpbin.org with httpbun.com for reliable CI (6989944)
  • typechecker: add W3005 and W3006 warnings for unsafe when statement patterns (55bcfe7)
  • typechecker: catch struct/enum type names used as value arguments (#1797) (6f2ac19)
  • typechecker: remove phantom arrays.insert, set, and sum functions (13f6214)
  • typechecker: remove phantom math.mod/pi/e/tau function registrations (b952bc0)
  • typechecker: remove phantom threads.sleep_s/sleep_ms/sleep_ns — sleep() is the only threads sleep, _s/_ms/_ns are builtins (ab8d7bd)
  • typechecker: resolve imported constants in global array initializers (611d3f2)
  • typechecker: skip false-positive E3001 when wildcard arg is unresolved in main pass (3b2d2fb)
  • typechecker: validate io.write_file and io.append_file content arg type (dcf4b61)

3.5.11

Bug Fixes

  • codegen: add cycle guards to prevent segfault on circular struct references (#1784) (0fbc1ac)
  • codegen: deep-copy array fields from struct member access on assignment (#1789) (e1d9314)
  • codegen: fix addr() on pointer-deref field generating invalid C (#1785) (40a1010)
  • codegen: fix array field indexing through struct pointer generating invalid C (#1787) (f1ad1b9)
  • codegen: infer correct type for pointer dereference assignments (#1786) (a336d74)
  • main: use fork+execv instead of system() in run mode (#1285) (f36dab9)
  • pointer/struct bug fixes (4f72660)
  • typechecker: catch struct type mismatch in pointer dereference assignment (#1788) (8019d7a)
  • typechecker: catch struct type mismatch in struct field assignment and nested literals (#1790) (f5b015b)
  • typechecker: reject reserved stdlib type names as struct names (#1791) (9f4c4ac)

3.5.10

Bug Fixes

  • compiler: quote output path in run-mode shell execution (#1703) (e340b2e)
  • stdlib: reject CR/LF in HTTP URL host and path components (#1703) (8b7a5ef)
  • typechecker: validate embed() path stays within source directory (#1703) (cab23c0)

3.5.9

Bug Fixes

  • codegen & typechecker bugs (73aa742)
  • codegen/typechecker: monomorphize wildcard struct functions per call site (591c330)
  • codegen: emit EzMulti typedef for struct-scoped multi-return functions (3e62879), closes #1776
  • codegen: resolve correct print variant for wildcard params (1bca397), closes #1774
  • stdlib/codegen: add missing eprint builtin variants and fix dispatch (a9a37cc)
  • stdlib: add missing eprintln float and bool builtin variants (b9652d5)
  • typechecker: allow '?' as struct field type in field-type validation (f986db8)
  • typechecker: auto-deref pointer fields in nested member access (dc9f42e), closes #1777

3.5.8

Bug Fixes

  • codegen,typechecker: remove unimplemented http module stubs request and json_body (#1773) (4fb7169)
  • codegen,typechecker: remove unimplemented server.parse_json stub (#1701) (87f3f2e)
  • typechecker: correct json module tracking table entry from pretty to pretty_print (#1773) (2244d83)
  • typechecker: json.decode() now returns concrete map[string:string] type when destructured (#1773) (62fb26d)

3.5.7

Bug Fixes

  • type system improvements and struct field validation (c954917)
  • typechecker,parser: infer parameter type from enum member default value (8e19118)
  • typechecker: catch undefined types in struct fields for arrays, maps, and pointers recursively (27d8466)
  • typechecker: intern dynamic types and raise pool cap to 4096 (#1770) (73cf194)

3.5.6

Bug Fixes

  • codegen,runtime: byte + negative int fires P0016 instead of P0015 (#1755) (69f21d5)
  • codegen,typechecker: arrays.append pointer C error + E3097 dangling addr (c9926ee)
  • codegen: runtime panic on narrowing integer assignment and call args (#1753) (853f103)
  • compiler fixes (b79b857)
  • runtime,codegen: deep-copy string key data in ez_map_copy and emit_map_deep_copy (d860f39)
  • typechecker,codegen: assert double message (#1766) + E3097 for addr() in call args (#1767) (b3b0df8)
  • typechecker,codegen: byte() returns byte type; bit_not byte masks to 8 bits; W3004→E3097 (50c0057)
  • typechecker: catch pointer-pointee mismatches across all assignment and comparison paths (#1746-#1751) (39ac98c)
  • typechecker: catch pointer-to-pointer type mismatch in var decls (#1745) (1c5d00f)
  • typechecker: narrow bigint rank check to vr>=5 to avoid false positives on int literals (057ae83)
  • typechecker: raise E3001 on implicit bigint narrowing in var_decl, reassignment, and call args (#1759) (5978c49)

3.5.5

Bug Fixes

  • handle big-int pointer dereference in println and deref-assign (9a06c7c), closes #1761
  • reject implicit byte/u8 assignment — they are distinct types (7d6e55f), closes #1752
  • reject negation of unsigned integer types (E3096) (f0eef54), closes #1757
  • type safety and big-int bug fixes (db5527a)
  • widen mixed-width integer arithmetic to larger operand type (989abc2), closes #1756
  • widen smaller integer operands in big-int arithmetic expressions (0fb52b9), closes #1758

3.5.4

Bug Fixes

3.5.3

Bug Fixes

  • cli: quote runtime_dir and output_file in shell command, reject single quotes (8dfbe66)
  • codegen: free prefixed string in emit_call after user-module lookup (dffc51e)
  • codegen: route uint ++ and -- through overflow/underflow checks (90aacad)
  • runtime: guard realloc return in main.c and ez_server.c (f12298a)
  • stdlib: add sys/random.h include for getentropy on Linux (cf504d9)
  • stdlib: cap send() length at buffer size in HTTP server and client (282ffcd)
  • stdlib: check malloc and pthread_create in server accept loop (2a3a369)
  • typechecker, runtime, stdlib, and codegen bug fixes (f301bbd)
  • typechecker: catch addr() of wrong struct type passed to pointer parameter (41cae70)
  • typechecker: catch pointer assigned to non-pointer variable (1bcb0c2)
  • typechecker: catch struct-to-different-struct reassignment (1f20af6)
  • typechecker: emit E3003 when float is used as string index (b2302e3)
  • typechecker: emit E3095 when 'in' is used on a non-array/map/string type (6449e2d)
  • typechecker: tighten array/map element type coercion checks (57b0041)

Performance Improvements

  • minor optimizations across Go CLI and C compiler (7311a50)

3.5.2

Bug Fixes

  • ci: remove deleted lineeditor package from test-go target (4bc65ab)
  • ezc: handle realloc failure in read_file NUL-termination step (9fee714)
  • typechecker bugfixes (#1722) (f1a9fa8)
  • typechecker: catch array element type mismatches in assignment, args, and return (1be4947)
  • typechecker: catch map key/value type mismatches in assignment, args, and return (466dcbd)
  • typechecker: catch struct returned from primitive-typed function (dfec4c2)
  • typechecker: emit E3010 for invalid field on chained struct access (f23ee97)
  • typechecker: emit E3090 when '!' is used on a non-bool type (c61f652)
  • typechecker: emit E3091 when non-scalar type is used as if/for condition (d844bf9)
  • typechecker: emit E3092 when struct, map, or array is compared to nil (d929ee2)
  • typechecker: emit E3093 when arithmetic operators are used on map, array, or struct (6a4c862)
  • typechecker: emit E3094 when wrong type is assigned to array element by index (ad869e0)

3.5.1

Bug Fixes

  • parser: suppress struct literal parsing in when subject expression (ee74f85)

3.5.0

Features

  • cli: add ez man command for builtin function documentation (f812762)
  • cli: add ez man stdlib support, starting with math module (536aa1a)
  • cli: add strings module to ez man (ef357dc)
  • cli: add type documentation support to ez man (479677a)
  • lang: add bitwise keyword operators (bit_and, bit_or, bit_xor, bit_not, bit_shift_left, bit_shift_right) (466d4d6), closes #1686
  • runtime: structured P0001–P0077 panic codes with consistent formatting (b9804cc), closes #1696
  • stdlib: improve io module with new functions and consistency fixes (faf2364)
  • typechecker,codegen: implement embed() compile-time file embedding builtin (#1704) (34064ff)
  • typechecker: complete using_funcs[] whitelist for all stdlib modules (53a4ff1)
  • typechecker: enforce error handling for fallible stdlib functions (#1703) (5a6f3c3)
  • typechecker: recursive struct pointer fields with exhaustive validation (#1687) (9501e53)

Bug Fixes

  • cli: suppress update prompt on dev and dirty builds (751e526)
  • codegen+typechecker: server.listen arg order, E5026 for stdlib arg type mismatches (f0d34fb)
  • codegen: add missing io functions to E5011 void-call whitelist (cc5e04a)
  • codegen: correct array/map interpolation for uint, byte, and char elements (8c2c691), closes #1679
  • codegen: implement bool() builtin conversion (#1702) (d2c9e26)
  • codegen: multi-return functions now escape _func_arena and restore ez_default_arena (#1688) (a64af6b)
  • codegen: support variable negative step in for range loops (230722c), closes #1683
  • codegen: unwind scratch arena before break and continue (0b85251), closes #1684
  • complete panic[Pxxx] migration and fix nested-loop break/continue arena bug (9b27408)
  • errors: introduce E8xxx series for bitwise operator errors (f5cb33b)
  • io: register io panic codes in error_codes.h and fix P0077 message (ca1dc2d)
  • new() use-after-free, for while-style parsing, when enum ptr deref (#1687) (09ceac6)
  • parser: consume optional trailing comma after struct field type (f69d1a2)
  • parser: correct line/column offsets for diagnostics inside interpolated strings (9fed78d)
  • runtime: fix ez_map_set tombstone scan creating duplicate keys (898dd41), closes #1680
  • runtime: make ez_default_arena thread-local to eliminate arena data races (566f4f9), closes #1689
  • stdlib: arrays.get_first/last/remove_first/last return correct value for all element types (#1681) (2c9e84a)
  • stdlib: arrays.remove_at panics on out-of-bounds index (#1682) (541cf71)
  • stdlib: patch server stack buffer overflow and arena struct leak (#1691) (9dbd537)
  • tests: correct inline struct syntax in test_valid_recursive_pointer_struct (#1687) (116ee4a)
  • typechecker: add E3004 check for string index assignment with wrong type (9afe081), closes #1694
  • typechecker: implement 6 missing compile-time checks (6c5b5d6)
  • typechecker: replace 'fallible' with 'can fail' in E3089 message (#1703) (8043866)

3.4.3

Bug Fixes

  • codegen: recursive wildcard binding at call sites for nested composite types (d62ccbe)
  • stdlib: forward-declare arc4random_buf to fix macOS build (835fde6)
  • stdlib: reject leading whitespace in strconv, fix url_decode invalid %, fix regex find_all OOB (f521496)
  • stdlib: replace rand()/srand() in crypto.random_hex with platform CSPRNG (8e47bb0), closes #1648
  • typechecker: allow auto-deref field assignment on pointer parameters (daa819f), closes #1653
  • typechecker: wildcard unifier recurses into nested composite types (cfef697), closes #1652

3.4.2

Bug Fixes

  • typechecker: reject ref()/addr() on map index access path (#1673) (5f8f0ee), closes #1654

3.4.1

Bug Fixes

  • codegen and typechecker bugs in module-aware compilation (#1671) (b9c658d)

3.4.0

Features

  • builtins: add here() returning SourceLocation for source-position capture (#1660) (07fa474)
  • here() builtin returning SourceLocation (#1660) (efeb3a3)
  • threads detach, current, yield, sleep, is_alive, thread_count (#1453) (ec273dc)
  • threads: add detach, current, yield, sleep, is_alive, thread_count (#1453) (e78f57d)
  • uuid parse, generate_random, generate_time_ordered, NIL_UUID (#1452) (7df9ae2)
  • uuid: add parse, generate_random, generate_time_ordered, NIL_UUID (#1452) (ed9e789)

Bug Fixes

  • codegen: multi-file struct codegen — three findings from Marlowe port (d3e75d5)
  • codegen: thread struct field type into empty array literal sizing (#1664) (deb12da)
  • import: rewrite composite type names in imported declarations (#1665) (b205a5e)
  • typechecker: reject 'here' as user variable/function/type/param (E5016) (3d66ec1)

3.3.1

Bug Fixes

  • codegen: map stdlib opaque types to their C typedefs (#1645) (#1657) (30564e9)
  • parser: accept bare '_ = expr' at statement position (#1647) (#1656) (83877c5)
  • parser: reject throwaway '_' with a non-call RHS (E5012) (c676763)
  • typechecker: reject file-scope initializers that call functions (E5013) (92de338)

3.3.0

Features

Bug Fixes

  • cli: remove --diff flag from ez fmt (#1564) (a0f2180)
  • parser: reject invalid characters in C header import paths (#1618) (6646d68)
  • runtime security bugs (f0d1151)
  • runtime: cast to unsigned char at all ctype.h call sites (#1616) (d40683b)
  • stdlib: compute exact buffer size in csv stringify to prevent heap overflow (#1617) (6f3ae23)
  • stdlib: use correct comparators for float and string array sorts (#1632) (24afcd8)
  • typechecker: reject dynamic format strings and validate directives in fmt.printf/sprintf/format (#1633) (35b31c1)

3.2.2

Bug Fixes

  • codegen: grow ensure cleanup buffer dynamically (3bfeecd), closes #1630
  • runtime/arrays: panic on mutation during for_each iteration (3a40baa), closes #1628
  • runtime/codegen/stdlib fixes (f294b4e)
  • runtime/maps: normalize float keys so +0.0 and -0.0 collide (21e1476), closes #1631
  • runtime: make c_string() safe — NULL-check, copy onto arena, clamp length (2b65ba6)
  • stdlib/arrays: bounds-check insert_at and drop fixed 32-byte stack buffer (#1622) (#1625) (8693f7c)
  • stdlib/encoding: validate base64_decode input and reject malformed data (47f09fc)
  • stdlib/random: size shuffle scratch buffer to actual element width (e1da7ff)
  • stdlib/strings: reject overflowing repeat and replace results (9618ac5), closes #1615
  • stdlib: handle ftell failure on non-seekable inputs in read_file (#1626) (4e9b451)

3.2.1

Bug Fixes

  • codegen: drop extra stream arg in non-container char print (81bfbdf)
  • codegen: heap-allocate mangled buffer in monomorphisation forward decl (01a1842)
  • io: create copy_file destination with mode 0644 instead of 0666 (e444039)

Performance Improvements

  • codegen: build func-field index once instead of nested struct scan (eced4b2)
  • codegen: replace find_func linear scan with sorted bsearch index (2dbb8ff)
  • error_codes: replace chained strcmp with sorted bsearch lookup (5d36216)
  • typechecker: replace chained strcmp in type_from_name with bsearch table (e62f607)

3.2.0

Features

  • pass --quiet and --no-color flags through ez watch (#1606) (e35016e), closes #1573
  • stdlib: add base parameter to strconv.to_int/to_uint (#1603) (3fd62c8)
  • stdlib: add strconv module (#1603) (fbc995e)
  • stdlib: add strconv module for string/type conversions (#1603) (ae8a310)

Bug Fixes

  • cli: remove duplicate --no-color flag on watchCmd (1935e83)
  • parser: replace uppercase heuristic with struct name prescan (e72004b)
  • parser: suppress struct literal parsing on RHS of comparisons (0db8b88)
  • repo: enable blank issues in issue template config (3f8db8f)
  • stdlib: complete strconv module wiring (Makefile, fallible tables) (#1603) (20e7ee0)
  • typechecker: allow type names in size_of while rejecting bare builtin functions (b67ee7c)
  • typechecker: enforce private access, reject nonexistent struct functions, catch struct type mismatches (#1599) (4151ca7)
  • typechecker: reject bare builtin names used as values (3e48888)
  • typechecker: suppress false W1002 warnings for sub-file imports (5df0121)

3.1.2

Bug Fixes

  • parser,typechecker: parse complex multi-return types and hide internal name prefixes (88c5c3b)
  • typechecker: handle multi-return and arg validation for module calls (5669924)
  • typechecker: handle range exprs in import rewriting and in/!in type checks (6d2f8c1)
  • typechecker: validate argument types for stdlib function calls (6f34119)
  • wire arrays.remove() function (bfc8f03)

3.1.1

Bug Fixes

  • codegen: remove two unused-variable warnings (121647d)
  • codegen: remove two unused-variable warnings (#1597) (8cbc765)
  • codegen: resolve struct function return types in resolve_print_suffix (#1595) (8b4647a)
  • import system, cast system, and code quality improvements (542ecd0)
  • imports: propagate stdlib imports from transitive files (#1596) (9bc943f)
  • imports: resolve transitive paths, diamond deps, and directory imports (#1596) (377c170)
  • imports: sibling cross-references, spurious W2013, and redundant file warning (#1596) (e9814a9)
  • imports: sibling struct access, W2015 namespace hint, W2013 transitive suppression (#1596) (144bbc3)
  • test: correct relative path in dir-transitive test (#1596) (6827f2b)
  • typechecker: various bugs in the cast() system (#1598) (b6dfc20)

3.1.0

Features

  • cli: add -o/--output flag to ez doc (3f590e8)
  • cli: add -o/--output flag to ez doc (0916278)

Bug Fixes

  • codegen: map HttpRequest/HttpResponse to correct C types (#1585) (2cc6dbd)
  • codegen: resolve wildcard type in string interpolation (#1584) (646f1cb)
  • codegen: revert string/char quote encapsulation in print functions (#1580) (f0cdb28)
  • stdlib: wire 7 partially implemented stdlib functions end-to-end (#1580) (8d6b8bd)
  • typechecker hardening, stdlib wiring, and code scanning fixes (dd5fe8b)
  • typechecker,codegen: validate 'in' operator types and wire string containment (#1589, #1590) (ddbd4f5)
  • typechecker: allow enum values in 'in' operator for matching collections (#1589) (c85bb8c)
  • typechecker: exempt built-in Error type from E4016 and fix missed e2e expectations (#1585) (014a814)
  • typechecker: format array/map types in error messages (#1589) (bdb6570)
  • typechecker: register HttpRequest type and scope HTTP types to imports (#1585) (58b3bbe)
  • typechecker: reject return statements with too many values (#1588) (7397aee)
  • typechecker: reject type names passed to type_of() (#1586) (f573e12)
  • typechecker: reject undefined/unimported struct types (#1585) (da55c33)
  • typechecker: scope HttpRequest to server module only (#1585) (7095990)
  • typechecker: validate argument count for struct function calls (#1587) (fd0695e)
  • typechecker: validate argument types for range, assert, exit, panic builtins (#1591) (ef21472)

3.0.0

EZ 3.0 is a "from the ground up rewrite". The Go-based interpreter has been replaced by a compiled backend that emits C and produces native binaries. Every stage of the pipeline — lexer, parser, typechecker, and code generator is now written in C. The Go CLI remains as the user-facing tooling wrapper.

Breaking Changes

  • Compiled, not interpreted. EZ programs now compile to native binaries via C. The Go interpreter is gone.
  • @std module removed. All former @std functions (println, print, len input, assert, panic, exit, etc.) are now builtins — always available, no import needed.
  • module keyword removed. Modules are identified by their filesystem path. Using module now produces E2061.
  • #suppress attribute removed. Warning suppression moved to the CLI: ez build -q W1001,W2003.
  • #enum(type) attribute removed. Enum variants are always integer-valued.
  • nil is no longer a type. nil is a value only — use Error, pointer types, or optionals for nullability.
  • ez run removed. Compile and run files directly with ez <file.ez>.
  • temp renamed to mut. All mutable variable declarations now use mut.
  • import & use syntax replaced by import and use. The & shorthand no longer works.
  • new() now returns a pointer. new(StructName) returns ^Struct, not a value.
  • bare func type removed. Function references require full signatures: func(int, int) -> int.
  • sleep_s, sleep_ms, sleep_ns moved from time module to builtins.
  • Many more!

New Features

Compiler & Type System

  • Native compilation via C backend source to binary in one step
  • Scope-based automatic memory management — every scope gets its own arena allocator. Allocations are freed when the scope exits. Values that escape (via return, outer assignment, or container storage) are automatically copied to the parent scope. No garbage collector, no manual free for normal code.
  • Overflow-checked integer arithmetic at runtime
  • Division-by-zero runtime checks
  • Wildcard type ? for generic-style functions monomorphised per call site
  • Implicit int-to-float coercion in assignments, arguments, and returns
  • private keyword for functions and constants
  • Named return values in function signatures
  • Default parameter values for functions
  • Struct functions — functions defined inside structs with instance dispatch (point.distance())
  • for_each i, item in arr — index-value destructuring for arrays
  • for_each k, v in myMap — key-value destructuring for maps
  • while keyword as an alias for as_long_as
  • #json attribute for struct-based JSON serialization/deserialization
  • Wildcard struct fields
  • or_return for error propagation

Pointers

  • ^Type pointer syntax — e.g. ^int, ^Point
  • new(StructName) now returns a ^Struct pointer to a heap-allocated struct
  • addr(variable) returns the memory address of a variable as a pointer
  • Dereference pointers with p^
  • Auto-deref for struct field access — ptr.field works without explicit deref
  • Pointer comparison limited to ==/!= with nil only. No pointer arithmetic

Functions as First-Class Types

  • func is a type — functions can be stored in variables, passed as arguments, and returned from functions
  • Full signature syntax: func(int, int) -> int
  • ()func call syntax for invoking function references

Breaking: temp renamed to mut

  • The temp keyword for mutable variables is now mut

New Builtins

  • sleep_s(), sleep_ms(), sleep_ns() — sleep functions (formerly in the @time module, now builtins)
  • addr() — returns a pointer to a variable

Wide Integer Types

  • i256, u256 — new wide integer sizes
  • i128, u128 — reimplemented as portable struct-based types (previously interpreter-only)

C Interop

  • import c"header.h" to include C headers
  • Call C functions via c.func() syntax
  • c_string() builtin to convert C char* back to EZ strings
  • Access C constants via c.CONSTANT
  • Type mapping between EZ and C primitives

Module System

  • Filesystem-based module identity (directory name = module name)
  • Directory imports merge all .ez files into one namespace
  • Import aliasing: import m @math
  • import and use combined syntax (replaces the former import & use)
  • Module-qualified struct literals: lib.Point{x: 1}
  • Module-qualified enum access
  • Extensionless file and directory imports
  • Transitive imports and import caching
  • Duplicate module name detection with E6001

Standard Library

All 27 stdlib modules now run on the compiled C backend. Modules that existed in the v2 interpreter (@http, @server, @regex, @csv, @threads, etc.) have been reimplemented in C.

New modules:

  • @net — TCP sockets and DNS
  • @atomic — lock-free assembly-backed operations (x86_64 + ARM64)
  • @mem — manual arena-based memory management
  • @fmt — formatted output, padding, number formatting
  • @sync — mutexes (split from former @threads)
  • @channels — typed channels (split from former @threads)

Notable changes to existing modules:

  • @io — added 23 filesystem and path manipulation functions
  • All fallible stdlib functions now have _result variants that return (T, Error) instead of panicking
  • to_char() and char_count() builtins for Unicode codepoint access

CLI Tooling

New commands:

  • ez report — system info for bug reports (OS, CPU, RAM, C compiler, install path)
  • ez test — unified test runner with aggregated counts
  • ez install <version> — pin to a specific version

New flags:

  • --pre — install pre-release versions via ez update --pre
  • -q / --quiet — suppress warnings (global or per-code, e.g. -q W1001,W2003)
  • --no-color — plain output without ANSI colors
  • --emit-c — inspect the generated C source
  • --time — show compilation timing

Other changes:

  • Single embedded binary — ezc compiler and runtime are embedded in the ez binary, no separate install needed
  • ez version now shows installed, latest stable, and latest pre-release

Error System

  • Centralized error code registry (error_codes.h) with auto-generated ERRORS.md
  • Rust-inspired diagnostics: error code, message, source location, caret pointing, optional help hints
  • 100+ compile-time error checks across lexer, parser, typechecker
  • Warning system with per-code suppression
  • Runtime panics with file/line/column info for division-by-zero, nil deref, array OOB, stack overflow

Testing & CI

  • 1,200+ tests: unit (C), end-to-end, integration (pass + fail + warning + stress + multi-file)
  • UBSan and ASan sanitizer builds in CI

2.0.0

⚠ BREAKING CHANGES

  • The lowercase error type alias has been removed. Use Error (capitalized) for type annotations instead.

Features

  • add @server HTTP server stdlib module (#439) (acd7f16)
  • add #doc attribute and ez doc command for documentation generation (2d26a37), closes #764
  • add [@server](https://github.com/server) HTTP server stdlib module (bc6d815)
  • add ez pz project scaffolding command (a422c15)
  • add ez pz project scaffolding command (a1adcc0)
  • Add named return variables support (#1131) (6e4d70e)
  • add optional index variable to for_each loops (#1139) (7a8a5a2)
  • add optional index variable to for_each loops (#1139) (4b0378d)
  • add server and client templates to ez pz scaffolding (9f873bf)
  • cmd: add ez watch command for live reloading (741c279)
  • cmd: add ez watch command for live reloading (4910b73), closes #871
  • errors: add color formatting to parser, evaluator, and stdlib error messages (#810) (cc9748f)
  • errors: add color formatting to remaining stdlib module error messages (#810) (9b666d1)
  • errors: add color formatting to typechecker error messages (837c258)
  • errors: add color formatting to typechecker error messages (#810) (023914a)
  • loader: add multi-file main module support (fe0335e)
  • parser: add named return variables support (#1131) (a1eea1c)
  • stdlib/csv: add @csv module for reading and writing CSV files (4ec274b)
  • stdlib/csv: add @csv module for reading and writing CSV files (d6af096), closes #965
  • stdlib/math: add NaN/finite checks and float constants (#1123) (b22667b), closes #1024
  • stdlib/regex: add @regex module for regular expression operations (de8063c)
  • stdlib/regex: add [@regex](https://github.com/regex) module for regular expression operations (931bdcc)
  • stdlib/strings: add 12 new string utility functions (6cb2a2d)
  • stdlib/strings: add 12 new string utility functions (a4ad38f), closes #1020
  • typechecker: add W1005 warning for typed blank identifiers (b9a4c62)
  • typechecker: add W1005 warning for typed blank identifiers (df1a334)

Bug Fixes

  • add encoding module to multi-return type inference (#1138) (23d806b)
  • allow enum constants in when/is when value is explicitly typed (#1143) (03e99d3)
  • allow enum constants in when/is when value is explicitly typed (#1143) (1832e66)
  • arrays.join no longer wraps string elements in quotes (#1144) (5b9c1a3)
  • clarify misleading error messages in json.decode, db module, and typechecker (028359b)
  • complete tuple type inference for all stdlib modules (#1138) (2c30882)
  • eliminate race condition by removing global eval state (#1122) (e17f686), closes #949
  • interpreter: use correct error code E5011 for unused return values (116ba16)
  • language: remove extra quotes from string enum casting (70aeac2)
  • nested array types in multi-return declarations (#1137) (3186097)
  • parser,typechecker: fix #suppress attribute not working (cb216a2)
  • parser: use user-friendly descriptions in assignment error messages (e9d8d41)
  • parser: validate #doc attribute placement (e34198c)
  • parser: validate #doc attribute placement (01f9ef5)
  • pz: correct EZ syntax in project scaffolding templates (ff51760)
  • remove lowercase error type alias, keep only Error (cc2c36f), closes #1039
  • respect explicit type annotations in multi-return declarations (#1137) (e3838fc)
  • stdlib/arrays: arrays.join no longer wraps string elements in quotes (#1144) (333f53e)
  • stdlib: correct test expectations to match implementation (58478b3)
  • typechecker: disallow function calls in file-scope variable initializers (1d78de8)
  • typechecker: prevent W2010 false positive on nested struct initialization (f7058b0)
  • typechecker: prevent W2010 false positive on nested struct initialization (7d25b8a), closes #1107

1.4.9

Bug Fixes

  • multiple bug fixes for type inference and expressions (f3853dd)
  • multiple bug fixes for type inference and expressions (0817610)

1.4.8

Bug Fixes

1.4.7

Bug Fixes

  • const ref now creates read-only view of referenced value (#1089) (4b04eed)
  • mutability semantics fixes (b88a35e)
  • support const keyword with multi-return function assignment (#1087) (2375f3c)
  • sync temp/const mutability with value's Mutable field (#1085) (5f0ffb7)

1.4.6

Bug Fixes

  • arrays module bugs - remove() deleted, remove_at() now in-place (#1083) (92e224e)

1.4.5

Bug Fixes

  • allow empty arrays as elements when type is explicitly declared (#1076) (9c7be92), closes #1064
  • bugfixes 1-29-2026 (8c0980a)
  • expand 'did you mean?' suggestions across typechecker errors (#1075) (3dfcee3)
  • handle file close error explicitly in io.copy (44ea553)
  • suppress W2010 warning when nil-check is present (#1077) (82789fb)

1.4.4

Bug Fixes

  • code quality improvements and performance optimizations (99523bf)

Performance Improvements

  • optimize hot paths and eliminate code duplication (e88ad38)
  • optimize parser, tokenizer, errors, lineeditor, and db packages (a52c4b6)

1.4.3

Bug Fixes

  • apply bug fixes from recent PRs (979d5e3)

1.4.2

Bug Fixes

  • typechecker: resolve multi-return type inference for stdlib calls via 'using' (#1062) (0c21737), closes #977

1.4.1

Bug Fixes

  • typechecker: add E3041 check for global fixed-size array overflow (#1060) (56de4f1), closes #1058

1.4.0

Features

Bug Fixes

  • parser: allow nil as function return type (#1054) (473b26e), closes #1044
  • stdlib/math: preserve precision for add, sub, mul, mod (45ab8c4)
  • stdlib/math: preserve precision for factorial, gcd, lcm (d7dc223)
  • stdlib/math: preserve precision for large integers (88187fb)
  • stdlib/math: preserve precision for min, max, clamp (b9ba598)
  • stdlib/math: preserve precision for pow, sum (e6eada0)
  • stdlib/math: preserve precision for sign (c7ba2f1)
  • tests: remove E17004_db_corrupted test (#1052) (275bdb3), closes #1051

1.3.0

Features

  • stdlib: Add Unix timestamp functions and date utilities to time module (#1023) (#1043) (bdb24e8)

1.2.0

Features

  • lexer: add \x hex escape sequence support in strings and chars (#1046) (3d4eae7), closes #1045

1.1.0

Features

  • stdlib enhancements, bug fixes, and type system improvements (2362596)
  • stdlib: add db.entries() function (#1035) (093742f), closes #1025
  • stdlib: add arrays.equals() function (#1033) (67258bd), closes #964
  • stdlib: add db.values() function (#1032) (3dd7dd0), closes #943
  • stdlib: add http.head, options, download, parse_url, build_url (#1034) (e89b899), closes #1022

Bug Fixes

  • context-aware return type inference for array literals (#1008) (31ed9fa)
  • interpreter: context-aware return type inference for array literals (1353cc1), closes #1008
  • interpreter: infer element type for array literals (45a18dc), closes #1008
  • typechecker: context-aware return type validation for array literals (2920d77)
  • typechecker: recognize when/default as exhaustive return coverage (9db5c52)
  • typechecker: recognize when/default as exhaustive return coverage (978a4d1), closes #918

1.0.2

Bug Fixes

  • typechecker: error when fixed-size array has too many elements (#1030) (7d09424), closes #1029

1.0.1

Bug Fixes

  • interpreter: add error codes and location info to runtime errors (#1009) (#1013) (d1bb289)
  • interpreter: add range checking for integer type narrowing (#962) (#1016) (02f953b)
  • stdlib: handle empty database files in db.open() (#941) (#1012) (eadc48d)
  • stdlib: improve error message when db file contains JSON array (#942) (#1014) (bea2f65)
  • typechecker: use correct error code E5010 for continue outside loop (#963) (#1011) (9f55570)

1.0.0

⚠ BREAKING CHANGES

  • Existing code using removed/renamed functions must be updated.

Features

  • #996: Rename stdlib functions for consistency (#1001) (0ad96f8)
  • stdlib function renaming for consistency (09b658b)

Code Refactoring

0.40.5

Bug Fixes

  • Add isMultiReturnCall to typechecker (#951) (981d068)
  • cli: Allow command line arguments for programs (#983) (9f4439d)
  • Detect invalid string interpolation syntax at parse time (#988) (7fcbcc1), closes #984
  • Error on bare function/type names as statements (#989) (a84ab6b), closes #985
  • Prevent RETURN_VALUE type leak for multi-return functions (#987) (750906f), closes #986

0.40.4

Bug Fixes

0.40.3

Bug Fixes

  • Typechecker modification to resolve "using directive" bug (#979) (42cf234)

0.40.2

Bug Fixes

  • ci: use EZ_DOCS_SYNC token for website repo access (#974) (f47c649)

0.40.1

Bug Fixes

  • ci: create wasm directory before copying files (#972) (193ddcb)

0.40.0

Features

  • wasm: add WebAssembly build for browser playground (#970) (89e860e)

0.39.3

Bug Fixes

  • interpreter,stdlib: replace .Type() with helper functions in error messages (#956) (61cc075), closes #948
  • interpreter: add Map case to objectTypeToEZ function (#955) (8ac5396), closes #945
  • interpreter: update type name functions with missing types (#946) (#958) (0774dde)
  • lexer,parser: add explicit 0o octal prefix, treat leading zeros as decimal (#954) (b8e7f41), closes #915
  • repl: prevent E4001 error when running REPL commands (#953) (019a81b), closes #890
  • typechecker,stdlib,tests: fix integration test failures (#952) (#960) (f528389)
  • typechecker: require type argument for json.decode (#947) (#957) (2cbb2c2)

0.39.2

Bug Fixes

  • interpreter: allow arbitrary precision arithmetic for int/uint types (#917) (#931) (728cd19)
  • parser: error on invalid operators in string interpolation (#916) (#933) (54b03bc)
  • typechecker: show correct error for invalid sized types with using directive (#914) (#932) (9ba4bc0)

0.39.1

Bug Fixes

  • update: exit original process after sudo completes (#927) (266c5c3)

0.39.0

Features

  • time: add weekday, month and duration constants (resolves #902) (#923) (179fe62)

0.38.0

Features

0.37.0

Features

  • http: add HTTP status code constants (#907) (5ce155d)

0.36.7

Bug Fixes

  • ci: use file -b to avoid matching on filenames in sanity check (f01ca70)
  • Internal type representation leaks Go type names instead of EZ types (26dd6c1)
  • interpreter: set Map KeyType/ValueType when maps are created (04e164f)
  • stdlib: add DeclaredType to float decode functions in binary module (2fd5582)
  • stdlib: add ElementType to bytes.split outer array (330cb1d)
  • stdlib: add ElementType to empty array in crypto.random_bytes (02293e1)
  • stdlib: preserve ElementType in arrays module functions (bb0f8de), closes #900
  • stdlib: preserve type info in [@maps](https://github.com/maps) module and copyByDefault (5a0259a)
  • stdlib: preserve type info in builtins and [@strings](https://github.com/strings) modules (0dc4d44)
  • stdlib: set DeclaredType for floats in json module (cb0d46f), closes #900
  • stdlib: set ElementType for arrays in db module (6e5086a), closes #900
  • stdlib: set ElementType for arrays in io module (637bbb7), closes #900
  • stdlib: set proper types for headers map and arrays in http module (450c5f3)
  • stdlib: set proper types in os module (bba1458), closes #900
  • stdlib: set proper types in random module (4739f16), closes #900
  • stdlib: update getEZTypeName to return proper EZ type names (d8ee463)
  • typechecker: reject typeof() on void function results (ff9897d)
  • types: add DeclaredType support for Float and sized type conversions (979e9fd)
  • types: typeof() returns "Database" for database objects (ad2ed95), closes #900
  • types: typeof() returns "Range<int>" for range objects (64cbb0a), closes #900
  • types: typeof() returns Ref<innerType> for references (8b06b9b), closes #900
  • types: use "File" as user-facing type name for FileHandle (c4d9a5a), closes #900

0.36.6

Bug Fixes

  • errors: update E3038 hint to be more accurate (a34b1b5)
  • interpreter: handle void return with ensure correctly (5580b07), closes #883
  • typechecker: prevent assignment of void function results (a574be5)
  • typechecker: reject void as explicit return type (d307711)
  • typechecker: reject void in compound types (b2182bf)
  • void function fixes and comprehensive type rejection (e504704)

0.36.5

Bug Fixes

  • repl: add multi-line navigation support (33381b0)
  • repl: add multi-line navigation support (a4dcf3d), closes #875

0.36.4

Bug Fixes

  • typechecker: runtime string relational operator failure (#888) (bc7aee4)

0.36.3

Features

  • add[@http](https://github.com/http) module HTTP client for web requests (#877) (34a874f)

Bug Fixes

  • Bug: Type inference fails for most stdlib module function calls (#878) (4b6bfa7)
  • resolve merge conflict and regenerate ERRORS.md (53cc4da)
  • typechecker: infer json.decode return type from type argument (908b026)

0.36.2

Bug Fixes

  • ensure: add missing validations and revert workflow change (#866) (e502fbd)

0.36.1

Features

  • ensure keyword for guaranteed cleanup on function exit #804 (#864) (cbef798)

0.36.0

Features

Bug Fixes

  • evaluator: allow modifying nested struct fields in array elements (4d5de68), closes #859
  • evaluator: prevent stack overflow on self-referential structs (6f68d98), closes #860
  • parser: allow blank identifier _ in for and for_each loops (456e75d), closes #858
  • typechecker: allow int/float comparison with == and != operators (0a5b97d), closes #857

0.35.0

Features

0.34.1

Bug Fixes

  • typechecker: resolve struct parameter member access for imported types (#851) (#853) (dada274)

0.34.0

Features

Bug Fixes

0.33.4

Bug Fixes

  • UTF-8 characters corrupted in interpolated strings (#839) (ebb34dc)

0.33.3

Bug Fixes

  • type inference for user module functions and void type validation (#837) (c63c48f)

0.33.2

Bug Fixes

  • #suppress before function now correctly applies to function only (#830, #831) (#832) (6837668)
  • add cleanup for database test files (#800) (#829) (35cfec8)
  • add overflow and division-by-zero checks for float arithmetic (#798) (#826) (476c18d)
  • add overflow/underflow checks for byte arithmetic (#817) (#822) (5bd37ba)
  • disallow loop variable shadowing (#114) (#835) (1cd45c2)
  • make arrays.remove_all() consistent with other remove functions (#820) (#825) (725d34d)
  • os.exec now returns error on non-zero exit code (#799) (#827) (06ee450)
  • prevent json.encode() from overwriting EncodeAsString conversion (#818) (#823) (85544e7)
  • prevent panic on multi-return type mismatch with fewer names than types (#816) (#821) (d983679)
  • properly extract first rune in strings.from_chars() (#819) (#824) (060cfa6)

0.33.1

Bug Fixes

  • mutable parameters now work with indexed/member expressions (#813) (4b7bdf2), closes #797
  • prevent array mutation during for_each iteration (#812) (00e0c83), closes #796
  • type inference for user-defined module function return types (#811) (be278e7), closes #807

0.33.0

Features

  • add PowerShell install script for Windows (e5ca88b)
  • add PowerShell install script for Windows (2244edb), closes #806

0.32.0

Features

  • added workflow for checking PR validity based on filetype (632d8bd)

Bug Fixes

  • ci: add more file extension checks (c6223fd)
  • ci: correct workflow issues in PR sanity check (9adafdd)

0.31.0

Features

  • stdlib: add db.exists() and db.update_key_name() (f89aac1)
  • stdlib: add db.sort() with sort order constants (8a26dab), closes #782

Bug Fixes

  • cli: always fetch fresh version info for ez version command (ffe4979)
  • stdlib: show overflow error instead of invalid format for large integers (e4ff4bb), closes #783
  • tests: strengthen db.ez assertions to actually verify behavior (5e2bd65)

0.30.2

Bug Fixes

  • typechecker: require Database type for db module functions (2d63dc6)
  • typechecker: require Database type for db module functions (851a6c2), closes #781

0.30.1

Bug Fixes

  • stdlib: write valid JSON when creating new database file (ecb396a)
  • stdlib: write valid JSON when creating new database file (46e0da2), closes #780

0.30.0

Features

  • stdlib: add @db module for simple key-value database (342a4f9)
  • stdlib: add @db module for simple key-value database (23e112a), closes #460

0.29.2

Bug Fixes

  • cli: consistent arg handling and remove stale ez run references (8fcb687)
  • cli: consistent arg handling and remove stale ez run references (0b7ba8c), closes #765
  • language: remove broken private:module and add typechecker validation (3fcb311)
  • use existing E12001 instead of undefined E9020 (09734b0)
  • use existing E12001 instead of undefined E9020 (f959f49), closes #769
  • visibility: remove broken private:module and add typechecker validation (bca6f4c), closes #767

0.29.1

Bug Fixes

  • interpreter: add bounds check for empty ReturnValue.Values (69c1c39)
  • interpreter: add bounds check for empty ReturnValue.Values (66859ca), closes #740
  • interpreter: check Deref() error before compound assignment (645af52)
  • interpreter: check Deref() error before compound assignment (836b7f7), closes #741
  • parser: prevent panic on comma-separated struct fields (7886e20)
  • parser: prevent panic on comma-separated struct fields (aa68024), closes #750
  • stdlib: add bounds check for integer-to-byte conversion (191ec8d)
  • stdlib: add bounds check for integer-to-byte conversion (26e214f), closes #748
  • stdlib: make ignored file Close errors explicit in io.go (c4048a9)
  • stdlib: make ignored file Close errors explicit in io.go (52dd245), closes #742
  • stdlib: remove redundant arrays.range() function (f957fdd)
  • stdlib: remove redundant arrays.range() function (6a2a7ec), closes #746
  • typechecker: handle ignored error returns properly (15d48a8)
  • typechecker: handle ignored error returns properly (5f18740), closes #752

0.29.0

Features

  • Struct field tags JSON customization (ae64d0a)

0.28.3

Bug Fixes

  • module symbol sharing and using statement resolution (94eea8d)
  • module symbol sharing and using statement resolution (2b7a0d0)

0.28.2

Bug Fixes

  • show parser errors in imported modules instead of misleading undefined function errors (e515f2c)
  • show parser errors in imported modules instead of misleading undefined function errors (2592b1f), closes #726

0.28.1

Bug Fixes

  • sort type checker errors by file and line number (9ca37f6)
  • sort type checker errors by file and line number (c8e7f6b), closes #727

0.28.0

Features

  • lang: add cast() keyword for type conversion (0cc34f2)
  • lang: add cast() keyword for type conversion (ab814f8), closes #717
  • stdlib: add @binary module and sized type conversions (496f874)
  • stdlib: add @binary module and sized type conversions (9487a65), closes #716

Bug Fixes

  • modules: add type checking for multi-file modules (#722) (19b5006)
  • modules: add type checking for multi-file modules (#722) (d806280)
  • modules: report type errors in single-file modules at check time (#720) (72ec320)
  • modules: report type errors in single-file modules at check time (#720) (efcf797)

0.27.0

Features

  • typechecker: add type checking for all stdlib modules (8842961)
  • typechecker: add type checking for all stdlib modules (fc1f4e8)

Bug Fixes

  • typechecker: comprehensive validation of imported types (#709) (0aedff9)
  • typechecker: comprehensive validation of imported types (#709) (88c32a7)
  • typechecker: for_each loop variables inherit mutability from collection (fc7dd06)
  • typechecker: resolve unqualified imported types in member access (#706) (72f8bfc)
  • typechecker: resolve unqualified imported types in member access (#706) (e6935f8)
  • typechecker: validate field names in imported struct literals (#708) (9ecc16b)
  • typechecker: validate field names in imported struct literals (#708) (a14162b)

0.26.0

Features

  • parser: support tuple unpacking in assignment statements (#699) (#704) (1c01533)

0.25.0

Features

  • multi-value handling improvements (5b533d1)

Bug Fixes

  • interpreter: display actual return type instead of RETURN_VALUE in E5012 errors (e702d39)
  • interpreter: display actual return type instead of RETURN_VALUE in E5012 errors (#696) (c84928e)
  • interpreter: handle multi-value assignment errors correctly (2f08c12)
  • interpreter: handle multi-value assignment errors correctly (#698) (6270ad2)

0.24.0

Features

  • add W2010 warning for chained member access on nullable structs (#689) (cd57753)
  • add W2010 warning for chained member access on nullable structs (#689) (3cd1ede)
  • implement ref() builtin and copy-by-default semantics (#661) (743153c)
  • implement ref() builtin and copy-by-default semantics (#661) (d064e56)
  • typechecker: comprehensive typechecker overhaul with ref() builtin (e05a459)
  • typechecker: detect literal division/modulo by zero (8ce1a11)
  • typechecker: detect literal division/modulo by zero (#667) (76b4f1e)
  • typechecker: detect undefined variables and functions at check time (#663) (4ca2c68)
  • typechecker: detect undefined variables and functions at check time (#663) (5334c4b)
  • typechecker: reject executable statements at file scope (c2b372f)
  • typechecker: reject executable statements at file scope (#662) (9ec3cd0)
  • typechecker: validate integer literal ranges for sized types (c315995)
  • typechecker: validate integer literal ranges for sized types (#666) (0d7cdfe)

Bug Fixes

  • add type inference for stdlib module multi-return functions (c2be2c1)
  • add type inference for stdlib module multi-return functions (f5120f8)
  • detect missing return on all code paths at check time (860be2a)
  • detect missing return on all code paths at check time (81667b9), closes #660
  • properly type multi-return builtin functions like read_int() (70519bc)
  • properly type multi-return builtin functions like read_int() (a88577e)
  • support module constants via using directive (#677) (a493e46)
  • support module constants via using directive (#677) (70dbfc3)
  • typechecker: add check-time array bounds checking (#685) (9fb99de)
  • typechecker: add check-time array bounds checking (#685) (c150246)
  • typechecker: add warning for member access on error type (#687) (052ead9)
  • typechecker: add warning for member access on error type (#687) (189a14c)
  • typechecker: detect undefined variables in assignment targets (f467bcf)
  • typechecker: detect undefined variables in assignment targets (#665) (24cf9b1)
  • typechecker: extend overflow detection to all integer types (#686) (c56aa3d)
  • typechecker: extend overflow detection to all integer types (#686) (6e0b31a)
  • typechecker: infer types for module variables via using directive (#677) (584d42e)
  • typechecker: resolve user module functions via 'using' directive (b90830e)
  • typechecker: resolve user module functions via 'using' directive (#671) (1285737)
  • typechecker: validate expressions in string interpolations (#684) (a4d8990)
  • typechecker: validate expressions in string interpolations (#684) (4da234d)

0.23.1

Bug Fixes

  • allow nil return for error type in user-defined functions (4d78d05)
  • allow nil return for error type in user-defined functions (f0fd24a), closes #657

0.23.0

Features

  • stdlib: add strings.to_int(), strings.to_float(), strings.to_bool() (846f90a)
  • stdlib: add strings.to_int(), strings.to_float(), strings.to_bool() (e496f23), closes #651

0.22.6

Bug Fixes

  • stdlib: arrays.set() now modifies array in place (411c17f)
  • stdlib: arrays.set() now modifies array in-place (2cdb73a), closes #652

0.22.5

Bug Fixes

  • cross-module nested struct initialization (a22d7e3)
  • cross-module nested struct initialization (13cf3e0)

0.22.4

Bug Fixes

  • workflow rebase, add README badges, improve test coverage (d356bce)

0.22.3

Bug Fixes

  • version update detection and error sync workflow (fbdb7bd)
  • version update detection and error sync workflow (f773ddb)

0.22.2

Bug Fixes

  • @strict when enforces enum exhaustiveness at check time (#629) (f549a3b)
  • @strict when rejects non-enum expressions (#628) (c734b18)
  • @strict when rejects non-enum expressions in cases (#628) (799b7a7)
  • [@strict](https://github.com/strict) when enforces enum exhaustiveness at check time (#629) (be87d59)
  • duplicate map keys in literal now produce check-time error (#641) (06b3f91)
  • duplicate map keys in literal now produce check-time error (#641) (f011903)
  • float display now shows actual precision for debugging (#640) (d2051fb)
  • float display now shows actual precision for debugging (#640) (3ef9314)
  • recursively initialize nested struct fields (#621) (ad4f911)
  • recursively initialize nested struct fields (#621) (3b7c653)
  • validate type assignments for imported module struct fields (#620) (194d74f)
  • validate type assignments for imported module struct fields (#620) (a965fb3)

0.22.1

Bug Fixes

  • detect variable shadowing of functions from used modules (db505b4)
  • detect variable shadowing of functions from used modules (#616) (cf40e75)

0.22.0

Features

  • add @JSON module, raw strings, and restrict any type (8e566e5)
  • add JSON module, raw strings, and restrict 'any' type (f66b734)

0.21.2

Bug Fixes

0.21.1

Bug Fixes

0.21.0

Features

0.20.1

Bug Fixes

0.20.0

Features

  • allow range() in if/in expressions and when/is statements (#501) (#505) (de2890f)

0.19.3

Bug Fixes

0.19.2

Bug Fixes

  • show update notification immediately on all commands (#499) (c436b2f), closes #498

0.19.1

Bug Fixes

  • add path validation to archive extraction functions (#487) (#495) (974250a)

0.19.0

Features

0.18.1

Bug Fixes

  • correct error codes for immutable variable/map errors (#488) (727ce1b)

0.18.0

Features

0.17.2

Bug Fixes

  • auto-elevate to sudo when update needs root permissions (#483) (8cfa5c3)

0.17.1

Bug Fixes

  • handle .tar.gz/.zip archives in ez update (#481) (b7d4314)

0.17.0

Features

0.16.15

Bug Fixes

  • show correct file location for multi-file module errors (#466) (#476) (b187e1a)

0.16.14

Bug Fixes

0.16.13

Bug Fixes

  • suppress module name warning for files in matching directories (#464) (#472) (6be1062)

0.16.12

Bug Fixes

  • handle module-prefixed types in type compatibility checks (#463) (#469) (3c597de)

0.16.11

Bug Fixes

  • resolve uppercase constants being parsed as struct literals (#462) (a406de3)

0.16.10

Bug Fixes

  • bug fixes batch - parser, stdlib, interpreter, and enum map keys (#454) (f90e10f), closes #452

0.16.9

Bug Fixes

  • implement arbitrary precision integers for i128/u128 support (#437) (#440) (af4cdbf)

0.16.8

Bug Fixes

  • integration test overhaul and bug fixes (#435) (a4ad4e8)

0.16.7

Bug Fixes

  • detect integer overflow in negation and division (#424) (e83bdfe)

0.16.6

Bug Fixes

0.16.5

Bug Fixes

  • float division by zero returns INF per IEEE 754 (#420) (744cf75), closes #402

0.16.4

Bug Fixes

0.16.3

Bug Fixes

  • reject nil assignment to non-nullable types (#416) (40e82e3), closes #407

0.16.2

Bug Fixes

0.16.1

Bug Fixes

  • make array functions modify in-place and fix remove() API (#412) (f6890b8)

0.16.0

Features

  • add line editor for REPL with arrow key navigation and history (#400) (bce7343)

0.15.2

Bug Fixes

  • resolve stdlib bugs for arrays, strings, and math modules (#398) (b278ce6)

0.15.1

Bug Fixes

  • resolve several interpreter bugs (5c083d3)

0.15.0

Features

0.14.10

Bug Fixes

  • resolve multiple bugs in stdlib, lexer, and parser (#374) (c4be966)

0.14.9

Bug Fixes

  • interpreter: nested mutable parameter forwarding now works correctly (#367) (5762939), closes #338

0.14.8

Bug Fixes

  • typechecker: type errors now report correct source location (#362) (13cdb4e)

0.14.7

Bug Fixes

  • parser: handle minimum int64 literal (-9223372036854775808) (#360) (8c75b43)

0.14.6

Bug Fixes

  • parser: enum member access in if condition no longer causes parser error (#358) (6e0c5de)

0.14.5

Bug Fixes

  • evaluator: isTruthy now checks Boolean.Value instead of pointer identity (#354) (18edd78)

0.14.4

Bug Fixes

  • ci: auto-merge release PRs even when a release is created in same run (eabee09)
  • stdlib: arrays.insert() and arrays.remove() now modify array in-place (3ad569a)
  • stdlib: arrays.insert() and arrays.remove() now modify array in-place (f26797d)

0.14.3

Bug Fixes

  • evaluator: implement short-circuit evaluation for && and || (a9e4fe1)
  • evaluator: implement short-circuit evaluation for && and || (2f6f0a6)

0.14.2

Bug Fixes

  • typechecker: handle array and map types in struct fields (0455540)
  • typechecker: handle array and map types in struct fields (0d1cd53)

0.14.1

Bug Fixes

  • interpreter: add recursion depth limit to prevent stack overflow (ccda7b7), closes #327
  • lexer: preserve line numbers in string interpolation expressions (5a236b7), closes #323
  • parser: block reserved names as function parameter names (1a52eb0)
  • parser: disallow import statements inside blocks and after declarations (19118f6), closes #324
  • parser: prevent nil pointer crash when using 'const' as identifier (e2177b3), closes #317
  • parser: use helpful error when keywords used as identifiers (614d2bd)
  • parser: use helpful error when keywords used as identifiers (5ffb6e3), closes #326
  • parser: use specific error codes for struct/enum reserved names (c86b903)
  • parser: validate enum value names against reserved keywords (1a3f9b1), closes #322
  • parser: validate struct field names against reserved keywords (a077535), closes #321
  • typechecker: block user-defined types/functions as parameter names (2bea2dc)
  • typechecker: enforce static typing for type-inferred variables (e1a4437), closes #329
  • typechecker: make missing return statement an error instead of warning (1338860), closes #318
  • typechecker: use correct error code for missing main function (92b3463), closes #328
  • typechecker: validate member access on non-struct types (df0daee), closes #313

0.14.0

Features

  • stdlib: add @random module with comprehensive random functions (0f2f981), closes #309
  • stdlib: add command execution functions to @os (b8b2e04)
  • stdlib: add filesystem utilities to @io (bf0e035), closes #287
  • stdlib: add math.log_base() for arbitrary base logarithms (7b304f6)
  • stdlib: add new string utility functions to @strings (7cce6fd), closes #285
  • stdlib: expand standard library with new modules and functions (401203e)

0.13.0

Features

  • add error() constructor for user-defined errors (95a85fe)
  • add error() constructor for user-defined errors (#292) (4f2bc5e)

0.12.0

Features

  • allow type inference for const declarations (279afc8)
  • allow type inference for const declarations (#302) (ff94be9)

0.11.3

Bug Fixes

  • struct mutability now respects temp/const declaration (e91d7d9)
  • struct mutability now respects temp/const declaration (#298) (66be5c0)

0.11.2

Bug Fixes

0.11.1

Bug Fixes

  • allow optional parentheses in for loops (#293) (d86b71c)
  • allow optional parentheses in for loops (#293) (16c968d)

0.11.0

Features

  • implement char() type conversion function (d7362bf)
  • implement char() type conversion function (#100) (e23c6d3)

0.10.0

Features

  • remove arrays.copy() and maps.copy() in favor of copy() builtin (#269) (aa2de1d)

0.9.0

Features

  • add copy() builtin for explicit value semantics (051a752)
  • add copy() builtin for explicit value semantics (#265) (4681cdd)

0.8.3

Bug Fixes

  • fixed-size array indexing returns correct element type (4c7211f)
  • fixed-size array indexing returns correct element type (#267) (92eeb28)
  • Handle comma in array type when extracting element type in inferIndexType. (92eeb28)

0.8.2

Bug Fixes

  • prevent modification of const struct fields (20074af)
  • prevent modification of const struct fields (#266) (17b033a)

0.8.1

Bug Fixes

  • remove deprecated lowercase math constants (9b7b238)
  • remove deprecated lowercase math constants (#260) (7e182fd)

0.8.0

Features

  • add mutable parameters with & syntax (7fdeb24)
  • add mutable parameters with & syntax (#268) (5075f6f)

0.7.1

Bug Fixes

  • ci: sync release-please manifest to v0.7.0 (d908c55)
  • ci: sync release-please manifest to v0.7.0 (dd05c6e)

0.7.0

Features

  • io: add byte I/O and atomic writes (ab37220)
  • io: add file handles, constants, and convenience functions (870df20)
  • io: byte operations, file handles & enhancements (7832642)

Bug Fixes

  • io: handle close errors on writable file handles (aebdd96)

0.6.1

Bug Fixes

  • io: add path security validation (3f82018)
  • io: add path security validation (a520f30), closes #254

0.6.0

Features

  • lang: add hex/binary literals and byte warnings (172028a)
  • lang: implement byte and [byte] data types (d1f98be)
  • lang: implement byte and [byte] data types (4499882), closes #248
  • stdlib: implement @bytes module for binary data operations (48a05b6)
  • stdlib: implement @io module for file system operations (99115a1), closes #243
  • stdlib: implement @os module (f2feac2)
  • stdlib: implement @os module for operating system operations (7595236)
  • stdlib: implement [@bytes](https://github.com/bytes) module for binary data operations (5533a97)
  • stdlib: implement [@io](https://github.com/io) module for file system operations (4b195d4)

Bug Fixes

  • stdlib: resolve CodeQL warnings (0a7b971)

0.5.0

Features

  • rename std.print to std.printf and fix escape sequences (d5a03a0)
  • rename std.print to std.printf and fix escape sequences (2a17192), closes #237

Bug Fixes

  • correct CodeQL workflow order and permissions (d93affa)
  • correct CodeQL workflow order and permissions (#221) (29a4c21)

0.4.0

Features

  • stdlib: add arrays.chunk function (7bb900b)
  • stdlib: add arrays.chunk function (3964f73), closes #228
  • stdlib: add math constants and infinity check (b9c4a59)
  • stdlib: add math constants and infinity check (bdf7c2a)
  • stdlib: expand strings module with 12 new functions (9add23b)
  • stdlib: expand strings module with 12 new functions (be16cfe), closes #228
  • stdlib: expand time module with arithmetic and utilities (c7f2be1)
  • stdlib: expand time module with arithmetic and utilities (f7edf78)

Bug Fixes

  • errors: standardize error codes across codebase (fdf91d2)
  • errors: standardize error codes across codebase (8cf3bfd), closes #233

0.3.0

Features

  • stdlib: add strings.repeat() function (e13972a)
  • stdlib: add strings.repeat() function (c50253e), closes #198

Bug Fixes

  • interpreter: add helpful suggestions for common function mistakes (3c56d14)
  • interpreter: add helpful suggestions for common function mistakes (7a64a64), closes #199
  • interpreter: allow empty {} literal for map types (6f22b9f)
  • interpreter: allow empty {} literal for map types (f59819e), closes #194
  • interpreter: auto-detect descending range when start > end (e21d282)
  • interpreter: auto-detect descending range when start > end (057df6d), closes #197
  • lexer: handle nested quotes in string interpolation (8506973)
  • lexer: handle nested quotes in string interpolation (adebd2c), closes #193
  • loader: properly format parse errors from imported modules (30c13fd)
  • loader: properly format parse errors from imported modules (bd39c18), closes #203
  • stdlib: add arrays.index() function (868223e)
  • stdlib: add arrays.index() function (da25e94), closes #200
  • stdlib: add strings.slice() function (faeecaa)
  • stdlib: add strings.slice() function (5fd5d9e), closes #201
  • stdlib: fix time.format() argument order and format conversion (470c0c7)
  • stdlib: fix time.format() argument order and format conversion (a62b2cb), closes #195

0.2.2

Bug Fixes

  • stdlib: add uppercase math constants, deprecate lowercase (f81bfcf)
  • stdlib: add uppercase math constants, deprecate lowercase (4fab99d), closes #196

0.2.1

Bug Fixes

  • stdlib: strings.join no longer includes quotes around elements (1e8c55a)
  • stdlib: strings.join no longer includes quotes around elements (1a4b531), closes #205

0.2.0

Features

  • add error tests and simplify README (8fe0851)
  • restructure EZ tests with pass/fail counting (665588a)
  • restructure EZ tests with pass/fail counting (34893a0)

0.1.0

Features

  • add @suppress() attribute functionality (6386409)
  • add automatic versioning with release-please (ebc27d7)
  • add basic warning system (990ffe9)
  • add installation and distribution system (230ab5f)
  • add installation and distribution system (9839456)
  • add project-wide build support to ez build (ccf189e)
  • add support for multi return values/update Parser, AST, Evaluator (6801f89)
  • add support for multiple inline imports (3a040e6)
  • add support for multiple inline imports (eb7d411), closes #72
  • Complete module system implementation (a9734bb)
  • enhance CI with comprehensive tests and REPL validation (222ff12)
  • enhance CI with comprehensive tests and REPL validation (bfaf414)
  • implement full enum support with attributes (98c90ce)
  • implement full enum support with attributes (a8f6e06), closes #9
  • implement interactive REPL mode (fcca9f8)
  • implement interactive REPL mode (fae00d9), closes #45
  • implement type sharing for function parameters (1991480)
  • implement type sharing for function parameters (5fc89e5), closes #10
  • improve release artifacts with archives and checksums (5d217c5)
  • improve release artifacts with archives and checksums (f51725d)
  • intergrate new error handling system into parser, evaluator, & lexer (6613db9)

Bug Fixes

  • add error E3007 for missing main() function (b5f6a90)
  • add error E3007 for missing main() function (fb995eb)
  • add support for array and string index assignment (e46004b)
  • add support for array and string index assignment (issue #4, #12) (f92d63e)
  • add warning W2003 for missing return statement (09f73d0)
  • add warning W2003 for missing return statement (0ca1056)
  • allow otherwise/or keywords after return/break/continue in if blocks (2523722)
  • allow otherwise/or keywords after return/break/continue in if blocks (0719e54), closes #14
  • allow variable shadowing in nested blocks (parser only) (27babab)
  • allow variable shadowing in nested blocks (parser) (7f8b40d)
  • Boolean negation and comparison for stdlib returns (1f274ff), closes #146
  • const declarations now support qualified type names (module.Type) (250c944), closes #157
  • const variable reassignment bug (44f41d0)
  • deduplicate modules in using scope to prevent ambiguity (34fc8c7)
  • deduplicate modules in using scope to prevent ambiguity (b48200e)
  • directory modules now properly share namespace across files (ec0d84b)
  • Display strings with quotes to distinguish from numbers (issue #99) (6fa2f77)
  • duplicate struct member names/add: loop depth tracking (fbcbb90)
  • enable logical operators (&&, ||, !) in if conditions (907f2c1)
  • enable logical operators (&&, ||, !) in if conditions (issue #8, #17) (ebf46da)
  • error bug, module importing error bugs (e11c8de)
  • extend for_each loop to support string iteration (89cd5f1)
  • extend for_each loop to support string iteration (f8e1ae7), closes #7
  • Float values ending in .0 now display decimal point (5eaa329)
  • function parameter parsing bug (dc49ff8)
  • implement char comparison operators (50f1420)
  • implement char comparison operators (2d68f4e)
  • initialize dynamic arrays to empty array instead of NIL (87a5f3d)
  • initialize dynamic arrays to empty array instead of NIL (68e767f)
  • int() builtin now supports enum value conversion (857e9dc), closes #154
  • invalid import statments not throwing errors (3f8ea40)
  • len() builtin now supports maps (8550f56), closes #147
  • lexer bug when handling @ in imports and attributes (75786d6)
  • logic that allowed nested function declarations (e2a60e9)
  • make arrays.push() and arrays.pop() modify arrays in-place (issu… (34f2b35)
  • make arrays.push() and arrays.pop() modify arrays in-place (issue #1, #18) (c751492)
  • Make range() end value exclusive (issue #112) (430abd5)
  • modulo by zero bug/ arg count mismatch bug (630a716)
  • parser no longer misidentifies uppercase enum members as struct literals (1a08edf)
  • parser no longer misidentifies uppercase enum members as struct literals (fe481c6), closes #162
  • preserve array mutability when passed to functions (4a71667)
  • preserve array mutability when passed to functions (1ef204f), closes #155
  • preserve enum type information with EnumValue wrapper (a5c9e5f)
  • preserve enum type information with EnumValue wrapper (5b4890b)
  • Prevent const variable mutation through arrays and index assignment (issue #98) (9fac9b6)
  • Prevent using reserved keywords/types as identifiers (fb88466)
  • provide default values for uninitialized primitive types (0584478)
  • provide default values for uninitialized primitive types (550a331)
  • range() now supports 1, 2, or 3 arguments (cb27fef)
  • resolve golangci-lint errors (8316faf)
  • resolve module system bugs for type resolution, arrays, enums, and using directive (045bfca)
  • resolve types from modules via using directive (26801df)
  • resolve types from modules via using directive (69c433d), closes #153
  • Return statements now correctly parse struct/array/map literals (f91bf8c), closes #142
  • struct evaluation bug & updatec core struct logic (7660298)
  • support array types in function return declarations (5ef0207)
  • support array types in function return declarations (3c42e1c)
  • support enum type annotation syntax and prevent nil pointer crash (66ef481)
  • support enum type annotation syntax and prevent nil pointer crash (464ed95), closes #149
  • support file-level using directive in type resolution (843f912)
  • support fixed-size array declarations (8313847)
  • support fixed-size array declarations (92edd88)
  • Support underscore syntax in int() and float() conversions (issue #103) (58352ce)
  • track imports by alias to support aliased using statements (421d0d5)
  • track imports by alias to support aliased using statements (7396473)
  • Typed tuple unpacking now parses correctly (8a5e599), closes #145
  • uncaptured return value bug (4cbc30b)
  • unwrap enum values before comparison operations (51338dd)
  • unwrap enum values before comparison operations (fca6931), closes #163
  • use global stdin reader to fix input() buffering issues (a18aa23)
  • use global stdin reader to fix input() buffering issues (cf20c81)
  • Validate enum type attributes to only allow primitives (issue #119) (135058d)
  • Validate module import before using statement (5aabb28)
  • Validate unknown attributes and prevent parser hang (3a41c6b), closes #165

Miscellaneous Chores

  • prepare initial release (fefa831)