Live data from Hacker News

Nushell.sh ls | where size > 10mb | sort-by modified

nushell.sh

51–60 of 215 posts

Re: Nushell.sh ls | where size > 10mb | sort-by modified

#52
I tried to use it as my main shell for a couple days, found it fun and potentially useful, played with its unique features... and eventually uninstalled it and went back to zsh.

For 99.99% of what I use a shell for, Nushell doesn't do anything that I can't do with a regular shell. Maybe just because I'm used to shells/sed/awk/etc.

For the few cases where Nushell could be useful, I can usually do the same thing with Vim/Emacs/VSCode or a trivial Python/Ruby script.

Re: Nushell.sh ls | where size > 10mb | sort-by modified

#54
post #42
post #17

Earlier quoted context omitted.

To be honest, they have good reason. Being written in a strongly typed, memory-safe language is a huge advantage. Obviously it's not the primary thing to look out for, but I do prefer tools that are written in it.

There are plenty of strongly typed memory safe languages. In fact I think those are the majority of popular languages.

Of course the person you're replying to is talking about languages without a garbage collector. Systems languages with zero cost abstractions.

Re: Nushell.sh ls | where size > 10mb | sort-by modified

#55
post #22

This looks extremely interesting! Is anyone using it as a daily driver on Linux? How has your experience been?

I second this question. I was using FISH for quite a while and really liking it, but there was always something that it was incompatible with and had to eventually give it up.

I gave up on fish many years ago because of various incompabitilities (e.g. syntax like `FOO=bar some-cmd` or `env FOO=bar some-cmd` etc), but to be fair, they have managed to patch lots/most of those.

Returned back (from zsh) to fish this year and am super happy. Still the best built-in completion / history auto-suggest that I've seen in any shell so far, and super-fast at that.

Most importantly, barely any config needed (no needs for oh-my-zsh, prezto and all of those).

Re: Nushell.sh ls | where size > 10mb | sort-by modified

#57
post #47

[zsh]$ ls -l *(Lm+10om) zsh supports extended globs, this says: -l give me a long listing “*(…)” of any file Lm+10 who’s size “L” in megabytes “m” is greater than 10 “om” ordered by modification ascending

Cool but that’s as opaque and hard to understand as sacrificing a goat to order ls output. It’s of course possible to do with existing shells, but it’s impossible to argue that it’s a clear

Depends what you’re optimising for. Are you optimising for readability - e.g. maybe you share shell history with team mates for example.

Or are you optimising for getting your thoughts transcribed to the machine as quickly as possible. It’s usually this case for me.

I tend to maintain a huge shell history so i really like the terse format for quickly filtering down my historical commands.

Writing shell scripts might be a good case for the longer form style although bourne-esque syntax is burned into my fingertips after all these years that long form is not going to be useful to me.

Re: Nushell.sh ls | where size > 10mb | sort-by modified

#58
post #42
post #17

Earlier quoted context omitted.

To be honest, they have good reason. Being written in a strongly typed, memory-safe language is a huge advantage. Obviously it's not the primary thing to look out for, but I do prefer tools that are written in it.

There are plenty of strongly typed memory safe languages. In fact I think those are the majority of popular languages.

I'm not really sure which other popular languages would be considered memory safe AND strongly typed. I know of both C and C++ which I wouldn't consider memory safe. And I know of Javascript, which is not strongly typed... so which do you mean?

Re: Nushell.sh ls | where size > 10mb | sort-by modified

#59
post #44

[zsh]$ ls -l *(Lm+10om) zsh supports extended globs, this says: -l give me a long listing “*(…)” of any file Lm+10 who’s size “L” in megabytes “m” is greater than 10 “om” ordered by modification ascending

Wouldn't you want to use 'ls -lt' (sort by time) (or possibly with '-r' if you really want oldest first)? (I.e., does 'om' sort the glob passed to 'ls', which it will then reorder, or does zsh do something magic with the 'ls' command?)

yeah if you were typing this case yourself you would use -lt but i figured it was worth showing that extended globs can be combined.

This globbing functionality in zsh is separate from the ls command, so no ls magic here, but the ls builtin in zsh does have some useful extras in it all the same

Re: Nushell.sh ls | where size > 10mb | sort-by modified

#60
post #17
post #15

Earlier quoted context omitted.

I assume the parent comment did not make fun of nushell advertizing this, but instead about the rust community advertizing itself all the time.

To be honest, they have good reason. Being written in a strongly typed, memory-safe language is a huge advantage. Obviously it's not the primary thing to look out for, but I do prefer tools that are written in it.

> Being written in a strongly typed, memory-safe language is a huge advantage.

Great point, C# is a strongly typed and memory-safe language if you don't use unsafe. So this really is a huge advantage for PowerShell.

Post reply on HN