DEV Community

Discussion on: JavaScript on GraalVM

 
pmlopes profile image
Paulo Lopes

Hi,

ES4X is a new JavaScript runtime that is supposed to replace the official vertx js. The official vertx js is using nashorn so it only supports ES5.1, it's not high performance and has a development workflow based on java tools such as maven and not npm.

The goal is that with version 4 vertx will drop that js runtime and adopt ES4X.

This brings to the following question, ES4X is based on vertx, not libuv so express will not work out of the box but writing an API shim could be doable but it's not on my plans atm.

Finally regarding the multiple event loops, they never block each other, what is guaranteed is that if a request is started on event loop A then all handlers for that request are handled on event loop A to avoid context switching and improve performance.

Thread Thread
 
sj82516 profile image
YuanChieh,Cheng

Thanks for your patient and explanation.
It solved my problem when I knew the ES4X is a JS runtime.
Really appreciate.