PodParley PodParley

TC39 Roundup Drama Edition Part I: Shared Structs

Episode 13 of the Off The Main Thread podcast, hosted by Jake Archibald, Surma, titled "TC39 Roundup Drama Edition Part I: Shared Structs" was published on December 3, 2024 and runs 30 minutes.

December 3, 2024 ·30m · Off The Main Thread

0:00 / 0:00

In this episode, Surma talks about the Stage 2 proposal "JavaScript Struct", which introduces fixed-layout objects and the ability to share them between realms.

Notes & Corrections from Shu:

Surma was slightly wrong about why private fields were originally considered problematic for sharability. The problem occurs when a class can be evaluated multiple times:

function makeClass() {   return class MyClass {      #priv;      getPrivateField(instance) {        return instance.#priv;      }    }; } const C1 = makeClass(); const C2 = makeClass(); const i1 = new C1(); const i2 = new C2(); // this throws! i1.getPrivateField(i2); 

This behavior makes it hard to compile private fields just as "slots" on an object, as clearly additional behavior is required. This is somewhat at odds with the goal of achieving a fixed layout.

Also, launching is mid-2025 is very optimistic.

Resources:

It's Real to Us - The Wrestling Show Anthony Paciello, Nathan "Diggity Dawg" and Tony "The Father" Join Anthony "The Mark," Tony “The Father”, “Dashing Diggity Dawg”, and “Tiny” Mike as we dive into the world of professional wrestling.We cover the latest in WWE, AEW, and beyond…But the real main event? Our wild, off-the-rails games.Whether you’re a hardcore fan or just here for the laughs, we’ve got you covered.Because even if wrestling’s “fake” to you…It’s real to us. Explicit VALIM FM ON YOUTUBE copyright- dave oats/ mixmif It's that time again, for a new episode ofVFM- 18 PIRATE RADIOWe are currently sailing the seas off shore from Givers Head by Sea & are proud to bring you pirate radio like you've never heard before, so lock down that dial!we aren't sure what it means but you cant hear Valium FM on your wireless!time to hoist the main sail & baton down the hatch! Even though its a choking hazard!it cant be as painful as when Dick put the baton somEwhere elseKeep your requests coming in our ears, [email protected] your requests for songs, or -If you want a mention for birfdays-Weddings -anniversaries - births & deaths . If you're in a band and want your next"Top Of The Pops" top ten hit playing on Valium FM, get in touch and we'll get things sortedFor you.Fanx for askin*fanx for your patients waiting for vfm 17 to be uploaded to abuse your ears.while you're enjoying it and hearing things you will never un hear , we will be working hard-on the next vfm.Comig soon to Explicit The Wait A Minute Show The Wait A Minute Show Not your normal sports podcast, The Wait A Minute Show is the peoples show covering the main sport topics but also not scared to go off script and have a little comedic fun. Live shows Saturday at 8pm EST Explicit Off The Grid KimiXanax We off the grid, grid, grid Explicit
URL copied to clipboard!