rewrite antirez's kilo in zig