Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
isomorfeus-project
Discontinued The powerful, isomorphic full stack web application development environment.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Like Ruby WASI, it allows you to run Ruby in a web browser, but it takes a different approach - it is, like JRuby, a complete reimplementation of Ruby. Unlike Ruby WASI, you don't have to ship the entire Ruby compiler - you just ship your code compiled to JavaScript along with (possibly) minimal Ruby runtime. You can compare and contrast both on a recently updated TryRuby website (which itself - is a 100% Ruby frontend application compiled with Opal!).
Opal itself aims just at creating a Ruby runtime and a couple of life improvements, but there exist a couple of helper gems, for instance Opal-Browser (for an idiomatic API to interact with DOM and other browser APIs), Opal-Rails (for integrating with a Sprockets pipeline of Rails), Opal-RSpec (to test your frontend application). There exist a number of libraries and bindings to JS libraries for Opal.
Opal itself aims just at creating a Ruby runtime and a couple of life improvements, but there exist a couple of helper gems, for instance Opal-Browser (for an idiomatic API to interact with DOM and other browser APIs), Opal-Rails (for integrating with a Sprockets pipeline of Rails), Opal-RSpec (to test your frontend application). There exist a number of libraries and bindings to JS libraries for Opal.
Opal itself aims just at creating a Ruby runtime and a couple of life improvements, but there exist a couple of helper gems, for instance Opal-Browser (for an idiomatic API to interact with DOM and other browser APIs), Opal-Rails (for integrating with a Sprockets pipeline of Rails), Opal-RSpec (to test your frontend application). There exist a number of libraries and bindings to JS libraries for Opal.
Opal itself is quite low level. It just gives you a compiler and Ruby runtime. There exist a couple of frameworks using Opal: two most developed are Hyperstack (deeply integrates Rails, Opal and React) and Isomorfeus (integrates Roda, Opal and Preact)
Related posts
- Opal 1.5.0 released - compile Ruby to JS and run it in a browser
- Opal 1.2 (a Ruby implementation in JavaScript) released with Ruby 3.0 support
-
solid_queue alternatives - Sidekiq and good_job
3 projects | 21 Apr 2024
- Ruby on Rails: Native route constraint for authentication
- What makes concurrency so hard?