logoalt Hacker News

robby_w_gyesterday at 5:31 PM1 replyview on HN

> So their proposal is a superior primitive.

This lines up with my thinking. The proposal should give us a building block in the form of the primitive. I would expect the grandparent comment’s API to be provided in a library built on top of a language level primitive.


Replies

conartist6yesterday at 5:59 PM

How would you then deal with a stream of UTF8 code points? They won't fit in a UInt8Array. There will be too many for async iterators to perform well: you'll hit the promise thrashing issues discussed in the blog post

show 1 reply