On Wed, 28 May 2014 22:38:55 -0400, Jesse Phillips
On Wednesday, 28 May 2014 at 04:48:11 UTC, Jesse Phillips wrote:
I did a translation of most of the code in the slides.
I'm planning to transform it into blog post (or series). Right now it
just has some scratch notes. Feel free to let me know everything I got
Hoping someone can confirm or deny this thought.
int x2prime = void; // (at global scope)
Since x2prime is module variable, I would expect that the compiler will
always initialize this to 0 since there isn't really a performance hit.
Or is using void guarantee it won't get initialized (so much value in
IIRC, the entire section of global TLS data is initialized, and is all
contiguous memory, so it would be anti-performant to initialize all but 4
int b = void; // also initialized to 0.
This is because X must blit an init for a, and it would be silly to go
through the trouble of blitting X.init to a, but not b. Especially, for
instance, if you had an array of X (you'd have to blit every other int!)