A good blog can surely lead to all of what you're mentioning, but personally I wouldn't get into blogging with high expectations of any such benefit.
20 karma · joined February 6, 2022
A good blog can surely lead to all of what you're mentioning, but personally I wouldn't get into blogging with high expectations of any such benefit.
Q: when is an appropriate time to cast your loved ones entirely in wax?
A: When you are ready to make a commitment to them.
That said, I like the product, and I think it has a lot of potential.
Just like you, I do prefer the "learn while you build" approach. My personal experience has been that the book is a nice addition to reference-style books, such as the one you mentioned.
1: https://www.oreilly.com/library/view/command-line-rust/97810...
> Can't do that either I'm afraid for much the same reason, need to memcpy over the memory and trust the compiler to elide said copy
Would this apply even to mmap-ed memory? Especially for the bit you're quoting, I guess it can be fixed with a union (or even by using the same struct for both purposes). But since the TAlloc_malloc function returns a pointer to void *, to a location in memory that hasn't been used for any other purposes, perhaps this isn't a violation?
On another note, I was playing around a bit with strict aliasing rules, and oddly enough, the compiler that ships with Monterey (ARM mac) shows no warnings even for code that violates the rules blatantly. Same code threw a warning with GCC (I used an online compiler).
The memory allocator I wrote doesn't throw any warnings using GCC either, but I guess that doesn't mean much.