(One by) Four by Nine

The four nines puzzle asks which positive numbers can be obtained from arithmetic expressions involving four "9" digits and an assortment ...

30 Dec 2011

Matías Giovannini

Read Article
Vose's Alias Method

This is a note regarding the implementation of Vose's Method to construct the alias tables for non-uniform discrete probability sampling pr...

29 Dec 2011

Matías Giovannini

Read Article
A Better (Gauss) Error Function

If you do statistics you know of erf and erfc ; if you work in OCaml you surely miss them. It is not very difficult to port the canonical i...

21 Dec 2011

Matías Giovannini

Read Article
Runtime Types

It is often useful to get access to types at runtime, in order to implement generic type-driven operations. A typical example is a generic value pretty-printer.

08 Dec 2011

LexiFi

Read Article
Brainfuck in Java

(I don't feel like writing a punning title.) Last time I showed how the use of functors allows for modular and type-safe specification of ...

17 Nov 2011

Matías Giovannini

Read Article