backgroundradial

Wasmer 3.2

Wasmer 3.2

syrusakbary avatar
syrusakbary
Syrus Akbary

Founder & CEO

runtime

April 18, 2023

arrowBack to articles

Today we are incredibly excited to announce the release of Wasmer Runtime v3.2.

This release has been cooking in the oven for a few months. Here are the main highlights:

  • Support for RISC-V chipsets
  • WASI improvements
  • Stable WCGI support
  • New Runner Architecture
  • Refactored Type API

You can read the full changelog here: CHANGELOG.md

Support for RISC-V

One of the main promises of WebAssembly is to run software anywhere, with no boundaries regarding the Operating System (Windows, Linux or macOS) or the chipset (x86_64, ARM64, …). On that front, we have worked for over a year on adding support for RISC-V.

We would like to give a big shoutout and thanks to Toru Nayuki, who created the initial implementation PR that sparked our interest in RISC-V.

A few months after the initial PR was opened, we were able to get our hands on a RISC-V board. And some tests and dependency updates later, we are now very excited to see how anyone can use Wasmer fully in RISC-V chipsets! (with support in both compilers: Cranelift and LLVM!)

PHP & Wordpress running with Wasmer in RISC-V

Download the executable for Linux RISC-V from Github:

https://github.com/wasmerio/wasmer/releases/download/v3.2.0/wasmer-linux-riscv64.tar.gz

Or simply use the Wasmer installer:

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

WASI Refactor

WASI codebase has been improved greatly, we fixed multiple issues and made the system more stable overall.

Wasmer WASI is reaching production maturity. Most of WASI programs now work without an issue with a high-performance throughput.

We also added extra testing coverage with basic programs to assure that compatibility is kept over time as WASI evolves.

Official WCGI support

A few weeks ago, we announced support for a new standard: WCGI. Now this support lands officially in the stable Wasmer release.

Read more about WCGI here: https://wasmer.io/posts/announcing-wcgi

New Runner Architecture

Wasmer now allows defining custom runners when creating commands for packages in the wasmer.toml manifest.

But, why this is useful?

Runners allow users to define the behavior on how they want to run Wasm modules: WCGI programs will run it with the wcgi runner, and WASI ones with the wasi runner.

For example, for running wasi, the wasmer.toml will look something like:

[[command]]
runner = 'wasi'
name = 'mycommand'
module = 'module'

Or, for running the command with WCGI:

[[command]]
runner = 'wcgi'
name = 'mycommand'
module = 'module'

Refactored Type API

We have done incredible effort trying to make our codebase and type system simpler and more reliable.

As part of that effort, we refactored the js and sys feature APIs so the types used in both implementations are now unified across common types and no longer duplicated.

This effort paves the way to allow using other runtimes under the hood with the same Wasmer API everyone loves and uses.

Stay tuned for more updates on this front soon!

Please let us know your thoughts in Twitter, Reddit and Hacker News :)

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

Syrus Akbary avatar
Syrus Akbary
Syrus Akbary

Founder & CEO

Read more
Post cover image

runtimeengineeringwasmer runtime

Wasmer 4.1

Syrus AkbaryJuly 17, 2023

runtimeengineeringwasmer runtime

Wasmer 2.2: Major Singlepass Improvements

Syrus AkbaryFebruary 28, 2022

engineeringwasmer runtimewasmerruntimeperformance

Improving WebAssembly load times with Zero-Copy deserialization

Arshia GhafooriSeptember 7, 2023

runtimeengineeringwasmer runtime

Wasmer 2.0, It's a big deal!

Syrus AkbaryJune 2, 2021