Better HN
topnewbestaskshowjobs
Log inSign up

greenbeans1991

0 karma · joined Aug 2, 2021 (5y ago) · 4 submissions

Submissions

comment 5y ago · link · parent

Ah it gets rid of the non-time related bits. Below is a description of the formatting

* id is composed of: * time - 41 bits (millisecond precision w/ a custom epoch gives us 69 years) * configured machine id - 10 bits - gives us up to 1024 machines * sequence number - 12 bits - rolls over every 4096 per machine (with protection to avoid rollover in the same ms)

thanks :)

comment 5y ago · link · parent

Could somebody help me understand the reasoning behind

`timestamp = snowflake_id >> 22`

Thanks :)

comment 5y ago · link · parent

hmm kinda there can be more randomness and chaos in driving. Depends on the initial application for the Tesla bot

comment 5y ago · link · parent

How is it different than credit cards?