bizarro% cd node-julia/
bizarro% HOME=~/.atom-shell-gyp node-gyp rebuild --target=0.19.5 --arch=x64 --dist-url=https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist
that 0.19.5 value is critical and I ended up just trying the versions at random....
linked node-julia in
pwd
/Applications/Atom.app/Contents/Resources/app/node_modules
bizarro% ls -l node-julia
lrwxr-xr-x 1 jeffw staff 32 Jan 6 18:10 node-julia -> /Users/jeffw/src/atom/node-julia
and then finally within the javascript REPL in Atom
var julia = require('node-julia');
undefinedjulia.exec('rand',200);Array[200]
and then (bonus)
julia.eval('using Gadfly')
JRef {getHIndex:function}__proto__: JRefjulia.eval('plot(rand(10)');
that last part didn't work of course but it didn't crash though and maybe with a little more... A julia engine within Atom. Would that be useful? I'm not sure what you guys are wanting to do, but maybe some collaboration?
-Jeff
I'd be interested in getting a Julia engine in Atom, but I would not be so interested in Julia for visualization when, unless I'm mistaken, at that point you can use d3 directly. That would be cool if true. Is it? Can we get the Julia.eval to return a javascript array? Getting Julia and javascript working side by side in the same console would be pretty awesome.
That's very cool. You should definitely package this up if you can. The JS-on-top approach might actually make it easier to package up a Julia app, at least in the short term. (Also, if you don't want to call julia.eval every time, it should be easy to hook up the Julia instance to Juno and use it as a repl).
The Blink.jl model turns out to work quite well for us – since it's basically a thin layer over a Julia server + browser window, it should be easy to serve Blink.jl apps both locally and over the internet, which will open up some interesting possibilities. It does hurt ease-of-use a little though, so I'd be happy to see alternative approaches crop up.