time.gif
2017-08-11 · Haskell · ProgrammingThis is an endless GIF that always shows the current time in UTC:
(From reports it doesn’t seem to work on Safari, other browsers should be fine.)
time.gif is written in Haskell and works by dynamically generating each frame of the GIF and slowly feeding them over the HTTP connection.
There is no guarantee that this GIF shows a reasonable time and this is just for fun anyway, so better don’t build your next project based on the time from this GIF. If my server is overloaded, you can try compiling it yourself and run it locally.
Update: Optimized, runs at less than 1% CPU with 500 simultaneous connections open, LZW encoding reduces bandwidth from 4 KB/s to 300 B/s.
This is cannibalized from gifstream, which lets you play snake and have people watch a GIF livestream. It was actually created as a Christmas exercise for students of the Programming Paradigms course at KIT.
Discuss on Hacker News (2022-10-27) (previous thread from 2017-08-12)