Skip to content

0.13.0

Latest

Choose a tag to compare

@Rigidity Rigidity released this 23 Nov 14:33
· 9 commits to main since this release
3f6217a

Rue 0.13.0 adds match, enums, for expressions and struct update syntax, gives modules Rust-like scoping, and adds compiler options for targeting mainnet before and after hard fork 2. Release builds are noticeably smaller, generic inference accepts many more programs, and the language server gains rename, signature help, inlay hints and symbols.

Highlights

Language

  • match: match value { Int => ..., Bytes => ..., _ => ... } picks an arm by type, narrows like is and must be exhaustive ("Match on U is not exhaustive, since it doesn't handle B and C"). An arm can destructure or name the value after its type (Shape::Circle { radius } => ..., (Int, Int) as (first, rest)) and take a condition (Shape::Circle { radius } if radius > 10 => ...). inline match evaluates every arm, like inline if.
  • Enums: enum declares variants that are structs with a discriminant, such as Json::Null and Json::Bool { value: Bool }:
    • discriminants are implicit (counting up from 0) or explicit (CreateCoin = 51 { ... });
    • an enum whose variants have no fields is a plain atom, which supports as Int, == and !=;
    • enums can be generic, as in Option::Some::<Int> { value }, and variants have fields, defaults, constant fields and ...rest.
  • for expressions: for x in xs { x * 2 } builds a list, for c in conditions if c is CreateCoin { c.amount } filters and narrows, and for c in coins fold total = 0 { total + c.amount } folds from the right (fold acc: T = init gives the accumulator a type). A for whose value isn't used is a loop. for a in xs, b in ys { ... } goes through several lists together, and for x, rest in xs names the rest of the list. Any pattern can bind the item. Loops compile to recursion that is usually smaller than a hand-written helper.
  • Struct update: Point { ...point, y: 5 } copies the fields that aren't written from another value of the same struct, and evaluates it once.
  • if and match statements: both can now appear in the middle of a block, with branches that return, raise or fall through. Code after them is narrowed, and a statement whose branches all exit ends the block. A function's final if or match can also return from a branch.
  • Assert messages: assert balance >= amount, ["insufficient balance", balance, amount]; raises the message in debug builds. Release output is the same with or without it.
  • Byte indexing and slicing: bytes[i], bytes[start..end], bytes[start..] and bytes[..end] replace the substr builtin. Slicing a String gives a String.
  • Spreads anywhere in a list: [...a, x, ...b] is now allowed, not just a spread as the last item.
  • Strings: strings support Rust-style escapes (\n, \t, \\, \", \x7f, \u{...} and others), and '...' works like "...".
  • Never: the Never type can now be written, as in fn fail(message: String) -> Never.
  • Constants as programs: a constant can now be the program (rue build -e C, or a const main). Before, this panicked or, for a function-typed constant, returned the function's code without running it.
  • Struct defaults: a struct field's default can build another struct whose defaults are declared later. A default that depends on itself gets its own error.

Modules and imports

  • Namespaces: a module can share its name with a function, constant or type, as in Rust.
  • Inline modules: an inline module now sees only its own items, the prelude and super. Use super::name or an import to reach items of the enclosing module. The new prelude_over_enclosing_item lint warns when a name in an inline module now means a prelude item or builtin instead of an enclosing item with the same name.
  • project::: project:: names the project root (the entrypoint module, or the file itself for a single file) in paths, types and imports.
  • Private re-exports: re-exporting a private item is now an error, and export super::* no longer exports the parent's private items.
  • Resolution: imports resolve the same way regardless of declaration order and module names. A nested import no longer binds an item further out by mistake, a named import takes precedence over a glob, and a failed import no longer causes follow-on errors where its name is used.
  • Unused imports: unused-import and other unused warnings no longer depend on module or file names when several imports bring in the same item.

Type checking

  • Generic inference: many more calls are inferred without ::<...>, giving the type that writing the generics out would give:
    • untyped lambdas as arguments, inside pairs and lists, and in recursive calls, as in map(fn(x) => x, 5) and apply((1, fn(x) => x));
    • generic functions passed as arguments, as in map(duplicate, 42), and results expected to be generic functions;
    • literal and union expected types, as in let r: 5 = map(identity, 5) and Result<Int, String> built from ok(1) and err("x") in two branches;
    • folds with a pair, list or nil seed, and generics that no argument holds a value of, which are now Never (so length(nil) compiles).
  • Leaked generics: a generic from a passed function or from the expected type can no longer leak, unbound, into a call's inferred type. Programs that only compiled because of such a leak are now rejected with "Cannot infer generic".
  • Type guards: a guard now keeps the semantics of the value it narrows, so (x as Bytes) is Bytes32 no longer turns x + x into a concatenation. A guard's value is compiled without the guard's type expected of it, so unchecked_cast(x) is Bytes32 now checks at runtime. A guard whose value may fail now evaluates it, where (v / 0) is Int used to fold to true.
  • Function values: type guards and match arms that would have to inspect a function value are now an error, since debug and release builds represent functions differently.
  • Narrowing pairs: narrowing a pair by a guard on one or both of its parts now leaves a precise remainder, so a match over every combination of (Circle | Square, Circle | Square) is exhaustive.
  • Error messages: "Cannot infer generic" is left out when another error explains it, {unresolved} no longer appears, and a lambda with the wrong number of parameters says so. Unions show each member once and true | false as Bool. Hex literals assigned to an Int, spreads into list builtins (sum(...values)), struct initializers written before a body and modules used as values all get explanations, several with fixes.
  • Fixes: aliases that refer to themselves through another alias's generics are rejected up front, and R1Signature is shown by its own name instead of Signature.

Lints

  • New lints: 13 new lints, for 52 in total: unreachable_match_arm, indistinguishable_match_arm, inline_match_may_raise, redundant_match_arm_as, unused_enum, unused_struct_spread, bracketed_for, inline_value_may_fail, bool_operator_may_raise, redundant_union_member, indistinguishable_union_member, imprecise_narrowing and prelude_over_enclosing_item. needless_keccak256_verify is allowed by default and warns with hard_fork_2.
  • manual_assert: now also reports if cond { raise value; } and suggests assert !cond, value;.
  • Never conditions: constant_condition and unnecessary_guard no longer report conditions that never finish, and unreachable_code now reports the code after them.

Compiler and optimizer

  • Checks are kept: release builds no longer drop or move a check that can fail when they inline a binding or argument, or leave out an unused binding. Before, let _checked = check_password(password); 42 could accept any password in release. The same goes for long shift constants, a for or lambda that's inlined with an argument that can fail, and lists that end in an atom other than nil, where debug and release builds used to disagree.
  • Smaller output: release programs are noticeably smaller and usually cheaper:
    • new rewrites for pairs, divmod, booleans and nested all/any, and dropping unused values that can't fail;
    • lambdas known at the call are inlined, and small functions called more than once are inlined when that makes the program smaller;
    • smaller closures, &&, || and nil checks, and consecutive asserts merged into one all;
    • destructured values are evaluated once however often a part is read, and values a lambda captures are evaluated once instead of on every loop iteration;
    • environments are laid out to be shared between functions, and the compiler tries a few layouts and keeps the smallest.
  • Fixes: inline fn calls that passed a function to another function or nested a call to the same function could return the wrong value, and a struct field default containing a let, lambda or loop crashed the compiler.

Targeting mainnet

  • operand_limits: a new compiler option (operand_limits in [compiler] in Rue.toml, or --operand-limits) targets mainnet's LIMITS flag, which rejects long operands of *, /, %, divmod, modpow, g1_multiply and g2_multiply. It's off by default.
  • hard_fork_2: a new compiler option (hard_fork_2, or --hard-fork-2) targets mainnet after hard fork 2, with the new cost model, modpow and keccak256, and 1-byte opcodes for secp256k1_verify and secp256r1_verify. It's off by default, and can't be combined with operand_limits.
  • keccak256_verify: keccak256_verify(value, hash) fails unless the Keccak-256 hash of value is hash, and works before hard fork 2.

CLI

  • Stack traces: rue test prints a stack trace with function names, source lines and parameter values when a test fails at runtime.
  • Debug metadata: rue build --debug-metadata writes a sidecar that debuggers use to show where a failing program was in the source, and rue debug --debug-metadata <PATH> uses it.
  • Help: each command now has its own --help description.
  • Versions: rue test checks the project's Rue version, as rue build does.

Language server

  • Rename: renames functions, constants, bindings, structs, enums, fields, modules and more across the project, including the files of file modules.
  • Signature help: shows the signature and active parameter of calls and struct initializers, with inferred generics.
  • Inlay hints: shows inferred types of bindings and lambda parameters, inferred generic arguments and parameter names. Each kind can be turned off with the inlayHints setting.
  • Symbols: document outlines and workspace symbol search.
  • Find references: every use of a field is now found, including in generic structs and initializers.

Standard library

  • List functions: length, reverse and contains are in the prelude.
  • Conditions: the condition structs are now variants of enum Condition, so a match over a Condition can be exhaustive. CreateCoin { ... } and the other names still work.
  • merge_list: removed, since spreads now work anywhere in a list.

Parser and formatter

  • rue fmt now chooses the quote that needs fewer escapes, preferring " unless single_quote = true is set under [formatter] in Rue.toml.
  • rue fmt breaks a signature's parameters before the generic arguments of its return type.
  • A long for header puts its filter and fold on their own lines.
  • A missing } before a list no longer gives an error for every item.

Playground

  • Redesign: a new editor with diagnostics and quick fixes; tabs for the program, running it, tests and problems; share links, an examples menu, formatting and debug builds; themes; and a phone layout.

Robustness and performance

  • Hangs: type comparisons that would take too long now stop with "Comparing X to Y is too complex", and cases that ran for minutes or never finished now finish in seconds.
  • Runtime type checks: a check over 10,000 nodes is now an error instead of seconds of compiling and megabytes of output.
  • Determinism: error locations, union member order and the "too complex" limit are now the same on every run.

Upgrading

  • New keywords: match, enum, for and project are reserved, so names that use them must change. in and fold are still usable as names.
  • Removed: substr (use bytes[start..end] and the other forms above), merge_list (use [...a, ...b]) and the opcode field of conditions (use let (opcode, _) = condition as (Int, Any);).
  • Hard fork 2 builtins: modpow and keccak256 are now errors unless hard_fork_2 is on. Set it if you target mainnet after the fork, or use keccak256_verify before it.
  • Strings: a backslash in an existing string now starts an escape, so write \\ for a literal backslash. rue fmt may change the quotes of existing strings, but never their values.
  • Modules: inline modules that use enclosing or sibling items by bare name need super::name or an import. Re-exports of private items are errors.
  • Type guards: code that relied on a guard to change a value's type (such as Int to Bytes32) needs an explicit cast. Guards on values whose type includes a function, and calls that only compiled through a leaked generic, are now errors.
  • New warnings: the new lints and the wider manual_assert and unreachable_code may report existing code. Use [lints] in Rue.toml or attributes to tune them.
  • Compiled output: most programs compile to different, smaller CLVM, so their tree hashes change. Programs that relied on a release build skipping a check that can fail now fail as their debug build does. A failing release build may report a different error than before (for example from a merged assert), and && and || now pass a non-Bool right operand through unchanged.
  • Dependencies: the CLI now uses chialisp 0.7.0, and the Chia crates were updated to their latest versions.
All pull requests
  • Redesign the playground by @Rigidity in #321
  • Break parameters before return type generic arguments in rue fmt by @Rigidity in #323
  • Keep checks that may fail when inlining and in unused bindings by @Rigidity in #324
  • Lower a call's arguments in the order of its parameters by @Rigidity in #326
  • Add optimizer rewrites for pairs, divmod, conditions and nested all/any by @Rigidity in #276
  • Resolve imports the same way whatever order they're resolved in by @Rigidity in #327
  • Group bindings from their direct dependencies by @Rigidity in #330
  • Instantiate a passed generic function's generics in inference candidates by @Rigidity in #328
  • Pass the type expected of a call to generics inferred through others by @Rigidity in #331
  • Pass generics' upper bounds to the generics inferred through them by @Rigidity in #333
  • Reject aliases that refer to themselves through another alias's generic application by @Rigidity in #329
  • Fall back to iterating when a fixpoint comparison's single pass takes too long by @Rigidity in #342
  • Instantiate unconstrained generics of passed functions as Never or Any by @Rigidity in #345
  • Generalize types that reference a generic function type expected of a call by @Rigidity in #346
  • Rename the callee's generics in recursive calls by @Rigidity in #347
  • Add a differential fuzzer for generic inference by @Rigidity in #356
  • Only compare a function's runtime structure when no union member holds it by @Rigidity in #365
  • Leave out function candidates that another candidate already holds by @Rigidity in #366
  • Expect a lambda's body to be what the function type expected of it returns by @Rigidity in #368
  • Move picking inferred types into an infer module, and fingerprint fuzzer results by @Rigidity in #369
  • Generalize nested returned functions over the expected nested generics by @Rigidity in #371
  • Record which union member each inference candidate was collected under by @Rigidity in #372
  • Solve a call's generics with a CallSolver that owns how the expected type is used by @Rigidity in #373
  • Move inferring a call's generics from its arguments into call_inference.rs by @Rigidity in #375
  • Add a second version of the fuzzer's generator with more shapes by @Rigidity in #377
  • Infer a renamed generic as the generic it was renamed from when they match by @Rigidity in #376
  • Compile a call's arguments once the generics they depend on are settled by @Rigidity in #379
  • Compile a lambda in a pair or list argument against what the elements before it infer by @Rigidity in #384
  • Pass a generic's lower bounds into the generics in its compound upper bounds by @Rigidity in #385
  • Give up on type comparisons that take too many steps, and add tests from #344 by @Rigidity in #386
  • Give an argument's expected type the call's expected bounds for the generics the arguments map by @Rigidity in #387
  • Refine a call with no arguments in a pair or list argument against what the elements before it infer by @Rigidity in #388
  • Give modules their own namespace by @Rigidity in #380
  • Make inline modules see only their own items, like in Rust by @Rigidity in #381
  • Resolve imports with per-module determinacy by @Rigidity in #382
  • Resolve generics and check instance bounds only from the union members that matched by @Rigidity in #389
  • Show an atom once in a union when it's repeated by @Rigidity in #398
  • Pass upper bounds through other generics to the generics that were inferred too by @Rigidity in #401
  • Support string escapes, single quotes and formatter quote style by @Rigidity in #400
  • Add summaries of the bounds a comparison puts on generics being instantiated, and a baseline for nested generic functions by @Rigidity in #402
  • Build the dev profile at opt-level 1 by @Rigidity in #404
  • Let renamed generics take derived bounds in recursive calls by @Rigidity in #399
  • Resolve passed generic functions' instances through vars by @Rigidity in #407
  • Count every glob import that brings in a name as using it by @Rigidity in #406
  • Wait for a named import before forcing a glob import's lookup of its name by @Rigidity in #410
  • Warn when a name in an inline module refers to the prelude over an enclosing item by @Rigidity in #409
  • Block the names of failed imports whatever the reason, through every level of super by @Rigidity in #405
  • Give a lambda in a recursive call's pair or list what the elements before it infer by @Rigidity in #414
  • Count a use of an ambiguous glob import name as a use of every item it could refer to by @Rigidity in #411
  • Add a crate:: root path that names the project root by @Rigidity in #412
  • Solve passed generic functions' instances with the call's generics by @Rigidity in #416
  • Time-limit rue-tests runs against compiler mutants in review loops by @Rigidity in #422
  • Make the order free_generics finds generics in deterministic by @Rigidity in #423
  • Time-limit cargo test runs against compiler mutants too by @Rigidity in #424
  • Infer untyped lambda parameters with the call's generics by @Rigidity in #425
  • Report re-exports of private items by @Rigidity in #413
  • Split resolve_import into path, glob and named pieces by @Rigidity in #427
  • Rename the crate root path to project by @Rigidity in #430
  • Bound the number of passes in resolve_imports by @Rigidity in #431
  • Instantiate passed generic functions' instances once per inference by @Rigidity in #432
  • Count an expected type that isn't a hint, wherever it is by @Rigidity in #438
  • Infer the parameters of lambdas in pair and list arguments by @Rigidity in #439
  • Infer lambda parameters in recursive calls by @Rigidity in #440
  • Infer the callee's generics inside a lambda's parameter types by @Rigidity in #441
  • Refine a pair element with a call without arguments in it by @Rigidity in #442
  • Add a generator for #344's corpus of nested generic programs by @Rigidity in #417
  • Instantiate each occurrence of a generic function on its own by @Rigidity in #418
  • Memoize comparisons that refer to instances, with their summaries by @Rigidity in #419
  • Iterate over summaries in fixpoint mode for nested generic functions by @Rigidity in #420
  • Compare only new members when passing lower bounds down by @Rigidity in #433
  • Keep at most two copies of a compound member in an inferred union by @Rigidity in #434
  • Resolve uninferred generics through the current mappings by @Rigidity in #435
  • Count an argument's expected type when it's what the call's solution has to be by @Rigidity in #445
  • Bind failed imports to error items instead of blocking their names by @Rigidity in #437
  • Give list items past the end of the expected pairs the item before's type by @Rigidity in #446
  • Keep the references to a lambda parameter's generics in struct fields and inner pairs by @Rigidity in #447
  • Instantiate a lambda's caller generics when its body captures none of their values by @Rigidity in #448
  • Instantiate the generic functions compared inside of another while its bounds are checked by @Rigidity in #444
  • Resolve an untyped lambda parameter from the value that flows into it by @Rigidity in #450
  • Keep a lambda parameter's generic references through aliases and narrowing by @Rigidity in #454
  • Give a nested call with lambdas in its arguments the expected bounds by @Rigidity in #455
  • Report a private re-export once, without extra errors from globs and chains by @Rigidity in #453
  • Check union members' bounds as alternatives, and compare a type with itself as Assign (#362 step 13f) by @Rigidity in #451
  • Audit unresolved placeholders and refuse codegen after one without an error by @Rigidity in #466
  • Let struct defaults build structs whose defaults are compiled later by @Rigidity in #469
  • Add regression tests porting the root chia_puzzles puzzles to Rue by @Rigidity in #456
  • Add regression tests porting the chia_puzzles CAT puzzles to Rue by @Rigidity in #457
  • Add regression tests porting the chia_puzzles NFT and DID puzzles to Rue by @Rigidity in #458
  • Add regression tests porting the chia_puzzles DAO puzzles to Rue by @Rigidity in #459
  • Add regression tests porting the chia_puzzles VC puzzles to Rue by @Rigidity in #460
  • Add regression tests porting the chia_puzzles MIPS puzzles to Rue by @Rigidity in #461
  • Add regression tests porting the chia_puzzles internal custody puzzles to Rue by @Rigidity in #462
  • Add regression tests porting the chia_puzzles pool, DataLayer, consensus and full node puzzles to Rue by @Rigidity in #463
  • Move builtin calls into builtin.rs, and clarify four error messages by @Rigidity in #471
  • Give a nested call the expected type's own bound by @Rigidity in #468
  • Warn when the right side of a Bool & or | can raise by @Rigidity in #473
  • Compile a guarded value without the guard's type expected of it by @Rigidity in #474
  • Treat a shift by a constant longer than 4 bytes as able to fail by @Rigidity in #475
  • Limit the size of runtime type checks by @Rigidity in #472
  • Check whether a list has ended by whether it's nil, in debug and release alike by @Rigidity in #476
  • Treat multiplication and division of values not known at compile time as able to fail by @Rigidity in #477
  • Instantiate the instances nested further in while a function comparison's bounds are checked by @Rigidity in #482
  • Emit chialisp debug metadata sidecars by @Rigidity in #478
  • Show stack traces for failing programs in rue test and rue debug by @Rigidity in #479
  • Count everything in each module an ambiguous name in a path could refer to as used by @Rigidity in #483
  • Share a binding between named imports of the same item, as glob imports do by @Rigidity in #481
  • Instantiate the callee's generics in element lambdas' types by @Rigidity in #485
  • Keep an expected type's generics from leaking into a call's inferred type by @Rigidity in #490
  • Evaluate a type guard's value when its check doesn't use it but the value may fail by @Rigidity in #487
  • Keep the semantics of a value when a type guard narrows it by @Rigidity in #486
  • Generate code for constants used as the program by @Rigidity in #484
  • Put the LIMITS operand checks under an operand_limits compiler option by @Rigidity in #488
  • Fix the entrypoint tests' build after CLVM_FLAGS was replaced by @Rigidity in #492
  • Compile an element lambda once the later arguments that add to its parameters' generics are by @Rigidity in #489
  • Add a hard_fork_2 compiler option for targeting mainnet after hard fork 2 by @Rigidity in #494
  • Add keccak256_verify, which checks a Keccak-256 hash before hard fork 2 by @Rigidity in #497
  • Lint keccak256_verify calls that can be an assert of keccak256 after hard fork 2 by @Rigidity in #499
  • Keep element lambdas in place under a hinted expected type, and let them wait when they read a field of an unmapped generic by @Rigidity in #504
  • Check union members as alternatives when bounds fail, with summaries that keep them (#362 step 13g) by @Rigidity in #491
  • Tell a caller's own generic from one standing for a renamed one in an element lambda by @Rigidity in #508
  • Drop union bounds that name the generic's own cycle (#362 13k4, 13k5) by @Rigidity in #507
  • Add infer-fuzz generator version 3 and a leaked-generic oracle (#362) by @Rigidity in #500
  • Count a lambda's parameters as the renamed generics they stand for in a recursive call's candidates by @Rigidity in #509
  • Narrow a generic for union members another member's implied candidates make unneeded, when the call is rejected otherwise (#362 step 13h) by @Rigidity in #510
  • Add match expressions with exhaustiveness checking by @Rigidity in #501
  • Add enum declarations by @Rigidity in #503
  • Make the standard library's conditions an enum by @Rigidity in #513
  • Quote the constant parts of closures, and use the right operand of && and || as is by @Rigidity in #512
  • Inline calls to lambdas that are known where they're called by @Rigidity in #506
  • Add length, reverse and contains to the standard library by @Rigidity in #518
  • Raise the review loop's round limit to 10 and stop it when rounds stop making progress by @Rigidity in #520
  • Split pairs by the part that differs when subtracting types by @Rigidity in #505
  • Split a pair in two when subtracting a pair whose parts both differ by @Rigidity in #515
  • Leave out narrowed aliases from subtraction results, so they aren't shown by their old names by @Rigidity in #516
  • Require the union of every member's bound, and narrow for generic function expected types (#362 step 13h.1) by @Rigidity in #511
  • Let if and match be statements in the middle of a block, and end a block when every branch exits by @Rigidity in #519
  • Allow spreading lists before the last item of a list by @Rigidity in #521
  • Give R1Signature its own semantic instead of the BLS signature's by @Rigidity in #522
  • Add a release-notes skill that writes release notes in the current format by @Rigidity in #524
  • Add messages to assert statements by @Rigidity in #525
  • Index and slice bytes with brackets, and remove substr by @Rigidity in #523
  • Rename symbols, types, fields and modules in the language server by @Rigidity in #527
  • Show signature help in the language server by @Rigidity in #528
  • Show inlay hints in the language server by @Rigidity in #529
  • List document and workspace symbols in the language server by @Rigidity in #530
  • Leave nil unquoted, compile nil checks of any value to not, and read path bindings where they're referenced by @Rigidity in #534
  • Evaluate cheap right operands of && and || either way, and branch directly on the rest by @Rigidity in #535
  • Check conditions that fail the same way together by @Rigidity in #536
  • Inline small functions that are called more than once when the program is smaller by @Rigidity in #537
  • Name or destructure the value in a match arm with a binding after its type by @Rigidity in #526
  • Refine a recursive call's element lambdas against what the call is solved with by @Rigidity in #540
  • Add infer-fuzz generator 4 with recursive element lambda shapes by @Rigidity in #541
  • Add for expressions, which go through the items of a list by @Rigidity in #539
  • Allow a condition on a match arm, after its type and binding by @Rigidity in #546
  • Evaluate a destructured call once, however often a part is read by @Rigidity in #547
  • Reject type guards that have to check a function value by @Rigidity in #558
  • Add struct update syntax, which copies the fields that aren't written from a spread value by @Rigidity in #532
  • Infer a generic that the arguments hold no value of as Never by @Rigidity in #560
  • Evaluate a fold's result in place only when that can't keep it from failing by @Rigidity in #563
  • Show a union's members once, and true | false as Bool by @Rigidity in #564
  • Report the error that a generic isn't inferred because of, without {unresolved} by @Rigidity in #565
  • Go through several lists together in a for, and name the rest of the list by @Rigidity in #562
  • Format a long for header with its filter and fold on their own lines by @Rigidity in #567
  • Bound a generic by the expected type's union members that can hold the return type by @Rigidity in #571
  • Type a lambda parameter that feeds itself as a least fixpoint, so a fold with a pair, list or nil seed compiles by @Rigidity in #572
  • Test the memo with the inferred generic inside a function type, and pin the step counters by @Rigidity in #575
  • Lint a for in brackets, and compile a for whose value isn't used as a loop by @Rigidity in #561
  • Build a for that's spread before other items directly onto them by @Rigidity in #569
  • Pin that a passed function's generic in both positions isn't inferred from the expected type by @Rigidity in #576
  • Let programs write the Never type by @Rigidity in #577
  • Evaluate a value that a lambda captures once, and capture defaults where they're used by @Rigidity in #574
  • Add infer-fuzz generator 5 with element lambdas in ordinary calls by @Rigidity in #581
  • Type element lambdas in ordinary and recursive calls with one mechanism by @Rigidity in #582
  • Make how many steps comparing takes the same in every run by @Rigidity in #584
  • Lower a for as small as recursion written by hand in three more cases by @Rigidity in #592
  • Lay out functions that capture the same symbols in the same tree by @Rigidity in #593
  • Port the list functions of the examples, chia_puzzles and std to for by @Rigidity in #594
  • Remove merge_list from the standard library by @Rigidity in #600
  • Lower the program with a few layouts of its environments and keep the smallest by @Rigidity in #601
  • Evaluate a value that only a loop uses where the loop is called by @Rigidity in #603
  • Say nothing about conditions that never finish by @Rigidity in #604
  • Evaluate a fold's result in place where it's the argument of a call by @Rigidity in #602
  • Evaluate a value before a raise that follows it by @Rigidity in #605
  • Evaluate the captured arguments of a call that's inlined instead of building its closure by @Rigidity in #607
  • Port settle and wrap in two chia_puzzles ports to for by @Rigidity in #606
  • Count two raising runs as the same result in infer-fuzz, and accept CannotInferParameterType from probes by @Rigidity in #608
  • Report warnings inside a self-feeding lambda once, by restoring every lint-site list by @Rigidity in #609
  • Defer the caller's generic standing in after an error in a recursive call, and fix stale inference comments by @Rigidity in #611
  • Call the loop directly from the callers of a function whose body is a for over its parameters by @Rigidity in #610
  • Explain that list builtins take the list itself instead of spread arguments by @Rigidity in #614
  • Bump version to 0.13.0 by @Rigidity in #619
  • Trim the README and keep feature documentation in the docs by @Rigidity in #624
  • Add lints for redundant and indistinguishable union members by @Rigidity in #615
  • Clean up type comparison and share one walk over union members by @Rigidity in #620
  • Walk LIR children generically and share the small static check by @Rigidity in #621
  • Restructure infer_call and share CLI, LSP and test setup by @Rigidity in #622
  • Give each command its own description instead of the target flags' by @Rigidity in #626
  • Explain inline narrowing, struct initializers before a body, and modules used as values by @Rigidity in #625
  • Split CI into parallel jobs and run the fuzzers by @Rigidity in #630
  • Explain that hex literals are bytes when one is assigned to an Int by @Rigidity in #629
  • Fix a panic on a fold whose body ignores its accumulator by @Rigidity in #627
  • Bump serde-saphyr from 2.1.1 to 2.2.0 in the cargo group by @dependabot[bot] in #631
  • Group all Cargo and Actions updates like chia-wallet-sdk and sage by @Rigidity in #638
  • Bump clvm-traits, clvm-utils, sha2, sha3 and toml by @Rigidity in #639

Full Changelog: 0.12.0...0.13.0