4 ms·
λ-calculus evaluator
- wingo 16y agoNeat! (^x.x x) (^x.x x) InternalError: too much recursion
- geocar 16y agoThat it is labelled "Call-by-value edition" is probably why. Y[^f.(^x.f (x x)) (^x.f (x x))] and Z[^f. (^x. f (^y. x x y)) (^x. f (^y. x x y))] appear to expand correctly, but I haven't had my coffee yet...
- silentbicycle 16y agoThe relevant blog post: http://zaa.ch/past/2010/4/25/lambda_calculus_evaluator/ http://zaa.ch/past/2010/4/25/lambda_calculus_evaluator/ There's a pretty good summary of the lambda calculus in Pierce's _Types and Programming Languages_ (among others).