~/talk

JavaScript metaprogramming with ES2015 Proxy

Talkat Frontend fwdays'17 · on Sunday, 2017-11-26· [javascript]
links:none on file
slides:none on file

ES2015 introduces the Proxy API that intercepts fundamental operations — get, set, defineProperty, deleteProperty, ownKeys, has, apply, construct — enabling observables, access control, validation, logging and virtual objects backed by cookies or other storage. Proxies are revocable (revocable proxies) and must respect engine invariants (for example ownKeys invariant requires an array of string/symbol keys or a TypeError). Performance is currently costly (benchmarks show about a 45x slowdown for naïve uses) and Babel offers little emulation, while browsers work on optimizations.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03JavaScript metaprogramming
  3. 4:13Reflection in JavaScript
  4. 7:43Proxy API history
  5. 8:45How Proxy works
  6. 10:12Proxy traps explained
  7. 12:22Proxy invariants
  8. 13:05Revocable proxies
  9. 14:09Proxy performance
  10. 15:56Proxy browser support
  11. 16:38Proxy in frameworks
  12. 17:20Proxy examples
  13. 18:23Virtual objects with Proxy
  14. 19:06Securing built-ins with Proxy
  15. 20:09Unusual Proxy cases
  16. 20:30Summary and recommendations
  17. 21:12Q&A
~/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.