2 ms·
Because of pointers. C and C++ work with a large pointer-addressable heap, the JVM works with objects. You could emulate a heap in the JVM though. You wouldn'
by amelius 4y ago
Because of pointers.
C and C++ work with a large pointer-addressable heap, the JVM works with objects.
You could emulate a heap in the JVM though. You wouldn't get the advantage of JVM's automatic garbage collection, but at least you'd get some form of portability (don't expect to run the JVM inside the JVM this way).
- rjsw 4y agoThere are C compilers targeted at Lisp Machines, one targeted at the JVM could use the same techniques to implement pointers.
- lolinder 4y agoYes, but why? The original question wasn't whether it was possible it was why it hasn't been done, and the obvious answer is that there are barriers that make it impractical (not impossible).