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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,42b96374c851ce5a X-Google-Attributes: gid103376,public From: "Jean-Pierre Rosen" Subject: Re: Ada for numerics computation (i.e. forget Fortran ?) Date: 1999/04/26 Message-ID: <7g1e20$t12$1@wanadoo.fr>#1/1 X-Deja-AN: 470982321 Content-Transfer-Encoding: 8bit References: <372083A1.45A5EB97@t-online.de> <7fqeua$ih8$1@pegasus.csx.cam.ac.uk> <8790bhslfz.fsf@bglbv.my-dejanews.com> <7fvbth$4m4$1@news.rz.uni-karlsruhe.de> <7fvpl8$mpm@drn.newsguy.com> Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0 X-Complaints-To: abuse@wanadoo.fr X-Trace: wanadoo.fr 925121408 29730 164.138.108.203 (26 Apr 1999 10:10:08 GMT) Organization: Adalog Mime-Version: 1.0 NNTP-Posting-Date: 26 Apr 1999 10:10:08 GMT Newsgroups: comp.lang.ada Date: 1999-04-26T10:10:08+00:00 List-Id: bill@ a �crit dans le message <7fvpl8$mpm@drn.newsguy.com>... [lot of interesting stuff deleted] Don't forget also the problem with arrays and dynamic allocation. Since every object is dynamically allocated, a 100x100 array of anything but simple types will require 10_000 dynamic allocations. Since there are NO multi-dimensionnal arrays (only arrays of arrays), even a 100x100 array of int will require 100 dynamic allocations. Moreover, the "array of arrays" paradigm has a very unfortunate consequence: if you clone an array of arrays, only the *first* dimension gets cloned, i.e. you get a array which is partially cloned, partially shared. Such a beast has neither a value nor a reference semantics! And since arrays have no definitions of their own, it is not possible to redefine a "clone", unless you package your array into something else. When I see benchmarks telling that Java is almost as fast as compiled code, I really wonder if the benchmarks included things like matrix operations... Does anyone have figures of Java efficiency in this area ? --------------------------------------------------------- J-P. Rosen (Rosen.Adalog@wanadoo.fr) Visit Adalog's web site at http://perso.wanadoo.fr/adalog