miniblog.
← Back to all posts
Jan 5, 2016 at 08:17
Mind-expanding worked example of partial evaluation, exploring the interpreter/compiler divide, in Scheme:
Attention Required! | Cloudflare
www.ymeme.com/hackers-introduction-partial-evaluation.html
Wilfred Hughes
Related Posts
Jan 13, 2023 at 01:26
Interpreters versus compilers as a spectrum, and a fun worked example of optimising Brainfuck:
Laurence Tratt: Compiled and Interpreted Languages: Two Ways of Saying Tomato
tratt.net/laurie/blog/2023/compiled_and_interpreted_languages_two_ways_of_saying_tomato.html
Wilfred Hughes
Shared words: interpreter, worked, example, compiler Score: 83.6
Jul 5, 2016 at 21:51
You can use partial eval to convert interpreters to compilers!
https://en.wikipedia.org/wiki/Partial_evaluation#Futamura_projections
(I imagine AST-walking interpreters work best here)
Partial evaluation - Wikipedia
en.wikipedia.org/wiki/Partial_evaluation#Futamura_projections
Wilfred Hughes
Shared words: interpreter, partial, compiler Score: 56.1
Oct 27, 2013 at 21:14
Reading The Little Schemer has definitely affected how I code in any lisp, not just Scheme. Mind-expanding book.
Wilfred Hughes
Shared words: Mind, expanding, Scheme Score: 52.6