1 min read

Developers introduced the Ruby 3.2.0 programming language release.

Developers introduced the Ruby 3.2.0 programming language release.
Photo by Surface / Unsplash

In the new version, the initial port of the CRuby interpreter compiled into WebAssembly middleware for running in a browser or under a standalone runtime such as wasmtime.

The WASI (WebAssembly System Interface) API is used to interact directly with the operating system when running standalone. A VFS wrapper on top of WASI has appeared which allows to package the whole Ruby application into a single wasm file view. Running in a browser can be used to create tutorial and demonstration services such as TryRuby.

The port successfully passes basic and bootstrap test suites which do not use the Thread API. The port also does not support filebars (Fiber), exceptions and garbage collection;