Giter Site home page Giter Site logo

Support for Ruby 2.2 about ruby-next HOT 3 CLOSED

ruby-next avatar ruby-next commented on May 18, 2024
Support for Ruby 2.2

from ruby-next.

Comments (3)

palkan avatar palkan commented on May 18, 2024 2

Hey @ellingtonjp!

Ruby 2.2 support has been added. It will be released in the next version (planned on Sep 2nd).

It's no possible to use the master version from GitHub, 'cause we do not store the transpiled source code in Git (it's only included into the *.gem bundle). And we cannot self-transpile Ruby Next on Ruby 2.2)

from ruby-next.

ellingtonjp avatar ellingtonjp commented on May 18, 2024 1

I totally understand not wanting to support rubies this old. We are stuck in the stone ages!

As far as I understand, you want to use Ruby Next for application development, not gem development, right?

Yep! We aren't currently doing any gem development.

Thus, we need to transpile Ruby Next itself!

Nextception? :P

Thanks for the response. I will be watching this project closely! We have other parts of our system that are currently supported, so I'll be looking at trying ruby-next for those parts.

from ruby-next.

palkan avatar palkan commented on May 18, 2024

Any plans to support rubies as far back as 2.2?

If there is a demand for that then we should try to do that.

Personally, I'm not a big fan of supporting "dead" Rubies, since it could slow down the evolution of the language. On the other hand, I understand that things happen, and if Ruby Next could make you happier we should try to do that 🙂

As far as I understand, you want to use Ruby Next for application development, not gem development, right?
In that case, we need only transpiling part (APIs for such old Rubies couldn't be backported via refinements efficiently, so we have to use monkey patches, and for that we can rely on backports gem since it supports very old Rubies).

And we need runtime transpiling, I guess. It's better to do that with the help of Bootsnap (which does require-patching for us), which stopped supporting <2.3 in its 1.4+. We can use 1.3.x; just need to make sure Ruby Next is compatible with this version.

Finally, the Ruby Next code itself uses syntax (e.g., &.) and APIs from 2.5+. Thus, we need to transpile Ruby Next itself! That's actually in my backlog.

To sum up, sounds like it's doable, though would require some work.

from ruby-next.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.