Live data from Hacker News

Fish 4.0: The Fish of Theseus

fishshell.com

191–200 of 204 posts

Re: Fish 4.0: The Fish of Theseus

#192
post #112

Earlier quoted context omitted.

Absolutely. Staying within an order of magnitude for a project of this size is just really good eyeballing. :)

It's actually not fair to judge this one way or the other at the two year mark. We technically removed the last C++ code from the core project in January 2024 (~a year ago), the last C++ code altogether (a test helper) in June 2024 (six months ago). We only decided to push out a release now because we've added enough new features (not counting the rewrite as a feature) to warrant a release. But at the same time, some…

There may not be use for you, but there's use for me, because I've been doing this for a while and I understand the scale and complexity of such a project, and to see you pulling it off in such a short time scale is impressive. I'm impressed.

Makes me reconsider fish :)

Re: Fish 4.0: The Fish of Theseus

#193

Earlier quoted context omitted.

I know rust-fish is being used on at least some non-x86_64 non-aarch64 routers because we've accepted patches by those users to make it build on platforms without native 64-bit CAS.

IIUC lacking 64-bit CAS is an example of a place where on the surface the Rust situation looks worse than C++ but that's misleading In this scenario C++ will provide "atomic" types that are just locking - they work but they don't have the behaviour you presumably wanted - and Rust will say OK, there's no 64-bit CAS so you can't have these features. If all you actually needed was a type that has apparently atomic beha…

Interesting perspective. In our case, we accepted a patch to effectively use a lock around a 64-bit integer as the workaround for these platforms, however.

Re: Fish 4.0: The Fish of Theseus

#194
post #188
post #96

Earlier quoted context omitted.

Take some agency for yourself. https://github.com/search?q=repo%3Afish-shell%2Ffish-shell%2... That agency includes interpreting the search results alongside the reply to your original comment.

Your snobby message didn’t help. This is for completion of ollama cli tool itself. I did search and couldn’t find the docs. Maybe the person responding to me also not understanding what I want. I want to prompt a tiny model for completion

You can do that in your own custom completion.

Re: Fish 4.0: The Fish of Theseus

#195
post #188
post #96

Earlier quoted context omitted.

Take some agency for yourself. https://github.com/search?q=repo%3Afish-shell%2Ffish-shell%2... That agency includes interpreting the search results alongside the reply to your original comment.

Your snobby message didn’t help. This is for completion of ollama cli tool itself. I did search and couldn’t find the docs. Maybe the person responding to me also not understanding what I want. I want to prompt a tiny model for completion

> Maybe the person responding to me also not understanding what I want

By asking for the docs? If you found that file already then it’s clear they misunderstood what you are looking for, and also that what you are looking for doesn’t exist.

Re: Fish 4.0: The Fish of Theseus

#196

Earlier quoted context omitted.

If you’re using WSL, why use Cygwin?

If you're at a very large corporation, Cygwin could have been approved decades ago, but WSL is still going through "auditing". WSL is still new enough that bureuocratic organizations haven't satisfied themselves enough that it can be secured or are just plain stubborn enough to not want the hassle. I refuse to work at large companies for this reason, but one company I worked for brought on a large American bank as a…

How did that saga end?

Re: Fish 4.0: The Fish of Theseus

#197
post #190
post #183

Earlier quoted context omitted.

Good, that is the correct way to format code. - There are only two strategies and the algorithm to choose between them is trivial for a human to compute. This makes for way better readability, you can reliably predict where the next call/argument is going to be positioned. - Refactoring becomes easier - moving an argument is now a simple `Line up` editor action. - Source control diffs become more stable across change…

Quite the opposite — it blows up the diffs: You rename a method, now it's a few chars shorter/longer, and some 1-liner call sites can become completely rewritten to the vertical style or vice versa. You delete a single line, now the expression can fit under a threshold, and the whole block is spaghettified (especially terrible when deleting a struct field). You wrap code in an if{}, which could have been a clean whit…

Well your comment just emphasizes how overdue semantic diffing is, really.

Re: Fish 4.0: The Fish of Theseus

#198

Earlier quoted context omitted.

Interesting, I went the other way about 7 years ago - switched from fish to zsh (initially with oh-my-zsh). The interactive experience was similar enough on both shells, and the performance was great on fish and okay-ish on zsh, but two things won me over: 1. With zsh, I can copy-paste some bash snippet and in 99% of cases it will just work. Aside of copy-pasting from StackExchange, I also know a lot of bash syntax b…

FWIW, fish is much more bash-compatible these days. We've introduced support for a lot of bash-isms that don't completely break the fish spirit or clash with its syntax in the last few releases.

Thanks! I'm trying fish once in a while, and currently, the following are missing:

    $ cat 

Re: Fish 4.0: The Fish of Theseus

#199
post #191

It seems the upgrade to 4.0 isn't available from Homebrew yet (brew upgrade fish -> Warning: fish 3.7.1 already installed)

`git -C (brew --cache --HEAD fish) fetch --tags` and `brew install --HEAD --fetch-HEAD fish` seems to do the trick for now, just be prepared to wait awhile for it to build

Re: Fish 4.0: The Fish of Theseus

#200

I use the shell a lot every day, mainly bash and some ash (alpine). Does something like fish make the experience a bit smoother? is it pretty easy to get into?

To answer your first question specifically, yes. With fish you get substantial ergonomic improvements over bash and ash out of the box. There's also a very minimal learning curve since these features build on familiar idioms. There are some differences with fish as a language that take some getting used to, but bash is always one command away if needed for more complex stuff. It's absolutely worth a test drive to see…

set it to default on my laptop. the prompt was a bit noisy by default, and a bit too colourful, but it was very easy to configure. the autocomplete has also helped me out a few times already, much nicer than bash's
Post reply on HN