News for hackers. Stuff that matters.
Re:Introducing nushell by drudru11 on Friday August 23, 2019 @10:51PM (#20784908)
What about JSON vs protobufs? Is there a schemaless system that you use?
Re:Introducing nushell by natermer on Saturday August 24, 2019 @06:17AM (#20786329)
If GNU decided tomorrow that all utilities need to have a --json output argument then that would make me a very happy person.
Re:Introducing nushell by dTal on Saturday August 24, 2019 @04:41PM (#20789578)
Better than nothing, but the problem with that is that you can't construct a deep, lazily evaluated pipeline. JSON can't be outputted until all the data is collected.
Re:Introducing nushell by chocolateboy on Saturday August 24, 2019 @09:23PM (#20790770)
There's a streaming format which is used for this: JSON Lines [1] AKA newline-delimited JSON [2].

[1] http://jsonlines.org/

[2] http://ndjson.org/

Re:Introducing nushell by pmarreck on Saturday August 24, 2019 @11:08AM (#20787542)
That still limits us too much due to the rather severely limited available data types (although arbitrary types could be serialized into binary/string data, I guess...)
Re:Introducing nushell by drudru11 on Saturday August 24, 2019 @01:33PM (#20788470)
Funny that you should mention this. I just hit that problem yesterday. The lack of a binary type is a problem. This is the same thing that hit XML. Unfortunately (or fortunately), the best solution is still the MIME stuff.
Re:Introducing nushell by groestl on Saturday August 24, 2019 @01:48AM (#20785484)
AFAIK protobufs are not schema-less.
Re:Introducing nushell by drudru11 on Saturday August 24, 2019 @02:04AM (#20785537)
Yeah, those sentences are too close together.

I'm trying to elicit more of a response from the comment author. I think they make some good points. I would like to learn more about their ideal system.