News for hackers. Stuff that matters.
Re:Nushell.sh ls | where size > 10mb | sort-by modified by pxc on Sunday March 12, 2023 @03:32PM (#35125055)
* * *
Re:Nushell.sh ls | where size > 10mb | sort-by modified by andrepd on Sunday March 12, 2023 @04:03PM (#35125482)
It is much much better to have things be actual commands (which have a uniform syntax, and are `--help`able) rather than obscure sigils like $(#!@$).

Fish is amazing!

Re:Nushell.sh ls | where size > 10mb | sort-by modified by pxc on Sunday March 12, 2023 @04:15PM (#35125637)
Many of these next-gen shells like Nushell are clearly (and sometimes explicitly) inspired equally by Fish and by PowerShell, and it shows. It's a brilliant combination!
Re:Nushell.sh ls | where size > 10mb | sort-by modified by amelius on Sunday March 12, 2023 @05:12PM (#35126370)
I think the problem with this approach is that it breaks down at some point, and then your only option is to rewrite the entire thing in a real scripting language.

I.e., there is no graceful scaling path.

Re:Nushell.sh ls | where size > 10mb | sort-by modified by stingraycharles on Sunday March 12, 2023 @05:34PM (#35126579)
Isn’t this the problem with older shells as well? Eg you have to use e.g. awk or sed to deal with more complicated text processing. My understanding that the biggest difference between powershell (and nushell) and the older bash-like shells is that they deal with structured, object-like data rather than text. How would things be any different when “things break down” vs an older shell?
Re:Nushell.sh ls | where size > 10mb | sort-by modified by jrumbut on Sunday March 12, 2023 @09:56PM (#35129739)
One of the nice things about bash is that it interacts very nicely with Perl and Ruby.

I wonder how these other shells work with the backticks and such in Perl/Ruby. Theoretically there is room for very cool interoperability but I wonder how it goes in practice and if any nice tools and patterns are being developed.

Re:Nushell.sh ls | where size > 10mb | sort-by modified by phist_mcgee on Sunday March 12, 2023 @11:57PM (#35130832)
Since this is nushell and perl and ruby are now starting to be considered 'old, is that so much of a problem?
Re:Nushell.sh ls | where size > 10mb | sort-by modified by jrumbut on Tuesday March 14, 2023 @04:47AM (#35148806)
It's a path to scaling. You can basically dump a shell script (I assume including nushell) into your .pl/.rb file with a little punctuation and then slowly refactor it to a language that can handle greater complexity.
Re:Nushell.sh ls | where size > 10mb | sort-by modified by pxc on Sunday March 12, 2023 @05:27PM (#35126514)
I suppose I'm more optimistic. From my point of view, structures pipelines and some of the goodies that come with it (like better error handling), can make a shell language into a perfectly capable scripting language. I think the big weakness for these new shells is in the small sizes of their library ecosystems. But PowerShell shows what a language of this kind can do with a sizeable ecosystem and some OS integration.
Re:Nushell.sh ls | where size > 10mb | sort-by modified by ilyt on Sunday March 12, 2023 @06:46PM (#35127406)
Should be doing that anyway, bash is terrible for actual programs.
Re:Nushell.sh ls | where size > 10mb | sort-by modified by coldtea on Sunday March 12, 2023 @07:05PM (#35127755)
As opposed to what? Regular shells which break down even quicker?

And there's no hard constraint that would require this to "break down at some point". A well designed shell could also be a "real scripting language", all-in-one.

But the horrible CP/M and POSIX legacy of shell design doesn't help with that.

Re:Nushell.sh ls | where size > 10mb | sort-by modified by inciampati on Monday March 13, 2023 @12:48AM (#35131222)
Fish is amazing. And. It was missing critical features like subprocesses for so long (10 years?) that I had to keep passing it by. No subprocesses!
Re:Nushell.sh ls | where size > 10mb | sort-by modified by pxc on Monday March 13, 2023 @10:32AM (#35136202)
* * *