October 12, 2005

Where's my 6Ghz Pentium something-or-other?

It's been like 3 years since I got my P4 3.06Ghz and I'm a little confused.
I thought that there would be 6Ghz CPUs out on the market by now.

What was that thing about speeds allegedly doubling every 2 years?

The fastest thing I can get from dell these days is a P4 3.8Ghz ?

Did I miss a memo? Since when is a 25% increase a "doubling"?
Could AMD's PR rating/propaganda be right? Maybe it's not about the the Hertz? I'm so confused.

::sigh::

The real problem is that after years of buying a new twice as fast PC every few years, I've been conditioned to want a new (twice as fast) PC every few years.
Right now it's just not worth it. My 3.06Ghz is just fine. And I think that weirds me out more than anything else.



But that wont stop me from looking for a faster video card ;-)

Posted by Jason at 12:17 PM | Comments (1)

October 04, 2005

Inititializing static class members

How many times have you heard that "you must initialize static class members in the .cpp file"?
When my team leader (Ray) saw my previous post he immediately said, "well we have put the initialization in the .cpp file".
I smirked.

That near pavlovian response is somehow ingrained in the c++ programmer's collective subconscious. I can see how, most of us were taught that the class and function definitions go into the .h file while the implementation goes in the .cpp file. And the initializing of static member would definitely fall into the category of initialization.

Have you ever even tried to do it in the .h?

Never? really? that doesn't surprise me. But did you know that it's done all over the place in the ATL?
Think about it - the ATL resides almost entirely in .h files. The exception being WinMain/DllMain exports and some calloc/realloc/free wrappers.

And there are static class members in there ...

They're initialized in the .h file ...

And they compile ...

[insert spooky Halloween music here]

Posted by Jason at 09:41 AM | Comments (0)