From: "research@ijs.co.nz" <Craig Carey>
Subject: Re: Computer Language Shootout
Date: Sat, 03 Nov 2001 23:03:50 GMT
Date: 2001-11-03T23:03:50+00:00 [thread overview]
Message-ID: <i5o8utk2a8j407r4p7rc2v28iqjdjd1opf@4ax.com> (raw)
In-Reply-To: 3cvGlRhRXMpc@eisner.encompasserve.org
On 3 Nov 2001 08:49:27 -0600, Kilgallen@SpamCop.net (Larry Kilgallen)
wrote:
>In article <cQSE7.11173$xS6.15277@www.newsranger.com>, Ted Dennison<dennison@telepath.com> 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/
next prev parent reply other threads:[~2001-11-03 23:03 UTC|newest]
Thread overview: 87+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-20 15:56 Using "with function" Matt Raikes
2001-07-21 5:21 ` tmoran
2001-07-21 20:30 ` Mark Lundquist
2001-10-29 17:58 ` Matthew Heaney
2001-10-30 17:49 ` Mark Lundquist
2001-10-30 22:45 ` Steven Deller
2001-11-03 4:15 ` Mark Lundquist
2001-11-03 5:11 ` Computer Language Shootout Eric Merritt
2001-11-03 6:50 ` tmoran
2001-11-03 7:15 ` Al Christians
2001-11-03 8:52 ` martin.m.dowie
2001-11-03 14:04 ` Ted Dennison
2001-11-03 14:24 ` martin.m.dowie
2001-11-03 14:49 ` Larry Kilgallen
2001-11-03 23:03 ` research@ijs.co.nz [this message]
2001-11-04 6:39 ` tmoran
2001-11-04 13:44 ` Larry Kilgallen
2001-11-05 0:59 ` Adrian Hoe
2001-11-05 8:04 ` David Brown
2001-11-06 6:36 ` AG
2001-11-06 8:05 ` tmoran
2001-11-07 8:58 ` AG
2001-11-06 12:07 ` Larry Kilgallen
2001-11-07 6:19 ` Richard Riehle
2001-11-04 15:59 ` Preben Randhol
2001-11-04 20:04 ` martin.m.dowie
2001-10-31 7:00 ` Using "with function" Richard Riehle
2001-10-31 15:58 ` Matthew Heaney
-- strict thread matches above, loose matches on Subject: below --
2003-07-11 12:05 Computer Language Shootout Craig Carey
2003-07-11 12:18 ` Preben Randhol
2003-07-11 12:50 ` Preben Randhol
2003-07-15 15:15 ` Matthew Heaney
2003-07-15 23:46 ` Robert I. Eachus
2003-07-16 4:37 ` Matthew Heaney
2003-07-16 18:01 ` Robert I. Eachus
2003-07-16 21:35 ` Matthew Heaney
2003-07-17 9:38 ` Preben Randhol
2003-07-17 16:29 ` Wesley Groleau
2003-07-17 17:36 ` Jean-Pierre Rosen
2003-07-17 20:56 ` Preben Randhol
2003-07-17 21:47 ` Robert A Duff
2003-07-18 18:04 ` Robert Spooner
2003-07-18 18:48 ` David C. Hoos
2003-07-19 9:51 ` Preben Randhol
2003-07-21 7:21 ` Jean-Pierre Rosen
2003-07-23 20:34 ` Robert Spooner
2003-07-23 22:22 ` Robert I. Eachus
2003-07-18 21:22 ` Pascal Obry
2003-07-19 19:04 ` Robert A Duff
2003-07-19 21:29 ` Pascal Obry
2003-07-19 23:14 ` Samuel Tardieu
2003-07-20 0:26 ` Robert I. Eachus
2003-07-20 8:44 ` Samuel Tardieu
2003-07-20 13:28 ` Robert I. Eachus
2003-07-20 17:10 ` Samuel Tardieu
2003-07-20 22:43 ` Robert I. Eachus
2003-07-21 8:31 ` Samuel Tardieu
2003-07-21 14:39 ` Hyman Rosen
2003-07-21 15:23 ` Samuel Tardieu
2003-07-21 15:46 ` Hyman Rosen
2003-07-21 16:09 ` tmoran
2003-07-21 17:52 ` Hyman Rosen
2003-07-21 16:14 ` Samuel Tardieu
2003-07-21 17:55 ` Hyman Rosen
2003-07-22 9:07 ` Preben Randhol
2003-07-22 13:21 ` Hyman Rosen
2003-07-23 9:28 ` Preben Randhol
2003-07-23 9:42 ` Vinzent Hoefler
2003-07-23 10:35 ` Preben Randhol
2003-07-23 22:19 ` Randy Brukardt
2003-07-21 8:53 ` Dmitry A. Kazakov
2003-07-21 11:00 ` Jeffrey Creem
2003-07-21 13:39 ` Dmitry A. Kazakov
2003-07-17 23:32 ` Wesley Groleau
2003-07-18 7:36 ` Dmitry A. Kazakov
2003-07-18 8:05 ` Thomas Wolf
2003-07-18 9:11 ` Jean-Pierre Rosen
2003-07-18 17:31 ` Matthew Heaney
2003-07-17 20:53 ` Preben Randhol
2003-07-17 23:36 ` Wesley Groleau
2003-07-16 7:11 ` Preben Randhol
2003-07-11 21:58 ` Matthew Heaney
2003-07-14 18:46 ` Matthew Heaney
2003-07-14 23:08 ` Matthew Heaney
2003-07-16 3:20 ` Isaac Gouy
2003-07-16 4:42 ` Matthew Heaney
2003-07-16 15:27 ` Isaac Gouy
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox