Link

Mandoline's implementation is available here.