Closed PolyPik closed 5 years ago
Yes, of course; any Turing-complete language can be compiled to any other Turing-complete language. Whether it is a good idea is a different question.
Note for my fellow travellers finding this place in search for Mercury for the web: There was an attempt at Mercury to WebAssembly compilation in 2020: see the mailing list archives
I know that Mercury currently does not support that language, but in theory is it possible to compile to an interpreted language like Javascript, Python, or PHP?