woboats: the 'static thing might be a bug, I forget
woboats: yeah that drop thing will go away
woboats
eddyb, cool. It happens to be exactly as expressive as I need right now :D
I'm a little concerned that it's kind of jagged though, seems hard to figure out what the rules are if for some reason you care.
eddyb
woboats: the weird rules are a result of carving a useful niche in a very limited system
i.e. we hope to simplify by extension, not add more rules
woboats
that makes sense
woboats has quit
ubsan joined the channel
scott has quit
woboats joined the channel
arielby joined the channel
AstralSorcerer has quit
cp has quit
nagisa_k is now known as
cp joined the channel
woboats has quit
GKholkar joined the channel
woboats joined the channel
woboats has quit
navidr joined the channel
Meto joined the channel
GKholkar has quit
nagisa_considers_UPS_sucky joined the channel
Meto has quit
nagisa_considers_UPS_sucky has quit
Meto joined the channel
Zoxc joined the channel
Meto has quit
nagisa joined the channel
lukaramu joined the channel
Ericson2314 has quit
Ericson2314 joined the channel
Ericson2314 has quit
Meto joined the channel
Ericson2314 joined the channel
brson joined the channel
GKholkar joined the channel
Meto has quit
jseyfried has quit
navidr has quit
GKholkar has quit
GKholkar joined the channel
G_Kholkar joined the channel
GKholkar has quit
niconii joined the channel
petson joined the channel
ubsan has quit
ubsan joined the channel
petson has quit
petson joined the channel
petson has quit
kosta joined the channel
kosta
0xFFFFFFFFu32 >> 32 panics / fails to compile with "bitshift exceeds the type's number of bits". Is that correct? I don't think 32 _exceeds_ 32, right?
Should I open an issue for that or is that expected behaviour?
steveklabnik
0-31, no?
32 is bigger than a u32
(in this sense)
kosta
0xFFFFFFFFu32 >> 31 == 1
If would expect
0xFFFFFFFFu32 >> 32 == 0
and then 0xFFFFFFFFu32 >> 33 to be an overflow
I'm pretty sure "the number of bits" in a u32 is 32, right? ;)
steveklabnik
:)
nagisa
kosta: shifting out all the bits is undefined on some hardware
kosta
Hm ok
nagisa
you might be able to work around it with wrapping_shr, I think?
playbot: 0xFFFFFFFFu32.wrapping_shr(32)
NOTICE: 4294967295
not
playbot: 0xFFFFFFFFu32.overflowing_shr(32) # might help though :)
NOTICE: error: incorrect close delimiter: `)`
NOTICE: (output truncated; full output at http://bit.ly/2oJBLrw)
playbot: 0xFFFFFFFFu32.overflowing_shr(32) // might help though :)