Submitted by cyent (Tue Jun 13 04:50:19 UTC 2006)
Whilst PE is interesting from the optimization point of view, there are many other very interesting applications, especially when your object types are also first class constant objects.
We already have pretty dynamic and context sensitive evaluation.
How much bigger leap would it be to do full partial evaluation?
Every conditional statement that has a constant expression should be replaced by the appropriate unconditional jump.
For example, if this RCR is accepted, the very next RCR will be "Make Ruby do Lazy Evaluation by Default".
Why? PE will permit efficient implementation of lazy evaluation and lazy evaluation permits a wide range of very expressive and powerful simplifications.
Comments | Current voting | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
RCRchive copyright © David Alan Black, 2003-2005.
Powered by .
-matz.