3 ms·
That’s absolutely not true. C only needs a huge array, and you can do anything you want with that in any language. That’s pretty much what WASM does as well. I
by kaba0 4y ago
That’s absolutely not true. C only needs a huge array, and you can do anything you want with that in any language. That’s pretty much what WASM does as well.
I’m sure there are some other ways as well, but a supported one is through the Graal project, which can run LLVM bitcode (and thus any of C, C++, Rust, etc) natively. Hell, it can interop with regular Java code, or that of other Truffle languages, and even optimize across language barriers!
- cultofmetatron 4y agowhile technically true in the sense that any turing machine can simulate another turing machine, it probably wouldn't be efficient enough to be worth it.
- w7 4y agoYes, but at that point you've implemented abstractions on the JVM's abstractions, or used platform/implementation dependent code. What's the point, just to say you did it? It's not impossible, it's just not worth the ROI time wise for most people with the desire to make a C/C++ standard compliant compiler to do so-- and even if they do, the amount of traction it'll gain will be minimal because developers can make an educated choice not to use it when native C/C++ compilers are available, or alternative JVM languages like Kotlin. Which is why you have a bunch of attempts at this that stopped development in 2009/2015.
- goatlover 4y agoWhat would be the point of doing that?