News for hackers. Stuff that matters.
Re:Libgraal: GraalVM compiler as a precompiled GraalVM nativ... by pragmaticlurker on Tuesday July 16, 2019 @08:26AM (#20449387)
but still no Windows support for native image, plus no position independent code on *nix platforms
Re:Libgraal: GraalVM compiler as a precompiled GraalVM nativ... by grashalm on Tuesday July 16, 2019 @09:17AM (#20449708)
This is about using native-image for the Graal compiler when used as a JIT in HotSpot. There are Windows builds for this available here[1]. Not sure what you mean by position independent code in the context of libgraal. But I don't think it is relevant.

[1] https://www.graalvm.org/downloads/

Re:Libgraal: GraalVM compiler as a precompiled GraalVM nativ... by pjmlp on Tuesday July 16, 2019 @10:46AM (#20450535)
> We provide pre-built binaries for GraalVM CE for Linux and Mac OS X on x86 64-bit systems.

No mention of Windows

Re:Libgraal: GraalVM compiler as a precompiled GraalVM nativ... by grashalm on Tuesday July 16, 2019 @10:59AM (#20450684)
> No mention of Windows

Indeed. That description should be fixed. One click away there is a Windows build: https://github.com/oracle/graal/releases

Re:Libgraal: GraalVM compiler as a precompiled GraalVM nativ... by nullwasamistake on Tuesday July 16, 2019 @11:49AM (#20451171)
They're still keeping performance optimizations out of CE (free) version. Unheard of for a language runtime and quite crappy
Re:Libgraal: GraalVM compiler as a precompiled GraalVM nativ... by singularity2001 on Tuesday July 16, 2019 @07:50AM (#20449184)
can it be run in wasm and output native code (instead of teavm bytecode)?
Re:Libgraal: GraalVM compiler as a precompiled GraalVM nativ... by tom_mellior on Tuesday July 16, 2019 @07:56AM (#20449213)
The GraalVM compiler emits native code. It consumes JVM bytecode, or intermediate representations of other programming languages implemented using the Truffle framework.
Re:Libgraal: GraalVM compiler as a precompiled GraalVM nativ... by pron on Tuesday July 16, 2019 @10:30AM (#20450367)
I assume that a WASM backend could be created for Graal Native Image, so that it could compile Java byteocde to WASM ahead of time, but I wonder what benefits that would have over compiling bytecode to JS (as TeaVM does).
Re:Libgraal: GraalVM compiler as a precompiled GraalVM nativ... by singularity2001 on Tuesday July 16, 2019 @11:21AM (#20450900)
There is now a pure wasm version of TeaVM. My idea was that graal could run in wasm and compile to wasm, the (only) benefits would be faster and smaller code.
Re:Libgraal: GraalVM compiler as a precompiled GraalVM nativ... by pron on Tuesday July 16, 2019 @05:25PM (#20454044)
I'm not sure it would be either. JS has a good JIT that Java code can significantly benefit from (much more than, say, C) -- WASM doesn't, so compiling to JS could actually be faster; JS also has a GC and WASM doesn't, which means that the image must contain a GC, making it larger, not smaller. Either way, it's speculation, but I don't think it's obvious that compiling Java bytecode to WASM is preferable to compiling it to JS, but maybe the TeaVM maintainers can share their experience.