sexp
nestedtextto
Our great sponsors
sexp | nestedtextto | |
---|---|---|
3 | 5 | |
42 | 16 | |
- | - | |
5.4 | 9.3 | |
4 days ago | 8 days ago | |
OCaml | Python | |
MIT License | Do What The F*ck You Want To Public License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
sexp
- My Thoughts on OCaml
- The YAML Document from Hell
-
Better logging for OCaml + Async
There's a tool sexp that Jane Street uses internally to slice and dice sexp logs, but, yes, I get that there aren't logging services out there that support sexps. They should, though, as sexps have unique advantages over JSON. They tend to be more human-readable too. Great blog post overall!
nestedtextto
-
The yaml document from hell
I used the official reference implementation to make a CLI converter between NestedText and TOML, JSON, and YAML. When generating one of these formats, you can use yamlpath queries to concisely but explicitly apply supported types to data elements.
-
The YAML Document from Hell
I'm a huge fan of NestedText, especially as there is no escaping needed ever.
If you ever want to use it as a pre-format to generate either TOML, JSON, or YAML, I used the official reference implementation to make a CLI converter between them and NestedText.
When generating one of these formats, you can use yamlpath queries to concisely but explicitly apply supported types to data elements.
- My CLI converter: https://github.com/AndydeCleyre/nestedtextto
- yamlpath info: https://github.com/wwkimball/yamlpath/wiki/Search-Expression...
-
A practical issue with YAML: your schema is not documentation
In case you're interested and haven't seen it, I've become a big fan of NestedText, which is similar to YAML but without the complicated parts, and without types (just strings, lists, and dicts). The idea is that any meaningful validation and coercion belongs in code anyway. An extra cool part is that nothing ever needs to be escaped, so the content is super clean and unambiguous.
If you want to play around with it, I made NestedTextTo (nt2 on PyPI), for CLI conversion between NestedText and YAML, TOML, or JSON, with a pretty cool (IMO) way to cast value types along the way.
https://nestedtext.org/en/stable/ (not my project)
https://github.com/AndydeCleyre/nestedtextto (my project)
-
How do you yaml
I recently fell in love with the NestedText format, and whipped up a CLI for conversions between it and YAML (and JSON and TOML), so now whenever manually viewing those other formats I pipe it through into readable NestedText. In this example, the result is identical to format A.
-
nt2: a CLI converter between NestedText and JSON, YAML, or TOML
So I made nt2 (NestedTextTo) (install from PyPI as nt2[toml] for TOML support).
What are some alternatives?
sexplib - Automated S-expression conversion
json5 - JSON5 — JSON for Humans
lua-sandbox - A lua sandbox for executing non-trusted code
hobbes - A language and an embedded JIT compiler
cels - Command line tool to patch your YAML, JSON and TOML files.
sxpyr - Parse s-expressions, edn, and a variety of lisp dialects.
strictyaml - Type-safe YAML parser and validator.
clj-kondo - Static analyzer and linter for Clojure code that sparks joy
hjson - Hjson, a user interface for JSON
json5-spec - The JSON5 Data Interchange Format