~/talk

The Essence of the Flyweight Design Pattern

Talkat JENSFEST 2024 · on Tuesday, 2024-10-22· [software-architecture]

Claims that the Flyweight pattern becomes a language feature by adding safe memoization of constructors, implements it in the Hush language (runtime in Rust), and uses shared-ownership pointers so mutated memoized objects are evicted from the cache. Prototype adds one extra level of indirection for memoized attribute access, leaves non-memoized objects unchanged, and includes an Alloy formalization. Benchmarks show huge wins for referentially‑transparent functions and minimal overhead versus unsafe memoization on object‑oriented workloads; code and experiments are published.

AI-written summary · about

  1. 0:00Flyweight pattern intro
  2. 2:31Why Flyweight matters
  3. 7:48Hush programming language
  4. 8:33What is Flyweight
  5. 9:55Flyweight in Hush
  6. 12:49Safe memorization with shared pointers
  7. 14:17Memorization performance benchmarks
  8. 20:33When memorization helps
  9. 21:57Conclusion
~/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.