[e-lang] Looser memoization and constant-folding: will this work?
Bill Frantz
frantz at pwpconsult.com
Tue Jul 25 19:01:06 EDT 2006
kpreid at mac.com (Kevin Reid) on Tuesday, July 25, 2006 wrote:
>On Jul 23, 2006, at 0:41, Mark S. Miller wrote:
>
>> ... If the computation exceeds its budget, the E-to-CL
>> compiler could preemptively terminate it, in violation of the
>> general E model. This would be safe since a partially completed
>> DeepFrozen-returning-DeepFrozen computation cannot leave behind any
>> reachable residual side effects.
>>
>> Is this reasoning sound? Is it really safe to preemptively
>> terminate such
>> computation?
>
>No. Consider what happens if one of the previously-discussed
>DeepFrozen memoizers is in the process of updating its hash table,
>within the speculative execution, at the moment you interrupt it.
I assumed that preemptive termination consisted of blowing the vat away
and restarting that vat from its last checkpoint. That procedure would
also return th DeepFrozen memoizer to a consistent state.
Cheers - Bill
-------------------------------------------------------------------------
Bill Frantz | The first thing you need when | Periwinkle
(408)356-8506 | using a perimeter defense is a | 16345 Englewood Ave
www.pwpconsult.com | perimeter. | Los Gatos, CA 95032
More information about the e-lang
mailing list