Re: off-topic: Why is lisp so weird?

From: Feuer (feuer_at_his.com)
Date: 03/02/04


Date: Tue, 02 Mar 2004 11:35:19 -0500

Michael Sullivan wrote:

> I think the point here is that if this fits your definition of "slow"
> then nearly every implementation of every high level language aside from
> C, C++, Fortran and a few special purpose languages is "slow".

C++ does not belong in that list. Scheme (Stalin), ML (O'Caml and the
ML Kit), and Erlang likely do belong there.

One thing that's very important is that certain language facilities make
it much easier to write certain kinds of code efficiently. Doing any
serious linked-structure manipulation efficiently in C is unbearably
difficult because C lacks automatic garbage collection (or at least
lacks the capacity to support the most efficient forms of it). Is it
possible to write such manipulations efficiently in C? Yes. But it
could be like pulling teeth. A good C programmer faced with the task
would most likely write a "fast enough" implementation instead. Only
the most dedicated library writers with the best CS training might go to
the trouble of doing the best C can do for such. In a mostly-functional
language, it is easy to write implementations that are as good as or
better than the "fast enough" C. A little hand tuning can then make
them faster than a C programmer would be willing to take them.

David



Relevant Pages

  • Re: What are you reading?
    ... three novels. ... I like the language, and I like his style, but I ... or when I sharpened the pencil with a pencil ... I've seen you, beauty, and you belong to me now, whoever you are ...
    (alt.smokers.pipes)
  • Re: Using final with local variables
    ... types), pointer arithmetic, meddling by other threads using constructs ... outside the language.) ... machine code requires you to guess what is data and what is code. ... "Many people tend to look at programming styles and languages like religions: if you belong to one, ...
    (comp.lang.java.programmer)
  • Re: Using final with local variables
    ... They don't need hints from humans. ... accurate that any human-given hints. ... Java is a much easier language to optimise than C++ since the code ... "Many people tend to look at programming styles and languages like religions: if you belong to one, ...
    (comp.lang.java.programmer)
  • Re: why still use C?
    ... although the moderator of comp.lang.c.moderated ... literally no language other than C, although C++ is mentioned a few ... And what are your qualifications to refute such a statement? ... belong in news:comp.programming if they are cogent. ...
    (comp.lang.c)
  • Re: Help with PLT
    ... Since I have been reading that Stalin is very ... fast as compared with any other language, ... discover that Bigloo is as fast as Stalin in most cases. ... mkk (vector-ref m (+ kc k))) ...
    (comp.lang.scheme)