Fork me on GitHub
#yamlscript
<
2023-08-05
>
Ingy döt Net16:08:28

Can GraalVM compile to a shared library (rather than an executable)?

Ingy döt Net16:08:34

Googling this brings up a lot about calling shared libs from java.

hifumi12321:08:19

Through some magical annotations, the answer seems to be yes. Cf. https://komamitsu.medium.com/how-to-create-a-shared-library-from-java-code-2273b5015689 Though I have never done this and I would not expect the library to feel ergonomic for C users

Ingy döt Net21:08:02

Well the C user will be me 🙂

Ingy döt Net21:08:30

Or whoever is writing the language specific (FFI or whatever) binding

lread22:08:30

There is also #CAJN79WNT and also a dedicated Graal slack: https://www.graalvm.org/slack-invitation/

Ingy döt Net22:08:27

joined here 🙂

👍 1