Under the hood: Vec
marma.dev
Under the hood: Vec
1–10 of 142 posts
Re: Under the hood: Vec<T>
#2Re: Under the hood: Vec<T>
#3Re: Under the hood: Vec<T>
#4Tangent but nice web design.
Re: Under the hood: Vec<T>
#5Re: Under the hood: Vec<T>
#6Re: Under the hood: Vec<T>
#7Re: Under the hood: Vec<T>
#8related: https://doc.rust-lang.org/nomicon/vec/vec.html
Re: Under the hood: Vec<T>
#9I love how it shows that you can have both performance and safety without jumping through hoops. The little details of memory management really shape how we end up writing code, often without even noticing. Rust makes it possible to get close to the hardware while still keeping you out of the usual trouble spots. It’s one of those things you appreciate more the longer you use it
From what I heard online I was expecting it to be a lot harder to understand!
The moving/borrowing/stack/heap stuff isn't simple by any means, and I'm sure as I go it will get even harder, but it's just not as daunting as I'd expected
It helps that I love compiler errors and Rust is full of them :D Every error the compiler catches is an error my QA/users don't
Re: Under the hood: Vec<T>
#10While safe Rust may be relatively simple to write, and certainly easier to write than safe C, this article has someone added to my belief that unsafe Rust is far too difficult to write. Perhaps some of this is deliberate, as a kind of defence mechanism against people using it willy-nilly, it still seems over-designed.