"would it be possible to somehow create numeric libraries / code in Julia, and "export" (emscripten?) asm.js "pure" javascript numerical code"
Yes, in theory, but someone would have to do it/finish (I recall some small demo). As Emscripten "is an LLVM <https://en.wikipedia.org/wiki/LLVM>-to-JavaScript compiler. It takes LLVM bitcode - which can be generated from C/C++". There's an issue on Github on it, that was stalled, last I checked. However, some dependencies, e.g. BLAS, are in Fortran and assembly (that Emscripten doesn't support), so the unofficial Julia-lite branch (without those) should be doable. JavaScript would also not support Threads (only experimental in 0.5 anyway) etc. I guess you where really after BLAS, linear algebra etc. and then WebAssembly would be a better target than asm.js. Or you could reimplement, what of BLAS etc. you need.. in pure Julia.. -- Palli. On Tuesday, September 13, 2016 at 5:25:46 PM UTC, Perrin Meyer wrote: > > The github "electron" cross platform app framework looks pretty slick upon > first inspection (chrome / v8 / node.js / javascript, llvm) > > However, last time I checked, the javascript numerical libraries i've > looked at are alpha quality at best. > > Since julia is also LLVM based, would it be possible to somehow create > numeric libraries / code in Julia, and "export" (emscripten?) asm.js > "pure" javascript numerical code that could be "linked" to code in the > electron framework, since that would be a possibly easy way to create cross > platform apps (linux, mac, windows, android) with high quality numerics? I > would be more interested in correctness than raw speed, although I've been > impressed by V8 / asm.js benchmarks I've seen. > > Thanks > > perrin > >