by kazinator · 3y ago · 0 comments
There are almost no application domains in which you need to conform to some insane borrowing protocol for the entire software.
Your analogy is stupid beyond belief; and terms of the safety of the circuit itself that is behind the outlet, yes I can plug in anything without worrying there will be a fire in the wall. I live in the first world, where we have electrical codes and circuit breakers.
You can't plug a device that pulls 10kW into a plug and have it work, because the circuit breaker stops you from overloading your circuits. You can't plug in a device that attaches the live to your left hand and the neutral to your right, immediately stopping your heart, because such a device is forbidden by electrical codes, and everyone who makes electrical devices has to follow these.
Or, else, what is your point?
For some software (eg browsers, operating systems), time spent making our programs correct and fast is worth the effort.
Good luck with a browser without javascript.
> Ownership is completely inadequate for operating systems.
The linux kernel is adding rust support as a first class language. In time I wouldn't be surprised if large parts of the linux kernel were written in rust. Obviously linux will always have a lot of unsafe code, but unsafe is part of rust too. Its surprising how infrequently you need it.
[1] https://security.googleblog.com/2023/01/supporting-use-of-ru...
Borrowing Through Faith
Rust Prevails!
You basically just have to readjust their blinders.