sryie
Joined 5 years ago
Joined 5 years ago
Rust can provide some guarantees but it still won't protect you from logic errors or a "clever" coworker. In comparison, zig is simple and at the end of the day readability is my best defense against bugs/errors.
There was an interesting comparison (and discussion) of zig vs rust safety a few months ago: https://news.ycombinator.com/item?id=26537693
I find myself agreeing with pron and others in that discussion when they say no one really wants to use a safe language. What they want are correct programs.
What remains to be seen is how easy it is to write correct programs in each and the values people place on the deltas between the two languages.
For battery life I think an average user can expect 5 to 6 hours. I use mine for about 5 hours with Firefox (around 10-20 tabs) and a few terminal processes and will still have about 20% remaining.
I like rust (I actually liked it from the start years ago). However, I believe that there are tradeoffs and the companies you named use other languages in addition to rust because they also believe there are tradeoffs.
Rust won't be the last language. I don't want to get too comfortable with what I know and miss out on what I don't. I am excited by new languages that may also have something to offer. However, I can't master them all so a good discussion is valuable and can offer shortcuts through the noise. I think my assumption in my first reply to your original post was that you were interested in the same thing. However, if you are happy with rust then I don't want to spoil your enjoyment.