#cbor — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #cbor, aggregated by home.social.
-
People keep reinventing serialisation, generally badly. A year ago I proposed my own as a joke:
https://wiesmann.codiferes.net/wordpress/archives/38143
What I find fascinating, is that I keep seing proposals which are probably worse…
-
People keep reinventing serialisation, generally badly. A year ago I proposed my own as a joke:
https://wiesmann.codiferes.net/wordpress/archives/38143
What I find fascinating, is that I keep seing proposals which are probably worse…
-
People keep reinventing serialisation, generally badly. A year ago I proposed my own as a joke:
https://wiesmann.codiferes.net/wordpress/archives/38143
What I find fascinating, is that I keep seing proposals which are probably worse…
-
People keep reinventing serialisation, generally badly. A year ago I proposed my own as a joke:
https://wiesmann.codiferes.net/wordpress/archives/38143
What I find fascinating, is that I keep seing proposals which are probably worse…
-
I used to not like JSON-LD. And then I got exposed to CBOR. And, since then, I ended up liking JSON-LD more than I did before.
https://j12t.social/@j12t/114581086678041245
...
I was looking for performant ways of storing JSON-LD data, so that it can be looked up, queried, etc.
CBOR might actually be a way of doing that.
...
For me that is an odd realization given me liking JSON-LD is a reaction to CBOR.
#ActivityPub #ActivityStreams #CBOR #CBORLD #FediDev #JSONLD
-
Watched @pid_eins #fosdem2026 presentation record about #Varlink. I think the idea is good, except it should use some binary protocol for communication between services. RFC 8949 #CBOR seems like excellent candidate. Text serialization is not necessary if human is never direct part of a pipeline. Data conversion is not slow, but not necessary between localhost- only services.
-
Hello #Proteomics !
Thinking about a better mzML to store proteomics data, but not convinced by the #parquet approach, I've converted it into #CBOR :
* Smaller data files (only 66% of the mzML original file) for the exact same data
* Faster to read (25s for a big mzML vs 18s in mzcbor on the same computer)
* Very quick random access to spectra (24.6577 ms for mzML vs 786.731 μs for mzcbor for the same operation using index)I'd like to share it if you are interested at #eubIC #eubic2026
-
Проектируем как синьор: универсальная бинаризация
Здравствуйте, меня зовут Дмитрий Карловский и я.. да не важно кто я. Важно о чём я говорю, и как аргументирую. Кто меня знает, тому и не надо рассказывать. А кто не знает — у того есть прекрасная возможность подойти к вопросу с чистым разумом. А это крайне важно, если мы хотим спроектировать что-то по настоящему хорошо, а не как обычно. Что ещё за VaryPack?
-
Проектируем как синьор: универсальная бинаризация
Здравствуйте, меня зовут Дмитрий Карловский и я.. да не важно кто я. Важно о чём я говорю, и как аргументирую. Кто меня знает, тому и не надо рассказывать. А кто не знает — у того есть прекрасная возможность подойти к вопросу с чистым разумом. А это крайне важно, если мы хотим спроектировать что-то по настоящему хорошо, а не как обычно. Что ещё за VaryPack?
-
Проектируем как синьор: универсальная бинаризация
Здравствуйте, меня зовут Дмитрий Карловский и я.. да не важно кто я. Важно о чём я говорю, и как аргументирую. Кто меня знает, тому и не надо рассказывать. А кто не знает — у того есть прекрасная возможность подойти к вопросу с чистым разумом. А это крайне важно, если мы хотим спроектировать что-то по настоящему хорошо, а не как обычно. Что ещё за VaryPack?
-
Проектируем как синьор: универсальная бинаризация
Здравствуйте, меня зовут Дмитрий Карловский и я.. да не важно кто я. Важно о чём я говорю, и как аргументирую. Кто меня знает, тому и не надо рассказывать. А кто не знает — у того есть прекрасная возможность подойти к вопросу с чистым разумом. А это крайне важно, если мы хотим спроектировать что-то по настоящему хорошо, а не как обычно. Что ещё за VaryPack?
-
JSON? JSONB? BSON? CBOR? MsgPack? А, VaryPackǃ
VaryPack - новый, простой, гибкий, шустрый и компактный формат бинарной сериализации произвольных данных. Что за модная тема?
-
JSON? JSONB? BSON? CBOR? MsgPack? А, VaryPackǃ
VaryPack - новый, простой, гибкий, шустрый и компактный формат бинарной сериализации произвольных данных. Что за модная тема?
-
JSON? JSONB? BSON? CBOR? MsgPack? А, VaryPackǃ
VaryPack - новый, простой, гибкий, шустрый и компактный формат бинарной сериализации произвольных данных. Что за модная тема?
-
JSON? JSONB? BSON? CBOR? MsgPack? А, VaryPackǃ
VaryPack - новый, простой, гибкий, шустрый и компактный формат бинарной сериализации произвольных данных. Что за модная тема?
-
-
@lambdageek That's a good observation, and helps me express the troubles I face using it with idiomathc #CBOR
-
CBOR Tag for JSON Number Strings
-
I got an IANA assignment registered: “JSON Number String Tag for CBOR.” Useful to preserve string literal representation of JSON numbers, such as those created by Go's json.Number.
https://gist.github.com/theory/ef667af1c725240e6e30d525786d58e6
Will show up on https://www.iana.org/assignments/cbor-tags/cbor-tags.xhtml soonish.
-
Nice new milestone for #embedded #Rust development: defmt 1.0 has been released. The crate enables logging for microcontrollers without text or number formatting on the device – instead, the device sends numbers of interned strings to the host, which composes log messages.
1.0 is not only a stable release, but also enables logging #CBOR data into diagnostic notation on the host. -
The #IETF122 hackathon starts in a few hours. I will be joining remotely, work on #EDHOC on @ariel (let's see if its out-of-the-box support also interoperates out-of-the-box), and play with #embeddfriendly URIs expressed in #CBOR.
-
RFC 9741: CDDL Additional Control Operators for the Conversion and Processing of Text
Le langage #CDDL, qui permet de créer un schéma formel pour des formats comme #CBOR, peut s'étendre via l'ajout d'« opérateurs de contrôle ». Ce #RFC en spécifie quelques uns, notamment pour agir sur du texte ou convertir d'une forme dans un autre.
-
My recent work on #CBOR diagnostic tools has culminated in the release v0.0.7 of the cbor-edn #RustLang crate, and the cbor-diag v1.1.0 #Python package (which is powered by the former, #maturin and #PyO3).
It is now easy to receive CBOR data structure with internal tags, and have them display like this:
{1: IP'2001:db8::1', 3: DT'2025-01-14T13:27:49Z'}
https://cbor-diag.readthedocs.io/en/latest/
https://docs.rs/cbor-edn/latest/cbor_edn/ -
My recent work on #CBOR diagnostic tools has culminated in the release v0.0.7 of the cbor-edn #RustLang crate, and the cbor-diag v1.1.0 #Python package (which is powered by the former, #maturin and #PyO3).
It is now easy to receive CBOR data structure with internal tags, and have them display like this:
{1: IP'2001:db8::1', 3: DT'2025-01-14T13:27:49Z'}
https://cbor-diag.readthedocs.io/en/latest/
https://docs.rs/cbor-edn/latest/cbor_edn/ -
My recent work on #CBOR diagnostic tools has culminated in the release v0.0.7 of the cbor-edn #RustLang crate, and the cbor-diag v1.1.0 #Python package (which is powered by the former, #maturin and #PyO3).
It is now easy to receive CBOR data structure with internal tags, and have them display like this:
{1: IP'2001:db8::1', 3: DT'2025-01-14T13:27:49Z'}
https://cbor-diag.readthedocs.io/en/latest/
https://docs.rs/cbor-edn/latest/cbor_edn/ -
My recent work on #CBOR diagnostic tools has culminated in the release v0.0.7 of the cbor-edn #RustLang crate, and the cbor-diag v1.1.0 #Python package (which is powered by the former, #maturin and #PyO3).
It is now easy to receive CBOR data structure with internal tags, and have them display like this:
{1: IP'2001:db8::1', 3: DT'2025-01-14T13:27:49Z'}
https://cbor-diag.readthedocs.io/en/latest/
https://docs.rs/cbor-edn/latest/cbor_edn/ -
My recent work on #CBOR diagnostic tools has culminated in the release v0.0.7 of the cbor-edn #RustLang crate, and the cbor-diag v1.1.0 #Python package (which is powered by the former, #maturin and #PyO3).
It is now easy to receive CBOR data structure with internal tags, and have them display like this:
{1: IP'2001:db8::1', 3: DT'2025-01-14T13:27:49Z'}
https://cbor-diag.readthedocs.io/en/latest/
https://docs.rs/cbor-edn/latest/cbor_edn/ -
RFC 9682: Updates to the CDDL grammar of RFC 8610
Voici une légère mise à jour de la grammaire du langage de description de schéma #CDDL (Concise Data Definition Language), originellement normalisé dans le RFC 8610. Pas de gros changement.
-
-
The #RustLang #CoAP example of @RIOT_OS has been updated. Previously you could list processes, access sensors or read the file system. Now, you can blink LEDs, read network settings, send #IPv6 pings, and even see who pinged you.
The data formats will still need some work, right now a lot is just crude #CBOR, but it works.
https://github.com/RIOT-OS/RIOT/tree/master/examples/rust-gcoap -
It's been on my mind I wanted to get to understand a few things…
1. #COSE : #CBOR Object Signing and Encryption
2. #X25519KeyExchangeThere are a few applications I have in mind for this and I could find no good examples. So, I sat down and nutted out this:
https://gist.github.com/sjlongland/fc2e06cb47543e977440b79d6cf71185
This is a simple demonstration of X25519 and COSE in #Python. The idea being that this allows two peers to mutually authenticate, then establish a shared secret.
I'm still not 100% certain of some X25519 key exchange details, specifically why pycryptography's example does it twice?
https://cryptography.io/en/latest/hazmat/primitives/asymmetric/x25519/#exchange-algorithm
Note: they generate `derived_key`, but never use it. It'd make sense if it were part of the second call to `HKDF` or something, but the result is simply thrown away. Anyone know why that is?
Anyway, maybe the #cryptography gurus might have some ideas, and whether my little toy here actually would work for decent secure comms, or if there's a gaping hole I should look out for.
-
Getting out of a sidetrack activity: cbor-edn 0.0.3 published. It is both a command line tool and a #RustLang library, and interacts with #CBOR diagnostic notation from plain conversion up to processing of the upcoming application literals:
$ cargo install cbor-edn
$ echo '{4: 1234567890}' | cbor-edn diag2diag --annotate ccs
{/ exp /4: dt'2009-02-13T23:31:30+00:00'},
https://codeberg.org/chrysn/cbor-edn -
Are you using #CBOR in data formats you describe, in code, debugging or for examples? During the last #IETF meeting, @cabo gave a 30 minute tutorial on existing and upcoming technologies to make that easier. Watch the recording at <https://youtu.be/Cr6PeUUm7wY?feature=shared&t=237>; slides with further links <https://datatracker.ietf.org/meeting/119/materials/slides-119-cbor-edn-cddl-yang-packed-00>.
-
Connaissez-vous la RFC 8949 ? Non ? Jusqu'à ce matin, à ma grande honte, moi non plus... Pourtant le sujet est d'importance : une alternative binaire, compacte, performante, normée et pérenne. Le #CBOR: Concise Binary Object Representation.
https://cbor.io/Le seul tuto du site renvoie à un article fr de présentation de @bortzmeyer : https://www.bortzmeyer.org/7049.html
#BSON, #protobuf, #MessagePack : chacun a ses avantages (et inconvénients) face à #JSON.
Le CBOR est une couleur de cette palette. -
Binary serialization...
-
#jsoncons is a #singleheader #Cpp #library for parsing #JSON-like formats.
jsoncons has a data model that allows for parsing different formats that resemble JSON, like #CBOR and #BSON, using extensions. jsoncons provides several ways of interacting with parsed data; a query-able structure, a strongly typed C++ class, or a SAX-like parse stream. jsoncons is fast, and has extensions for things like JSONPath.
Website 🔗️: https://danielaparker.github.io/jsoncons/
-
@alva @dkl even for embedded things... #BSON, #CBOR, #ProtocollBuffers, #UBJSON and "Smile" are existing things.
Yes you can write your own (or write whatever your env thinks the current binary representation should look like to disk) - but then you have no tooling, no portability and/or no validation/standardisation.