Ruby (Wasm)
Ruby is a dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.
LiveCodes uses ruby.wasm to run Ruby in the browser.
ruby.wasm is a collection of WebAssembly ports of the CRuby. It enables running Ruby application on browsers, WASI compatible WebAssembly runtimes, and Edge Computing platforms.
Usage
LiveCodes runs Ruby in the browser, including the stdlib.
JavaScript interoperability and DOM access is achieved using "JS"
module. See the starter template for an example.
Language Info
Name
ruby-wasm
Extension
.wasm.rb
Alias
rubywasm
Editor
script
Compiler
Version
ruby.wasm v2.6.2, running Ruby v3.3
Code Formatting
Not supported for Ruby.
Example Usage
This example demonstrates stdlib usage, JavaScript interoperability and DOM access:
Starter Template
https://livecodes.io/?template=ruby-wasm
Links
- Ruby
- Ruby documentation
- ruby.wasm
- Ruby using Opal in LiveCodes