From: tjj@ssc-vax.UUCP (T J Jardine)
Subject: Re: Fortran better than Lisp for numerical code?
Date: Wed, 20-Mar-85 16:04:15 EST [thread overview]
Date: Wed Mar 20 16:04:15 1985
Message-ID: <537@ssc-vax.UUCP> (raw)
In-Reply-To: 3829@mit-eddie.UUCP
> There has been much discussion of late about comparing Lisp and Fortran
> for numerical code. Many people have either stated or implied that
> Fortran should be better for number crunching than Lisp. Why do people
> believe that? Why should a Fortran compiler produce any better code for
> A=B*C
> than a Lisp compiler would produce for
> (setq a (* B C))
> (assuming, in the latter case, appropriate declarations or use of
> non-generic functions)? ...
I won't try to speak about what others mean, but I know that what I mean when
I say that Fortran is "better" for numeric computations has nothing to do at
all with a=b*c or its ilk. Certainly with appropriate attention to detail
Lisp can handle (setq a (* b c)) with just as much efficiency. Fortran (or
Pascal, ...) is a more appropriate choice if the numeric computations are at
a higher level, such as the computations involved in simulating the flight
dynamics of an air vehicle, or in solving celestial navigation problems. In
such a case the optimum is that the problem solution already exists and one
must "link" to the solution and obtain its results. In a slightly less
optimal situation a library of subroutines/functions exists which need to be
coupled in some obvious way and then this coupling "linked" to the Lisp
environment to obtain the solution.
The point is, I believe, that just because we have Lisp, or a new "AI problem
solving approach" does not mean that we should reinvent all problem solutions
using this new approach. Decision tables still provide an effective problem
solving tool for certain classes of problems -- why not use such a capability
when it is applicable? It may be the case that other factors will influence
us to rewrite a solution using our new tool or approach -- I hope I don't ever
have to write another communications control program in COBOL, for example,
although COBOL was indeed capable of handling the particular problem at the
time. By the way, double precision floating point is the default in Franz
Lisp (I haven't yet found a way to create a single precision variable, but
haven't pursued it that far), and I know double precision is also available in
Zetalisp. The list very likely larger than just those two -- Common Lisp
probably has it.
Ted Jardine
TJ (with Amazing Grace) The Piper
Boeing Artificial Intelligence Center
...uw-beaver!ssc-vax!bcsaic!ted
--
TJ (with Amazing Grace) The Piper
Boeing Artificial Intelligence Center
...uw-beaver!ssc-vax!bcsaic!ted
next prev parent reply other threads:[~1985-03-20 21:04 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
1985-02-14 15:59 Thus spake the DoD Frederick J Dickey
1985-02-17 1:58 ` Robert Hofkin
1985-02-17 16:36 ` g-frank
1985-02-18 5:18 ` Skef Wholey
1985-02-18 14:33 ` Chuck Hedrick
1985-02-19 19:09 ` Daniel J. Salomon
1985-02-22 2:21 ` LISP &c (re: the DoD...) Thomas M. Breuel
1985-02-25 17:08 ` Thus spake the DoD Jan Steinman
1985-02-26 23:20 ` Stanley Shebs
1985-02-27 19:22 ` Daniel J. Salomon
1985-03-01 19:30 ` Stanley Shebs
1985-03-01 20:13 ` neves
1985-03-02 4:33 ` Thomas M. Breuel
1985-03-02 18:35 ` Efficiency of LISP Marty Sasaki
1985-03-03 0:23 ` Language criticism Greg Davidson
1985-03-06 14:13 ` Thus spake the DoD geb
1985-02-28 3:16 ` David Schachter
1985-03-01 19:00 ` Stanley Shebs
1985-03-03 3:08 ` Joaquim Martillo
1985-03-03 6:12 ` T J Jardine
1985-03-05 16:55 ` Jan Steinman
1985-03-05 21:07 ` Robert A. Pease
1985-03-12 1:47 ` Ed Colbert
1985-03-13 19:35 ` Monique M Taylor
1985-03-17 19:49 ` Jan Steinman
1985-03-21 1:17 ` faustus
1985-03-12 0:25 ` Efficiency of LISP Stavros Macrakis
1985-03-12 2:11 ` Efficiency of numerical Lisp code (details) Stavros Macrakis
1985-03-13 7:05 ` Chuck Hedrick
1985-03-13 20:00 ` Speed with numbers: PDP-10 Maclisp vs. Fortran (details) Stavros Macrakis
1985-03-14 10:12 ` Tim Maroney
1985-03-15 0:27 ` Bill Henneman
1985-03-16 0:59 ` Tim Maroney
1985-03-17 18:58 ` Bill Henneman
1985-03-18 5:02 ` Multi-language systems Marty Sasaki
1985-03-20 17:01 ` Tom Slack
1985-03-18 21:24 ` Speed with numbers: PDP-10 Maclisp vs. Fortran (details) Tim Maroney
1985-03-19 6:45 ` Fortran better than Lisp for numerical code? Barry Margolin
1985-03-19 17:35 ` Speed of Lisp numerical code Stavros Macrakis
1985-03-20 21:04 ` T J Jardine [this message]
1985-03-22 2:10 ` Fortran better than Lisp for numerical code? Joe Orost
1985-03-19 16:15 ` Speed with numbers: PDP-10 Maclisp vs. Fortran (details) Bill Henneman
1985-03-19 3:40 ` Norman Diamond
1985-03-18 3:01 ` Common Lisp and Arrays Joaquim Martillo
1985-02-18 23:49 ` Thus spake the DoD M.Fischer
1985-03-14 20:50 ` Speed with numbers: PDP-10 Maclisp vs. Fortran (details) Stavros Macrakis
1985-03-15 15:42 ` Stanley Shebs
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox