Re: Very poor Lisp performance
Jon Harrop wrote:
I'm trying to decide if it is worth learning Lisp so I am more interested in
learning why Lisp programmers chose Lisp and seeing how a seasoned Lisp
programmer can translate my ray tracer, for example. Why do you use Lisp?
Obviously I cannot do a good enough job of the conversion myself to make for
a fair comparison with the other languages (that I am much more familiar
with). It is also interesting to study the differences between the 8 Lisp
and 13 Scheme translations that have been done.
So now I'd like to know how Lisp is more expressive than the alternatives.
What practical problems are easier to write in Lisp than in other
languages? Macros seem to be a strong point here. Lisp's macros are more
powerful than OCaml's and Lisp programs are likely to be faster than
Mathematica programs. So there is one niche. Are there others?
Well, real world programming can me quite ugly. Here is an example
of a program in Lisp which is non-trivial (no macros, well not
quite true... capi:define-interface is one such builtin LispWorks
macro, oh ... and defclass and capi:with-geometry, etc etc.).
http://www3.telus.net/public/whumeniu/concentration.lisp
A Windows exe of the program is downloadable from
http://www3.telus.net/public/whumeniu/concentration.zip
If you would write a program with the same functionality in
Ocaml (for comparison) it would be interesting. This program was written in
response to a c.l.l discussion were someone was making similar
queries about CL (but from a C++ shareware prespective).
Wade
.
Relevant Pages
- Re: "Unified model" for beginners
... What insult would it be to say "hey, it can do something like what LISP ... languages and implementations, reduce it to that "essential essence" only ... Molecules and atoms (okay, we don't actually "see" atoms, this is a ... "subtraction" and then lots of "HLLism macros" to create all the other ... (alt.lang.asm) - Re: a LISP raytracer
... > None of the free Lisp compilers come close to the capabilities of Stalin. ... > OCaml does has camlp4 macros. ... My languages professor right now is a huge fan ... on OCaML, and not so much with LISP. ... (comp.graphics.rendering.raytracing) - Re: Paul Grahams teaching style is bad
... > remaining distinctive features of lisp are a good thing. ... > languages have been picking up from lisp for so long was the big deal, ... > and that macros are only marginally important by comparison, ... (comp.lang.lisp) - Re: Is Lisp a Blub?
... collection is not feasible anymore. ... Why would he be looking toward providing Lisp-style macros ... referring to Gregor's move out of Lisp and into other languages with ... It is interesting that many old Lispers move away from Lisp and ... (comp.lang.lisp) - Re: Very poor Lisp performance
... What practical problems are easier to write in Lisp than in other languages? ... Lisp's macros are more powerful than OCaml's and Lisp programs are likely to be faster than Mathematica programs. ... The essence is that Lisp allows you to embed any kind of language, and mix Lisp and the various embedded languages in your programs. ... (comp.lang.lisp) |
|