Live data from Hacker News

Fish 4

github.com

111–113 of 113 posts

Re: Fish 4

#111
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?

Beyond what others have said about superficial things like laying out code differently, remember that Rust encodes memory-safety-related information in types, function signatures etc that might not exist at all in a C/C++ "we hope you do it right, or it's UB" codebase.

Also, here's a code size tracker that counts tokens not lines, which is a better measure: https://github.com/rrethy/tcount

Re: Fish 4

#112
Tab completing "car" to "blkdiscard" just because I don't happen to have "cargo" in that $PATH is pretty nasty. How do I force tab completion to prefixes only?

Re: Fish 4

#113

Earlier quoted context omitted.

The better syntax used to be a selling point, but now with AI being able to generate any trivial one-liner and minor scripts you need on a day-to-day basics, have a bad syntax would only affect bigger projects, which I would not write in Fish shell anyway. It's a hard sell.

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.

To be fair, even local, small language models fare pretty well in such things (both explaining and writing).
Post reply on HN