[
https://issues.apache.org/jira/browse/NIFI-6229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17765491#comment-17765491
]
Dirk Arends commented on NIFI-6229:
-----------------------------------
An update on where I've gotten up to with integrating Graal into Nifi:
1. I've managed to mostly work around the issues mapping JS types to Java
types, using a combination of target type mappings and adjusting my JS code.
Some combinations of JS and Java data types still cause issues.
2. I'm still encountering issues with multithreading when using Graal. Unlike
Nashorn, Graal contexts can't be shared among multiple threads. I'm not sure
how to handle this, especially in the case of InvokeScriptedProcessor (which
invokes the script in order to fetch a list of properties, relationships, etc).
Potentially some kind of Graal context pool might be the way to go, but that's
not something I've got experience with. If anybody has any suggestions on how
to approach multithreading support, they'd be very welcome.
> support GraalVM
> ---------------
>
> Key: NIFI-6229
> URL: https://issues.apache.org/jira/browse/NIFI-6229
> Project: Apache NiFi
> Issue Type: Wish
> Reporter: Behrouz
> Priority: Minor
> Labels: features
> Attachments: Graal_Testing_Examples.json, Standalone_Graal_Test.java
>
>
> supporting GraalVM ([https://www.graalvm.org/]) would be very helpful for
> Nodejs, R, C++, ... programmer to work with Nifi.
> "GraalVM is a universal virtual machine for running applications written in
> JavaScript, Python, Ruby, R, JVM-based languages like Java, Scala, Kotlin,
> Clojure, and LLVM-based languages such as C and C++.
> GraalVM removes the isolation between programming languages and enables
> interoperability in a shared runtime. It can run either standalone or in the
> context of OpenJDK, Node.js, Oracle Database, or MySQL"
--
This message was sent by Atlassian Jira
(v8.20.10#820010)