3 ms·
Wait a minute! Can you embed Julia into a C program like Lua? Can it interface with complex C types cleanly?? This might be the scripting language I'v been look
by sdegutis 13y ago
Wait a minute! Can you embed Julia into a C program like Lua? Can it interface with complex C types cleanly?? This might be the scripting language I'v been looking for in my side project!
- sdegutis 13y agoWow. Okay, yes. It can be embedded[1]. It can call C code[2]. Julia may have just saved my project (which was dying because it needed a good scripting language that was fast)! [1]: http://docs.julialang.org/en/latest/manual/embedding/ http://docs.julialang.org/en/latest/manual/embedding/ [2]: http://docs.julialang.org/en/latest/manual/calling-c-and-fortran-code/ http://docs.julialang.org/en/latest/manual/calling-c-and-for...
- 3JPLW 13y agoAnd embedding (and its documentation) will likely get much better very soon. https://github.com/JuliaLang/julia/pull/4997 https://github.com/JuliaLang/julia/pull/4997
- sdegutis 13y agoOne big pain point so far is that it won't be easy to actually embed Julia into my app. So users of my app will have to install Julia (probably via homebrew) before they can script the app with it.
- sdegutis 13y agoI foresee Julia overtaking PyObjC, RubyCocoa, Nu, and MacRuby as the scripting language of Mac apps. This looks incredibly perfect. You don't lose performance, so you can even do the hard stuff in Julia. Which makes bridging much less painful. Hoorah!