Re: Lisp/Unix impedance [a programming challenge]



Adam Warner <usenet@xxxxxxxxxxxxxxxxx> writes:

> The difference is apparent when one tries to knock up a Common Lisp
> program to emulate a trivial Unix script. This may be one good reason
> Common Lisp is not a popular glue/scripting language upon Unix.
>
> Let's consider this from a different perspective: How many languages in
> common use upon Unix are less expressive than Common Lisp at substituting
> a string within a stdin/stdout filter using each language's standard
> library?

I don't have an answer to that question. However, how do you explain
this oddity in a language that values the principle of least surprise?

$ perl -e 'print "true\n" if ("1" == 1);'
true

Another thing about "glue" languages is that they really only work
well when the glue can stick. Lisp is very good at gluing other Lisp
code together. And Lisp is no worse at reading from one stream and
writing out to another than many other general purpose programming
languages.

--
An ideal world is left as an excercise to the reader.
--- Paul Graham, On Lisp 8.1
No excuses. No apologies. Just do it.
--- Erik Naggum
.



Relevant Pages

  • Re: Better is better: improving productivity through programming
    ... Nothing in Common Lisp prevents us from doing that. ... some other popular languages takes a *lot* of work. ... The idea of using a language with better abstraction facility doesn't ...
    (comp.lang.lisp)
  • Re: Common Lisp from a Unix perspective - barriers to using CL
    ... modern programming is often lacking and/or hard to find. ... you might want to build a Lisp ... All of the languages that Common Lisp is competing with are available ... It's difficult to package a lisp system at the level of a unix ...
    (comp.lang.lisp)
  • How Common Lisp sucks
    ... blog entries on Lisp. ... To embed languages that differ from CL's semantics ... Lisp that sucks, it's Common Lisp that sucks." ...
    (comp.lang.lisp)
  • Re: Survey: Do you use the "2" in Lisp-2?
    ... Why You should Not Use The Jargon Lisp1 and Lisp2 ... Graham's On Lisp, I'm wondering what the advantages of a Lisp-2 ... For another example, consider today's PHP language. ... Now, the question is, why do Lisps before Common Lisp have this multi- ...
    (comp.lang.lisp)
  • Re: Joel hammers the final nail into Lisps coffin
    ... and/or combination of technologies, because _programming is hard_. ... are surely large and more usefule then most of the Common Lisp ... that's the central trade-off between singe- and multi-paradigm languages. ...
    (comp.lang.lisp)