HNHacker News
TopNewBestAskShowJobs

jridgewell

64 karma · joined May 12, 2019

submissionscomments
jridgewell··on UTF-8 is a brilliant design
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!

jridgewell··on UTF-8 is a brilliant design
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.
jridgewell··on Google can keep its Chrome browser but will be barred from exclusive contracts
This is natively supported in Chrome now: https://www.google.com/search?q=chrome+memory+saver
jridgewell··on Kind of annoyed at React
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.
jridgewell··on Google lays off hundreds working on its voice-activated assistant
With the number of VPs sending emails, I think it's much larger than "hundreds".
jridgewell··on Turbopack Performance Benchmarks
`0.015.toFixed(2) === "0.01"`, and `0.087.toFixed(2) === "0.09"`
jridgewell··on Turbopack, the successor to Webpack
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...
jridgewell··on Turbopack, the successor to Webpack
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.

jridgewell··on Turbopack, the successor to Webpack
We plan on supporting both. We're still in the alpha phase, and have not designed the plugin API yet.
jridgewell··on Turbopack, the successor to Webpack
It's _currently_ Next specific, but we plan on making it generic and usable in any setup.
jridgewell··on Turbopack, the successor to Webpack
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.
jridgewell··on Show HN: Collaborative event registration with WebGL and WebSockets
See a video preview at https://youtu.be/iQvviFlz7G0

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

jridgewell··on ISO should make all standards Publicly Available
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...

jridgewell··on Very fast rocket
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...

jridgewell··on Vim Modes Transition Diagram
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...

jridgewell··on Behind GitHub’s new authentication token formats
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.
jridgewell··on Uber sends political ads through push notifications
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.

jridgewell··on Devilution – A web port of the original Diablo game
It's at https://d07riv.github.io/diabloweb/spawn.mpq, they forgot to add the "/diabloweb" directory to the URL.
jridgewell··on Google Creates 'Dedicated Placement' in Search Results for AMP Stories
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.
jridgewell··on Google Creates 'Dedicated Placement' in Search Results for AMP Stories
This is the most well-informed comment about AMP I've ever read.

Disclosure: I work on AMP.