Edit: He does mention it in passing but says he hasn't used it. Suggest that he does use it because it's a really useful tool and lots of the manual stuff he's doing is better done automatically.
The Lost Art of C Structure Packing (2014)
11–20 of 116 posts
Re: The Lost Art of C Structure Packing (2014)
#12It concerns me when a technique I've used this week is called a "lost art". I'd suggest putting a [NOOB] tag on this kind of post. Except ESR wrote this one. So maybe [FAUX-NOOB].
Re: The Lost Art of C Structure Packing (2014)
#13Sigh... apparently this is now enough of rocket science to be considered for posting on HN... People using packing pragma of GCC should also beware -- an access to a field of a packed structure will be done bytewise, whether a variable happens to be actually aligned or not (I guess the compiler simplified its life by assuming no variable is ever aligned in packet structs), so memory size would go down but CPU use mig…
Re: The Lost Art of C Structure Packing (2014)
#14Ah, yes. BUS ERROR: http://blog.jgc.org/2007/04/debugging-solaris-bus-error-caus...
Blast form the past, I remember Bus Errors from Solaris days.
Re: The Lost Art of C Structure Packing (2014)
#15Re: The Lost Art of C Structure Packing (2014)
#16It concerns me when a technique I've used this week is called a "lost art". I'd suggest putting a [NOOB] tag on this kind of post. Except ESR wrote this one. So maybe [FAUX-NOOB].
Re: The Lost Art of C Structure Packing (2014)
#17Ah, yes. BUS ERROR: http://blog.jgc.org/2007/04/debugging-solaris-bus-error-caus...
John Graham-Cumming that blog's author seems like an interesting guy, he's started something called 'Plan 28' to faithfully build Charles Babbage's Analytical Engine. He also wrote the Geek Atlas. Blast form the past, I remember Bus Errors from Solaris days.
Re: The Lost Art of C Structure Packing (2014)
#18It concerns me when a technique I've used this week is called a "lost art". I'd suggest putting a [NOOB] tag on this kind of post. Except ESR wrote this one. So maybe [FAUX-NOOB].