HNHacker News
TopNewBestAskShowJobs

tboneatx

10 karma · joined July 23, 2012

submissionscomments
tboneatx··on Kids These Days
How is that a downside?
tboneatx··on Thor – A minimalistic operating system in assembly and C++
I agree 100% with Linus, especially the boost comment. It was heavily used in a project I worked on and "boost" soon became a curse word.
tboneatx··on The Lost Art of C Structure Packing (2014)
Knowing about struct memory alignment can come in in very handy when reverse-engineering 3rd party binary protocols. Often you come across many "unknown" bytes which turned out they were just padding because of 4 byte struct alignment and could be discarded. Saved a bunch of time not having to try to figure out what they were.
tboneatx··on To become a good C programmer (2011)
Definitely C, and you will also need to know a fair bit of assembly. Also familiar yourself with the PE (portable executable) format and learn how to use IDA disassembler and possibly SoftICE (Not sure if it still works, but it was/is a very powerful kernel debugger)
tboneatx··on How to C in 2016
Are not all the local variables allocated on the stack in the function prologue anyway? no matter where in the function they are defined. A typical function starts with subtracting the stackpointer to make space for the local variables if i'm not mistaken.
tboneatx··on Should kids learn to code?
That's what I always say too. I built our whole house myself. The same process applies: Split project into parts, find out how to do each part, do them. And once in a while you have a code review (inspector, building code) haha :)
tboneatx··on When Random Isn't Random Enough: Lessons from an Online Poker Exploit
Yeah, I remember that. :)