graalvm

Matthias Schuster 2025-05-18T22:11:53.591759Z

Has anyone ever tried to run Clojure bytecode via Espresso on the Truffle framework and is it possible using the Polyglot API that way?

borkdude 2025-05-19T07:00:57.723789Z

I’ve tried but startup time is slower than regular JVM so it kind of defeats the purpose of you want fast startup

Matthias Schuster 2025-05-20T12:40:09.788259Z

My purpose is to mix with Ruby, Python, JS and the other languages on Truffle. :)

borkdude 2025-05-20T12:47:13.222899Z

then you probably don't need espresso, since you're already running in a JVM

Matthias Schuster 2025-05-20T19:26:41.270219Z

The Polyglot API of the Truffle framework is a lot cleaner, and requires less boilerplate code

Matthias Schuster 2025-05-20T19:40:06.921479Z

Plus, the optimization is probably better, since Espresso has direct access to the Truffle AST

Matthias Schuster 2025-05-20T19:40:39.868919Z

And I guess serialization overhead is reduced and they share the same memory

Matthias Schuster 2025-05-20T19:42:06.989479Z

Not to forget that we get the same tooling then, especially debugging will be easier