3 ms·
I'm curious about the opposite direction. Is there C compiler or transpiler targeting either the Python VM or native Python code? I know there is a rich histor
by weinzierl 4y ago
I'm curious about the opposite direction. Is there C compiler or transpiler targeting either the Python VM or native Python code?
I know there is a rich history of projects targeting the JVM, but I could not find anything regarding Python.
Doesn't matter if it is heavily restricted, incomplete, just supports a subset of C or if it is just a research project. All projects targeting the JVM I encountered are like this.
For me it is not so much about a solution but more about the question why apparently everyone is interested in the JVM and no one tackled Python.
- ptspts 4y agoPossible reasons: 1. The JVM executes bytecode much (~10 times) faster than the CPython VM. 2. Unlike the JVM, the CPython VM and bytecode are not compatible with older or newer versions of CPython. (The differences are small, but they add up, increading maintenance costs.)