Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not that it's useful or desired, but could one transpile it into pure bash as well? It's Turing complete isn't it?


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.


Luckily the current creation isn't already one.


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.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: