[Prev][Next][Index][Thread]
Re: comments on Eiffel vs. Objective-C?
-
To: info-dylan@ai.mit.edu
-
Subject: Re: comments on Eiffel vs. Objective-C?
-
From: psuk@cincom.com (Peter Kwangjun Suk)
-
Date: Mon, 24 Apr 2000 12:30:02 -0400 (EDT)
-
Organization: Cincom Systems, Inc.
-
References: <B5221F9F.FA6%matt@ucsd.EDU> <B5237FB4.679%i.joyner@acm.org> <3901ABE7.8D0D2938@pandora.be> <39031b73.74375185@news2.one.net> <brucehoult-2404002110250001@bruce.bgh>
-
Reply-To: suk@pobox.com
-
Xref: traf.lcs.mit.edu comp.lang.eiffel:41019 comp.sys.next.programmer:38753 comp.lang.dylan:11914
On Mon, 24 Apr 2000 21:10:25 +1200, brucehoult@pobox.com (Bruce Hoult)
wrote:
>In article <39031b73.74375185@news2.one.net>, suk@pobox.com wrote:
>
>> Speed is simply no longer a universal factor in favoring static over
>> dynamic typing. This is an outdated myth. It is true only in
>> specific cases (image processing). It is not often true in developing
>> business client-server apps. In this case, you are often better off
>> using the dynamically typed language, but also profiling and writing
>> custom primitives or modules in C or Fortran. This gives one the best
>> of both worlds -- high level, elegant description of your problem
>> domain and close to the metal speed.
>
>Alternatively, you can write using a dynamic, no (or few) declarations,
>style in Dylan, profile the code, and incrementally insert declarations in
>the hot spots, once again getting "close to the metal speed", but without
>having to use more than one language and without having to write anything
>twice.
You can do something similar in Squeak. (Implement primitives using a
Smalltalk subset -> C translator) This approach of "Get it correct,
get it clean, then get it fast" is clearly the right way to go. At
user's group meetings, I always ask "who here has used a profiler?"
Of course, almost everyone raises their hand. Then I ask "Who has
never been surprised by the results?" They all go down.
This is usually enough to quiet the bit-bender types who insist on
writing everything to squeeze the last cycle from the get-go.
--
Peter Kwangjun Suk
Cincom Systems, Inc.
suk@pobox.com http://ostudio.swiki.net
(comp.lang.java.advocacy killfile poster-child -- Scene, not Herd!)
Follow-Ups:
References: