Re:Potential of the Julia programming language for high ener...
by adgjlsfhk1 on Monday December 04, 2023 @12:46PM
(#38520397)
You can also run multi-threaded Julia from external threads. Julia unlike python doesn't have a GIL (or similar), and supports native multi-threading. As of 1.10 (I think, it might be 1.9), you can also add threads after startup (which is necessary for interfacing with spark or similar systems).
Re:Potential of the Julia programming language for high ener...
by eigenspace on Monday December 04, 2023 @01:17PM
(#38520839)
Yep that's right. Again though, PackageCompiler.jl does work quite well for creating .so / .dylib / etc shared libraries from julia code for more traditional library-style interaction, and is quite mature and widely used.
It produces quite big binaries, but the more involved and complicated your application is, the less that matters.
edit: just found https://docs.julialang.org/en/v1/manual/embedding/#Thread-sa...
Ok, so, it's tricky, but at least you can start an interpreter per thread...