-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
i've done a few of these! i have some code that cares a lot about three bits out of a byte and matches on them, but rustc/llvm doesn't figure out u8 greater than 7 are unreachable, this makes a very noticeable difference
-
also indexing an array of 8 elements with the same bounded integer, `THE_ARRAY.get(idx as usize).unwrap_or_else(unreachable_unchecked())` because the bounds check isn't eliminated, and it's also measurable :(
- 2 more replies
New conversation -
-
-
Rust is dressing up as C for Halloween?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I uh..I’ve actually done this unironically
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
That is actually much better than the inhabited enum hack that came before. This actually is very self explanatory.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.