News for hackers. Stuff that matters.
Re:Nushell 0.60 Released by zkldi on Tuesday March 22, 2022 @07:22PM (#30772902)
Been using this for a while now. It's very good, well designed and the right way (imo) to modernise the shell.

Bringing datastructures to the shell environment (instead of everything being strings) is just the right thing to do, and I've been personally interested in making binaries that can natively input/output these data structures.

big thanks to the team, this stuff is cool.

Re:Nushell 0.60 Released by kzrdude on Tuesday March 22, 2022 @07:49PM (#30773111)
Have they found the right way to be inclusive of and handling old-style tools that only in/output text? That's usually a deciding factor in how improvements and new systems gain traction - that they are possible to introduce gradually and they deal with all existing programs.
Re:Nushell 0.60 Released by ripley12 on Tuesday March 22, 2022 @07:54PM (#30773148)
I think it's pretty good.

It's easy to pipe text-speaking tools into Nu pipelines, and there's a built-in `lines` command that will split line-break-delimited text into a list of strings. From there you can use lots of tools to operate on each line.

Going from Nu data structures to raw lines of text is a little clumsier (`str collect (char newline)` IIRC) but I think that will get improved soon enough.

There's also a handy `detect columns` command that does a pretty good job of automatically converting text tables from old *nix/Windows tools into Nu tables.

Re:Nushell 0.60 Released by majkinetor on Wednesday March 23, 2022 @03:27AM (#30775938)
Screams for -join operater.
Re:Nushell 0.60 Released by bhedgeoser on Tuesday March 22, 2022 @08:41PM (#30773473)
You need to write a plugin in rust. The builtin scripting language isn't that good.
Re:Nushell 0.60 Released by ripley12 on Tuesday March 22, 2022 @11:51PM (#30774727)
No. Plugins are just executables that communicate with Nu over stdin/stdout using JSON or Cap’n Proto; they can be written in any language.
Re:Nushell 0.60 Released by vlmutolo on Tuesday March 22, 2022 @08:42PM (#30773482)
In the article, they show how you can use any language to write a plugin.
Re:Nushell 0.60 Released by kzrdude on Wednesday March 23, 2022 @12:46PM (#30780436)
Writing a plugin is an example of Nu not solving the problem in general - maybe you misunderstood my question