3 ms·
Wikipedia 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
by Someone 5y ago
Wikipedia 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.
So you get your COBOL source code, transpile to Java, throw away the COBOL code (1), and let humans do maintenance on the Java code from there on.
Converting to (often) messy C with the sole goal of reusing its compiler for me it’s t transpiling.
(1) of course, caution dictates that keeping that code around is a good idea.
- 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.