TBH, Metaverse still hasn't taken off yet. But Blockchain already has quite a place in cryptocurrency. Actual, useful applications... like buying drugs on the dark web.
Reading their docs: No real benefits, just misconceptions.
1. Collision resistance / "weak" PRGNs used to generate UUIDv4. Firstly, these are properties of the implementation, not the spec. Secondly, the source for calling the browser `Crypto.getRandomValues()` insecure is an issue that has been fixed back in 2016. I would not trust the developers of this implementation to do a better job than current browsers.
2. "Not URL or name friendly": Fair, but not very strong argument.
3. "Horizontally scalable" and "offline-capable": No argument given for why UUIDv4 does not meet these requirements, apart from point 1 above.
4. "Too fast": No argument given for why having a slower algorithm to generate random ids is more secure. Both UUIDv4 and Cuid2 use a similar number of random bits (122-124). When using a secure PRNG, both are equally difficult to guess, the SHA3 hashing doesn't add anything. You don't have to try and guess the "input" of the Cuid2 - you can just try to guess the "output" and skip the SHA3 hashing. It would be impossible to actually guess a generated ID, but UUIDv4 is just as impossible. Also no argument given for why UUIDv7 is fine but UUIDv4 is not.
I've used UUIDv4 for genering unique IDs for over 10 years now. I have run into collisions, when I hand-rolled my own implementation for J2ME with major bugs many years ago - ended up with around 20 bits of entropy instead of 122. That's not a reason to not use UUIDv4, just a reason to not implement it yourself unless you really know what you're doing.
I once had UUID collisions in Linux Boot IDs when we started developing our own embedded systems at my company.
Found them because systemd-journald isn't very happy when Boot IDs repeat and (apparently, then) stops showing earlier boots once it hits a repeating boot ID. And I wanted to see an earlier boot. Then I started logging the Boot ID in a textfile myself and it took less than 10 reboots to have duplicate Boot IDs.
Long story short, some weeks earlier, I "optimized" the Kernel config for that system and some config flags that didn't sound like something I'd need. As it turns out, an ARCH_ZYNQ target apparently also needs ARCH_VEXPRESS set. Otherwise it works absolutely fine, but with a broken RNG that you will notice weeks later.
That was a valuable "don't take down a fence until you know the reason why it was put up" lesson. Don't unset kernel config flags until you know why they are set.
Aside from breaking RNGs, I've never experienced any UUID collisions either.
"A couple of years ago we decided to standardize the use of sequential integer IDs as primary keys, due to the significant performance issues of non-time-ordered UUIDs."
From the article. I'd like a lot more exposition on that, since it goes against some of what used to motivate UUID use in the first place. Sequential ordering across distributed nodes isn't a fun thing to do, and even if you navigate the coding, the network agreement makes it really slow.
Do they mean "sequential enough" but some locality of the node that generated it? And I guess that prng can sometimes have some performance bottlenecks, but compared to doing locks on a single incremented integer?
Yeah, I don't really get this, lots of usual "better" "faster" etc without actual numbers to back it up or detailed algorithmic discussions.
As you basically said, wake me up if it's good enough to get into the standard vetted libraries of UUID generation.
No argument given for why having a slower algorithm to generate random ids is more secure.
If the algorithm is too fast it means you can detect when some other part of the system is having a significant impact on how the key is returned. Eg checking a database to see if a user exists and returning their key versus getting null back and generating a new key. That difference can be used to determine if a user exists. You want your key gen process to be slow enough that it's a significant part of the process, which makes timing attacks hard.
This doesn’t make sense.
If you’re going to generate a new key if the user doesn’t exist then you’re creating a new user anyway, so there’s no hidden information.
Unless you mean that the system should return a bogus id instead of a status 40X when the user doesn’t exist, which makes even less sense.
ID generation should usually only happen when creating new assets, so it should be as fast as possible.
Some of the arguments mentioned are explained elsewhere in the README, others are assumed.
One argument standing out for me is the lack of collision-resistance for UUIDv4 which is surprising for me and I didn't spot any sources for that argument.
Another argument is the entropy source where they go about that Math.random is not reliable as a single entropy source but glimpsing at the source code, they sprinkle the CUID with Math.random data.
I am no expert in ID security, so I am not qualified to speak about the validity of their arguments, only that there's insufficient information to validate without prior knowledge about the problem domain.
The chat, admin and moderation features in discord have huge value and are costly to build. The anti-bot protection and built in permission system especially.
They focus their resource on their product, while exposing it to mostly geek.
I would have never though it would be a good idea, but it proved to be a good choice.
Google home page, the most visited site in the world, had an ad spot for chrome inviting you to install it. Not the search result page, no. The home page, the empty white one with only one field.
This spot has never been available for any non google product, BTW.
Yeah, it's always baffled me. Growing up I ate snacks and sugar fiendishly, but only ever had maybe one or two cavities in 2nd grade or so.
I had another friend who got cavities on an almost yearly basis. What was really fascinating was how boring her diet was; I never saw her eat anything more complex than a peanut butter sandwich or cheese pizza. She brushed, flossed and mouthwashed every day but could never get ahead of it. Meanwhile I went through all of middle and high school without any major dental work besides getting my wisdom teeth pulled.
It's all very odd, and my personal experiences have also led me to believe that diet plays a smaller role than we might think. I could be wrong though, I'm willing to defer to the most reasonable explanation.
It's genetic, some people just have thicker and strong enamel and salivary activity. Just like some people are scrawny and others are naturally strong without really trying
Scientist lurkers in the thread take note. We have a couple for the first cohort for testing to see if their mouth biome differs from base population. Inquiring minds want to know!
Anecdotally, none of my girlfriends seem to have developped any similar immunity. If the article is right, my flora should have replace theirs on the long run, no?
Are you good about brushing your teeth and flossing on the regular? Having lots of sugar isn't what causes cavities, it's not keeping up your dental hygiene. So if you eat a lot of sugar but brush well on a regular basis, I would expect you to not get cavities.
Genetics play a role as well. My mom never got cavities despite never brushing her teeth, whereas my dad could brush pretty regularly and still have a cavity or two when he got checked up. Sadly I inherited my dad's genes, not my mom's.
Depends. Nowadays yes, but younger no. I lived 2 years in west africa where clean water was a premium: I didn't brush my teeth much and drunk a lot of coke.
- web ads
- web stores
- streaming websites
- chat apps