Online Type-Directed Partial Evaluation
Online Type-Directed Partial Evaluation
复制标题
在线类型导向部分评估
DOI:
10.7146/brics.v4i53.19274
复制
发表时间:
1997
期刊:
影响因子:
--
通讯作者:
O. Danvy
中科院分区:
文献类型:
--
作者:
O. Danvy
In this experimental work, we extend type-directed partial evaluation (a.k.a. "reduction-free normalization" and "normalization by evaluation") to make it online, by enriching it with primitive operations (delta-rules). Each call to a primitive operator is either unfolded or residualized, depending on the operands and either with a default policy or with a user-supplied filter. The user can also specify how to residualize an operation, by pattern-matching over the operands. Operators may be pure or have a computational effect. We report a complete implementation of online type-directed partial evaluation in Scheme, extending our earlier offline implementation. Our partial evaluator is native in that it runs compiled code instead of using the usual meta-level technique of symbolic evaluation.