Re:Shift.js: Swift to JavaScript Transpiler
by xixixao on Friday November 06, 2015 @09:44PM
(#10523430)
(transpiler) I think it's pretty useful. It signifies that the translation is "fairly" simple, as in the case of CoffeeScript, as opposed to traditional compilers targeting assembly or byte code, or even something like Emscripten. It implies that the translation is hand tuned to the target language to be minimal. (I believe Jeremy pretty much coined the term). See https://en.m.wikipedia.org/wiki/Source-to-source_compiler
[ Parent
| on HN ]
Re:Shift.js: Swift to JavaScript Transpiler
by pjmlp on Saturday November 07, 2015 @02:33AM
(#10524073)
Except that anyone with background in compiler design knows that compilation to another language is just yet another way to implement the language.
It is a common design pattern to make the compiler output code in one of the OS SDK languages as a means to speed up development and ease prototyping.
Re:Shift.js: Swift to JavaScript Transpiler
by xixixao on Sunday November 08, 2015 @09:15AM
(#10528516)
That's quite the point, for a transpiler targeting another language is not just "a way to implement it". It is a conscious decision with many pros and cons and an impact on the transpiled language itself.