OOP, Was: C considered harmful: was Debian attacker may have used new exploit

Greg Franks rgfranks-cmaem7PIVQT44Nm34jS7GywD8/FfD2ys at public.gmane.org
Fri Dec 5 03:24:54 UTC 2003


>>>>> "Peter" == Peter L Peres <plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org> writes:

    Peter> On Thu, 4 Dec 2003, Greg Franks wrote:

    >> >>>>> "Marcus" == Marcus Brubaker <marcus.brubaker-H217xnMUJC0sA/PxXw9srA at public.gmane.org>
    >> writes:
    Marcus> To each their own opinion but if you want to do OOP then
    Marcus> there really isn't a better language out there than Java.
    >>  You forgot Smalltalk.  Everything is an object, even integers.

    Peter> Yes, and the processing overhead for an addition is about
    Peter> the same as for a square root extraction.

You're thinking of an old smalltalk (or bad implementation
perhaps...).  The interpreter should do somthing like...

if ( x & 8000000 ) {
   its an integer...
} else {
   its an object...
}

Otoh, sqrt() isn't as pokey as it used to be either :-)
-- 
   __@               Greg Franks              <|       _~@ __O 
 _`\<,_         Ottawa, Ontario, Canada        |O\   -^\<;^\<, 
(*)/ (*)                                       (*)--(*)%---/(*)
          "Where do you want to go today?"   Outside.  
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list