Re:Lets Talk About Something Diabolical: A PyPy Intro (David...
by stefantalpalaru on Sunday March 18, 2012 @01:37PM
(#3720223)
The RPython translation to C sounds a lot like what cython is already doing with a subset of Python. Are the PyPy guys reinventing the wheel here?
[ Parent
| on HN ]
Re:Lets Talk About Something Diabolical: A PyPy Intro (David...
by fijal on Sunday March 18, 2012 @03:24PM
(#3720612)
Cython is both differently defined and serves a different purpose. First of all, RPython is runnable, Cython is not. RPython has type inference, but more importantly, because it works from live objects, it has Python as a metaprogramming language. It's also much easier to extend than Cython.
Purpose wise cython is for optimizing pieces of code, rpython is for writing interpreters. RPython is quite faster than Cython, but it's also much more restricted, making it a bit unusable for the purpose of "just" speeding up pieces of code (you can't have PyObject equivalents).
Re:Lets Talk About Something Diabolical: A PyPy Intro (David...
by kingkilr on Sunday March 18, 2012 @02:50PM
(#3720487)
I seriously doubt it, considering a) RPython is a strict subset of Python, operating on the in memory representation of Python objects and does aggressive type inference, whereas Cython adds additional features (and syntax) to the language and has it's own parser and no type inference (AFAIK), and b) RPython predates Cython, AFAIK.