Opal Blog
opalrb.com · Company blog · on HN since 2019
Official blog of Opal, a Ruby-to-JavaScript compiler, with release announcements for versions 1.0 to 1.4.
What HN saysHN commenters mention Opal as a way to run Ruby in the browser, though one says learning JavaScript is worth it for complex apps.
15HN people shared it
11linked it in comments
5stories submitted
38story points
5 months agolast shared
2019people per year2026
Most-shared posts
- 1Homepage11 people · first shared 2020
- 2Opal 1.4: Ruby 3.1, performance, and bundle size2 people · 30 points · first shared 2021 · discussion on HN
- 3Opal 1.0 has been released!2 people · 6 points · first shared 2019 · discussion on HN
- 4Opal 1.3 Released1 people · 2 points · first shared 2021 · 1 comments on HN
What HN people wrote when they linked it
ClikeX · 2026-06-09
Not literally. And I would hardly say it was a matter of language superiority. I love Ruby myself. But Github was a lot simpler when it was still just a Rails app.
But Rails was SSR by default, and most of the frontend was just Embedded Ruby (ERB) template files all over the place. And way back when, it was even relatively common to use Javascript supersets like CoffeeScript[1] and Opal[2]. The latter being Ruby that compiled to JS.
[1]: https://coffeescript.org/
[2]: https://opalrb.com/
ativzzz · 2023-03-13
So ruby has a JS transpiler - opal - https://opalrb.com/
I tried using it a little bit but the reality is if you need JS to make your app more interactable it's really worth it to just learn some JS. As soon as you need something complex the extra layer of abstraction just gets in the way and becomes more of a headache, and if you don't need anything complex then you don't need a fancy JS solution in the first place.
JS only becomes complex when you are trying to create an enterprise version of your app along with a build platform. You can always just sprinkle in <script> tags in your HTML for simple one liners without getting into the weeds.
psychoslave · 2024-12-25
To be fair, js interpreters are available out of the box in all digital devices out there that embed a browser. That's a huge deal, as far as portability is concerned.
That said you do have things like https://opalrb.com/
beerkg · 2022-05-31
It's a custom template I created (based on https://vuepress.vuejs.org/), because I couldn't find anything that simple. The source code is available on https://github.com/kgiszczak/shale-website
Interactive examples are powered by https://opalrb.com/
exikyut · 2022-05-04
Alternative idea: keep running the same Ruby code.
- https://github.com/ruby/ruby.wasm (compile Ruby to WASM)
- https://mame.github.io/emruby/ (example of Ruby compiled to WASM)
- https://opalrb.com/ (compile a subset of Ruby to JS)
This requires downloading several MB of code (and then caching it in-browser) so would be ideal for internal-only stuff.
johntdaly · 2021-12-16
Did you try opal?
https://opalrb.com/
If yes, what was your opinion? I never tried it since I'd rather just work in two languages.
obilgic · 2020-11-22
I believe this has been around for a while, and it reminds me:
- https://opalrb.com/
- http://voltframework.com/
I was very excited about what voltrb can become. Quick intro https://www.youtube.com/watch?v=KbFtIt7-ge8
holtalanm · 2020-11-12
I think your link to opalrb is incorrect. It is going to opalrb.org which....seems to be an online gambling site.
it should go to https://opalrb.com/
m12k · 2020-11-12
I think this page should link to https://opalrb.com/ - the .org domain seems to be squatted by some casino.
vinceguidry · 2022-04-20
Don't forget Opal!
https://opalrb.com/
mjmasn · 2020-11-12