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,FROM_ADDR_WS, LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,189a28164788ed2e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-03 15:04:06 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!howland.erols.net!netnews.com!xfer02.netnews.com!newsfeed1.cidera.com!Cidera!border1.nntp.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!news2.aus1.giganews.com.POSTED!news.clear.net.nz From: "research@ijs.co.nz" Newsgroups: comp.lang.ada Subject: Re: Computer Language Shootout Message-ID: References: <3cvGlRhRXMpc@eisner.encompasserve.org> X-Newsreader: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Organization: Customer of Mercury Telecommunications Ltd Cache-Post-Path: drone4.qsi.net.nz!unknown@dial1-acc-skyt-118.quicksilver.net.nz X-Cache: nntpcache 2.4.0b3 (see http://www.nntpcache.org/) X-Original-NNTP-Posting-Host: drone4-svc-skyt.qsi.net.nz X-Original-Trace: 4 Nov 2001 12:03:46 +1300, drone4-svc-skyt.qsi.net.nz NNTP-Posting-Date: Sat, 03 Nov 2001 17:03:50 CST X-Trace: sv3-KL4wOyjhXL/CdO6eLGWUD1k9LHjJ4yvsYe/zVfRCfGV3iOUyRXUeuDZSpCip8Q0MAJ0jIH4SqZxbhQ5!t4xkBJpZOWtv5QbX8xf3JUz54nIzyHXQRd7F5x7oWskqnlyIpPqVMi4q2xxdGDK7ea/KFc6JOVYg!NhQ2pw== X-Complaints-To: abuse@GigaNews.Com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly Date: Sat, 03 Nov 2001 23:03:50 GMT Xref: archiver1.google.com comp.lang.ada:15750 Date: 2001-11-03T23:03:50+00:00 List-Id: On 3 Nov 2001 08:49:27 -0600, Kilgallen@SpamCop.net (Larry Kilgallen) wrote: >In article , Ted Dennison writes: > >> The last time I read over that, its goals, methods, and conclusions >> seemed so bogus that I didn't think it was worth participating. The >> ideal language for them would be some compiled form of APL. Anything >> that proports to compare languages in a general way and is stilted >> towards APL isn't worth my time. > >Hey, at least they are at the proper end of the alphabet :-) > >Seriously, anything that gets the Ada name out there as being current >is worthwhile. If Ada comes out dead last in the terseness competition >it will attract favorable notice from those who have ever had to read >obfuscated code. For the 'echo server' shootout, I coded up a solution, and Ada 95 was going to be last since 251 lines long. This is the page on the "echo server" shootout: the programs are expected to fork (or multitask) and both send and receive bytes: http://www.bagley.org/~doug/shootout/bench/echo/ Adasockets could be replaced with the newly available GNAT Sockets code. But that maybe would not make the code smaller. http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/g-socket.ads?rev=1.2&content-type=text/x-cvsweb-markup The lengthiest entry, the (forking) g++ code was about 129 lines long. Maybe the G++ entry could produce zombies or core-dumps at run time: int sigchld = 0; void reaper (int sig) { sigchld = 1; } ... signal(SIGCHLD, reaper); if ((pid = fork()) == -1) sysabort("server/fork"); The Ruby solution is about 29 lines long. Ruby might even be initialising Winsockets (which could add maybe another 97 non-comment lines to any Ada 'echo' entry (bringing the total to just over 300 lines). I can e-mail out my echo server code to anybody else interested in having Ada compete (i.e. lose) under a clean adjective-free ["stilted .. APL"] test where pairs of integers are compared. The shootout could be altered (a committee investigates; hack his site?), and these can be the new requirements * code must be fast with 0 run time error problems, when running on a slow CPU (this can eliminate Java easily: run time socket I/O errors creep in and make it maybe 5 times slower than Ada) * multitasking, requeue statements of each language demonstrated. * portability to Windows operating systems and no forking. * assembly inlining tests I see that there is a TCP Stack coded in Java now: http://www.websprocket.com/