Hello there! My name is Reuben Fletcher-Costin. I enjoy writing code. This is a vanity page pointing to some of the code I've written.
If you'd like to get in touch, you can find my email address on my github page.
strange things I have coded for my own amusement
- weighted_median - a library to
compute the weighted median, in C++.
- hangman_cpp - a program to figure
out who wins the game of "adversarial" hangman if both players play
optimally. The code, written in C++, carries out a full depth alpha-beta pruned
search over the game tree. There's a brief write up of the problem, the
approach, and a partially complete table of computed results
over here. The cases I haven't
computed yet are the ones where the alpha-beta search didn't terminate after
leaving my computer on overnight.
- abfc - a self hosting compiler for the esoteric
brainfuck language, targeting GNU
assembly backends for
x86_64. Actually there are two compilers in this
project - the second compiler is for a python DSL macro-language that targets
brainfuck. This latter compiler, implemented in python, is used to generate the
source of the former self-hosting brainfuck compiler. This sure beats writing
the self-hosting brainfuck compiler in brainfuck by hand.
- abfc_hs - a Haskell port of
abfc's python DSL macro-language
to brainfuck compiler. Includes a parser for the macro-language implemented
using the lovely Parsec combinator
- learnmeahaskell - some early
exploratory programs written to help learn Haskell. The most interesting one
is a noughts-and-crosses game against the computer, featuring a crude GUI via
SDL bindings and multithreading via
- eve_space_trucker - a utility
to plan profitable trade routes for the game Eve Online, written in
- I've entered the odd machine learning competition at kaggle.com.
My best result to date is placing 3rd globally in the 24 hour Data Science Global
Hackathon as part of a team with Thom and Mike. Here's my kaggle profile.
- my profile over at project euler
- I was mucking about with code golf over on stack exchange a while ago. Here's my profile. Did you know there's also a programming language called GolfScript? It's pretty crazy.