Friday, August 05, 2022

graalvm run js from node

first install all requirements 

gu install nodejs 

gu install native-image 

gu rebuild-images libpolyglot 

then run 

node --native --polyglot -e 'var array = Polyglot.eval("ruby", "[1,2,42,4]"); console.log(array[2]);'

 

 

 

https://www.graalvm.org/22.2/reference-manual/js/NodeJS/

 

 

 

 

 

 

 

 

 

No comments:

sony xperia 10 VI did not like the case

After iphone 16 I wanted to test an android and looks like sony xperia 10 VI is nice, which is 6.1 inches, but it was narrow and longer than...