Earlier quoted context omitted.
[flagged]
Why would you care what it's written in at all, unless you plan to work on it yourself?
Fish 4
61–70 of 113 posts
Re: Fish 4
#62Earlier quoted context omitted.
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
#63I 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.
Re: Fish 4
#64Earlier quoted context omitted.
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
#65Earlier quoted context omitted.
Efficient LOC shouldn't be a goal or metric anyway, readability trumps conciseness... except when conciseness improves readability.
Agreed. I would rather be forced to explicitly cover all match cases than accidentally run into problems that are hard to debug.
Re: Fish 4
#66Earlier quoted context omitted.
Why would you care what it's written in at all, unless you plan to work on it yourself?
In a sense why should anyone care about this article? It's a shell, why is rewriting it in Rust noteworthy?
Re: Fish 4
#67I 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.
Everyone wanted something better and each person had an idea of what better was.
bash became quite common because it's a superset and its' offered by GNU whose other tools made up for many other deficiencies in the various commercial UNIX implementations.
Then FreeBSD and Linux made GNU stuff the default and that was a big boost.
I tried fish couldn't really be bothered to persevere. A lot of the things I didn't like about bash were because I hadn't understood various bits and the more I know the more I find it fairly powerful and it has a kind of consistency. I don't love it but I found myself suddenly disempowered with things like fish.
Re: Fish 4
#68The 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.
I am no rust programmer though, and I don't think the rust code was very idiomatic.
But then again I apparently write c++ like a common lisp programmer...
Re: Fish 4
#69If you use Homebrew it’s not available there yet, but it’s being added. See https://github.com/Homebrew/homebrew-core/pull/209124 .