Tetris as a C++ Template Metaprogram
blog.mattbierner.com
blog.mattbierner.com
Now if only we had a way to use all this goodness to reflect on structs/enumerate members...
On the actual topic: I wonder how much memory it takes to compile a single round of tetris?
"Everything that can be implemented in {c++ templates, javascript} will eventually be implemented in that language"
jeff atwood: "any application that can be written in JavaScript, will eventually be written in JavaScript. Writing Photoshop, Word, or Excel in JavaScript makes zero engineering sense, but it's inevitable. It will happen. In fact, it's already happening"
Good foresight considering he said this 2009.
Which isn't to say the web is ready. But it will be!
Also, you say "emotionally distraught" as though there's no technical reason to dislike JavaScript.
On a serious note: modern C++ does have const expression functions, too, albeit not as powerful (yet): http://www.cprogramming.com/c++11/c++11-compile-time-process...