I would like to allow users to write Julia-based plugins for my software, which is written in a C-like language. I had a look at the embedding manual which seems really straightforward. However, I don’t know what the right approach would be if I wanted to support multiple execution contexts. If the user loads multiple plugins, written in Julia, which would each make and receive function calls to/from the C application, how would one allow the code of those plugins to not interfere with each other? Can you load/store the state of the interpreter to allow multiple independent Julia programs to be embedded in a C application? Or would you use separate OS processes, like how web browsers do it with Javascript?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Embedding Julia in Julia | 4 | 424 | December 4, 2021 | |
Calling Julia functions from a multi-threading scheduler written in C? | 1 | 575 | January 28, 2021 | |
Embedding multiple versions of Julia in a single C application | 6 | 416 | January 25, 2022 | |
Embedding Julia into multithreading apps | 26 | 3254 | January 28, 2019 | |
Embedding: thread safety requirements | 3 | 758 | January 22, 2018 |