Full threadheretoo·Original version was written TCL:https://gist.github.com/antirez/6ca04dd191bdb82aad9fb241013e...View on HN