0

I've always been interested in the idea of a polyglot framework that allows steps in a pipeline of transformations to be written in arbitrary programming languages, as long as the transforming code provided a method with the appropriate signature that could be called by the orchestrator.

I am aware of foreign function invocation, where the programming language reaches out to call some C function. A lot of programming languages have explicit support for this, but it's so much a polyglot approach as duo-glot.

The other approach I'm aware of would be something like communicating via a socket between two long-running processes written in different languages, but that adds quite a bit of overhead to generate and transmit payloads between the two processes.

Does GraalVM provide support for compiled binaries to call methods and accept return values from another compiled GraalVM binaries?

Is it possible to do so safely with shared memory, or at least minimal payload processing overhead?

jstur
  • 659
  • 6
  • 12

0 Answers0