Some more Ruby observations (Re: Comparison between Python and "Ruby")

Yukihiro Matsumoto matz at netlab.co.jp
Thu Nov 4 23:30:43 EST 1999


neelk at brick.cswv.com (Neel Krishnaswami) writes:

|Are there any syntax-tree munging phases to do stuff like common
|subexpression elimination and loop hoisting? I guess that could yield
|enough speedups to make a VM not yet necessary.

No.  It's pretty hard to optimize a dynamic language like Ruby, in
which even integer addition can be re-defined.  The optimizer can't
tell whether a subexpression has side effect or not.

Optimization ideas are welcome, though. :-)
							matz.




More information about the Python-list mailing list