Fork me on GitHub
#graalvm
<
2019-12-03
>
borkdude12:12:03

I would be interested in an example where someone calls a piece of Rust code from natively compiled Clojure. (cc @vijaykiran )

borkdude12:12:59

Calling any native C code from Clojure would be a good first start

vijaykiran12:12:07

I wouldn’t know what would be involved there. JNI probably

sogaiu13:12:25

@borkdude i think lvh did this kind of work (c from clojure) before. also libpython-clj is related iiuc.

sogaiu13:12:53

both c from clojure - not rust - to be clear

lvh16:12:52

Some of that C was really ASM and FORTRAN so as long as it’s got ffi I’m happy

borkdude16:12:18

@lvh does that work with graalvm native?

lvh16:12:06

Never tried it but the Graal folks seem to insist it would

lvh16:12:36

Should just be JNI; and if the inlining code works the way I hope it does that means JNR for free