-
Notifications
You must be signed in to change notification settings - Fork 15
Does graalvm help us? #22
Comments
Hey. Indeed GraalVM looks like a really interesting alternative (Although it's a separate JVM) I used this code for testing: server.ts:
renderadapter.ts:
I am able to render these requests with the Launching the At the moment I am not sure if I have to rebuild Graal.js or if it is not supported at all. I will open an issue for this in the GraalVM project. |
Thanks. Please link that issue here |
@thekalinga I just posted my question: oracle/graaljs#2 |
@swaechter Seems like https://github.com/graalvm/examples/blob/master/weather_predictor/weatherServer.js javascript in https://github.com/graalvm/examples uses "require". Did some additional research and seems like nodejs "require" aka module is available when application is started as nodejs application. When Java application triggers Javascript it does not have nodejs feature but can only trigger Javascript interpreter which does not have nodejs capabilities. |
@divyakumarjain Yeah, I also saw the example.
Yes, that's true. As Christian pointed out in the GraalVM issue, it's a lot easier to implement a custom JS engine into Node.js than Node.js capabilities into Java. For now I am going to close this issue, because it's also quite a burden to use a custom JVM. I am looking for a really cool draft in #23 |
I just came across graalvm & wanted to check whether graalvm can make our life simpler & improve performance when doing pre-rendering?
http://www.graalvm.org/
Thanks
The text was updated successfully, but these errors were encountered: