4 ms·
Any language that can be compiled for x86 can be transpiled to any language in which an interpreter of x86 opcodes could be written. The question is what level
by firethief 7y ago
Any language that can be compiled for x86 can be transpiled to any language in which an interpreter of x86 opcodes could be written. The question is what level of abstraction can be preserved; if it requires lowering that far, it's not likely to be worth it.
- yters 7y agoWell, for that matter any Turing complete language can embed an interpreter/compiler for any other Turing complete language. If that's all that is meant by transpiling, it is no different than something like the JVM. My understanding of 'transpiling' is that it is meant to convert, say, idiomatic Python into idiomatic Java.
- jayd16 7y agoYou might as well call JNI and extern calls transpilation too.