~/talk

Expression Templates - Past, Present, Future

Talkat CppCon 2015 · 2015-09-21..09-25· [c-and-cpp]
slides:none on file

Expression templates implement expressions as types so evaluation defers until a compression point (assignment or conversion), avoiding elementwise temporaries for matrix algebra but shifting work to type-level transformation. The demo builds a CRTP-based expression types engine (terminals, unary/binary nodes) that compiles and runs, but deeply nested expressions create massively long mangled names and heavy compile-time memory use; storing children by value avoids dangling references but costs copies. The workflow moves to Boost.Proto and Boost.Hana and C++14 features to cut boilerplate and tame the compile-time costs.

AI-written summary · about

  1. 0:00Introduction to speaker
  2. 1:06What are expression templates
  3. 8:12Why use expression templates
  4. 10:18History of expression templates
  5. 12:47Syntax trees and expression trees
  6. 20:37Building expression tree structure
  7. 26:40Operator overloading for expressions
  8. 30:32CRTP for expression types
  9. 36:36Live code demonstration
  10. 42:39Compile-time symbol size issues
  11. 45:14Compression points in evaluation
  12. 53:29Limitations of CRTP approach
  13. 56:13Multiple evaluation strategies
  14. 59:06Runtime value evaluation
  15. 1:02:20Memory and performance considerations
  16. 1:04:48Break and Q&A preview
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.