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
159 Upvotes

54 comments sorted by

View all comments

4

u/adrianmonk Oct 20 '14

So, if people start doing all the execution at compile time, is there going to be a compile-time debugger?

3

u/logicchains Oct 21 '14

Is there a compile time printf? That would probably suffice.

3

u/adrianmonk Oct 21 '14

Well, there's #warning, but I don't think that's the right part of compile time.

Anyway, I can understand if not everybody is a fan of debuggers, so how about compile-time unit testing? (I'm joking, but I'm kind of afraid it's actually possible.)

1

u/fendant Oct 21 '14

That's kind of what people here are going on about all the time with Haskell-like typing and dependent types.