From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10ad19,23963231b5359f74 X-Google-Attributes: gid10ad19,public X-Google-Thread: 101deb,23963231b5359f74 X-Google-Attributes: gid101deb,public X-Google-Thread: 1073c2,23963231b5359f74 X-Google-Attributes: gid1073c2,public X-Google-Thread: 107a89,23963231b5359f74 X-Google-Attributes: gid107a89,public X-Google-Thread: 103376,23963231b5359f74 X-Google-Attributes: gid103376,public X-Google-Thread: 10a146,23963231b5359f74 X-Google-Attributes: gid10a146,public X-Google-ArrivalTime: 2001-06-07 03:16:27 PST Path: archiver1.google.com!newsfeed.google.com!postnews1.google.com!not-for-mail From: jrevusky@terra.es (Jonathan Revusky) Newsgroups: comp.lang.ada,comp.lang.awk,comp.lang.clarion,comp.lang.java.programmer,comp.lang.pl1,comp.lang.vrml Subject: Re: Long names are doom ? Date: 7 Jun 2001 03:16:26 -0700 Organization: http://groups.google.com/ Message-ID: <5d083b27.0106070216.274829f6@posting.google.com> References: <83WP6.3874$yc6.728572@news.xtra.co.nz> <+FWVg+noA0yk@eisner.encompasserve.org> <9fjfc4$qdv$1@news.fsu.edu> <9fjkha$re7$1@bugstomper.ihug.com.au> <9fkp2m$9gn$1@bugstomper.ihug.com.au> NNTP-Posting-Host: 217.126.34.171 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 991908987 1706 127.0.0.1 (7 Jun 2001 10:16:27 GMT) X-Complaints-To: groups-support@google.com NNTP-Posting-Date: 7 Jun 2001 10:16:27 GMT Xref: archiver1.google.com comp.lang.ada:8292 comp.lang.awk:2838 comp.lang.clarion:21290 comp.lang.java.programmer:74338 comp.lang.pl1:837 comp.lang.vrml:3578 Date: 2001-06-07T10:16:27+00:00 List-Id: Roedy Green wrote in message news:... > On Wed, 6 Jun 2001 18:18:29 +1000, "Blaikie" > wrote or quoted : > > >what makes u say reflection is so slow? > > Ask Jonathan Revusky about that, then watch the steam shoot from his > ears. He unsuccessfully tried to convince our boss from using > reflection in a project we both once worked on. Reflection is a fun > toy, suitable for bean boxes and the like where, but there are much > faster ways of handling the usual production cases. I didn't actually care so much about calls via reflection being slower (though I guess they must be and it is also something to worry about... a bit) but my concern was the tendency for the code to be very difficult to read or maintain. I think there is a tendency for the C hackers moving to Java to overuse reflection (once they discover it) because things like java.lang.reflect.Method can map perfectly in their minds to a C function pointer. Also, the C hackers aren't usually familiar enough with OO patterns to realize that you don't really need function pointers like that in Java. (Or at least hardly ever.) In C, the use of the function pointers also leads to very obfuscated, hard-to-maintain code, but that's really unavoidable. AFAICS it's the only way you get polymorphism in C. Jonathan Revusky -- available for Java/Delphi/Internet consulting If you want to... - make your .class files double-clickable with SmartJ - do Delphi/Java mixed programming with easy-to-use JNI wrapper classes - build robust web applications with the Niggle Application Framework then... check out the Revusky Hacks Page: http://www.revusky.com/hacks/