News for hackers. Stuff that matters.
Re:React Server Side Rendering with GraalVM for Clojure by pron on Monday July 08, 2019 @08:16AM (#20382050)
Note that you aren't tied to Java 8, which is quite old by now, but can also run GraalJS with OpenJDK 11, 12, 13, and enjoy the recent performance improvements to the GC (using ZGC or Shenandoah) and startup time (using Application CDS):

https://github.com/graalvm/graal-js-jdk11-maven-demo

Re:React Server Side Rendering with GraalVM for Clojure by kvlr on Monday July 08, 2019 @08:26AM (#20382096)
Ah nice, we do want to switch Nextjournal to Shenandoah eventually after reading http://clojure-goes-fast.com/blog/shenandoah-in-production/

So is graal polyglot already compatible with newer JDKs and it's just native image generation that's blocking the upgrade? https://github.com/oracle/graal/issues/651

Re:React Server Side Rendering with GraalVM for Clojure by grashalm on Monday July 08, 2019 @08:37AM (#20382169)
Graal-dev here,

We are working with a very high priority on JDK 11 support. We should be able to ship it in a few months from now.

> So is graal polyglot already compatible with newer JDKs and it's just native image generation that's blocking the upgrade?

Not just. We also need to upgrade the JVMCI version we use in order to support libgraal (Graal compiler as native-image in HotSpot). Also, modules make everything a little bit more complicated as well.

Re:React Server Side Rendering with GraalVM for Clojure by pron on Monday July 08, 2019 @08:33AM (#20382143)
Native image is experimental, and I believe is a separate download now. Maybe someone from the Graal team can give more precise information about what exactly works in stock OpenJDK, but you should try that demo with Java 12 (or even 13). While you're at it, also give ZGC a try (see https://news.ycombinator.com/item?id=19886856 and http://www.programmersought.com/article/8311115057/).