Hacker News new | ask | show | jobs
by hristov 3919 days ago
That is called a compiler.
2 comments

Transpilers are compilers... The term is usually used for a compiler which compiles between languages at about the same level of abstraction.
The term is usually used by people that don't know what compilers are.

Snark aside, I think this is actually the case. I bet there are a LOT of CoffeeScript/Javascript developers who have never worked in a compiled language.

A term that I only started seeing after the crazyness to compile to JavaScript started and a part of my major was compiler design.
Eh, it isn't starting with source code.
In the broadest sense a compiler is any program that translates between different representations af a program. In that sense one can also consider a decompiler as a compiler.

Also we usually use the term compilation (or more specifically Ahead Of Time and Just In Time compilation) for when we translate bytecode into machinecode.

Well, sure. I'm just saying that calling this something more specific than "compiler" isn't wrong.