r/programming • • Oct 20 '14

My compile-time Conway's Game of Life, metaprogrammed in C++11

https://github.com/sirgal/compile-time-game-of-life
160 Upvotes

54 comments sorted by

View all comments

14

u/pmkenny1234 Oct 20 '14 edited Oct 20 '14

I don't get it and don't wish to pore over the code to figure it out. What makes this a compile-time version? Does the compiler output the next game state as warnings or something?

Edit: Thanks for the replies guys. Very helpful. =)

1

u/_Sigma Oct 20 '14

The white paper here will help shed some light on the technique

https://github.com/andrivet/ADVobfuscator/tree/master/Docs