It's not exactly straight out of one of the labs -- it's heavily quantized -- but have a look at [1].
[1] https://github.com/antirez/ds4