attic-labs / noms

The versioned, forkable, syncable database
Apache License 2.0
7.45k stars 267 forks source link

Numeric support in Noms #3807

Open aboodman opened 6 years ago

aboodman commented 6 years ago

I'd like to fix numbers in Noms. For now, this bug will just collect ideas and desired features. These might be in conflict or not make sense - rationalizing desired features will come later.

coriolinus commented 6 years ago

The requirement to precisely store any integer or any rational implies bignum / bigrat support. While cool, a subset feature capturing most of the value would be the ability to precisely store integer primitives: u?int(32|64)?.

The type system and type accretion system is cool, but from the perspective of my use case, it's not a key noms feature. It's much simpler to build a model struct, and serialize / deserialize the struct into noms, without performing any type introspection whatsoever.

aboodman commented 6 years ago

OK, thanks. Totally understood, but I would like to do something more general if possible as long as a change is being made.

aboodman commented 6 years ago

Also, I think (hope?) it's likely that as your system grows you'll come to appreciate the ability to introspect the data. I would imagine this comes in handy for changing schemas across versions, for example.