#Executing TS code using graalVM

1 messages ยท Page 1 of 1 (latest)

zinc canopyBOT
#

@chrome ridge has a question:

raul1ro

It is possible to execute code from a big typescript project (@mysten/sui) using graalVM + polyglon?
Or with other kind of jdk/library?

#

<@&987246399047479336> please have a look, thanks.

#

Here is an AI assisted attempt to answer your question ๐Ÿค–. Maybe it helps! In any case, a human is on the way ๐Ÿ‘. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#
TJ-Bot
It is possible to execute code from a big typescript project (`@mysten/sui`) using graalVM + polyglon? Or with other kind of jdk/library?

Yes, it is possible to execute TypeScript code from a big project like @mysten/sui using GraalVM's polyglot capabilities. GraalVM is a universal virtual machine that can run applications written in multiple languages, including JavaScript/TypeScript through Node.js compatibility.

To execute TypeScript code using GraalVM, you can use the GraalVM Node.js runtime along with the GraalVM SDK to interact with Java code. This allows you to seamlessly integrate TypeScript code with Java applications.

Alternatively, you can also use other JDK libraries such as Nashorn or Rhino to execute TypeScript code within a Java application. These libraries provide JavaScript engines that can interpret and run TypeScript code.

Overall, whether you choose to use GraalVM's polyglot capabilities or other JDK libraries, you have the flexibility to execute TypeScript code within a Java environment. This allows you to leverage existing Java functionality while incorporating TypeScript code from projects like @mysten/sui.