Live data from Hacker News

Fish 4

github.com

31–40 of 113 posts

Re: Fish 4

#31
`clear-commandline` is an interesting one. It's a struggle between Windows and macos to maintain some form of consistency, and I failed to use Karabiner properly.

I'll have to check later today what now the default `cancel-commandline` is set to.

Re: Fish 4

#32
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]

Re: Fish 4

#33
post #12

Earlier quoted context omitted.

I'm surprised Rust took more lines. Perhaps formatter makes shorter lines due to method chaining? Or improved test suite?

Rust, IMO is a noisy language. So not surprising it took more lines. Having to handle every case of every branch also probably balloons line count. Efficient LOC is not a goal of rust at all anyway.

Efficient LOC shouldn't be a goal or metric anyway, readability trumps conciseness... except when conciseness improves readability.

Re: Fish 4

#34
post #6

I've used Fish for many years, but frankly only for the great autocompletion. The streamlined theme/prompt system and oh-my-fish plugin management are quite nice too, but minor. The rest of Fish features that are not bash-compatible are rather a pain, particularly environment variable management. In principle these features have a better design than in bash, but not that much better, and their use is infrequent enoug…

Can I ask what you find difficult about the environment variables system in Fish? Personally I find it absolutely lovely to use.

Re: Fish 4

#35
post #5

Fish 4.0: The Fish Of Theseus ( https://fishshell.com/blog/rustport/ ) is the full story of their rewrite from C++ to Rust. Discussed on HN here - https://news.ycombinator.com/item?id=42535217 (906 points, 198 comments). Highlights of the rewrite - 1155 files changed, 110247 insertions(+), 88941 deletions(-) (excluding translations) - 2604 commits by over 200 authors - 498 issues - Almost 2 years of work - 57K Lines…

I'm surprised Rust took more lines. Perhaps formatter makes shorter lines due to method chaining? Or improved test suite?

Not surprising to me. While learning Rust, I rewrote in Rust several existing programs I had written in C++ and all of them were longer with default formatting.

Re: Fish 4

#36

If you use Homebrew it’s not available there yet, but it’s being added. See https://github.com/Homebrew/homebrew-core/pull/209124 .

You can just get the binary from the github, it's just a single executable! Or compile it yourself with one command (cargo build --release)

That's fair but having a package manager manage all your dependencies makes maintenance and hygiene easier.

Re: Fish 4

#37
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]

What do you dislike about it?

Re: Fish 4

#38
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.

Some people like nice things

Re: Fish 4

#39
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]

I dont like lisp but hackernews is still fine to browse?
Post reply on HN