Sure, I mainly mentioned libc'c' because it's what atom-shell uses, but CEF looks good too. I actually had a go with CEF myself but with my limited C experience it was way too fiddly – getting it working well on all platforms would've taken me years.
Thinking about it more, Chromium uses a multi-process model anyway, so it's possible the native api wouldn't even give us much performance benefit. Node-webkit does some magic to make node run in the same process as the DOM, but from what I hear it's a huge maintenance effort to keep up to date with the latest Chrome (which is part of the reason Light Table has switched to atom-shell as well). On 7 January 2015 at 00:45, Tracy Wadleigh <[email protected]> wrote: > You mention in the readme about in the future possibly using Cxx.jl to > wrap libchromiumcontent. Might you be able to avoid the need for Cxx.jl by > using the C API of the Chromium Embedded Framework > <http://code.google.com/p/chromiumembedded/>? > > On Tue, Jan 6, 2015 at 7:31 PM, Jeff Waller <[email protected]> wrote: > >> Oh man, I think there might be a way! >> >> Inspired by this because you know Atom is essentially node + chromium, I >> tried >> >> git clone node-julia >> and then >> >> 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'); >> undefined >> julia.exec('rand',200); >> Array[200] >> >> >> and then (bonus) >> julia.eval('using Gadfly') >> JRef {getHIndex:function}__proto__: JRef >> julia.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 >> > >
