Oddbean new post about | logout
 @Fe₂🦀₃⋅H₂🦀 ( 7,600 / 28,000 ) rust iterators confuse and scare me (c++ brainrot) (i love ranges just being normal objects) (that also induces template hell but whatever) 
 @loopy pedestrian✍🏿 it's pretty rare that you need something outside of range iterators in every day use. Also you should prefer those because they're good for CPU read prediction 
 @loopy pedestrian✍🏿 in most cases you should really just write code like a normie and the compiler will do a lot of optimization work for you 
 @Fe₂🦀₃⋅H₂🦀 ( 7,600 / 28,000 ) @loopy pedestrian✍🏿 this is what the Xbox one sdk said to do btw 
 @Pawlicker @loopy pedestrian✍🏿 I mean for example with ranges that compiles down to iterators which in turn compile down (in the case of contiguous memory) to pointer operations. So the end result is pointer arithmetic with straightforward memory access. I don't think you can get any faster than that. 
 @Pawlicker @loopy pedestrian✍🏿 or like how 733t hax0rs will do a bunch of weird conditional math shit to avoid branching and they just end up confusing both the compiler and processor which is now no longer capable of applying branch prediction