News for hackers. Stuff that matters.
Re:“What the Hardware Does” Is Not What Your Program Does: U... by scoutt on Monday July 15, 2019 @04:47AM (#20439093)
An 8-bit byte can hold 256 values, from 0 to 255, and cannot hold a value = 256, whatever the philosophy is.
Re:“What the Hardware Does” Is Not What Your Program Does: U... by ChrisSD on Monday July 15, 2019 @05:21AM (#20439211)
Read what dancek said again. In Rust `a..b` means

    a <= x < b
So 0..256 is

    0 <= x < 256
That is "less than" 256. There's no equals (that would be `0..=256` in Rust).
Re:“What the Hardware Does” Is Not What Your Program Does: U... by scoutt on Monday July 15, 2019 @05:49AM (#20439312)
Oh my....

Well, I guess the author realized about the confusion in every other non-Rust programmer it generates (https://git.ralfj.de/web.git/commitdiff/13622f8642fc071bedf3...).