News for hackers. Stuff that matters.
Re:Enumerating Core Undefined Behavior by quietbritishjim on Thursday January 30, 2020 @06:10AM (#22190550)
I can highly recommend "Programming Rust" by Jim Blandy. Personally I found it got to the differences from C/C++ a lot quicker than the official Rust book.

Of course Rust still has plenty of undefined behaviour, it is just restricted to unsafe blocks. (There are occasional exceptions, such as the infamous floating point cast bug [1].)

[1] https://github.com/rust-lang/rust/issues/10184

Re:Enumerating Core Undefined Behavior by taneq on Thursday January 30, 2020 @06:36AM (#22190659)
Thanks, I'll check it out!

I don't mind there being some UB (in fact sometimes it's necessary, especially as I eventually want to use it on embedded targets that need to do all sorts of weird memory jiggery-pokery). I don't even mind bugs; all software has bugs. What I want to move away from is a language which embraces widespread and subtle UB as a design philosophy.