News for hackers. Stuff that matters.

jridgewell

Re:UTF-8 is a brilliant design on Friday September 12, 2025 @07:28PM (#45227889)
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!

Re:UTF-8 is a brilliant design on Friday September 12, 2025 @07:18PM (#45227829)
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.
This is natively supported in Chrome now: https://www.google.com/search?q=chrome+memory+saver
Re:Kind of annoyed at React on Monday January 15, 2024 @01:42AM (#38998045)
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.
With the number of VPs sending emails, I think it's much larger than "hundreds".
Re:Turbopack Performance Benchmarks on Tuesday November 01, 2022 @05:24AM (#33418812)
`0.015.toFixed(2) === "0.01"`, and `0.087.toFixed(2) === "0.09"`
Re:Vercel announces Turbopack, the successor to Webpack on Tuesday October 25, 2022 @05:19PM (#33336309)
The engine here are the creates called "turbo-tasks" and "turbo-tasks-*" extend it with more features. See a bit in https://github.com/vercel/turbo/blob/main/architecture.md#tu...
Re:Vercel announces Turbopack, the successor to Webpack on Tuesday October 25, 2022 @05:17PM (#33336291)
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.

Re:Vercel announces Turbopack, the successor to Webpack on Tuesday October 25, 2022 @04:29PM (#33335722)
We plan on supporting both. We're still in the alpha phase, and have not designed the plugin API yet.
Re:Vercel announces Turbopack, the successor to Webpack on Tuesday October 25, 2022 @04:28PM (#33335707)
It's _currently_ Next specific, but we plan on making it generic and usable in any setup.
Re:Vercel announces Turbopack, the successor to Webpack on Tuesday October 25, 2022 @04:27PM (#33335695)
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.
See a video preview at https://youtu.be/iQvviFlz7G0

Edit: @steventey has an excellent video at https://twitter.com/steventey/status/1565739260312952833

Re:ISO should make all standards Publicly Available on Friday November 12, 2021 @02:30PM (#29203546)
Google Docs will eventually be overloaded with all the people accessing the doc. Linking to the [Preview] version helps, because it doesn't have to load the multi-user edit interface.

[Preview]: https://docs.google.com/document/d/12Gmy2s4Nmkw6VDv2B6b5K1DL...

Re:Very fast rocket on Sunday August 08, 2021 @02:41AM (#28104685)
Strange, I'm on Catalina and it runs fine. I did have to override the security settings [1], but everything else was fine.

[1]: https://support.apple.com/guide/mac-help/open-a-mac-app-from...

Re:Vim Modes Transition Diagram on Tuesday May 25, 2021 @02:10PM (#27280214)
rawgit.com is sunsetted[1], so this URL may die any day now. It's simply a proxy server for content hosted on GitHub. In this case, the real source is https://gist.github.com/darcyparker/1886716, and it's displayable (officially) at [2].

[1]: https://rawgit.com/ [2]: https://gist.githubusercontent.com/darcyparker/1886716/raw/c...

Re:Behind GitHub’s new authentication token formats on Tuesday April 06, 2021 @01:04AM (#26708101)
The post isn't super clear, but I think they're describing base62 here. It says base62 later in text when talking about the checksum, and the "Our implementation for OAuth access tokens are now 178" section uses `a-zA-Z0-9` which is base62.
Re:Uber sends political ads through push notifications on Wednesday October 14, 2020 @10:21PM (#24784156)
I generally disable push notifications when apps start sending sale spam. But I feel like pushing political ads is crossing a whole new line.

I think this is the first time I've left a negative review for bad behavior.

Re:Devilution – A web port of the original Diablo game on Thursday August 01, 2019 @01:24PM (#20586124)
It's at https://d07riv.github.io/diabloweb/spawn.mpq, they forgot to add the "/diabloweb" directory to the URL.
I don’t really follow what’s going on with larger Google. AMP team specifically has a collection of older phones that we test on to remember that we’re making decisions for low end devices common in other parts of the world.
This is the most well-informed comment about AMP I've ever read.

Disclosure: I work on AMP.