News for hackers. Stuff that matters.
Re:Potential of the Julia programming language for high ener... by cozzyd on Monday December 04, 2023 @12:26PM (#38520138)
So you can embed it in the same way you can embed e.g. python or octave. This is fine for some uses, but it is a bit invasive. How does it interact with multiple threads? That's a huge pain point in embedding python code...

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...

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.