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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as http from 'http'; | |
import * as https from 'https'; | |
import { parse as parseURL } from 'url'; | |
/** | |
* Poor man's `request` library. | |
* | |
* Performs an HTTP(S) request, returns a promise that will | |
* return the body of the response. | |
*/ |
NewerOlder