3 ms·
> 5Wikipedia disagrees, but for me, the defining feature of a transpiler is that its goal isn’t running the program but getting human-readable source code that
by rualca 5y ago
> 5Wikipedia disagrees, but for me, the defining feature of a transpiler is that its goal isn’t running the program but getting human-readable source code that can be maintained.
No, not really. Perhaps the typescript transpiler is the most widely used transpiler in history, and anyone with a cursory experience in typescript can tell you that the transpiler's role is to just generate the code intended to be packaged or fed to a barreler without any human ever looking into what code is generated.
Another famous example was the initial "c with classes" transpiler which was the precursor of C++.
- jhgb 5y agoThose are compilers, then. Just like traditional C compilers emit intermediate files in assembly.