Wave v0.0.1-alpha has officially been released.
Since the release of v0.2.1-pre-beta on October 5, a total of 57 commits have been integrated over approximately two months. This release introduces the experimental Whale backend, improvements to compiler stability and diagnostics, standard library enhancements, expanded Vex integration, and a major overhaul of the build and distribution infrastructure.
1. Transition to the Alpha Development Stage
Starting with this release, Wave's versioning scheme has changed from v0.2.1-pre-beta to v0.0.1-alpha.
Although the version number is lower, this is not a rollback to an earlier version. Wave is entering its Alpha development stage while preserving its existing development history.
We will continue to evolve the language specification, compiler architecture, standard library, and development tools.
2. Introduction of the Experimental Whale Backend
One of the most significant changes in this release is the introduction of the Whale backend.
An independent whale crate has been added to the Wave compiler, establishing an architecture in which Whale and the existing LLVM backend can coexist.
The Whale backend generates verified Whale IR from Wave's Typed HIR.
The following features are currently supported:
- Scalar types and type aliases
- Integer operations up to 128 bits
- Floating-point operations
- Integer enumerations and type conversions
- Function declarations and direct calls
- Default parameters
- Local variables and scalar global constants
- Conditional statements and loops
- Integer-based
match - The
chartype - Compound assignment operators
- Prefix and postfix increment and decrement operators
- Target-specific scalar size and alignment information
- IR verification and source location information
The following program can be translated into Whale IR:
fun square(value: i32) -> i32 { return value * value; } fun main() -> i32 { return square(7); } wavec --whale check main.wave wavec --whale build main.wave --emit=ir --out-dir output The generated IR can be found at output/main.wir.
The Whale backend currently provides experimental IR generation on Linux AMD64 at -O0. Native executable, object file, and assembly generation are not yet supported.
Unsupported features produce explicit compiler diagnostics instead of automatically falling back to LLVM.
LLVM remains the default backend for Wave.
3. Improved Floating-Point Handling
Floating-point literal type resolution and representable range validation have been improved.
Floating-point literals without a type context default to f32, while explicit declarations, function parameters, and other type contexts can resolve them to f64.
fun main() { var a: f32 = 1.23456789; var b: f64 = 1.23456789; println("{}", a); println("{}", b); } Literals exceeding the representable range of the selected floating-point type are now diagnosed during compilation.
Output Precision
A new floating-point precision specifier has been added to print and println.
fun main() { var value: f64 = 3.141592653589793; println("{:.2}", value); println("{:.4}", value); println("{:.8}", value); } Output:
3.14 3.1416 3.14159265 Precision formatting is supported in both native and WebAssembly environments.
Existing placeholders and the default six fractional digits remain unchanged. Output precision does not affect the internal storage precision of a value.
4. Initial Syntax Support for Object-Oriented Programming
This release includes the first steps toward implementing Wave's future object-oriented programming system.
The parser can now recognize the following explicit member access modifiers:
pubprivprotected
It can also parse proto contract declarations with qualified names.
struct Counter { priv value: i32; pub fun get(counter: Counter) -> i32 { return counter.value; } } proto graphics::Renderer : Counter { protected fun render(counter: ptr<Counter>) { } } These declarations can be inspected through AST output.
wavec build main.wave --emit=ast --ast-format=json These features are currently supported at the parsing stage only.
Semantic analysis and code generation for member access control and qualified contract implementations have not yet been implemented. Programs using explicit member access modifiers produce an error during semantic analysis.
Existing structures, proto methods, and module-level pub declarations remain supported.
5. Compiler Stability and Correctness Improvements
Numerous issues have been addressed throughout the compiler frontend and LLVM backend.
Frontend
- Removed redundant UTF-8 validation in the lexer.
- Improved token column tracking.
- Fixed incorrect merging of distinct types during generic specialization.
- Added early validation for recursive by-value structures.
- Added diagnostics for statically detectable out-of-bounds accesses to fixed-size arrays.
- Added support for equality and inequality comparisons between
boolvalues. - Improved nesting limits for expressions, blocks, types, and module imports.
- Fixed the handling of combined
#[target]conditions. - Improved Typed HIR handling of default function arguments.
LLVM Backend
- Fixed fixed-size array returns and value-copy semantics.
- Improved computed pointer and array index expression handling.
- Prevented writes to string literal storage.
- Added variant payload size validation.
- Improved aggregate temporary storage usage inside loops.
- Fixed remainder operations involving the minimum signed integer value.
- Improved helper function attributes in freestanding environments.
- Fixed Darwin ARM64 syscall register handling under optimization.
These changes focus on improving code generation correctness and reducing unintended behavioral differences between optimization levels.
6. Improved Compiler Diagnostics
The accuracy of error messages and source location tracking has been improved.
- Source locations of original duplicate declarations.
- More precise error ranges for invalid expressions and declarations.
- Preservation of source locations for errors in imported modules.
- Preservation of related source locations and diagnostic information.
- Structured type mismatch information.
- Bounded diagnostic previews for long source lines.
- Improved identifier spelling suggestions.
- More consistent JSON diagnostic output.
Machine-readable diagnostics remain available through the existing command:
wavec --error-format=json check main.wave An issue that caused the compiler to panic unnecessarily when its stdout pipe was closed has also been fixed.
7. Expanded Vex Package Management Integration
The integration interface between the Wave compiler and the Vex package manager has been expanded.
In addition to the existing global dependency mapping mechanism, the compiler now provides the foundation for processing explicit package dependency graphs.
This allows different packages to resolve dependencies with identical names within their own scopes.
The major changes include:
- Package dependency graph support.
- Package-scoped dependency name resolution.
- Validation of cyclic dependencies and malformed graphs.
- Logical source path mapping.
- Reduced differences in compilation artifacts caused by directory locations.
- Reporting of source files used during compilation.
- A compiler capability query interface.
wavec print vex-capabilities --format=json Package managers and external build tools can use this interface to discover the capabilities provided by the current compiler.
The existing --dep and --dep-root mechanisms remain supported.
8. Standard Library Improvements
This release expands standard library functionality and improves the correctness of operating system-specific implementations.
Memory and Byte Processing
- Fixed overflow in memory page count calculations.
- Improved memory and buffer boundary validation.
- Added signed and unsigned integer codecs up to 1024 bits in both big-endian and little-endian formats.
- Added byte searching and hexadecimal processing functionality.
- Expanded non-advancing byte cursor read operations.
- Improved overlap validation for C strings and cursor output buffers.
Networking
- Added structured UDP receive results.
- Added datagram truncation detection.
- Added original datagram size information when available.
- Improved POSIX socket descriptor validation.
- Improved socket address and length validation.
- Improved timeout handling for TCP I/O.
- Improved operating system-specific network error handling.
Operating System and System Functionality
- Improved Unix and Windows path handling.
- Improved Unicode environment variable name comparisons on Windows.
- Improved environment variable reading on FreeBSD.
- Improved process exit status interpretation.
- Improved WASI error code and filesystem handling.
- Fixed intermediate arithmetic overflow in mathematical functions.
Standard Library API Documentation
New documentation has been added to provide an inventory of public standard library declarations and operating system-specific capabilities.
std/API.mdstd/SYSTEMS.md
These documents make the public standard library API and platform-specific support boundaries easier to understand.
9. Changes to the Standard Library Installation Structure
Previous versions primarily used the standard library installation directory within the user's home directory.
~/.wave/lib/wave/std/ Starting with this release, the compiler can prioritize the standard library distributed alongside its executable.
wave/ ├── wavec ├── llvm/ └── std/ The standard library lookup order is as follows:
- The path explicitly specified through
--std-root. - The
std/directory beside the compiler executable. - The existing standard library installation in the user's home directory.
If the selected standard library is incompatible or corrupted, the compiler reports an error instead of silently falling back to another installation.
The currently selected standard library path can be inspected using:
wavec print std-path 10. Build System Overhaul
Wave's build and maintenance infrastructure has undergone a major overhaul.
The previous x.py-based build automation system has been replaced with a Meson-based architecture. Cargo continues to handle Rust source compilation.
Meson ├── Cargo │ ├── Lexer │ ├── Parser │ ├── HIR │ ├── LLVM │ ├── Whale │ └── wavec └── Wave Tools ├── Testing ├── Validation ├── Packaging └── Release Additionally, the project maintenance tools previously implemented in Python have been consolidated into the Rust-based wave-tools crate.
wave-tools can be built independently without a direct dependency on the Wave compiler or LLVM.
Its primary responsibilities include:
- Testing and compiler corpus validation.
- Process and child process management.
- Compiler build management.
- SDK preparation.
- Binary and artifact inspection.
- Installation and recovery.
- Packaging.
- Release and Nightly management.
A total of 85 existing Python files and six obsolete procedure and wrapper files have been removed.
The new build commands are:
meson setup build meson compile -C build 11. CI and Release Infrastructure Improvements
The CI infrastructure used to validate and distribute the compiler across various operating systems and architectures has been improved.
- Improved platform-specific build and test stages.
- Strengthened validation of test execution results and exit codes.
- Improved FreeBSD virtual machine validation.
- Improved Windows ARM64 validation.
- Improved macOS SDK and deployment target version handling.
- Strengthened LLVM runtime dependency inspection.
- Improved SDK download and archive integrity verification.
- Improved reproducibility of distribution archives.
- Strengthened package installation and recovery handling.
- Preservation of previous Nightly builds when publication fails.
- Protection of existing artifacts and detection of output destination conflicts.
Runtime library dependency handling for Linux ELF, macOS Mach-O, and Windows PE has also been improved.
12. Reduced Distribution Package Sizes
Compared to the previous release, distribution package sizes have been significantly reduced, particularly for Linux and FreeBSD.
The following table compares the actual compressed archive sizes published on GitHub Releases.
| Platform | v0.2.1-pre-beta | v0.0.1-alpha | Reduction |
|---|---|---|---|
| Linux AMD64 | 241.9 MB | 63.7 MB | 73.7% |
| Linux ARM64 | 234.8 MB | 61.9 MB | 73.7% |
| Linux RISC-V64 | 124.4 MB | 45.4 MB | 63.5% |
| Linux LoongArch64 | 130.4 MB | 47.4 MB | 63.7% |
| FreeBSD AMD64 | 174.5 MB | 47.9 MB | 72.6% |
| macOS ARM64 | 44.9 MB | 38.7 MB | 13.7% |
The Linux AMD64 distribution, for example, has been reduced from approximately 242 MB to 64 MB.
Windows and macOS AMD64 packages remain approximately the same size as in the previous release.
13. Compatibility Changes
This release includes the following compatibility changes.
Removal of std::libc
The ten std::libc binding modules previously included in the standard library have been removed.
Existing std::libc::* imports are no longer supported.
Users should instead use the relevant Wave standard library APIs or provide external C library bindings separately.
Operating system-specific std::sys providers and C ABI support remain available.
Changes to String Literals
Direct writes to string literal storage are now treated as errors.
Programs using genuinely writable buffers continue to work as before.
Stricter Compiler Validation
Some programs that were previously accepted or incorrectly handled during code generation now produce explicit errors during compilation.
Build Environment Changes
Developers building or maintaining the Wave compiler from source must use the new Meson and wave-tools-based development environment instead of the previous x.py system.
14. Installation and Downloads
This release provides nine native compiler distribution packages.
| Operating System | Architectures |
|---|---|
| Linux | AMD64, ARM64, RISC-V64, LoongArch64 |
| Windows (MSVC) | AMD64, ARM64 |
| macOS | AMD64, ARM64 |
| FreeBSD | AMD64 |
Linux and macOS
curl -fsSL https://wave-lang.dev/install.sh | bash Windows
irm https://wave-lang.dev/install.ps1 -OutFile install.ps1 powershell -ExecutionPolicy Bypass -File .\install.ps1 You can verify the installed compiler version using:
wavec --version 15. Contributors
We would like to thank everyone who contributed to this release.
Closing Remarks
v0.0.1-alpha represents a significant step forward in Wave's compiler architecture and development infrastructure.
This release introduces the initial Whale backend and syntax support for future object-oriented programming, while improving the standard library, package management integration, compiler correctness, and distribution infrastructure.
Wave remains in its Alpha development stage, and its language specification, APIs, and ABIs may change in future releases.
We will continue developing new features and improving existing functionality. We welcome your feedback and reports of any issues encountered while using Wave.
- Official Website
- Official Documentation
- GitHub Repository
- v0.0.1-alpha Release
- Full Changelog
- Bug Reports and Feature Requests
Wave Foundation

