liquid icon indicating copy to clipboard operation
liquid copied to clipboard

GraalVM Native Binaries

Open Immortalin opened this issue 6 years ago • 4 comments

Would make startup faster

Immortalin avatar Mar 17 '19 01:03 Immortalin

Is it possible? How is Babashka compatibility?

zikajk avatar Feb 19 '21 17:02 zikajk

I think it is possible to some extend. I have done some experiments with the interaction between Babashka and the terminal, which looks promising. I would need to do some refactoring to separate Babashka specific parts from JVM specific parts. My best guess is that it will be slow. Startup will be fast, but general performance slow. Another critical point is live evaluation. I do not no how that will work. It would be fun to see, how far I could go, but I have not had time to pursue it further.

mogenslund avatar Feb 19 '21 20:02 mogenslund

Anyway, I think refactoring out JVM specific parts should be done at some point. This will make it easier to port it to any other Clojure flavor.

mogenslund avatar Feb 19 '21 21:02 mogenslund

Hmm. Just by removing JFrame related code (which is not needed when used in the terminal) it is possible to build a native graalvm image :-) Of cause you cannot use eval then.

mogenslund avatar Apr 06 '21 19:04 mogenslund