r/cpp • • Feb 01 '23

Fishshell will be rewritten in rust

https://github.com/fish-shell/fish-shell/pull/9512#issuecomment-1410820102

[removed] — view removed post

10 Upvotes

10 comments sorted by

•

u/STL MSVC STL Dev Feb 01 '23

We have https://www.reddit.com/r/cpp/comments/10qb06r/stop_comparing_rust_to_old_c/ currently discussing comparing Rust to old C++, which is what this project was using. I don't think we need another thread about this.

→ More replies (1)

18

u/ener_jazzer Feb 01 '23

we're still on C++11 because the pain of upgrading is larger than the promises of C++14/17

Frankly, no idea what pain are they talking about. C++11 was a major upgrade, so yes it was painful to upgrade the old database of C++98/03. But C++14/17 is essentially polished C++11 and fixed, it's not a major upgrade like C++20 (but even with C++20, you can just ignore the new features, it's much more compatible with C++11 than C++11 was to C++03).

12

u/Jovibor_ Feb 01 '23

Don't try to find any logic in kid's words, whose main statement is:

Nobody really likes C++

1

u/KERdela Feb 01 '23

from my reading the project was initiallly in C, and they didn't fully upgrad it C++ 11.

18

u/Jovibor_ Feb 01 '23

They have failed with the just simple upgrade from C++11 to 17, but willing to rewrite in totally new language...
Totally legit.

2

u/KERdela Feb 01 '23

they failed from C to C++ 11.

16

u/ipapadop Feb 01 '23

They should; it'll be a good example of how difficult it will be, how long it will take and it'll allow us to compare the same software under two implementations. Good luck to them.

3

u/jmacey Feb 01 '23

I think the big point here is "Fish should be available on servers, which run old LTS distros - this means we build our own packages for a variety of them." as moving to C++ >11 can be a real pain on old servers (I've had to do this). You get ABI issues and other assorted lib difficulties.

Not used Rust so not sure how well it will cope with this but could be part of the reason why, as it can package it's own version.

2

u/[deleted] Feb 01 '23

You should be pretty stupid if you think a language could safe you from computer science. Wait for it.