Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?


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

Blog post on passing Juila callback functions to C code: http://julialang.org/blog/2013/05/callback/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: