Re:Why Rust Is the Future of Game Development
by aw1621107 on Monday November 09, 2020 @08:52PM
(#25042081)
I'm curious; is the extra cmp something that's actually required by Rust's semantics, or is this more along the lines of an optimizer bug/missed optimization?
[ Parent
| on HN ]
Re:Why Rust Is the Future of Game Development
by ridiculous_fish on Monday November 09, 2020 @11:05PM
(#25042728)
This particular case is because array delegates to slice for Eq, and slice has the pointer comparison - though it looks like there's some churn here with 'guaranteed_eq' so it may be fixed soon [1].
1: https://doc.rust-lang.org/src/core/slice/mod.rs.html#6610
Re:Why Rust Is the Future of Game Development
by aw1621107 on Wednesday November 11, 2020 @01:32PM
(#25061232)
Ah, ok. Thanks for explaining!
Re:Why Rust Is the Future of Game Development
by pthariensflame on Monday November 09, 2020 @09:24PM
(#25042279)
The latter, definitely.