Better HN
topnewbestaskshowjobs
Log inSign up

jridgewell

64 karma · joined May 12, 2019 (7y ago) · 22 submissions

Submissions

comment 1y ago · link · parent

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 1y ago · link · parent

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 1y ago · link · parent

This is natively supported in Chrome now: https://www.google.com/search?q=chrome+memory+saver

comment 2y ago · link · parent

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 2y ago · link · parent

With the number of VPs sending emails, I think it's much larger than "hundreds".

comment 4y ago · link · parent

`0.015.toFixed(2) === "0.01"`, and `0.087.toFixed(2) === "0.09"`

comment 4y ago · link · parent

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...

comment 4y ago · link · parent

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 4y ago · link · parent

We plan on supporting both. We're still in the alpha phase, and have not designed the plugin API yet.

comment 4y ago · link · parent

It's _currently_ Next specific, but we plan on making it generic and usable in any setup.

comment 4y ago · link · parent

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 4y ago · link · parent

See a video preview at https://youtu.be/iQvviFlz7G0

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

13.

Adapting ahead of regulation: a principled approach to app stores(blogs.microsoft.com ↗)

1 points · by jridgewell · 4y ago · discuss

comment 5y ago · link · parent

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...

comment 5y ago · link · parent

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...

comment 5y ago · link · parent

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...

comment 5y ago · link · parent

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.

comment 6y ago · link · parent

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.

19.

Uber sends political ads through push notifications

70 points · by jridgewell · 6y ago · 17 comments

comment 7y ago · link · parent

It's at https://d07riv.github.io/diabloweb/spawn.mpq, they forgot to add the "/diabloweb" directory to the URL.

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

This is the most well-informed comment about AMP I've ever read.

Disclosure: I work on AMP.