Open lorenzleutgeb opened 6 years ago
Update: While doing performance tests for issue #75, I had the same idea and tried the same thing with the latest graal version. Problem is still logback, but I got the standalone image working with --ignore-missing-classpath
flag. Unfortunately the image isn't much use because while everything works fine, since one of the logback configurer classes is broken by the image (I'm assuming because of some unsupported "reflection magic" being used), the loglevel defaults to debug, causing way too much output for performance to be anywhere near acceptable.
What I found interesting is that the problem is really logback, but not slf4j, so it might be worth a try switching over to log4j or some simpler slf4j-supported thing for the purpose of image creation
(EDIT: sorry for spam, I wanted to comment, not close the issue...)
With the release of Oracle GraalVM it is possible to compile Java code to x86-64 executables. It would be nice to have the possibility to distribute/run Alpha as a single binary. Currently, the benefits are limited (no startup time) and the runtime is still being optimized.
In a different project I am working on I had some quick success with Graal's
native-image
compiler, so I went ahead and tried this out with Alpha, but ran into a limitation of Substrate VM (part of the Graal ecosystem):In brief: Some "static" code, attempts to open a file which is not possible in this setting. It's the logging framework.
Apart from our dependencies, the actual code implementing Alpha should be quite straightforward to compile.