128 points · by pjmlp · 8y ago · 39 comments
It looks like a bureaucratic struggle of some kind - I wonder what's the behind the scenes story at Oracle.
Additionally, "mx" : the build system that Graal uses is fairly funky - and everyone including Chris (the engineer that made this video) is trying to get the team to move on
https://twitter.com/christhalinger/status/958824900004753408...
I wish they would use Bazel or something
Graal is used for many more things than dynamically compiling Java. Besides others it's used for SubstrateVM (closed world AOT compilation) and Truffle languages like TruffleRuby, Graal.JS, FastR, Sulong(llvm integration) and our newest member Graal.Python.
Graal comes out of Oracle Labs. The build tool mx is short for Maxine, the spiritual predecessor of the Graal project. If you don't know mx it's quite intimidating and ugly. It's Python written by Java developers. But it does it's job coping with our not so standard building and testing requirements. No we don't run mx on Graal.Python yet, but we are working on it for full build tool metacircularity ;).
Is Graal.Python related to Zippy [0,1] ?
[0] https://github.com/securesystemslab/zippy
[1] http://socalpls.github.io/archive/2013nov/slides/zippy.pdf
Secondly - I have not seen Graal Python anywhere. Is there a repo ? The GitHub project seems centred around Truffleruby. Graal Python would be awesome!
In the end every build tool sucks. Sometimes you just need to be pragmatic. Mx integrates with maven pretty well and it generates ide config for intellij, eclipse and netbeans. Moving to a different system is probably not worth the cost atm. And it's not complicated to use at all. E.g mx build builds and mx gate builds and tests. Mx unittest runs unit tests.
As written below. Graal.Python is not yet open source. But you will hear from us soon.
CPython Pypy Jython IronPython
I would now go with GraalPython (GrPython or GPython)
Graal's work is well known since the days of MaxineVM.
Hopefully eventually everything will be sorted out.
For similar comparison, Microsoft is also having multiple year/releases effort with RyuJIT, .NET Native and CoreRT.
Thankfully Bazel is mostly restrained to Googleplex stuff.
It is already a pain on Android, measured in cups of coffee/tea per developer, that they went with Gradle instead of Maven.
that's a bit of fud that it is restricted to googleplex, not sure why you would say that.
https://github.com/bazelbuild/bazel/wiki/Bazel-Users - bazel is being used at tons of places including Dropbox, Asana, Etsy, Huawei, Pinterest, Uber, etc. for multiple languages - Java, Rust, Golang, C++, etc.
Again - I'm not sure why you are mentioning about a "new JIT compiler". Graal on Java 9 works - if you check a ton of documentation, everyone is talking about using Graal on Java 9 (self-built). E.g. http://chrisseaton.com/rubytruffle/jokerconf17/
I'm talking about Oracle + Graal project not putting out Java 9 based releases because of a co-ordination effort.
Keyword here is startups, with freedom to use alternative tech just because.
Apparently Android Studio is work in progress, and doesn't support all the features, like the NDK.
https://ij.bazel.build/docs/bazel-plugin.html
I really don't see the need to use anything else other than Maven, unless it really substantially improves the build speed and IDE tooling experience.
If it wasn't for Google's imposition of Gradle on us, I wouldn't bother with it.
However if in an imaginary future, they replace Gradle with Bazel and those points are met (build speed and tooling) then by all means.
> I'm talking about Oracle + Graal project not putting out Java 9 based releases because of a co-ordination effort.
It is already there on Linux x64 for 9, with macOS and Windows on 10, as mentioned on the talk, so I really don't follow.
So for me adding a dependency is just a matter of using the graphical tooling in Eclipse and Netbeans.
All major headaches I "enjoyed" with Maven was custom logic coming from Ant scripts, from team not willing to adopt a more declarative way of designing their projects.
With Gradle, I get the same mess Ant used to be, just slower.
You may find some blog posts about truffle and tailcalls as well.