Email or username:

Password:

Forgot your password?
(λ. borkdude)

Did you know it's possible to compile SCI, a Clojure interpreter, together with JVM Clojure and Java libraries, to a shared binary with #graalvm and then use it from Python, Rust or other languages?

github.com/babashka/sci/blob/m

#clojure @graalvm

6 comments
Bruno Burke

@borkdude really interesting! Would be great if this will bring edn as a native datatype to postgres, just like json/jsonb and stuff like jsonpath

Thomas Wuerthinger

@borkdude Why not embed GraalPy in your #GraalVM native image and run Python with full Truffle-based interop this way?

(λ. borkdude)

@thomaswue That's fair, but it's not what I wanted to demo here: making a shared binary with GraalVM that can be called from almost any environment via FFI. E.g. from PostgresQL: github.com/borkdude/plsci

Thomas Wuerthinger

@borkdude Ok, understand. For this to work well, we would maybe auto-generate some FFI adapters for some languages, because I don’t think referencing a raw binary is convenient for most languages? There also has to be maybe some stuff sorted out regarding heap setup after loading the native image binary.

Go Up