5 ms·
Which is amazing, because Rust comes with more safety guarantees.
by dleslie 3y ago
Which is amazing, because Rust comes with more safety guarantees.
- bsder 3y agoWhy is this amazing? One would expect the language with more restrictions to compile to faster code, no?
- xyproto 3y agoSome restrictions aids performance, but checking that pointers have not run wild like elphants in a porcelain shop requires extra checks, which takes time.
- worik 3y ago> elphants in a porcelain shop Slander. Elephants are gentle, careful creatures. Probably would make good proprietors of a porcelain shop. Unlike bulls and china shops....
- rascul 3y ago> Unlike bulls and china shops.... Steers are probably OK though https://www.youtube.com/watch?v=iv-HjTkbBwk https://www.youtube.com/watch?v=iv-HjTkbBwk
- pjz 3y agoDon't you guys watch Mythbusters? https://www.youtube.com/watch?v=Xzw2iBmRsjs https://www.youtube.com/watch?v=Xzw2iBmRsjs (Mythbusters bust 'bull in a china shop stereotype')
- deleted 3y ago[deleted]
- simias 3y agoOnly if the restrictions are static and don't need to be checked dynamically, naturally. For dynamic arrays or dynamic indices it's not always possible to do that in Rust.