OILS / doc / ref / disabled-chap-packle.md View on Github | oilshell.org

54 lines, 32 significant
1---
2in_progress: yes
3all_docs_url: ..
4body_css_class: width40
5default_highlighter: oils-sh
6preserve_anchor_case: yes
7---
8
9Packle
10======
11
12This chapter in the [Oils Reference](index.html) describes Packle, a binary
13serialization format for object graphs.
14
15It's a secure subset of Python's `pickle` format.
16
17Advantages:
18
19- Strings are length-prefixed, so they don't need to be escaped and unescaped.
20- Exact float representation, with NaN, Inf, and -Inf values.
21- Represent graphs, not just trees. (Think "JSON key sharing")
22- Strict Byte strings and strict Unicode, not the mess of JSON strings.
23
24<div id="toc">
25</div>
26
27
28## Atoms
29
30TODO: describe wire format.
31
32### Null
33
34### Bool
35
36### Int
37
38### Float
39
40### Bytes
41
42### Unicode
43
44## Compound
45
46TODO: describe wire format.
47
48### List
49
50### Dict
51
52
53[JSON]: https://json.org
54