Re:Show HN: A complete Bash parser in JavaScript transpiled ...
by ddtaylor on Wednesday May 16, 2018 @03:12PM
(#17085502)
Not that it's useful or desired, but could one transpile it into pure bash as well? It's Turing complete isn't it?
[ Parent
| on HN ]
Re:Show HN: A complete Bash parser in JavaScript transpiled ...
by mvdan on Wednesday May 16, 2018 @05:28PM
(#17086653)
I'm not sure I understand what you're saying. If there was a Go->Bash transpiler (or a JS->Bash one), yes, we would theoretically end up with a Bash parser and interpreter in Bash.
I imagine it would be quite the monster, though.
Re:Show HN: A complete Bash parser in JavaScript transpiled ...
by solarkraft on Wednesday May 16, 2018 @07:04PM
(#17087168)
Luckily the current creation isn't already one.
Re:Show HN: A complete Bash parser in JavaScript transpiled ...
by mvdan on Thursday May 17, 2018 @07:45AM
(#17090477)
I'm going to go on assuming that you're not being sarcastic :)
As I mentioned in another comment, once Go's wasm support is shipped and stable, I hope to make the JS package smaller and better. Until then, this is the best I can do without manually rewriting the Go code in JS.