Compile into Native using GraalVM [message #1848281] |
Fri, 26 November 2021 07:17  |
Eclipse User |
|
|
|
Hello,
I have been looking for any post/project/code that use GraalVM's native image to generate, for example, XText language server (IDE project) but without any luck.
This topic is only to ask whether you guys have seen something like that and whether you think it is possible or not, give some of the restrictions native image generator has at the moment.
That info would be really helpful for me before jumping into it, since requires some effort.
Thanks
|
|
|
|
|
Re: Compile into Native using GraalVM [message #1848458 is a reply to message #1848336] |
Thu, 02 December 2021 12:03   |
Eclipse User |
|
|
|
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 12:07] by Moderator
|
|
|
Re: Compile into Native using GraalVM [message #1848466 is a reply to message #1848458] |
Fri, 03 December 2021 02:27  |
Eclipse User |
|
|
|
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.03911 seconds