Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 1.36 KB

README.md

File metadata and controls

22 lines (16 loc) · 1.36 KB

Ruby on wasm talk

Sept 2023

I prepared a presentation and gave a talk about Ruby on Webassembly at the Montevideo Ruby Meetup.

These are the slides This repository contains examples of using Ruby3.2.wasm in various integration use cases.

Ruby Script Tag

1- Hello World
2- Reading a file

Running on WASI-compatible runtime

3- Hello World Wasmtime

Calling Ruby VM from browser

4- Eval use input
This example fetches the RubyVM from cdn and uses it to eval ruby-user-input

5- Markdown To Html using kramdown
This example extends previous example by serving an app.wasm which uses the kramdown gem to convert markdown to html. Then the frontend passes user input this app.wasm and prints back the html