Slashdot Mirror


User: st.kitts

st.kitts's activity in the archive.

Stories
0
Comments
4
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 4

  1. Re:STL downsides on Downsides to the C++ STL? · · Score: 1

    Solved easily by specialization. You should do something like:

    template <class T>
    list { /*...*/};

    template <>
    list <void*> { /* specialize for void* */ };

    template <class T>
    list<T*> : private list<void*> {
    typedef list<void*> Base;
    /* Forward all operations to Base */
    };

    Infact, Stroustrup talks extensively about this technique which he himself has applied a lot. In fact this technique can be applied to all classes which need to hold pointers. One more way to avoid code bloat is to place all operations that don't depend on templated type in a common base class and then derive your template class from this. This way you won't have multiple copies of functions, data members etc which don't depend on the template type.

  2. Re:More like lukewarm on Hot New Silicon Graphics Workstations · · Score: 1

    This is for Spec CFP 2000 (i.e. floating point). I picked the SGI Origin 3200, which has a similar processor (although I'm not sure if its identical or not).

    SpecInt or SpecFP don't matter a lot for these machines as mostly they are pumping lots of data through the bus. Look at the Specrate (measures throughput) for these machines. SGI kicks ass :-)

  3. Re:Can't wait... on RedHat 7.2 Beta: Roswell · · Score: 1

    How about fixing this ?
    http://bugzilla.redhat.com/bugzilla/show_bug.cgi?i d=48835

    You guys ship a non-standard compiler on the grounds that it's better. But if this compiler crashes on legal code (which compiles on fine with gcc-2.95.3), what options do we have ?

    There are more people worried about things other than whether KDE ccompiles or not.

  4. Stay away from Telocity on Telocity Wants Its Gateways Back · · Score: 1

    Like many others here, I was a telocity customer for a month. It took them a month to set up the service. Since I moved after a month, I terminated the service. But I still have the gateway. And guess what, I was charged $50 for this month also even though I had explicitly asked them to remove my service. When I called (waited for about an hour or so on the phone), I was told that since I didn't call 10 days before my billing cycle, I would be charged for this month also. Now I can't even use this box as I have a different phone number. I am using it as a pedestal for my laptop.

    I do hope that they send the airbill soon enough that I don't have to pay $499 (only) :-(