ruby-syntax-tree.github.io

28-Apr-2022 1044
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.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle