s
March 9, 2024, 3:38 a.m. |

Simon Willison's Weblog simonwillison.net

Coroutines and web components


I like using generators in Python but I rarely knowingly use them in JavaScript - I'm probably most exposed to them by Observable, which uses then extensively under the hood as a mostly hidden implementation detail.


Laurent Renard here shows some absolutely ingenious tricks with them as a way of building stateful Web Components.


Via Hacker News

building components generators hidden implementation javascript observable python shows them tricks web webcomponents

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Senior Machine Learning Engineer (MLOps)

@ Promaton | Remote, Europe

AIML - Sr Machine Learning Engineer, Data and ML Innovation

@ Apple | Seattle, WA, United States

Senior Data Engineer

@ Palta | Palta Cyprus, Palta Warsaw, Palta remote