Skip to content

Conversation

@chrisseaton
Copy link
Contributor

JRuby 9000 (the next major release) includes a backend that supports a new JVM JIT compiler called Graal. Graal is based on OpenJDK but hasn't been released yet. This patch allows you to download Graal with JRuby and have JRuby already configured to use it instead of your system Java.

http://openjdk.java.net/projects/graal/

I know this is a bit niche, but I promise to keep it updated, and remove it if it's not longer applicable.

bin/ruby-build Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there no way to reuse build_package_jruby somehow? Maybe invoke it from here with an optional argument that cancels out install_jruby_launcher?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes of course - good idea.

@mislav
Copy link
Member

mislav commented Feb 24, 2014

This could use tests. Also, not sure how I feel about maintaining this. What do others think? I can't tell how valuable would this be to the JRuby community

@chrisseaton
Copy link
Contributor Author

I can guarantee I'll deal with any maintenance issues that come up if you ping me. I will also look at some tests - might take me a couple of days as I'm not used your test system.

I know it's not immediately useful to many people, but we're trying to promote a whole new way of doing dynamic languages on the JVM. There's huge potential here and we're working with JRuby to make it actually useful, rather than just a research project. Being in rbenv will massively lower the barrier to entry for people who want to experiment.

@nirvdrum
Copy link
Contributor

I'm but a single voice, but I would find this very helpful. As a JRuby user, the future direction of JRuby is very important to me. But I admit that setting up Graal has thus far been a hurdle I've not wanted to dedicate any time to. Having a simple installation option and the ability to switch to it with rbenv would be fantastic.

@enebo
Copy link

enebo commented Feb 25, 2014

Truffle has a lot of developer interest and a lot of effort being put into it. I suspect people will want to try their stuff using this backend more and more as time goes on (some earlier benches look very promising). It is unclear where Truffle fits into our long term picture for JRuby but things are moving pretty quickly for the Truffle folks and having a simple way to try out the JRuby truffle backend might help them garner more interest in it.

We are happy enough with the idea that they are committing directly to our repo...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why require java7 if the package bundles its own java?

@mislav
Copy link
Member

mislav commented Feb 25, 2014

Alright then. Address my comments and we'll merge it

@chrisseaton
Copy link
Contributor Author

I've fixed the Java 7 requirement, switched to conform to your style, changed the launcher thing to detect whether it should install or not based on the presence of Graal, and added tests.

@mislav
Copy link
Member

mislav commented Feb 26, 2014

The test was broken, so I re-did it. Otherwise, everything was great; thanks.

@chrisseaton chrisseaton deleted the jruby-9000+graal-dev branch February 26, 2014 00:58
@jahan-paisley
Copy link

Great, I've been waiting for it since I read a blog post by @Hedius.
Thanks guys 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants