gritzko / ron

(dated, see the site) Replicated Object Notation, a distributed live data format, golang/ragel lib
http://replicated.cc
Apache License 2.0
360 stars 7 forks source link

Variant or Variety? #17

Open cblp opened 6 years ago

cblp commented 6 years ago

uuid.md mentions the word "variant" 2 times and the word "variety" 3 times. Is it the same? What is the proper name?

gritzko commented 6 years ago

"Variant" comes from RFC4122. "Variety" is a RON specific thing. Well, uuid.md needs to be extended...

cblp commented 6 years ago

Just choose one. Any.

cblp commented 6 years ago

Which do you prefer?

gritzko commented 6 years ago

These are different things. Variant is specified by the two m.s.b. of the second 64-bit word. All RON UUIDs have the same variant.

Variety is 4 m.s.bits of the first word. That one has a meaning in the context of the RON UUID version (the next 2 m.s. bits of the second word).

For example, A/LED has

  1. variant 0,
  2. version 0, and
  3. variety 10 (hex A).

That means, respectively,

  1. variant: RON UUID,
  2. version: RON name UUID,
  3. variety: RON name UUID, IATA airport code.
cblp commented 6 years ago

Oh, now I see! Thank you!

cblp commented 6 years ago

invalid question

cblp commented 6 years ago

Is version the same as scheme?