~/talk

Misusing Const for Fn and Profit

Talkat EuroRust 2025 · 2025-10-09..10-10· [rust]
slides:none on file

Claims that large amounts of runtime work can move to compile time by combining const functions with macros executing arbitrary code, shows present_term compiling examples live, and names crates that actually do it (SQLx for compile‑time SQL checks against a dev DB, const-random/const_time for compile‑time RNG, macrolisp for DSLs). Demonstrates what is supported and forbidden in const, notes crab time demo fails on the machine, and points out security concerns exist but are tractable and already addressed in tooling.

AI-written summary · about

  1. 0:00Introduction and context
  2. 2:37Understanding const functions
  3. 6:45Capabilities of const context
  4. 9:00The power of macros
  5. 10:17Advanced macro applications
  6. 13:41Risks and safety concerns
  7. 15:35Security considerations
  8. 17:23State-of-the-art crates
~/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.