Avatar

kinttach

kinttach@lemm.ee
Joined
14 posts • 228 comments
Direct message

This draft spec was eventually published as RFC 9562. Compared to the previous spec it adds versions 6, 7, and 8, plus best practices guidance.

Basically, there are a bunch of UUID alternatives that arose to fix the problem that UUIDs are bad for use as database keys in large tables (here’s the perspective of MySQL experts Percona). A bunch of these alternatives are actually linked from the RFC, which I haven’t seen done before. Version 7, in particular, is meant to address this use case.

permalink
report
reply

Successful malls have an Apple Store, Tesla, and Louis Vuitton, which tells us something about who can still afford to shop there.

permalink
report
parent
reply

So that’s why they haven’t been able to launch yet. It all makes sense now.

permalink
report
reply

There also needs to be some way to indicate that a JSON construct is a Set, Map, plain object, or array. You’d want a date/time type as well.

Without breaking existing JSON parsers, the way to do that is to add metadata like a _type field to an object, or to add a “sidecar” object like superjson does. Which works but is ugly IMO.

Then there’s BSON, YAML, JSON Schema, and the one we don’t mention ₓₘₗ. To my knowledge all of those could be extended in a way to support new types, but require the producer and consumer to both understand and follow whatever convention you use. They lack the universal interchangeability of JSON.

permalink
report
parent
reply

Set and Map would be more useful if they were compatible with JSON. I see a lot of people using an object as a dictionary or an array as a set because of that.

permalink
report
reply

Sometimes it’s the only option or the preferred option.

permalink
report
parent
reply

I haven’t. Maybe someday I’ll be willing to, but not today. It’s a hassle and extremely intrusive to provide my bank statement and photo ID to a company whose security I don’t trust.

permalink
report
parent
reply

That’s usually how I pay if someone requests money. Venmo is owned by PayPal but my account there works just fine.

permalink
report
parent
reply

I thought about that, but they ask for enough info that they’d be able to identify me. And then they’d probably ban me. At least right now I have the option of restoring my account, even though I have no intention of doing so.

permalink
report
parent
reply