Re:Show HN: A complete Bash parser in JavaScript transpiled ...
by svnsets on Wednesday May 16, 2018 @08:07PM
(#17087488)
The only difference between the two in my mind is that the output from a transpiler is likely going to have a ton of bloat, require additional transforming, and be a much larger amount of code than the sum of the inputs. Whereas something like the Closure Compiler actually optimizes and eliminates dead code. They are the same thing though from an ideological standpoint though.
[ Parent
| on HN ]
Re:Show HN: A complete Bash parser in JavaScript transpiled ...
by monocasa on Wednesday May 16, 2018 @08:23PM
(#17087564)
I mean, early PCC didn't have data flow analysis, or eliminate dead code, and was known for head scratching levels of stuff like spilling registers on the stack that didn't need to be spilled. Was the c compiler of the 1980s a transpiler?