cppnow-2016-metaprogramming-for-the-brave



cppnow-2016-metaprogramming-for-the-brave

0 5


cppnow-2016-metaprogramming-for-the-brave

My "Metaprogramming for the brave" presentation for C++Now 2016

On Github ldionne / cppnow-2016-metaprogramming-for-the-brave

---- ### Introducing [Metabench](https://github.com/ldionne/metabench) ---- ### Goals - Simple - Self-contained ---- ### 1. Write your benchmark `std.cpp.erb`:


`hana.cpp.erb`:


----

### 2. Setup Metabench

`CMakeLists.txt`:


----

### 3. Build the benchmark



----

### 4. Tadam!



==============================================================================

## Key takeaways

- Write simple code (for the compiler) 
- Be data-driven when you optimize 

Note:
If you are to forget everything in this talk, this is what you should remember.

====================

# Thank you


http://ldionne.com 
http://github.com/ldionne
http://github.com/ldionne/metabench