Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Re: Re: Specific Examples? - Re: A Macro System for Perl?

by shotgunefx (Parson)
on May 03, 2002 at 23:37 UTC ( #163942=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: Specific Examples? - Re: A Macro System for Perl?
in thread A Macro System for Perl?

As I had noted in my post to Elian, I got the impression (mistaken or not) working with a platform that was written in Lisp written by Paul Graham and on some notes I've seen back and forth between him and Trevor Blackwell. I figured since Paul has for all intensive purposes wrote the book on Lisp, it is pretty optimized.

Now the benches that I saw were mainly IO based and it was a lot slower than Perl which was slower than C which was slower then ASM.

I could certainly be wrong but Lisp seems to bring with it a lot of inherent weight. Again, this is in my very limited experience with it. I don't doubt that Lisp is better suited for certain tasks. In fact my coding style has taken on a more Lisp-ish style in the past 6 months. (Though I would take Perl over Lisp anyday.)

-Lee

"To be civilized is to deny one's nature."


Comment on Re: Re: Re: Re: Specific Examples? - Re: A Macro System for Perl?
Re: Re: Re: Re: Re: Specific Examples? - Re: A Macro System for Perl?
by Elian (Parson) on May 04, 2002 at 00:00 UTC
    Lisp is actually really light weight in most things, though having to support continuations (if you're using a dialect that has them) adds some overhead. It's not quite Forth-ish in its lightness, but it's not that far off.

    Part of Lisp's sluggishness comes from its very nature--it's really awkward to do a lot of things in Lisp. It just doesn't lend itself well to many problems. (For those you apparently need to use Scheme, which rumor has it will end world hunger, bring about world peace, and aid in the development of a really good tasting diet soda...)

Re: Re: Re: Re: Re: Specific Examples? - Re: A Macro System for Perl?
by hding (Chaplain) on May 04, 2002 at 13:01 UTC

    It's hard to say without knowing the specific benchmarks (and the code). It's certainly easy to do IO (in particular) slowly in Lisp. If one's Lisp has decently optimized read-sequence and write-sequence functions, it's also possible to do it pretty darn fast. One does need to know something about the various functions available to get the best results (e.g. format is incredibly powerful and convenient, but slow. If speed is of the essence, some other output method is called for. And so on.)

    I advise against putting too much weight on Graham's opinions. While he's certainly well respected, just as anyone he has his own predelictions and preferences which are entirely personal. For example, one who reads his two books may come out of them with the impression that loop is a bad thing, whereas in the general Common Lisp community, opinions are quite divided on the matter, with extremely well respected people on both sides of the issue. (And actually, ironically enough given that he wrote a book about it, Graham doesn't really seem to like Common Lisp that much at all.)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://163942]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2014-08-30 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls