News for hackers. Stuff that matters.
Re:Shift.js: Swift to JavaScript Transpiler by quux on Friday November 06, 2015 @09:48PM (#10523438)
This is cool, but once swift is open sourced I'd imagine that you'll be able to use emscripten to generate JavaScript code instead of native asm. In fact you can probably do that today by havin swiftc emit llvm IR and imputing that into the emscripten backend like that guy did to get swift running on his android phone.

Hmmmmm

Re:Shift.js: Swift to JavaScript Transpiler by dangoor on Friday November 06, 2015 @10:31PM (#10523553)
There's a pretty big difference between emscripten and compilers that specifically target JS. The ones that target JS will generally use JS memory management and attempt to use JS language features whereas emscripten targets asm.js and manages memory itself within byte arrays.