3 ms·
The trick here relies mostly on comments that are valid for one language, but not the other (abusing Java's Unicode preprocessing). There are language pairs tha
by ygra 10y ago
The trick here relies mostly on comments that are valid for one language, but not the other (abusing Java's Unicode preprocessing). There are language pairs that offer no provision at all for embedding parts of code that another language won't see or misinterpret. E.g., I haven't been able to write a batch file that also works as a PowerShell script yet, although you can write a batch file that doubles as a VB script through clever use of a conditional jump.
- kleer001 10y agoOooh, right. So, I guess there's some pairs that are incompatible. Hmm :( Maybe it also work for computationally equivalent (simulation/emulation) math where you're decompiling the machine language into a stream of logical NORs or such. That might connect more languages.