4 ms·
How does Julia interface with C? Is it easy to interface Julia with C because all it does is compile the C with Clang/LLVM?
by blueblob 13y ago
How does Julia interface with C? Is it easy to interface Julia with C because all it does is compile the C with Clang/LLVM?
- astrieanna 13y agoJulia does not compile the C code; it links against shared libraries. It helps that Julia types can model C structs easily. Manual entry on calling C: http://docs.julialang.org/en/latest/manual/calling-c-and-fortran-code/ http://docs.julialang.org/en/latest/manual/calling-c-and-for... Blog post on passing Juila callback functions to C code: http://julialang.org/blog/2013/05/callback/ http://julialang.org/blog/2013/05/callback/