3 ms·
Libxo is neat, in theory, but it seems like applications are left to implement their own logic for a given output format rather than being able to pass a struct
by nijave 3y ago
Libxo is neat, in theory, but it seems like applications are left to implement their own logic for a given output format rather than being able to pass a structure to libxo and let it do the formatting.
I can't remember the exact utility--I think it was iostat--would use string interpolation to format output lines in JSON and combined with certains flags produced completely mangled output. Not sure if things have improved but I would have expected something like JSON lines when interval is provided.
Powershell and kubectl are miles ahead of libxo in useability imo
- simias 3y agoWell I suspect that eventually you just run into hard limitations with C's introspection facilities, or lack thereof. I like C a lot but one of the reasons I like Rust more these days is the ability to trivially implement complex serialization schemes without a ton of ad-hoc code and boilerplate.
- gigatexal 3y agofar better for applications to be unaware of a such a utility and allow something like jc to grow in support with plugins or something so as to keep the utilities simple and move the logic and burden to the wrapping utility in this case jc.