|
Re: Compile into Native using GraalVM [message #1848319 is a reply to message #1848281] |
Sun, 28 November 2021 08:40 |
|
I don't think that this has ever been done so far, so expect to find no example/code.
In general, I would say this could be possible. The most tricky part will be getting Guice to work on GraalVM. The rest does not look so problematic.
Maybe you try to get a simple application with Guice running before trying this on an Xtext project.
|
|
|
|
Re: Compile into Native using GraalVM [message #1848458 is a reply to message #1848336] |
Thu, 02 December 2021 17:03 |
Ignacio Soubelet Messages: 3 Registered: November 2021 |
Junior Member |
|
|
Just wanted to drop a note here, basically I never reached the point in which Graal's Native gives me problems with Guice.
Basically, I was not even able to solve all the issues with OSGi. In general, the problem with compiling into Native is reflection.
That is why, for example, Spring has a separate set of tools for achieving it more or less automatically, which is still under dev.
Unfortunately, I don't think that this task is possible without rethinking the architecture.
However, if someone reads this and succeeded in the task, please drop a note.
[Updated on: Thu, 02 December 2021 17:07] Report message to a moderator
|
|
|
Re: Compile into Native using GraalVM [message #1848466 is a reply to message #1848458] |
Fri, 03 December 2021 07:27 |
|
Thanks for leaving this note. I have thought that the new Guice version would make it possible in principle to work on GraalVM. But as you said, similar efforts are required to tell Graal to handle Guice's reflection like Spring does. This is basically possible, but likely too much for a one person's/one project scope.
|
|
|
Powered by
FUDForum. Page generated in 0.03925 seconds