-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Native executable with GraalVM #70
Comments
Thanks for the feature request. This is basically a duplicate of valentjn/vscode-ltex#5, where I tried native-image a year ago. I just tried it again and the situation definitely got better, due to fewer missing features in native-image and due to better support from the community. However, it's still pretty complicated. The main problem is not the code of LTEX LS, but that native-image has to compile all transitive dependencies, and there are a lot of them for LanguageTool. Some of the problems I see include:
Right now, I'm stuck with this error at run-time (despite trying the fix from here):
Compared to these downsides, the benefits you mention are quite small IMO:
|
Thank you for explaining me. I got the context and am sorry for the duplicating issues.
OMG, that is a serious problem around your coding environment.
I see that is a problem only for this repository but also the problem of LanguageTool. It looks hard to fix it, Is the source code of the script here? Lines 305 to 354 in 8dd2120
I'd like to the Linux shell script. Can I read it online? Finally, I got enough explanation in your answer. Thanks! |
Thank you for your response. I have added support for platform-dependent archives (which include LTEX LS and Java via AdoptOpenJDK) for all future releases. You can test it with the new 12.2.0-alpha.1 pre-release, which is feature-wise equivalent to 12.1.0. Just download the version for your platform and run the The The code you mentioned modifies/patches the Windows BAT script generated by AppAssembler to add support for |
Is your feature request related to a problem? Please describe.
Thank you for the great software. I like this project because the Language Server Protocol is more stable and solid than LanguageTool Protocol. However, I have one suggestion to be a faster startup. We currently have two issues.
Describe the solution you'd like
A few years ago, Oracle releases the new Java VM called GraalVM, which provide an AOT compiler that compiles
.jar
file to a native executable. The optimization makes the binary faster magically and also reduces the largest dependency i.e., Java VM because this is the native compilation.Describe alternatives you've considered
There is another native compilation is known in Java Community but it is not so actively developed. I guess the GraalVM is more stable since the developer is Oracle.
Additional context
I also consider using this language server in my local service. I'd like to reduce external dependencies. You can see a real-world example like clj-kondo.
The text was updated successfully, but these errors were encountered: