TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Fish – Update on the Rust port

335 pointsby rhimover 1 year ago

13 comments

cube2222over 1 year ago
1. It&#x27;s amazing that they&#x27;re doing this as a gradual C++ to Rust rewrite, while keeping it working end-to-end, if I understand correctly.<p>2. It&#x27;s amazing how quickly this is going.<p>3. If you haven&#x27;t tried fish yet, make sure to do so! It&#x27;s a really ergonomic shell and overall very pleasant to use, with good defaults (you don&#x27;t have to customize it, even though you can, for a great experience). I&#x27;ve switched from bash a couple years ago and haven&#x27;t looked back since.<p>Bonus: you won&#x27;t have to google how to write a for loop in bash ever again (which I, writing them rarely, and them being unintuitive enough, had to do every single time)!
评论 #38424578 未加载
评论 #38424683 未加载
评论 #38424205 未加载
frankjrover 1 year ago
More on the motivation behind the rewrite.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;fish-shell&#x2F;fish-shell&#x2F;pull&#x2F;9512#issuecomment-1410820102">https:&#x2F;&#x2F;github.com&#x2F;fish-shell&#x2F;fish-shell&#x2F;pull&#x2F;9512#issuecomm...</a>
评论 #38424378 未加载
评论 #38424383 未加载
3PSover 1 year ago
As someone who daily drives fish on ~4 different operating systems and loves it, I&#x27;ve been really excited about this rewrite and blown away by how fast it&#x27;s been progressing given the size and complexity of the codebase. It will also somewhat lower the barrier to contributing for a lot of people, including myself.<p>Another thing I&#x27;m very excited about, which has received less attention, is the planned future fish rewrite to use UTF-8 instead of wchar_t (typically UTF-16). UCS2 and UTF-16 have been a plague on software and fortunately Rust makes working with UTF-8 a breeze.
评论 #38424714 未加载
paradox460over 1 year ago
Fish is such an underrated shell. They make some very strong, opinionated choices (like ditching POSIX compatibility), and the end result is an extremely nice shell. I&#x27;ve been using it for a bit over a decade now, and still love it.<p>Fish shell scripting is also extremely pleasant to write, it feels like an ergonomic bash.<p>There are a few warts, as with any project, but none of them have ever actually ever blocked me from just getting what I wanted done.
ianschmitzover 1 year ago
As someone who uses zsh + spaceship, what benefits would I gain moving to fish as my main shell? I don’t write many bash scripts so the scripting side is less of a concern.
评论 #38425250 未加载
评论 #38426331 未加载
评论 #38430051 未加载
评论 #38427553 未加载
评论 #38426246 未加载
评论 #38461985 未加载
评论 #38430981 未加载
评论 #38425223 未加载
评论 #38425201 未加载
评论 #38425216 未加载
behnamohover 1 year ago
one of the fastest shells out there will probably get even faster. ever since I switched from zsh to fish, my terminal productivity has gone up a lot.
评论 #38424185 未加载
评论 #38424152 未加载
评论 #38424278 未加载
评论 #38424587 未加载
评论 #38425441 未加载
acheong08over 1 year ago
Been using fish for a year. Although I don’t like how they break compatibility with standards so that some scripts don’t work (gvm, nvm, etc), it has all the features I would usually set up manually with zsh. After trying to configure zsh a few different machines, I gave up and went for default fish on all of them.<p>It’s already working so well, not sure what there is to gain by porting to Rust. Security? If something can maliciously tamper with fish, it’s probably already on your system or am I missing something?
评论 #38430242 未加载
thowaway91234over 1 year ago
I love fish. Switch from ZSH+Prezto to just plain Fish and I&#x27;m not missing anything and it&#x27;s way faster. All the servers have bash and I still write bash scripts, but for day-to-day terminal stuff it&#x27;s Fish all the way for me.
chrysopraceover 1 year ago
I&#x27;ve always been curious about Fish, but was turned off by it not being POSIX-compliant. Is there anybody who can share their experiences with issues and workarounds in this area?
评论 #38427400 未加载
评论 #38457378 未加载
esafakover 1 year ago
Why, was the C++ codebase becoming unmanageable?
评论 #38424380 未加载
评论 #38424441 未加载
ochronusover 1 year ago
Oh! I missed this, what&#x27;s the original reason for doing the move? Any insight on this?
评论 #38430487 未加载
exxosover 1 year ago
So, what new features do we get from that? Except that it doesn&#x27;t work on Windows any more?
评论 #38424794 未加载
asylteltineover 1 year ago
I’m glad rust is replacing legacy languages like C and C++. It’s time to stop using memory unsafe language ffs!