Swamp 0.6.10
Breaking
- Single item enum payloads in enum definitions are no longer allowed to have () around it, to not be confused with tuples.
- Enum variant patterns for if comparison must be on the left hand side of the == or !=.
Added
- Color literals in hex, #RRGGBB, and #RRGGBBAA. Suggested by catnipped.
- Emacs integration for Swamp files, thanks to Erik Svedäng.
- Segmented blocks ---. It functions as a normal block, but you don't have to wrap with {} and indent code.
- LSP: semantic tokens. Improves syntax highlighting.
- LSP: rename symbol.
- LSP: search for symbols in the workspace.
- LSP: color provider.
- LSP: format document.
- LSP: foldable regions.
- LSP: inline type hints.
- LSP: inline parameter name hints for positional arguments.
- Scoped variable definitions ::= syntax. Lets you use the variable using definitions.
- JIT execution through Rift, compiling code to native CPU instructions on supported platforms.
- Bench: can now compare runners (fast, debug, jit)
- Enum variants with struct payloads can now use payload syntax directly. Enum::Variant { field: value }
- None coalesce compound operator: ??=.
Changed
- Swim files now contains the Strata FIR instructions, instead of Beacon opcodes (Marsh VM opcodes). This enables great performance opportunities in the future.
Fixed
- Signed and unsigned right shift distinction.
Improved
- LSP: suggestions works better when typing . (dot).
- Error recovery / synchronize is improved, so cascading errors is less likely.
- More match expressions lower to FIR switch which, in theory, should be faster.
Internal improvements
- Simplified the parser and AST to support only syntax defined in the specification.
Experimental
- fmt cli command which formats swamp code. .swampfmt.yini files for format options.
Lily Runtime 0.6.30
Added
- Rift codegen compiles Strata FIR instructions to native CPU code.
- Beacon codegen compiles Strata FIR instructions to Beacon interpreter opcodes.
bogd 0.0.37
Added
- Use new Rift and Beacon runner.
swim 0.2.0
Added
- Use new Swim file format with Strata FIR instructions.
