Skip to content

Instantly share code, notes, and snippets.

View wh4everest's full-sized avatar

Andrej T. wh4everest

View GitHub Profile
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/
@wh4everest
wh4everest / request.ts
Created February 8, 2017 13:29
Poor man's request library
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.
*/