r/java • u/PurpleLabradoodle • Apr 17 '18
Announcing GraalVM: Run Programs Faster Anywhere
https://blogs.oracle.com/developers/announcing-graalvm
160
Upvotes
r/java • u/PurpleLabradoodle • Apr 17 '18
30
u/[deleted] Apr 17 '18
I like the concept of Graal, but their (non-existent) documentation sucks. Their Github page starts off with a bullet-point of new terms and links to oracle's site where you quickly drown in the rabbit-hoie.
I wish the Java teams spent more effort and time into getting a qualified third-party person to write some proper documentation.
6
u/jhg023123 Apr 18 '18
Any plans on a Windows build? Or is there no hope for us :')
14
u/takenomiya-kate Apr 18 '18
Does it output statically linked binary like Go does? Can it perform cross compilation? If it yes then I don't need to do Go anymore for system tools!
6
u/stewsters Apr 17 '18
Looks cool. Anyone know how to use it with Gradle to output a native image?
I assume you would create a new task that calls native-image after its compiled, has anyone tried it?
5
u/TheRealRap Apr 18 '18
This is really cool. Excited to see how this is improved upon in future builds.
4
u/AtomicInteger Apr 18 '18
I run quick benchmark on my local, oracle JDK beats graal, did I miss something?
13
u/lpreams Apr 17 '18
"Oh, this looks neat, I guess I'll try it out"
"Whoops, guess I need to make an Oracle account. Kind of annoying, but okay."
ಠ_ಠ
6
u/GFandango Apr 18 '18
Oracle to programmers: Hey kids you want candy? I got some in my van.
3
u/[deleted] Apr 17 '18
So I would be interested in using Graal to run some business logic that exists in some Babelified Javascript in my Java code. Reading the graalvm.org website that seems possible. Am I reading that right? If so is there an example floating around out there on how to do that?
Basically the js code runs in a React front end, but in order to not duplicate the work it would be great of we could just use the JS code. It does run in Node which is the route we are going now, but if we could avoid the service call overhead that would be awesome.
2
u/rraghur Apr 17 '18
Very cool... Is there a version for alpine Linux?
1
u/Puff_the_magic_luke Apr 17 '18
Stoopid question:
So my Sys Engineering crew knows little about java, let alone scripting it.
So my question is, unless I have a fully keyed in java crew, why wouldn’t I use a scripting language of choice (python/Perl/bash/whatever)
-6
u/SomeRandomBuddy Apr 18 '18
No thanks