Re:Show HN: A complete Bash parser in JavaScript transpiled ...
by tlrobinson on Wednesday May 16, 2018 @07:23PM
(#17087257)
Should this Wikipedia page not exist then? https://en.wikipedia.org/wiki/Source-to-source_compiler
[ Parent
| on HN ]
Re:Show HN: A complete Bash parser in JavaScript transpiled ...
by monocasa on Wednesday May 16, 2018 @07:33PM
(#17087310)
I mean, it should exist according to wiki's rules since there are so many people using the term. Wiki intentionally doesn't try to independently verify any research, but just serves as a collation of ideas.
What I would do is ask 'what part there is any different than any other compiler?'
Re:Show HN: A complete Bash parser in JavaScript transpiled ...
by tlrobinson on Wednesday May 16, 2018 @07:38PM
(#17087336)
It's a type of compiler. Just like a truck is a type of vehicle, and a car is another type of vehicle.
Re:Show HN: A complete Bash parser in JavaScript transpiled ...
by omeid2 on Wednesday May 16, 2018 @08:34PM
(#17087616)
They both have four wheels and transport atoms.
Why do you think it is helpful to be unambiguous between atoms that make up a human or atoms of any goods in the back of a truck? /s
Re:Show HN: A complete Bash parser in JavaScript transpiled ...
by monocasa on Wednesday May 16, 2018 @09:17PM
(#17087870)
Except that there's a true formal (in fact legal) distinction between a car and a truck (they have different emissions standards). The whole distinction between a 'transpilers' and other compilers on the other hand is 'what is the user going to do with the output'.
Re:Show HN: A complete Bash parser in JavaScript transpiled ...
by tlrobinson on Wednesday May 16, 2018 @10:18PM
(#17088195)
That's not the disinction I've seen. I like Wikipedia's:
> translates between programming languages that operate at approximately the same level of abstraction
That's fairly straightforward, though a bit subjective (which doesn't preclude a word from having meaning)
Re:Show HN: A complete Bash parser in JavaScript transpiled ...
by sigjuice on Wednesday May 16, 2018 @09:48PM
(#17088056)
It shouldn't. There are several issues with the article and it should be deleted. None of the cited references actually support transpiler or source-to-source compiler as credible or noteworthy.