Mercury-Language / mercury

The Mercury logic programming system.
Other
907 stars 54 forks source link

Is it possible for Mercury to compile to Javascript? #60

Closed PolyPik closed 5 years ago

PolyPik commented 5 years ago

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?

zsomogyi commented 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.

WojciechKarpiel commented 6 months ago

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