ruby-syntax-tree.github.io
28-Apr-2022 1113
A lot of good tools exist in the Ruby ecosystem that allow you to run some version of Ruby in the browser. I’m talking about tools like try.ruby-lang.org, runruby.io, and sorbet.run.Usually getting Ruby to run in the browser entails using emscripten to compile C to WebAssembly or using Opal to compile Ruby to JavaScript. Recently, however, the Ruby Association funded a project to compile Ruby to WebAssembly using the WASI ABI. Using this new functionality, you can compile Ruby itself or a Ruby application into a .wasm file that you can execute natively in the browser or through a polyfill. (You can actually execute it on any WebAssembly runtime, but for my purposes the browser will do.) For more information on the WASI Ruby project, check out the final report.
ruby-syntax-tree.github.io #ruby #rubydeveloper #rubyonrails #ruby-syntax-tree.github.io https://rubyonrails.ba/link/ruby-syntax-tree-github-io