News for hackers. Stuff that matters.
Re:Shift.js: Swift to JavaScript Transpiler by mwcampbell on Friday November 06, 2015 @08:24PM (#10523168)
This word, "transpiler", must die. Call it a translator or a compiler; there's no need for a new word in this case.

Looks like an interesting project, though. I'll keep an eye on it.

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
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.
Re:Shift.js: Swift to JavaScript Transpiler by pjmlp on Sunday November 08, 2015 @09:51AM (#10528598)
Except no one ever spoke of transpilers when C compilers generated Assembly, C++, Objective-C and Eiffel generated C and so forth.

It was just the output of the compiler.

Re:Shift.js: Swift to JavaScript Transpiler by pjmlp on Saturday November 07, 2015 @02:26AM (#10524063)
I am already waiting to see someone say that C transpiles to Assembly.
Re:Shift.js: Swift to JavaScript Transpiler by mckoss on Saturday November 07, 2015 @01:24AM (#10523967)
A transpiler is specifically a "source-to-source" language translator.
Re:Shift.js: Swift to JavaScript Transpiler by pjmlp on Saturday November 07, 2015 @02:29AM (#10524069)
So a C compiler is a transpiler, given that classical C compilers just outputted Assembly that was processed further by the Assembler.

Eiffel compilers are also transpilers as they use C as intermediate language.

Scheme compilers are also transpilers as many use C as intermediate language.

....

Re:Shift.js: Swift to JavaScript Transpiler by wellsjohnston on Saturday November 07, 2015 @08:26AM (#10524715)
So, a compiler.