A work whine
Oct. 14th, 2005 05:04 pmWeh. You know what sucks? Spending all week looking at an obscure multithready performance bug, that's what sucks. I suppose it's good that I now have a better understanding of the heap (there's one perprocess) and stacks (there's one per thread). I've also learned that you don't REALLY know for shit about your thread situation until you're running on a multi-CPU machine. But I don't know what is being synchronized on and thus ruining our scalability... no idea. :(
And yes! I would like some cheese with this. Goddamn it.
(I'm glad it's the weekend, by the way. I get to write a story about a transgression, for the writing class, but I found out this was the assignment only after I triple-promised myself to write a clean story this time. So I was like "Transgression! Woohoo, SEX WITH DEAD PEOPLE no wait I said I wouldn't do that." Ohhhhh well.)
And yes! I would like some cheese with this. Goddamn it.
(I'm glad it's the weekend, by the way. I get to write a story about a transgression, for the writing class, but I found out this was the assignment only after I triple-promised myself to write a clean story this time. So I was like "Transgression! Woohoo, SEX WITH DEAD PEOPLE no wait I said I wouldn't do that." Ohhhhh well.)
yay for stacks and heaps
Date: 2005-10-17 12:03 pm (UTC)I learned that in my new job, there really isn't going to be any need for dynamic memory allocation, and (since I'll be declaring everything statically) I can do all of my allocating on the stack, and worry less about memory leaks on the heap. I think this is generally the case when one is doing embedded programming.
Re: yay for stacks and heaps
Date: 2005-10-17 07:03 pm (UTC)I don't know of any other implications. But then I didn't know any of this stuff until late last week, so I'm sure there's a lot more I don't know.
In Java everything's on the heap and you still don't have to worry about memory leaks. :b Yayyyyyyyy GARBAGE COLLECTION!
Garbage collection scares me.
Date: 2005-10-19 08:37 am (UTC)Re: Garbage collection scares me.
Date: 2005-10-20 03:58 am (UTC)I have the opposite inclination. Memory management is something where there's a LOT of human error, and bugs can take forever to find. A program is much better at doing the necessary reference counting (or whatever other method) to see when something's no longer being referred to. I think others must agree with me, given just how many advances in C++ have led to more programmatic management of memory... I'm thinking STL, autopointers, COM.
You're right about losing some control though. My optimal language would have garbage collection, but it really would be forced to run when you asked it to. You should also be able to call the garbage collector on an object explicitly (it could still protect you by throwing an exception when there are still other references to that object).
no subject
Date: 2005-10-17 01:26 pm (UTC)Also, I do hope you didn't stick to your triple promise. :( Did everyone love your first one as much as I did?
no subject
Date: 2005-10-17 07:01 pm (UTC)And, I did. I wrote a story about a person with OCD who, in an emergency, goes through a doorway without the proper ritual... it was a bitch of a story to write, but I wanted something with positive external consequences and negative internal ones (and clean). Next week I'm allowed to go back to expressing my usual perverted self.