The ‘Silicon Valley’ Easter Egg Code Cleaned Up & Explained
John Graham-Cumming breaks down the code displayed near the end of the first episode of Season Three of HBO’s Silicon Valley. Furthermore you can compile the code – and tweak it accordingly – yourself here.
In the TV series Silicon Valley there was apparently a snippet of code presented that is part of a compression algorithm. The code (or at least part of it) can be executed and the the program will output:
The code itself has been published first as a screen shot, then as text and got some press. But I hadn’t seen a good explanation of how it works. It looks pretty complicated but most of the code (written in C) is unused and the part that is actually executed is pretty simple (if you’ve spent years coding in C-like languages).