About alternatives to Matlab

Carl Banks pavlovevidence at gmail.com
Sun Dec 10 10:54:29 EST 2006


Jon Harrop wrote:
> Carl Banks wrote:
> > I doubt it would work too well.
>
> What about translating the current Python interpreter into a language with a
> GC, like MLton-compiled SML? That would probably make it much faster, more
> reliable and easier to develop.

I doubt it would work too well.  MLton-compiled SML's semantics differ
from Python's in subtle ways, and covering the edge cases usually means
you have to do all the stuff you thought you would avoid by using
another dynamically-typed language.   Translating MTton-compiled SML
integers to Python ints would work probably 99 percent of the time, but
in the end you'd essentially have to reimplement the Python int type.

If you're going to go through all that work, you might as well
translate it to C or directly to machine code.

Carl Banks




More information about the Python-list mailing list