Re:jc – JSONifies the output of many CLI tools
by zokier on Thursday November 03, 2022 @05:49PM
(#33458243)
The thing to understand with PowerShell is that the way it pipelines objects is enabled by the fact that it is all happening in-process within one .net runtime. It is significantly more difficult to achieve anything similar with several independent processes being piped together
[ Parent
| on HN ]
Re:jc – JSONifies the output of many CLI tools
by WorldMaker on Thursday November 03, 2022 @06:49PM
(#33459047)
Well, yes, powershell takes some shortcuts and has the advantage that .NET has a strong object system.
If you were to build it from scratch with the idea of "shared nothing" applications similar to the unix model with text files, it's not that much more difficult with just about any sort of object or message broker. You could easily imagine a world with a dbus based "REPL"/shell, for instance. Or a different approach easily imaginable if you still want to focus on unix-style streams/files between processes would be something like BSON streams (thought it would still have some serialization/deserialization overhead).