Skip to content

Instantly share code, notes, and snippets.

@wh4everest
Created February 21, 2017 08:22
Show Gist options
  • Save wh4everest/15d7fdb34361636f4d598f3f667d57fa to your computer and use it in GitHub Desktop.
Save wh4everest/15d7fdb34361636f4d598f3f667d57fa to your computer and use it in GitHub Desktop.
Imagine your new CPU only understood Brainfuck, but you wanted it to run complex programs. Given you don't want to write Brainfuck by hand, how'd you write a compiler that translates normal "C" code to BF?

Andrej - who talked about Alan Turing's Enigma crack[1] and writing poetry in Python[2] on past occasions - will now present you his Bachelors' thesis: a LISP-to-Brainfuck compiler.

[1] https://www.facebook.com/events/1525911067696221/
[2] https://www.facebook.com/groups/600180946765184/permalink/635951019854843/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment