Why I love python.
Erik de Castro Lopo
nospam at mega-nerd.com
Fri Aug 13 05:41:45 EDT 2004
Nick Patavalis wrote:
>
<snip>
> Python needs drastic performance improvement if it is to scrap-off the
> "scripting language" stigma. The only way to get these improvements is
> making it possible for a python implementation to produce *efficient*
> *compiled* code. At the same time the dynamic-typing nature of the
> language is one of its most valuable characteristics. And this is one
> of the hardest problems when trying to write a decent python
> compiler. If you define a function like:
>
> def sum (a, b):
> return a + b
>
> How can the compiler know what code to produce?
I know of at least one language which has solved this problem, Ocaml
http://www.ocaml.org/
Its called type inferencing and since there is at least one working
implementation, it can't be THAT hard.
Erik
--
+-----------------------------------------------------------+
Erik de Castro Lopo nospam at mega-nerd.com (Yes it's valid)
+-----------------------------------------------------------+
Never argue with stupid people. They'll just drag you down to
their level and beat you with experience
More information about the Python-list
mailing list