~/talk

Running Away From Computation - An Introduction

Talkat Core C++ 2023 · 2023-06-05..06-07· [c-and-cpp]
slides:none on file

Shows concrete techniques and measured effects: adding a tail pointer to a singly linked list drops append time from ~14.5s to ~0.01s for 100k inserts (~1,450× speedup), short‑circuiting and caching avoid repeated work, and constexpr with static_assert moves computations into compilation so the binary contains precomputed tables instead of runtime loops (assembly size shrinks). Demonstrates lazy evaluation via std::async launch::deferred and copy‑on‑write, uses the perf profiler for timings, and makes code available for verification.

AI-written summary · about

  1. 0:00Intro
  2. 2:18What you're going to learn today
  3. 4:21Trade-off: Time versus Space!
  4. 5:21Linked List Experiment 1 (3/3)
  5. 7:20is way faster than LL1
  6. 9:12Recap (1/2)
  7. 12:29Stages of a C++ Program
  8. 13:17Compile-Time versus Run-time (3/3)
  9. 14:14Run-time Optimization is fun and... (1/2)
  10. 15:29Use a better algorithm (for your use case)
  11. 17:12Do Less Work
  12. 20:51Hand tune optimizations Dead Code Elimination
  13. 25:37Better Algorithms, Better Data Structures (2/3)
  14. 28:06Delay/Stall - Promise/Future (1/2)
  15. 31:21Copy on Write (Cow)
  16. 32:41Run-time computation Strategies (1/3)
  17. 34:32Compile-Time Computation
  18. 35:00Let the Compiler Optimize (-02) - Dead Code Elimination
  19. 36:09Strategy 2-Question to Audience
  20. 39:37Use static_assert when possible [Core Guideline] (1/2)
  21. 42:29constexpr [cppreference] - factorial (1/3)
  22. 44:09Static Data (1/2)
  23. 46:37Template Metaprogramming
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.