Proxies are Awesome!
summary
Proxies bring a concrete meta‑programming API: implemented in Firefox 4 with handlers exposing about 13 handler traps so code can virtualize objects, intercept gets/sets, and build revocable membranes used for security wrappers; handlers are currently C++ but can be JavaScript, and a Zapod/Narcissus demo swaps SpiderMonkey with a proxy‑powered engine (it works but runs slowly); performance shows small overhead for forwarding proxies and the proposal already lands as a harmony proposal.
AI-written summary · about
chapters (9)
- 0:00Start
- 5:33The Metaprogramming Api
- 7:13Property Descriptor Map
- 9:28Proxies
- 15:57Correspondences between the Meta Layer and the Base Layer
- 19:41Full Handler Api
- 21:38Function Proxies
- 27:17Example of a Forwarding Proxy
- 44:33Micro Benchmark
related talks
24mJavaScript metaprogramming with ES2015 Proxy
52mJavaScript Metaprogramming - ES6 Proxy Use and Abuse
07mJS Proxy, where have you been
27mUnlock the Proxy Power (Vue.js)
26mJavaScript Metaprogramming - ES6 Proxy Use and Abuse
54mMetaProgramming with JavaScript
11mAnything is possible! Unlocking the Nightmarish Power of JavaScript..
50mMetaprogramming in JavaScript
