Off The Main Thread Podcast Por Jake Archibald Surma arte de portada

Off The Main Thread

Off The Main Thread

De: Jake Archibald Surma
Escúchala gratis

Surma and Jake talk about whatever's going on in the world of tech & web development.2023
Episodios
  • New View Transition Stuff
    Jan 15 2025

    In this episode, Jake goes through some of the newer features of the View Transition API, along with some vaguer ideas that are planned for the future.

    Resources
    • General view transitions docs
    • Custom entry and exit transitions
    • hasUAVisualTransition so you know when the UA has done its own transition
    • view-transition-class
    • view-transition-types
    • Cross-document view transitions
    • to wait for a particular element
    • The blocking attribute to wait for a particular resource
    • The pageswap and pagereveal events
    • Nested view transitions
    • The match-element vs auto discussion
    • Scoped view transitions
    • attr() in Chrome
    • Safari just went and released view-transition-name: auto
    Más Menos
    49 m
  • TC39 Roundup Drama Edition Part II: JS0 and JSSugar
    Dec 16 2024

    In this episode, Surma talks about a presenation-maybe-soon-to-be-a-proposal "JS0", which explores the idea of splitting JavaScript into two specifications: JS0, focusing on security, performance and capabilties, implemented by engines; and JSSugar, focussing on developer productivity and syntactic sugar features implemented by build tools.

    Notes & Corrections:
    • Yes, I know, people still do have to step through assembler. But I stand behind the essence of my point: The debug symbols for compiled languages feel very reliable. We should be able to at least match that reliability in JavaScript.
    • Guy Bedford currently works at Fastly.
    Resources:
    • Previous episode on Shared Structs
    • The infamous slide deck
    • OTMT episode on SourceMaps on source maps
    Más Menos
    32 m
  • TC39 Roundup Drama Edition Part I: Shared Structs
    Dec 3 2024

    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:
    • SharedArrayBuffer
    • Structs proposal
    • Return overrides
    • Records & Tuples proposal
    • Surma's buffer-backed-object library for SharedArrayBuffer
    Más Menos
    31 m
Todavía no hay opiniones