Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 5241

Tasks involving writing interpreters for various languages or formalisms.

28 votes

Self-Interpreting Interpreter

Binary Lambda Calculus, 232 bits (29 bytes) 01010001101000000001010110000000000111100001011111100111100001011100111100000011110000101101101110011111000011111000010111101001110100101100111000011011000 …
John Tromp's user avatar
  • 1,417
30 votes

Interpret brainfuck

Save the above hex dump with xxd -r > bf.Blc Grab a blc interpreter from https://tromp.github.io/cl/cl.html cc -O2 -DM=0x100000 -m32 -std=c99 uni.c -o uni echo -n "++++++++++[>+++++++>++++++++++>+++> …
John Tromp's user avatar
  • 1,417
27 votes

Write an interpreter for the untyped lambda calculus

Example: computing 2^3 in Church numerals Save the above hex dump with xxd -r > symbolic.Blc Grab a blc interpreter from http://tromp.github.io/cl/uni.c cc -O2 -DM=0x100000 -m32 -std=c99 uni.c -o uni echo …
John Tromp's user avatar
  • 1,417