6 ms·
One of the fish core devs here. You can ask me anything if you like. Happy to forward suggestions to the rest of the team. I've shared my opinions in the linked
by ComputerGuru 4y ago
One of the fish core devs here. You can ask me anything if you like. Happy to forward suggestions to the rest of the team. I've shared my opinions in the linked GitHub thread under the @mqudsi handle.
- doublepg23 4y agoThanks for working on the project! It’s essential on any of my Linux systems :-)
- ComputerGuru 4y agoYou are most welcome! The beautiful thing about fish is that it's truly cross-platform, even on really niche environments, so I can agree with you but change that to "on any *nix system" rather than just Linux alone :)
- doublepg23 4y agoI’ll have to give it a shot on my next OpenBSD install!
- Gigachad 4y agoI've never really looked in to Fish but this seems like some pretty exciting work. I'll be checking it out and considering switching from ZSH when it's done.
- warmwaffles 4y agoWhy not just switch now?
- Gigachad 4y agoFeature wise, I don't have any issues with zsh, but I'm always looking to trim down on the number insecure C components on my system.
- warmwaffles 4y agoJust give it a try for 1 month and re-evaluate. It's stable and reliable.
- twp 4y agoDirect questions, from a someone who knows that Rust has a lot to offer while also has experienced the pain of re-writes: 1. How do you propose to handle changes to fish while the re-write is in progress? Should fish/C++ stop evolving? See https://www.joelonsoftware.com/2000/04/06/things-you-should-never-do-part-i/ https://www.joelonsoftware.com/2000/04/06/things-you-should-... 2. Wouldn't this be better handled by a fork of the fish codebase with a shared language specification and test suite?
- ComputerGuru 4y agoThanks for the questions. They're the same ones I had when I was (separately) entertaining the same RIIR idea. 1. That's the primary concern I have right now. There's only so much bandwidth the team has to work on new features, bug fixes, and a rewrite port. Anything that requires cross-compilation-unit changes C++ side will probably be "that" much harder to do, or at least it'll add "that" much more friction to doing so. The pace of fish development isn't breakneck by any means, but it's still going to be something to keep in mind. The currently suggested module-by-module approach is a fairly good compromise (relying on FFI to bridge between the port and the original code), though it does mean that changing any "core" shared structure is going to have to be done twice (or three times, if you count C++ headers vs impls). If we elect to have a cpp-only 3.6.x around for some period of time receiving backports (maybe just completions, critical breakage, and security fixes?) that would of coures be yet another thing to keep in mind. I think this is probably going to be the most important question for the team to work out an answer to in the linked PR, with feedback from the community. 2. This is complicated by the fact that there really isn't much motivation to keep two versions of fish chugging along (possible cpp-only short-term branch excluded). The team is small, a greenfield rewrite of the project (rather than a port) is ill-advised due to the number of niche compatibility and quirk workarounds in fish core, and if you magically had a feature-parity rust port of fish available, I don't think anyone would really want to keep hacking away at the cpp version indefinitely. Fish never really saw great uptake as a scripting language (core fish devs are probably the only ones that have "fish scripts" tens of thousands of SLoC long) so it's just the "main interactive project" and the spec is "whatever the version of fish most used by our users currently does." It would probably be as much effort to define (other than via code and tests) "the fish spec" than it would be to rewrite or port it to rust in the first place. My greatest personal loss would be the nostalgia of running fish on systems that are truly from the 90s (as fish's once-serious now tongue-in-cheek slogan is "finally, a command line shell for the 90s"). But that might be a small price to pay for greater correctness, better maintainability, and more idiomatic code that's more welcoming to passing-by contributors.
- steveklabnik 4y agoOne of the common refrains is that the Rust community pushes people into doing these sorts of things. How many “you should rewrite it in Rust?!?!!” messages have you all received in the years? If you got any, how did they weigh in on this decision?
- mlindner 4y ago> One of the common refrains is that the Rust community pushes people into doing these sorts of things. Not the person you asked, but I've never seen anyone claim this happens before. Yes there's plenty of people pushing things to be rewritten in Rust, but those always fall on deaf ears and don't really accomplish much. Rust rewrites are always from an activist insider, or sometimes the repository maintainer themselves, pushing for the rewrite, not from any external people not associated with the project. It would be highly surprising to me if any external commentator pushing for a Rust rewrite has ever succeeded in convincing the maintainers to do so. That's just not how open source works.
- djur 4y agoAnecdotally I've seen plenty of people talk about the Rust-in-Linux endeavor like it was a gang of door-to-door missionaries that banged on old man Torvalds' door until he begrudgingly let them come in for a cup of coffee. I don't think people make a big distinction between "activist insiders" and "activist outsiders" in this context.
- mlindner 4y agoI'm not a part of the endeavor and only have looked in from the outside by reading some of the mailing list archives but it never looked to me like it was a result of what you describe. Torvalds was welcoming from the get go, even name dropping Rust years before the Rust-in-Linux endeavor even started (which likely helped prompt the endeavor in the first place). Here's what he said way back in August of 2016, just barely over a year after Rust hit 1.0 in May of 2015. https://www.infoworld.com/article/3109150/linux-at-25-linus-torvalds-on-the-evolution-and-future-of-linux.html https://www.infoworld.com/article/3109150/linux-at-25-linus-... > Q: What do you think of the projects currently underway to develop OS kernels in languages like Rust (touted for having built-in safeties that C does not)? > Linus Torvalds: That's not a new phenomenon at all. We've had the system people who used Modula-2 or Ada, and I have to say Rust looks a lot better than either of those two disasters. > I'm not convinced about Rust for an OS kernel (there's a lot more to system programming than the kernel, though), but at the same time there is no question that C has a lot of limitations.
- etienne_oq 4y agoThank you so much! Fish is my favorite shell. The way it deals with auto-completion and history is so elegant. It saves me so much time! Never going back to bash. Thanks again!