4 ms·
The basic premise (The friendly data format for human & machine) instantly reminded me of Red language [1], which, by the virtue of homoiconicity, is also its o
by 9214 6y ago
The basic premise (The friendly data format for human & machine) instantly reminded me of Red language [1], which, by the virtue of homoiconicity, is also its own data format (both textual and binary [2]) with 50 datatypes, many with several unique literal forms:
date: 4-Oct-2020 4/11/20
time: 13:04:07
url: https://concise-encoding.org
email: kstenerud@gmail.com
ref: @kstenerud
tag: <div color="red">
integer: 123
float: 123.45 1.#NaN -1.#INF
pair: 67x89
percent: 9000%
money: USD$0.50
binary: #{deadbeef} 2#{00101101}
container: [#hashtag "string" %file.ext #(key value)]
...
[1]: https://www.red-lang.org/p/about.html https://www.red-lang.org/p/about.html
[2]: https://github.com/red/docs/blob/master/en/redbin.adoc https://github.com/red/docs/blob/master/en/redbin.adoc
- spfzero 6y agoReally interesting, thanks for posting this. Edited to add: interesting for the cross-platform and independence aspects.