Wasmer 4.0 arrives with Wasmer Edge integration, new runtime architecture and more

wasmer-sh

Wasmer is a fast and secure WebAssembly runtime that allows super lightweight containers to run anywhere

A few days ago, the launch of the new version of the Wasmer 4.0 project was announced , in which several changes have been added, including the new architecture that allows connecting custom corridors, the stabilization of WASI, the unification of WAPM in Wasmer, and the integration of Wasmer Edge.

For those unfamiliar with Wasmer, it is a runtime for executing WebAssembly modules that can be used to create universal applications that can run on different operating systems, as well as for the isolated execution of untrusted code.

The ability to run the same application on different platforms is provided by compiling the code into low-level WebAssembly intermediate code that can run on any operating system or be embedded in programs in other programming languages. Programs are lightweight containers that run WebAssembly pseudocode. These containers are not tied to the operating system and can contain code originally written in any programming language.

Main novelties of Wasmer 4.0

This new version of Wasmer 4.0 features integrated support for the Wasmer Edge cloud computing platform , allowing direct interaction with Wasmer Edge through the Wasmer CLI . Wasmer Edge is a serverless, decentralized platform that enables applications to run on other hosts within the Edge network.

The new platform combines the affordability of Cloudflare Workers , the simplicity of Heroku, and the functionality of AWS Lambda. The platform can scale from a single server to large distributed clusters. Compared to Cloudflare Workers and AWS Lambda, applications running on Wasmer Edge can process arbitrary TCP service requests, run any HTTP application, and run applications in a browser and on a smartphone.

At this time, you can run static websites, any Rust server using tokio (such as Axum), although in the future it is planned to support Flask, Django, WordPress, Ruby on Rails, Node, among others.

Another notable change in this new version of Wasmer 4.0 is the addition of support for the WASIX API. WASIX provides long-term stabilization and support for the existing WASI ABI , along with additional non-invasive system call extensions that fill in the gaps, enabling the compilation and use of real, practical, and useful applications. WASI extends features for full POSIX compliance . With WASIX, Wasmer can run applications that utilize multithreading, network sockets, forking child processes, and other advanced features.

In addition, Wasmer 4.0 also features a new runtime architecture that allows any type of application to run in WebAssembly and extends the ABI without releasing new runtime versions. Currently, three runtimes are supported : WASIX (WASIX ABI compatibility), Emscripten (running programs compiled in Emscripten) , and WCGI (allowing the creation of CGI scripts in WebAssembly).

Furthermore, it's worth noting that the WAPM package manager functionality has been integrated , meaning that all WAPM commands for publishing and maintaining packages are now integrated into the Wasmer CLI. The purpose of this integration is to significantly reduce the development workload, and WAPM has only been adopted by Wasmer.

Finally, it should be mentioned that the programs are distributed in the form of ordinary WebAssembly modules, which can be managed using the WAPM package manager. Wasmer is also available as a library that can be used to embed WebAssembly code in Rust, C/C++, C#, D, Python, JavaScript, Go, PHP, Ruby, Elixir, and Java programs.

The project code is written in Rust and distributed under the MIT license, and you can find out more about it at the following link.

How to install Wasmer?

For those interested in being able to install the new version, they only have to open a terminal and in it they must type the following command:

curl https://get.wasmer.io -sSfL | sh

Add as preferred source in Google