Comments (3)
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.
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.
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)
- Failed to transpile ./lib/syntax_tree/node.rb: SyntaxError — unexpected token tRBRACK HOT 17
- `ruby-next nextify -V --rewrite=pattern-matching file1 file2 file3` ignores file2 and file3
- A runtime mode which monkey-patches eval HOT 2
- Using RubyNext in gems without a runtime dependency HOT 3
- An option to rewrite file inplace for `ruby-next nextify`
- Non-obvious syntax error HOT 3
- String#bytesplice HOT 2
- Support `it` as a default block parameter
- Data#initialize doesn't support positional args HOT 5
- Facing issues in new builds impacting production env HOT 1
- Rewrite not persisted HOT 3
- can't require on Ruby 3.4.0dev HOT 1
- Access to file path during rewriting? HOT 3
- Symbol arrays with percent notation HOT 9
- Ruby 3.1 checklist
- ruby-next causes random segmentation faults in Ruby 2.7.x HOT 2
- Truffleruby Compatbility HOT 1
- Proposal: heredoc extensions
- Ruby 3.2 Data HOT 3
- MatchData#{deconstruct,deconstruct_keys}
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-next.