Opal VS spec

Compare Opal vs spec and see what are their differences.

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.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
Opal spec
36 11
4,808 583
0.1% 0.9%
9.0 9.7
1 day ago 11 days ago
Ruby Ruby
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Opal

Posts with mentions or reviews of Opal. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-15.
  • RubyJS-Vite
    11 projects | news.ycombinator.com | 15 Apr 2024
    It's been a long time dream for me since about 2013 when I started getting deep into Ruby and Rails, to be able to write Ruby code for the frontend instead of JavaScript. I was a lover and adopter of CoffeeScript (which had it's flaws and imperfections), but that mostly got killed by ES6. I wrote some PoCs with Opal[1] that felt pretty good to write, but the overhead was rough (this was many years ago so things might be different now) and I never really felt like I didn't have to know about or care about the underlying javascript. I tend to discard leaky abstractions as I feel they often add more complexity than they were meant to cover in the first place.

    Has anybody used this or Opal or anything else? What is the state of "write your frontend in Ruby" nowadays?

    [1]: https://github.com/opal/opal

  • Non-code contributions are the secret to open source success
    10 projects | news.ycombinator.com | 13 Feb 2024
    Every time I see a respectable project use a Code of Conduct I remind myself that, unfortunately, Caroline Ada won[1]

    [1] https://github.com/opal/opal/issues/941

  • Coming to grips with JS: a Rubyist's deep dive
    16 projects | dev.to | 29 Dec 2023
    But we shouldn't overstate the difference: the JS and Ruby object models are actually similar in how dynamic both of them are. This makes Ruby-to-JS compilers like Opal easier to implement, according to an Opal maintainer.
  • Opal – a Ruby to JavaScript source-to-source compiler
    1 project | news.ycombinator.com | 24 Dec 2023
    This is an interview with the author of Opal, here's the project:

    https://github.com/opal/opal

  • GCC Adopts a Code of Conduct
    2 projects | news.ycombinator.com | 22 Jun 2023
    Not the OP, but from what I remember they would seek out every possible opportunity in every single possible open source community they could find and propose the CoC that they wrote. 0 contributions to the projects, with the exception of demanding that people implement incredibly verbose CoC's in their projects under the guise of "protecting the minorities contributing to the projects".

    Most infamous instance is probably this one, in the Opal repo: https://github.com/opal/opal/issues/941

    As well as this thread in the Ruby issue tracker that devolves into pure chaos with Ada refusing to actually participate in any of the valid points others bring up: https://bugs.ruby-lang.org/issues/12004

    And I'm sure there's many other instances if you look around a bit.

  • Hackers Flood NPM with Bogus Packages Causing a DoS Attack
    3 projects | /r/programming | 10 Apr 2023
    My experience with ruby for front end web dev is via https://opalrb.com/
  • The Rust Trademark Borrow Checker : Rust Foundation Solicits Feedback on Updated Policy for Trademarks
    5 projects | /r/programming | 9 Apr 2023
    Here's an example of the creator of the most adopted CoC (the Contributor Covenant) trying to get an open source contributor removed from a project due to his political opinions expressed on Twitter which she didn't like and found offensive.
  • Launch HN: Pynecone (YC W23) – Web Apps in Pure Python
    25 projects | news.ycombinator.com | 13 Mar 2023
    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 JS in the first place.

  • DebunkThis: Coraline Ada Ehmke hasn't really contributed that much as far as code goes
    1 project | /r/DebunkThis | 11 Dec 2022
    I stumbled upon this thing from years ago. I did some more digging to see what other communities thought about it. Turns out that a lot of people are really against Coraline's side.
  • All web applications may be created in the optimal environment created by Ruby, JS, and Vite.
    4 projects | /r/ruby | 30 Oct 2022

spec

Posts with mentions or reviews of spec. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-09.
  • What is the best way to make simple games with Ruby?
    3 projects | /r/ruby | 9 Mar 2023
    You may define that Ruby is "CRuby" (MRI), the full-fledged implementation of the Ruby programming language specification (https://github.com/ruby/spec/).
  • Ending the predominance of the Array in Ruby
    5 projects | /r/ruby | 31 Jan 2023
    Testing: Interestingly, most of the work was figuring out how to test the library reliably. Grizzly-rb is proudly tested against the ruby/spec repository using Mspec and Rubocop. Special thank you to the person recommending Rubocop in a previous post.  The tests cover Enumerable, Array, Enumerator and Enumerator::Lazy classes.
  • Personal efforts to improve the quality of Ruby interpreter
    5 projects | dev.to | 27 Dec 2022
    Ruby interpreter is a complex program, so it naturally has bugs, and Ruby interpreter developers are taking various countermeasures against them. For example, we write tests and check them in CI environment (This is the result of daily maintenance of the test environment, such as RubyCI, chkbuild, ruby/spec: The Ruby Spec Suite aka ruby/spec and machines).
  • Finally: A Language Specification for Protocol Buffers
    10 projects | news.ycombinator.com | 12 Sep 2022
  • Where is Ruby language specification or full reference?
    2 projects | /r/ruby | 15 Jun 2022
    I can't find the link to the official announcement, but many years ago they published an official ISO for Ruby, however at the time the ISO was based off of 1.8.7 syntax/semantics. Other than that, you have the RubySpec project which is a series of tests that validate how Ruby should work.
  • Rewriting Libimagequant in Rust for Portability
    3 projects | news.ycombinator.com | 4 Jan 2022
    Java could have been a good example, but Sun had a rather strict validation process for calling something Java.

    Furthermore, there are big difference in philosophy with C:

    1. IB and UB are not considered normal parts of specifications, meaning there's way less opportunity for originality in the interpretation of the specifications

    2. there tends to be an ur-implementation, and notable divergences from that tends to be interpreted as either a bug in the other implementation(s) or a lack of specification to be resolved between all implementations

    Rust only has UB in unsafe (AFAIK), which greatly limits implementation flexibility in terms of observable behaviour; and the reference implementation would very much be considered the reference implementation, so I expect e.g. rust-gcc will be sticking close to the reference implementation and behavioural divergence will either be fixed to match, or will lead to more precise specification and both implementations converging.

    Probably eventually with, if not a Sun-style validation suite, a Ruby-style Spec Suite (https://github.com/ruby/spec).

  • Announcing TypeScript 4.5
    1 project | /r/programming | 18 Nov 2021
    Ruby: https://github.com/ruby/spec Yes, it is not a word document, but it is a spec nonetheless. It is an authoritative source. TypeScript has nothing like this; no, unit tests aren't the same.
  • A History of the Rubinius Ruby JIT
    1 project | news.ycombinator.com | 11 Nov 2021
  • Opal 1.3 released
    6 projects | /r/rails | 3 Nov 2021
    Opal is simply a Ruby to JavaScript compiler. While it may be someday possible to run Rails on it, as you can run Rails on JRuby, the primary focus of this project is to allow you to write frontend code in Ruby and possibly share some code between your frontend and backend. It's possible to compile entire Ruby libraries to JavaScript (with little changes needed due to some caveats). Opal supports a Ruby 3.0 level of features (regardless of your backend Ruby version), often surpassing MRuby in terms of compatibility. It is being actively tested for regressions against Ruby Spec and is self-hosting, ie. can compile itself (see: TryRuby).
  • Ruby Class Inheritance Flowchart
    1 project | /r/ruby | 25 Feb 2021

What are some alternatives?

When comparing Opal and spec you can also consider the following projects:

MRuby - Lightweight Ruby

grizzly-rb - The Ruby library you will love to hate

JRuby - JRuby, an implementation of Ruby on the JVM

opal-rails - Bringing Ruby to Rails · Rails bindings for Opal

Rubinius - The Rubinius Language Platform

dssim - Image similarity comparison simulating human perception (multiscale SSIM in Rust)

Reactrb

custom-gtksourceview-languages - Custom modifications to the Gtk.SourceView Languages to support Markdown and syntax highlighting of code blocks in Markdown.

yjit - Optimizing JIT compiler built inside CRuby

opal-devtools - A Browser extension providing tools for developing with Opal Ruby in the browser.

natalie - a work-in-progress Ruby compiler, written in Ruby and C++

setup-ruby - An action to download a prebuilt Ruby and add it to the PATH in 5 seconds