Skip to content
This repository has been archived by the owner on Mar 31, 2019. It is now read-only.

Columnar data format

Jim Pivarski edited this page Dec 21, 2016 · 3 revisions

Note: These are all early prototypes.

Data as Python objects

Femtocode data would usually not be represented as Python objects, but I define a mapping here just to be concrete about what the prototype shredding/assembly algorithms do. See [Type System](Type System) for an elaboration on Femtocode types.

Femtocode schema Python (3) type Python example
Null NoneType None
Boolean bool True, False
Number int, float 3, 3.14
String with charset="bytes" bytes b"hello"
String with charset="unicode" str u"hello"
Collection list [1, 2, 3]
Record namedtuple namedtuple("rec1", ["x", "y"])(3.14, b"hello")
Union any of the above (ambiguous) None, 3.14, b"hello"
Clone this wiki locally