A NES emulator written in Ruby
"Artichoke is a Ruby made with Rust that compiles to WebAssembly"
reddit.com/r/programmingcirclejerk | 2021-01-01
Artichoke is a Ruby made with Rust that compiles to WebAssembly
reddit.com/r/patient_hackernews | 2021-01-01reddit.com/r/hackernews | 2021-01-01
Artichoke is a Ruby Made with Rust that compiles to WebAssembly
Here's a permalink: https://github.com/artichoke/artichoke/blob/939fffc015255736...
Thanks for catching this. That is spot on. These APIs in the `Symbol` backend  show this concept off really well I think.
The `Symbol` data structure knows how to, e.g. render its `Symbol#inspect` implementation . To extract the underlying bytes associated with the `Symbol`, however, it needs an interpreter. But not a whole interpreter or any particular interpreter, just one that implements `Intern` .
Vision document here that outlines objectives in detail.
What makes Artichoke more suitable than MRI for compilation to WebAssembly (and for embedding, and for single-binary distribution )?
Is it just that Artichoke is written in Rust? Or does it make different trade-offs in its design?
You might be interested in this early work to build a Sinatra echo server  with Artichoke (called ferrocarril back then). `hubris` used a custom Rack-compatible web server called `nemesis`  based on Rocket , a Rust Flask-like web framework.
You might want to check out https://github.com/artichoke/artichoke/blob/2d67d8537c1340f1... which lays out the goals for the project.
artichoke/artichoke is an open source project licensed under MIT License which is an OSI approved license.