Recent submissions

Comment · 1 year ago
Yah, I was using char interchangeably with code point. I also used byte instead of code unit.

> truncate a string without splitting a codepoint in O(1) is still useful

Agreed!

Comment · 1 year ago
This isn't quite right. In invalid UTF8, a continuation byte can also emit a replacement char if it's the start of the byte sequence. Eg, `0b01100001 0b10000000 0b01100001` outputs 3 chars: a�a. Whether you're at the beginning of an output char depends on the last 1-3 bytes.
Comment · 1 year ago
Comment · 2 years ago
Any chance it was https://pomb.us/build-your-own-react/? You can't really have hooks without building an entire framework, because the framework has to have the preserve the execution context between renderings.
Comment · 2 years ago
With the number of VPs sending emails, I think it's much larger than "hundreds".
Comment · 4 years ago
`0.015.toFixed(2) === "0.01"`, and `0.087.toFixed(2) === "0.09"`
Comment · 4 years ago
Comment · 4 years ago
Documentation here is one of the areas we need to work on. There's a bit in https://github.com/vercel/turbo/blob/main/architecture.md#tu...

A small example of code that uses this is https://github.com/vercel/turbo/blob/main/crates/turbo-tasks..., which defines how we can load a `.env` file using FS read caching, cached `read` and `read_all` functions, etc.

Comment · 4 years ago
We plan on supporting both. We're still in the alpha phase, and have not designed the plugin API yet.
Comment · 4 years ago
It's _currently_ Next specific, but we plan on making it generic and usable in any setup.
Comment · 4 years ago
Our initial development cycles were dedicated on getting Next working. But we absolutely plan on expanding the to support generic bundling and will include that in the docs.
Comment · 4 years ago
Comment · 5 years ago
Comment · 5 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton