Replies: 3 comments 10 replies
-
I'm not familiar with the ins and outs of julia, but looking at its documentation, this would be the way: Looking at this project: https://github.com/matthijscox/embedjuliainc it looks like aside from invoking the julia init code and shutdown code, it should be possible to bind to the julia files by loading them and binding to them like C. I will have to investigate, but it doesn't look like this would be very hard, assuming one can easily generate so files for julia. |
Beta Was this translation helpful? Give feedback.
-
Wow ... thanks for writing back. It sounds like the barrier may not be that high, with the caveat that we must be able to generate "so" files for Julia. I had a poke around, and it would appear that this Julia package appears to explicitly do this; It's documentation says
So based on all this, I'd certainly willing to put in some of my own time on a POC that sets out to call a trivial Julia library from Scala. I tried to read the docs for slinc library, but from what I could tell, the link to docs from the readme is broken... would you expect them to still be published? Finally to calibrate my expectations:
Should I read this to mean this may be possible for a consumer of this library as is, carefully following instructions (me)? Or rather that it may be possible for a skilled developer to add it as a feature? |
Beta Was this translation helpful? Give feedback.
-
https://github.com/Quafadas/slincTest barfs with
I interpret this to mean that some part of the Julia C interface isn't correctly linked. https://discourse.julialang.org/t/embedding-julia-in-scala/97347 I can solve that, apparently, by simply copying the file out of the vanilla Julia install to the right place... but then I get this;
When trying to call a function from the package. I interpret that again, to mean that I haven't got the linking right. Hmmmm. Which I think is because I didn't have the right dll / method name combination
|
Beta Was this translation helpful? Give feedback.
-
A curiosity: a guess on how possible it might to port the concepts here to allow Julia interop?
If forced to guess: could it be functionality which could live peacefully in this library, or would it rather be a standalone effort?
Beta Was this translation helpful? Give feedback.
All reactions