Hacker News new | ask | show | jobs
by Xeamek 1056 days ago
Dunno about rust, but since both Nim and Zig compile to C as interim, it should be fairly easy to get them working together, no?
1 comments

Things might changed but last time I checked you could easily call C function but you had to kind of export each single C function, structs etc. You couldn't just import single header file and be ready to call any function in the library. There is some pending project [0] futhark but not sure how mature it is and that still only for C libraries (instead of C++ or Rust) but maybe easy adopt for Zig - would be great nonetheless.

[0] https://github.com/PMunch/futhark