Hi! Somebody asked me about calling into Rust from Julia (Julia can call any C function that’s in a shared library / dll directly). Has anybody here dealt with that, or the ease of building a shared library out of Rust code, to be called from other languages using C ABI?
Somebody suggested that I look at Rust, to replace the parts where now I’d drop back to my old standby, C (most everything I can do quite efficiently in Julia, however at times the GC gets in my way, and bit twiddling is harder than in C at times)
Rust will probably work just as well for those tasks, although you will most likely have to do some translation to and from safe datatypes (especially for heap allocated types), but it's not much of a problem.
What I was hoping for, is to be able to pass pointers to Julia allocated arrays/vectors (so they are GCed by Julia), and process them quickly in Rust (and any temp allocations being done in Rust, nice and quick, instead of making the GC churn later on in Julia)