Ring buffers and moving averages | Hacker News Reader