I wanted to see how much simpler native code integration has become with GraalVM's polyglot, when compared to JNI.
It's less than 100 lines all up (including the POM).
(I feel kinda stupid posting a "hello world" to HN, but this is a hell of an improvement.)
Linux only at the moment.
'mvn install works with $JAVA_HOME set to a Graal JDK (tested with 22.3).
--native-image works with the current development build (23.0.0), but-- bugs out with the current release version.
native-image doesn't yet do what it should.'