Sign in

Kevin Gibbons

@bakkot.com
68 followers 33 following 36 posts
PostsRepliesMedia
Kevin Gibbons @bakkot.com · 18/06/2026
I've been playing around with an implementation of concurrent versions of AsyncIterator.prototype.{map,filter,flatMap}. Ended up making a visualizer where you can drive the Promises yourself, which I think helps understand how it behaves. Let me know your thoughts. bakkot.github.io/async-iterat...
bakkot.github.io
Concurrent AsyncIterator .filter
130
Kevin Gibbons @bakkot.com · 24/04/2026
I'm working on fixing a longstanding memory leak in Promise.race in V8. Right now the thing in the way is getting a node maintainer to apply one suggestion and land a small open PR which already has four approvals. Anyone able to help? github.com/nodejs/node/...
github.com
src: skip JS callback for settled Promise.race losers by Felipeness · Pull Request #62336 · nodejs/node
Summary Fixes #51452 When Promise.race() settles, V8 fires kPromiseResolveAfterResolved / kPromiseRejectAfterResolved for each "losing" promise. Node's PromiseRejectCallback in src/no...
150
Kevin Gibbons @bakkot.com · 28/02/2026
Put together a presentation on a possible direction for getting native structured concurrency in JS, taking as a constraint that we already live in a world where cancellation means AbortController. Interested in your thoughts! docs.google.com/presentation...
docs.google.com
Towards structured concurrency
Towards Structured Concurrency
4133
Kevin Gibbons @bakkot.com · 23/02/2026
My most idiosyncratic JS opinion is that we should all write `0, { x } = y;` instead of `({ x } = y);` so you don't have to jump to the end of the line to add the parenthesis. If only I could convince tooling to support this... (i.e. get prettier not to add the parentheses back)
490
Kevin Gibbons @bakkot.com · 18/09/2025
Several people blamed the recent npm incidents on JS's minimal standard library. I think that's wrong: the affected packages are mostly either already covered by node or could not reasonably be in a standard library. But! I'm always taking suggestions for new stdlib features.
160