News for hackers. Stuff that matters.

dellorter

Re:Arena Allocator Tips and Tricks on Wednesday September 27, 2023 @04:38AM (#37671831)
If you overlay a struct in your buffer and derefrence a pointer to it you would be accessing something with a different type other than its declared type(char* as struct something *), so is strict aliasing violation

To do stay in the rules you could set up a void* to suitable region in a linkerscript

Re:Extend a C/C++ Project with Zig (2021) on Tuesday August 22, 2023 @11:40AM (#37224336)
It’s good to be a Zigger!
So the proto chinaman might not be from Africa?
I think something valuable is lost if everyone must present irrelevant identity information to combat false assumptions some may hold. At least for the crowd who want to primarily be associated with attributes that can be merited to their choosing.
I think some of the negativity towards identity is that it’s usually not something that can be merited as your doing and not usually relevant.

I understand this criticism, but think it’s a lost cause to point it out.

I don’t think it’s intended as such, but the particular phrasing as expressed could be misinterpreted as such. Therefore it should be expressed differently; don’t choose to differentiate based on attributes that shouldn’t make a difference for your message.