In fact, some of Nu’s users already use it as their daily driver happily. Jonathan: we’re quickly approaching when you’ll be able to use Nu as your default shell. I saw this tweet the other day which I thought sums it up pretty well: Source: Dan Luu Where does NuShell stand compared to others like zsh or fish? As of today, can I set it as my default shell? That said, what it means to be compatible has changed a lot from the original ideas. That’s fair, it’s annoying to unlearn habits. Generally, I think they mean “don’t break my muscle memory”. Jonathan: When people ask for POSIX-compliance, I think different people mean different things. On the other hand, trying to make our syntax perfectly compliant with the POSIX standard would introduce all kinds of weird decades-old cruft and constrain the ergonomics of our syntax. If you want to run a POSIX shell script in nu, you can just run it with bash or sh. When people say that a shell is “POSIX compliant”, they’re talking about a tiny subset of the syntax and features that people come to rely on in a shell. Yehuda: This question is a little bit misleading in my opinion. Why did you decide to ignore POSIX-compliance? We’ll also likely explore making Nu work in the browser in the future, which would mean WASM support, and Rust is probably the best language for that as well. Like Yehuda mentions, most crates work across Windows, macOS, and Linux. Jonathan: Rust is definitely my preferred tool for crossplatform development these days. Most of the time, crates that claim to care about Windows support Windows, as well as other platforms. What you do is look for crates on crates.io that support Windows. How do you go about making software cross-platform in Rust? Is it as much work as one would think? Rust also has a great package manager (Cargo), which means that gluing together fast, cross-platform, and rigorous packages from the ecosystem is really easy. When writing something like a shell, this saved us from all kinds of problems as we evolved. Instead, Rust’s library ecosystem surfaces edge-cases as Results.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |