Live data from Hacker News

Fish 4

github.com

51–60 of 113 posts

Re: Fish 4

#51

Earlier quoted context omitted.

Speak for yourself, but I would not want to be beholden to AI for every trivial shell one-liner. "Sorry boss, ChatGPT is down, I can't count how many *.txt files are in this directory. See you tomorrow!" I'll take the better syntax, thanks.

Heaven forbid you read a man page. Even though Bash is weird, it's fully documented.

Documentation is useless if you don’t know what to look for. Which manual page do I open to find out what :(){:|:&};: means without already knowing?

Re: Fish 4

#52
post #43

Earlier quoted context omitted.

[flagged]

Why would you care what it's written in at all, unless you plan to work on it yourself?

The same reason you might care about the artist or producer of a song: its context generally implies certain characteristics you might associate and appreciate.

For example, most Rust projects use clap which provides really nice command line help menus and also have relatively good performance in general.

Re: Fish 4

#53
post #8
post #4

The most interesting thing about Fish 4.0.0 for most people will be that it is now written in Rust, which they talk about here [1]. Looking forward to testing it out and seeing if there are any noticeable differences. [1] https://github.com/fish-shell/fish-shell/pull/9512

I'll be curious if it's faster.

Faster than previous C++? Only if there were actual performance bugs that they fixed while doing the port.

Re: Fish 4

#55
post #4

The most interesting thing about Fish 4.0.0 for most people will be that it is now written in Rust, which they talk about here [1]. Looking forward to testing it out and seeing if there are any noticeable differences. [1] https://github.com/fish-shell/fish-shell/pull/9512

[flagged]

Everyone is entitled to opinions of course, but this is a rather weird one given how Rust's toolchain is the thing most people like most about it.

Re: Fish 4

#56
As a zsh user, I've been meaning to give fish a try. I keep adding plugins to zsh to make it act like fish (like command autocomplete) that I might as well try and/or switch to it.

Re: Fish 4

#57
post #30

I recently built my own shell to better understand its complexity and how it works under the hood. I also implemented redirections and partial tab completion. While I get that writing a shell isn’t the easiest task, I still don’t fully understand why there are so many different ones. I’ve been using the default shell on macOS, and so far, it works just fine.

different tastes.

Re: Fish 4

#58

As a zsh user, I've been meaning to give fish a try. I keep adding plugins to zsh to make it act like fish (like command autocomplete) that I might as well try and/or switch to it.

My only annoyance with fish is when I copy bash one liners and forget, and get errors or issues. Otherwise, fish is fantastic.

Re: Fish 4

#59

Let's guess which one compiles slower

On my Macbook M1 Pro:

- fish 4.0.0 / Rust: (cargo build): 16 seconds

- fish 4.0.0 / Rust: (cargo build --release): 37 seconds

- fish 3.7.1 / C++: cmake ..: 10 seconds + make -j8: 13 seconds = 23 seconds

So yeah, C++ was slightly faster in release mode, but slower in non-release. I'd say this is yet another win for Rust, frankly.

Re: Fish 4

#60

Earlier quoted context omitted.

What do you dislike about it?

the only vcs it supports is git

The —-vcs flag to cargo new supports git, hg, pijul, and fossil.

It’s true that dependencies from a repository only supports git right now.

Part of the issue there is just like, the VCS integration wasn’t don’t in a principled way (it happens!) and so it’s not simple. See here for more: https://github.com/rust-lang/cargo/issues/12102

Post reply on HN