Smartial Wayback Machine Text Extractor
This article contains 3 images. You will find them at the very end of the article.
This article contains 444 words.
Web Directions Global Scope '22 session spotlight–Strength in weakness: JavaScript memory management and weak references - Web Directions
Web Directions Global Scope ’22 session spotlight–Strength in weakness: JavaScript memory management and weak references
John Allsopp
23rd June, 2022
@johnallsopp
Strength in weakness: JavaScript memory management and weak references
Garbage Collection (GC) in JavaScript is supposed to simplify and automate memory management. But it turns out that there are various scenarios where GC can get in the way, and avoiding resource leaks becomes challenging. In order to overcome such issues, the ECMAScript standard includes WeakMap and WeakSet. More recently, ES2021 introduced WeakRef and FinalizationRegistry for even more fine-grained control, and they are already supported by all modern browsers. In this presentation I explain what these are, why they’re needed, and provide concrete usage examples and best practices.
Dan Shappir
Dan Shappir is the Performance Tech Lead at Next Insurance, and previously held that position at Wix.com. Dan has over 25 years of software development experience, and has worked on systems ranging from multiuser games to missile trajectory simulations to designing and building large-scale Web applications used by hundreds of millions of users. He is a frequent speaker at technical conferences, a host and panelist on JavaScript Jabber podcast, and an Invited Expert on the W3C Web Performance Working Group. Dan holds an MSc in Computer Science.
Great reading, every weekend.
We round up the best writing about the web and send it your way each Friday morning.
delivering year round learning for front end and full stack professionals
Learn more about us
Web Directions South is the must-attend event of the year for anyone serious about web development
Phil Whitehouse
General Manager, DT Sydney
Each year we have 6 unique online conferences for front end developers, plus Remixed, a free event that brings together some of the highlights from the previous year.
The best of 2021, remixed, and free!
Online, globallyJanuary 2022
Learn More
The conference CSS deserves
Online, globallyApril 2022
Learn More
a conference on front end performance
Online, globallyMay 2022
Learn More
a conference all about JavaScript
Online, globallyJuly 2022
Learn More
a conference on progressive web apps and web platform
Online, globallySept 2022
Learn More
accessibility engineering for front end developers
Online, globallyOctober 2022
Learn More
privacy, security, identity for front end developers
Online, globallyDecember 2022
Learn More
Images:
The images are downsized due to limited space here. The original dimensions may differ.Click on the image to open it on a new tab.