What's Coming in Matchbox 0.3.0

Posted on Oct 29, 2026

Development of Matchbox 0.3.0 is well underway, with approximately two-thirds of the planned work complete. This release represents a significant step forward, including improvements to the compiler, virtual machine, and type system, as well as new language features and enhanced developer tooling.

The focus of 0.3.0 is to strengthen the language's foundations, expand its capabilities, and improve the overall development experience.

Compiler Improvements

Matchbox 0.3.0 introduces substantial improvements to the compilation pipeline, including semantic analysis, AST optimization, bytecode optimization, and constant folding.

These improvements enable more comprehensive compile-time validation while reducing unnecessary runtime operations. Dead-code elimination and improved tokenization further refine how Matchbox processes and optimizes source code.

Together, these changes establish a stronger foundation for future compiler optimizations and language features.

Expanded Type System

The type system is receiving its largest expansion yet, introducing a broader range of built-in types and more explicit control over data representation.

Planned additions include:

  • Integer types: i8, i16, i32, i64, u8, u16, u32, and u64.
  • Floating-point types: f32 and f64.
  • Additional types: bool, char, string, and void.
  • Pointer-sized integers: isize and usize.
  • Composite types: Fixed-size arrays, structures, enumerations, and tuples.

The release also introduces explicit type conversions and compile-time constants.

These additions provide greater control over memory usage, improve type safety, and support a wider range of programming applications.

Ownership and Memory Safety

Matchbox 0.3.0 introduces the foundations of an ownership model that aims to provide memory safety without relying on a garbage collector.

The model distinguishes between immutable bindings (let) and mutable bindings (var), and introduces references to control access to values.

  • Ownership: Values have a defined owner, with non-copyable values transferred through move semantics.
  • Shared references (&T): Allow read-only access to a value without transferring ownership.
  • Exclusive references (^T): Allow mutable access while preventing conflicting references.
  • Compile-time: Ownership and borrowing rules are enforced by the compiler to help prevent unsafe memory access.

These features establish the groundwork for predictable memory management, safer data sharing, and future concurrency capabilities.

Virtual Machine Improvements

Matchbox 0.3.0 introduces a major architectural upgrade to the virtual machine with register-based instructions. This represents an intermediate step toward a longer-term goal: compiling Matchbox programs directly to native machine code.

This transition is accompanied by superinstructions, an improved function calling convention, and support for recursive functions.

Register-based execution provides new opportunities to reduce instruction overhead, while superinstructions combine common operations into more efficient execution paths.

These changes are intended to improve execution performance and provide a more flexible foundation for future runtime enhancements.

Language and Tooling

Matchbox 0.3.0 significantly expands the language's syntax and control-flow capabilities.

New and improved features include conditional expressions, if and match statements, loops, ranges, additional operators, and membership testing. More advanced capabilities, including namespaces, destructuring, and sequence unpacking, are also part of the planned release.

Developer tooling is receiving attention as well:

  • Interactive REPL: Multiline expressions and automatic printing of expression results.
  • Command-line tools: Improved argument parsing, help options, and a new check command.
  • Standard functionality: Additional built-in functions, variadic printing, string building, and error handling.
  • Built-in testing: Test blocks, assertions, and a dedicated test command.

In addition, numerous internal improvements are also being made to simplify the codebase, improve naming consistency, and make Matchbox easier to maintain.

Looking Ahead

Development continues with a focus on completing the remaining features, refining existing implementations, and improving the reliability and performance of the compiler and virtual machine.

Matchbox 0.3.0 lays the groundwork for future development, bringing the language closer to its long-term goals of speed, portability, expressive syntax, and a unified toolchain.

Explore the latest changes in the Matchbox 0.3.0 development branch on GitHub, and visit the Matchbox Documentation to learn more about the language and its features.

Thanks for reading!