Wasmer 2.3 Unveils Native Compilation and Corosensei
With the release of Wasmer 2.3, the Wasmer WebAssembly runtime introduces significant advancements, including native compilation capabilities and a stack-switching library named Corosensei. This server-side runtime continues to evolve as a robust tool for WebAssembly (Wasm) development. Announced on June 7, Wasmer 2.3 lays the groundwork for the highly anticipated 3.0 release, reinforcing its position as a powerful, open-source WebAssembly runtime solution. Developers can access Wasmer through its official website to explore these new capabilities.
One of the standout features of Wasmer 2.3 is its ability to compile directly to Wasm/WASI (WebAssembly System Interface). This innovation allows for the complete compilation of WebAssembly to native code entirely within a WebAssembly environment. This capability is set to unlock new possibilities for Wasmer’s future products. Additionally, the release includes enhancements to the Singlepass compiler, improving unwinding support for better backtraces and enabling its use with a Dylib engine for more flexible deployment options.
The release also sees Wasmer leveraging the Cranelift and LLVM compilers to optimize performance. Wasmer 2.3 specifically adopts Cranelift 0.82, which brings full support for SIMD (Single Instruction, Multiple Data) instructions and integrates ISLE, a domain-specific language for instruction selection. These improvements ensure developers benefit from cutting-edge compilation strategies, leading to more efficient WebAssembly execution.
Corosensei, the new stack-switching library written in Rust, is another groundbreaking addition in Wasmer 2.3. This library addresses previous vulnerabilities by separating the host language stack from the WebAssembly stack. This separation not only enhances security but also enables features like backtraces, panic propagation, and partial support for asynchronous import calls. Corosensei represents a significant step toward Wasmer’s goal of providing native async support within its runtime, bolstering both performance and developer productivity.
With these advancements, Wasmer 2.3 showcases its commitment to innovation, making WebAssembly a more versatile and secure technology for modern applications.