python to C ?

M

mudd

I seem to remember an announcement on Daily Python-URL in the past year or
two about a project that converts Python to C. The goal wasn't to convert
generic Python but a limited subset. Something else unique was that the
generated C code was sort of object oriented, actually readable.

But I don't remember the project name and can't find it even after many
tries with Google, Vaults of P., etc. And it wasn't Pyrex. Does anyone
recognize what I'm describing?

John
 
J

Jason Lai

I seem to remember an announcement on Daily Python-URL in the past year or
two about a project that converts Python to C. The goal wasn't to convert
generic Python but a limited subset. Something else unique was that the
generated C code was sort of object oriented, actually readable.

But I don't remember the project name and can't find it even after many
tries with Google, Vaults of P., etc. And it wasn't Pyrex. Does anyone
recognize what I'm describing?

John

The ones I've heard of are Python2C and PyFront. But I think they're
pretty simplistic and haven't been updated for a long long time.

Pyrex sort of converts Python into C. It's not exactly Python code
because of some limitations, I think, but it comes close. But the C code
generated is *ugly*. I think the mangled variable naming has a lot to do
with that.

Phil Frost suggested Psyco, but that actually generates assembly code,
not C.

- Jason
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,206
Messages
2,571,069
Members
47,675
Latest member
RollandKna

Latest Threads

Top