~/talk

Compile-Time Compression and Resource Generation with C++20

Talkat CppCon 2021 · on Monday, 2021-10-25· at 15:15· online· [web-performance]
linkedin:ashleyroll
slides:none on file

C++20 constexpr/consteval/constinit plus lambdas-as-types generate real artifacts: a 32-entry lerp sine lookup table built at compile time, Huffman-compressed string maps with a packed bitstream and encoded tree that return iterators instead of full strings, and flash-placed configuration registers (example placed at 0x100 via linker script) for MCU fuses. Implementation is header-only, uses a GCC constexpr math extension, hits compiler resource/constexpr limits so it caches character‑to‑bit mappings, and otherwise works end‑to‑end.

AI-written summary · about

  1. 0:00Intro
  2. 1:54constexpert
  3. 2:40context with variables
  4. 3:48context with functions
  5. 5:08consteval init
  6. 6:09Overview
  7. 7:10Why
  8. 13:40Conflict Users
  9. 15:09Vendor Specific Extensions
  10. 19:56Linking
  11. 24:25Where to next
  12. 25:32Return size and type
  13. 26:42Lambdas
  14. 33:15String Table
  15. 36:28Huffman Code
  16. 38:31Library Process
  17. 43:51Modularization
  18. 48:03Containers
  19. 48:26Constant Expert
  20. 48:59Heap Allocation
  21. 49:38Debugging
  22. 51:17Configuration Descriptor
  23. 53:18Length Methods
~/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.