summaryrefslogtreecommitdiff
path: root/examples/tutorial/old/semantics/AnswerBase.hs
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2012-12-14 14:00:21 +0000
committerhallgren <hallgren@chalmers.se>2012-12-14 14:00:21 +0000
commitd7e3c869c2ae56141260d4576b439097e8271383 (patch)
tree0cb042a0289cb3eac2fa6e5cf87b06894d4f628b /examples/tutorial/old/semantics/AnswerBase.hs
parentf7a5eb0df10f3cfef6e3d4c70c4714008c50bbe8 (diff)
More work on the new partial evaluator
The work done by the partial evaluator is now divied in two stages: - A static "term traversal" stage that happens only once per term and uses only statically known information. In particular, the values of lambda bound variables are unknown during this stage. Some tables are transformed to reduce the cost of pattern matching. - A dynamic "function application" stage, where function bodies can be evaluated repeatedly with different arguments, without the term traversal overhead and without recomputing statically known information. Also the treatment of predefined functions has been reworked to take advantage of the staging and better handle partial applications.
Diffstat (limited to 'examples/tutorial/old/semantics/AnswerBase.hs')
0 files changed, 0 insertions, 0 deletions