backgroundradial

Wasmer 4.0

Today we are thrilled to release Wasmer 4.0, shipping with amazing features that have been in the making for a few months.

syrusakbary avatar
syrusakbary

Founder & CEO

engineering

June 22, 2023

arrowBack to articles
Post cover image

Wasmer 4.0 features tons of updates including:

  • A new runner architecture that allows plugging custom runners
  • Stabilization of WASIX
  • Unification of WAPM into Wasmer
  • Wasmer Edge integration

You can install Wasmer CLI 4.0 in your system very easily with:

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

With Wasmer 4.0 you can do awesome things like running a fully sandboxed bash shell in your computer.

You can also use wasmer run PACKAGE_NAME inside of the bash Wasmer package to run any package published to Wasmer!

Wasmer running on a native shell

The untold feature is that the Wasmer bash container also runs fully on the browser (using exactly the same Wasmer container, and running exactly the same WASIX logic).

Try it yourself in wasmer.sh!

Wasmer running on the browser

Did you know that the wasmer.sh is hosted in Wasmer Edge, and you can run the website locally with wasmer run wasmer/wasmer-sh?

New Runner architecture

Wasmer 4.0 has a new runner architecture that allows any kind of program running on WebAssembly. The new runner architecture could allow creating new ABI standards (such as a WebGPU integration!) directly by the users without requiring to publish new versions of the runtime.

Currently, Wasmer supports the following runners:

  • Emscripten
  • WASIX/WASI
  • WCGI

We have explained a bit more about the runner architecture in our recently released docs:

https://docs.wasmer.io/runtime/runners

Stabilization of WASIX

WASIX was launched a few weeks ago, but it’s been on the making for more than a year.

We have been running our production websites for a few months served with a static server made in Rust compiled to Wasm with WASIX . The performance is excellent, and all the critical features of the static web server are now supported.

Wasmer 4.0 is the first stable release of Wasmer supporting WASIX.

Stay tuned for more programs running on WASIX!

Unification with WAPM

With the goal of easing the developer experience, we have decided to unify WAPM with Wasmer.

All the commands for publishing and maintaining a package in WAPM are now integrated in the Wasmer CLI.

You can now do wasmer login, wasmer whoami and wasmer publish all within the Wasmer CLI.

Integration with Wasmer Edge

As recently announced, Wasmer Edge is now integrated into Wasmer, which means that you now have commands that allows you to interact with Wasmer Edge directly from the CLI.

Right now you can use commands like wasmer deploy and wasmer app create to deploy and create new apps in Wasmer Edge.


We are incredibly excited to see what you will build next!

Note: all the previous commands will still work, for example if you want to run a standalone wasm file with Wasmer, you can still do it via wasmer run myfile.wasm.

Read the full Changelog of Wasmer 4.0 here, or feel free to give us a star on Github!

https://github.com/wasmerio/wasmer

About the Author

Syrus Akbary is an enterpreneur and programmer. Specifically known for his contributions to the field of WebAssembly. He is the Founder and CEO of Wasmer, an innovative company that focuses on creating developer tools and infrastructure for running Wasm

 avatar

Founder & CEO

Read more

engineeringruntimewasmer runtime

Wasmer 2.3

June 7, 2022

engineeringruntimewasmer runtime

Wasmer 3.2

April 18, 2023

engineeringruntimewasmer runtime

Wasmer 2.1

December 1, 2021

engineeringruntimewasmer runtime

Wasmer 2.2: Major Singlepass Improvements

February 28, 2022