by alpaca128 · 5y ago · 0 comments
Edit: Also recommended: The Little Book of Rust Macros[2]
[0] https://docs.google.com/presentation/d/1q-c7UAyrUlM-eZyTo1pd...
I'll give a little background how that came about. At the time, I was promoting the use of Rust within Fuchsia. The team was largely composed of badass C++ programmers, who of course were very familiar with reasoning about programs in terms of exactly how things were laid out in memory. The official Rust documentation was at a more abstract level with respect to a lot of this stuff, in many case careful not to overspecify because a lot of the details of memory layout are not normative and may in fact change. In explaining the most common and important Rust data types, I found these kinds of diagrams useful, and it grew into the page you see there.
https://oldreddit.com/r/rust/comments/idwlqu/rust_memory_con...
Oh indeed. I visited the link while logged in, but to share links I make the pre-redesign explicit. I guess a mistake occured during that. Can't edit the post any more, but the fixed link is:
https://old.reddit.com/r/rust/comments/idwlqu/rust_memory_co...