Top all-time · #20987
Laurent Renard
Personal blog · lorenzofox.devprogrammingweb
Laurent Renard's personal blog at lorenzofox.dev covers programming and web. Since 2024, 3 different Hacker News readers have linked it 4 times, most often “Coroutines in JavaScript for web components”. It is still writing: the last post was on 2025-03-11, and you can follow it by feed.
Too few sampled comments (2) to say how often HN recommends it.?
Why HN links it
Posts on generator and coroutine patterns for JavaScript, applied to UI rendering and web component lifecycles. Commenters link them as an alternative to async/await-style component code.
Summarised by Claude from a sample of 2 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
home page of Laurent RENARD's blog
Most-linked posts?
- Coroutines in JavaScript for web components2 people · 2 mentions · first linked 2024-03-05
What Hacker News says?
I find the coroutine/generator approach described in a series of posts by Lorenzo Fox/Laurent Renard to be a promising alternative[0]. It takes a little to wrap your head around, but essentially structures component rendering to follow the natural lifecycle of a generator function that takes as input the state of a previous yield, and can be automatically cleaned up by calling `finally` (you can observe to co-routin…
Comment linking /posts/component-as-infinite-loop/
on “JavaScript Views, the Hard Way – A Pattern for Writing UI”Submitted Coroutines in JavaScript for web components as a story · 94 points
HN discussionAlthough I tend to mostly use async/await these days, I find the other JavaScript asynchronous primitives interesting. Generator functions, iterables, and async versions of the two. The author shows a plausible way to put these primitives together to create coroutines powering rendering and lifecycles for web components. And although I'm pretty familiar with the syntax involved, I still learned some new ways to put…
Comment linking /posts/coroutine/
on “Coroutines in JavaScript for web components”Submitted Coroutines and Web Components as a story · 3 points
HN discussion