-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
String ⊂ Atom ⊂ UUID? #18
Comments
An atom is either (1) UUID or (2) int or (3) string or (4) float. The internal Cursor representation uses 16 bytes for either. For strings, that is a range in the buffer. Only UUIDs must be parsed fully. Cause UUDs are read and interpreted by reducers. Values typically aren't. see the README
|
You are mixing the formal model and implementation details here. |
I'm reading uuid.md only. The document says:
what does it mean then? Do formal model and implementation details contradict? |
I should probably remove that. That's how cursors keep atoms internally. Shouldn't be part of uuid.md. |
Looks like it is atom specification. A bigger thing is described inside a smaller thing. That's why it causes misunderstanding. So, we need a separate document describing atoms and how strings are encoded inside them. |
I should make a single document explaining atoms, then ops, then frames, then po logs, then mappers, I guess. With pictures. Formal texts are heavy to read. |
Started something a little bit here: https://github.com/lambdafu/swarm-doc |
Can a UUID be an atom? Can an atom be a string? How does UTF-8 string fit in 16 bytes?
The text was updated successfully, but these errors were encountered: