Embedding Julia in C (In a long running process)

164 views
Skip to first unread message

Stephen Chisholm

unread,
Feb 5, 2014, 1:16:56 PM2/5/14
to julia...@googlegroups.com
I'm working on integrating Julia into our platform which is a long running service, there are a few concerns around keeping the Julia environment running for an extended period. Or if it might be possible to destroy the environment after it is initialized.  We are investigating whether we should integrate Julia with the C API, the Python API or build our Julia as a separate process communicating over something like zeromg.  I was hoping to get some help and suggestions with this, and the have left questions and concerns below.

- Once jl_init is called, is there a way to destroy the Julia environment that is initialized?

- Is it possible to initialize multiple Julia environments within the same process?

- Without the ability to delete functions or delete global variables after a while the environment's memory foot print could get out of hand.

Tobias Knopp

unread,
Feb 5, 2014, 1:57:35 PM2/5/14
to julia...@googlegroups.com
No there don't seem to be a cleanup method. And multiple julia environments are currently not possible.
But from my perspective it would be great to work towards putting all the globals into a struct so that multiple Julia threads per process become feasible.

Bill Janssen

unread,
Feb 9, 2014, 2:59:58 PM2/9/14
to julia...@googlegroups.com
It would be great to be able to do this.  It's a pain with Python, not having a globals-clean interpreter.
Reply all
Reply to author
Forward
0 new messages