Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Why learn Lisp
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 118 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mr. Neutron  
View profile  
 More options Aug 25 2002, 7:04 am
Newsgroups: comp.lang.lisp
From: "Mr. Neutron" <nicktsoca...@charter.net>
Date: Sun, 25 Aug 2002 07:02:49 -0400
Local: Sun, Aug 25 2002 7:02 am
Subject: Why learn Lisp
Hi,
        I don't want to start a religious war. I am on my travels through
learning computing, and wanting to explore the universe of Computer
Science. This is just my opinions of Lisp so far.

I have learned the very basics of Lisp. It is in my opinion a weird
language. It uses strange named operators (car...) and lots of (() ).
I am left witha very superficial look at what appears to be a retro
language, a throwback to a time when computers were the size of
buildings. It is hard to think in Lisp or what I can use it for.

I can not imagine why I should keep trying to program in this language when I have
better, easier modern languages with a cleaner syntax and operators with
names that make sense to me. SO far everything I understand I can do in
Lisp I can just as well do in another language I know. I know not the
ways of Lisp or what it is about that has enabled it survive this long.

So far the only thing I have learned to do with Lisp is make a stack
using a very strange syntax. I could easily code this same problem in
Python or C or Java much faster and easier to read (to me).

What oh what makes Lisp or Scheme useful? Are they just hacker languages
that a hacker must know to be accepted by the hacker community? Or is
there really something about Lisp (or Scheme) that makes them stand apart
from the easier (IMO) to understand languages like Python, Java or C/C++?

How has Lisp survived through the years? I have come across many many
computer languages in my studies, and the majority of them died before
they were even conceived. Yet Lisp, Fortran, and C survived. I know C and
Fortran. They are not too hard to understand. But Lisp is IMO very hard to
understand (first, everything is literally backwards in it...).

I would like to learn how to program in Lisp, so I can appreciate
something of the history of Computer Science. I am also interested
in understanding Lisp, because I have read that it teaches you to think
about problems recursively. But I am still struggling to figure out how
to write an interesting program in the language.

If you can explain to a neophyte Computer Scientist why learning to code
in Lisp will enlighten me and will be worth the pain of getting
acquainted with it, I'd like to know!

Also are there any free e-books on programming in Lisp or Scheme?
Are there any places I can get Lisp (or Scheme) code so I can look at to
learn how to think in these languages?

I am still interested in the way of Lisp and Scheme so I am not closed to
learning about it. But my only experience with it is a funny taste. It is
completely opposite of how I think and I can not think at all in this
language. I just stare at the clisp prompt wondering what I should do
next. I can write simple programs that process a list, but it is a toy.
There must be more to it than just making toys.

hehe.

Thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wojciech Sobczuk  
View profile  
 More options Aug 25 2002, 7:13 am
Newsgroups: comp.lang.lisp
From: Wojciech Sobczuk <woj...@nemo.pl>
Date: Sun, 25 Aug 2002 13:13:56 +0200
Local: Sun, Aug 25 2002 7:13 am
Subject: Re: Why learn Lisp
Why don't you read this newsgroup's archives?  Your question has been
answered many times already.

Greetings,
Wojtek


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Edi Weitz  
View profile  
 More options Aug 25 2002, 8:18 am
Newsgroups: comp.lang.lisp
From: Edi Weitz <e...@agharta.de>
Date: 25 Aug 2002 14:18:35 +0200
Local: Sun, Aug 25 2002 8:18 am
Subject: Re: Why learn Lisp

"Mr. Neutron" <nicktsoca...@charter.net> writes:
> I can not imagine why I should keep trying to program in this
> language when I have better, easier modern languages with a cleaner
> syntax [...]

The very reason why Lisp might look silly to you on first encounter is
that it has a _very_ clean syntax as opposed to other languages like
C, Java or Perl (!!) which have things like curly braces, parentheses,
brackets, semicolons, commas and more all over the place and use it
pretty arbitrarily.

Most people here won't agree with you that other (more "modern")
languages are better than Lisp. Maybe they seem easier to learn, yes,
but it's also easier to drive a Toyota than to drive a Ferrari.

You might want to read a text that another Lisp newbie has written
some days ago. It also includes some useful links for further reading
at the end:

  <http://www.cs.uni-bonn.de/~costanza/lisp/guide.html>

Edi.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mr. Neutron  
View profile  
 More options Aug 25 2002, 9:05 am
Newsgroups: comp.lang.lisp
From: "Mr. Neutron" <nicktsoca...@charter.net>
Date: Sun, 25 Aug 2002 09:04:40 -0400
Local: Sun, Aug 25 2002 9:04 am
Subject: Re: Why learn Lisp

On Sun, 25 Aug 2002 08:18:35 -0400, Edi Weitz wrote:

> Most people here won't agree with you that other (more "modern")
> languages are better than Lisp. Maybe they seem easier to learn, yes,
> but it's also easier to drive a Toyota than to drive a Ferrari.

Hi sorry, I am not trying to aggravate Lispers. The real problem is I
I have only 1 book on Lisp that was written over twenty years ago. You
have to understand that so far my only introduction to Lisp has been
through a book that is almost as old as I am. I am stumped imagining how
to use Lisp for anything useful (like maybe downloading files from an FTP
site, or accessing a database..). I am very anxious to see what makes
Lisp an AI language. But all I have is a dumb book that talks about
making a stack or two and moving items around on a list. You have to
understand from my perspective, I can accomplish the same thing in just
about any language i know and without any learning curve.

Now this is the kind of statement that makes me interested in Lisp! Why
is it considered a Ferrari? It looks like a VW beetle when I play with
it.

Where do I find the archives and other ****modern**** resources on
Lisp that will help me in my understanding of why Lisp is cool!

> You might want to read a text that another Lisp newbie has written some
> days ago. It also includes some useful links for further reading at the
> end:

>   <http://www.cs.uni-bonn.de/~costanza/lisp/guide.html>

I am finding this introduction useful thanks.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexey Dejneka  
View profile  
 More options Aug 25 2002, 11:03 am
Newsgroups: comp.lang.lisp
From: Alexey Dejneka <adejn...@comail.ru>
Date: 25 Aug 2002 19:06:30 +0400
Local: Sun, Aug 25 2002 11:06 am
Subject: Re: Why learn Lisp

"Mr. Neutron" <nicktsoca...@charter.net> writes:
> Where do I find the archives and other ****modern**** resources on
> Lisp that will help me in my understanding of why Lisp is cool!

http://ww.telent.net/cliki

Take a look at Document -> "Common Lisp, Typing and Mathematics".

--
Regards,
Alexey Dejneka

---
   CMUCL-specific packages:
C: Python compiler
...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
cr88192  
View profile  
 More options Aug 25 2002, 11:25 am
Newsgroups: comp.lang.lisp
From: cr88192 <cr88...@hotmail.nospam.com>
Date: Sun, 25 Aug 2002 08:26:23 -0700
Local: Sun, Aug 25 2002 11:26 am
Subject: Re: Why learn Lisp

Edi Weitz wrote:
> "Mr. Neutron" <nicktsoca...@charter.net> writes:

>> I can not imagine why I should keep trying to program in this
>> language when I have better, easier modern languages with a cleaner
>> syntax [...]

> The very reason why Lisp might look silly to you on first encounter is
> that it has a _very_ clean syntax as opposed to other languages like
> C, Java or Perl (!!) which have things like curly braces, parentheses,
> brackets, semicolons, commas and more all over the place and use it
> pretty arbitrarily.

yes, this is one good point. even though I have been using scheme (not so
much cl) for a while now I still do not like the abundance of parenthesis
around, though the syntax pointed out in my spec has a few bad points for
many things I would still rather use it.
at present my plans also include keeping an s-expr parser around so people
could code in that if they wanted, and display will still continue to
output s-exprs (likely anyways, I have not gotten as far as defining
structured/console input/output yet though, or much of any io...).

> Most people here won't agree with you that other (more "modern")
> languages are better than Lisp. Maybe they seem easier to learn, yes,
> but it's also easier to drive a Toyota than to drive a Ferrari.

yep. besides lisp I consider python a possible alternative (if I need
something more popular), though I still have plenty of reasons to use the
lisps.

personally I still feel that room for improvement exists (though I can not
argue that mine is any better...). mine at present, like scheme, still
holds the ideal of keeping the core language small and consistent.
my idea is to try to develop an effective module system and try to promote
this as a major means of extending the language. unlike modules in many
other languages, the ones in mine are also conceptually capable of
extending/altering the syntax as well (though this has yet to be
specified...).

from experience it seems though that very few people are actually willing
to contribute ideas though. a problem is that language design leaves
problems in that there may be plenty of issues for which I am not aware,
and language design pushes my language knowlege limits at present...

> You might want to read a text that another Lisp newbie has written
> some days ago. It also includes some useful links for further reading
> at the end:

>   <http://www.cs.uni-bonn.de/~costanza/lisp/guide.html>

> Edi.

--
<cr88192[at]hotmail[dot]com>
<http://bgb1.hypermart.net/>

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wade Humeniuk  
View profile  
 More options Aug 25 2002, 11:39 am
Newsgroups: comp.lang.lisp
From: "Wade Humeniuk" <w...@nospam.nowhere>
Date: Sun, 25 Aug 2002 15:39:24 GMT
Local: Sun, Aug 25 2002 11:39 am
Subject: Re: Why learn Lisp

"Mr. Neutron" <nicktsoca...@charter.net> wrote in message

news:pan.2002.08.25.09.04.39.943498.14463@charter.net...

> On Sun, 25 Aug 2002 08:18:35 -0400, Edi Weitz wrote:
> Hi sorry, I am not trying to aggravate Lispers. The real problem is I
> I have only 1 book on Lisp that was written over twenty years ago. You
> have to understand that so far my only introduction to Lisp has been

You can download a better book for free,

see http://www.paulgraham.com/onlisp.html

Also see http://www.norvig.com

When I started to learn Lisp, I started very simply, simple interactions with the Lisp
Listener, stuff like (+ 3 4), (list 1 2 3 4).  I worked through my text's chapters
systematically, doing all the examples, until I understood the the simple syntax of what I
was doing.  Doing it this way with no preconceived notions of what is "right" allows the
brain to catch on to what is going on.  Its like learning a foreign language, it just
looks like nonsense at the beginning, but then suddenly you begin to see letters, then
words and then sentences.  But you have to give yourself time to understand, it does not
happen instantly (especially when one is used to C-like-syntax languages).

Wade


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Edi Weitz  
View profile  
 More options Aug 25 2002, 11:46 am
Newsgroups: comp.lang.lisp
From: Edi Weitz <e...@agharta.de>
Date: 25 Aug 2002 17:46:24 +0200
Local: Sun, Aug 25 2002 11:46 am
Subject: Re: Why learn Lisp

"Wade Humeniuk" <w...@nospam.nowhere> writes:
> > On Sun, 25 Aug 2002 08:18:35 -0400, Edi Weitz wrote:
> > Hi sorry, I am not trying to aggravate Lispers. The real problem is I
> > I have only 1 book on Lisp that was written over twenty years ago. You
> > have to understand that so far my only introduction to Lisp has been

This quote looks as if I had written the above paragraphy. I haven't.

Edi.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wade Humeniuk  
View profile  
 More options Aug 25 2002, 12:05 pm
Newsgroups: comp.lang.lisp
From: "Wade Humeniuk" <w...@nospam.nowhere>
Date: Sun, 25 Aug 2002 16:05:41 GMT
Local: Sun, Aug 25 2002 12:05 pm
Subject: Re: Why learn Lisp

Here is a some code which implements calendar functions in Common Lisp.  You can work
through it in combination with the Common Lisp Hyperspec.

http://www.lispworks.com/reference/HyperSpec/Front/index.htm

See attached file.  It is fairly limited in the CL functionality used but it may push you
into exploring aspects of CL. (things like multiple-value-bind, macrolet (macros),
funcall, structs, vectors, types, format,...)

Wade

  calendar.lisp
5K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wade Humeniuk  
View profile  
 More options Aug 25 2002, 12:05 pm
Newsgroups: comp.lang.lisp
From: "Wade Humeniuk" <w...@nospam.nowhere>
Date: Sun, 25 Aug 2002 16:05:53 GMT
Local: Sun, Aug 25 2002 12:05 pm
Subject: Re: Why learn Lisp
Sorry.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Friedrich Dominicus  
View profile  
 More options Aug 25 2002, 12:34 pm
Newsgroups: comp.lang.lisp
From: Friedrich Dominicus <fr...@q-software-solutions.com>
Date: 25 Aug 2002 18:33:58 +0200
Local: Sun, Aug 25 2002 12:33 pm
Subject: Re: Why learn Lisp

"Mr. Neutron" <nicktsoca...@charter.net> writes:
> On Sun, 25 Aug 2002 08:18:35 -0400, Edi Weitz wrote:

> > Most people here won't agree with you that other (more "modern")
> > languages are better than Lisp. Maybe they seem easier to learn, yes,
> > but it's also easier to drive a Toyota than to drive a Ferrari.

> Hi sorry, I am not trying to aggravate Lispers. The real problem is I
> I have only 1 book on Lisp that was written over twenty years ago.

Than get a more decent book.

And get the Hyperspec
http://www.lispworks.com/reference/HyperSpec/index.html

> You
> have to understand that so far my only introduction to Lisp has been
> through a book that is almost as old as I am. I am stumped imagining how
> to use Lisp for anything useful (like maybe downloading files from an FTP
> site, or accessing a database..). I am very anxious to see what makes
> Lisp an AI language.

See Paradigms or Artificial Intelligence Programming. And you got a
good ide on how Lisp programming could look

>But all I have is a dumb book that talks about
> making a stack or two and moving items around on a list. You have to
> understand from my perspective, I can accomplish the same thing in just
> about any language i know and without any learning curve.

Can you really? So please write such thing in C, without knowing any C
of course.

Friedrich


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erik Naggum  
View profile  
 More options Aug 25 2002, 12:39 pm
Newsgroups: comp.lang.lisp
From: Erik Naggum <e...@naggum.no>
Date: 25 Aug 2002 16:39:00 +0000
Subject: Re: Why learn Lisp
* Mr. Neutron
| I don't want to start a religious war.

  Do /not/ feed the trolls.

--
Erik Naggum, Oslo, Norway

Act from reason, and failure makes you rethink and study harder.
Act from faith, and failure makes you blame someone and push harder.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fred Gilham  
View profile  
 More options Aug 25 2002, 1:20 pm
Newsgroups: comp.lang.lisp
From: Fred Gilham <gil...@snapdragon.csl.sri.com>
Date: 25 Aug 2002 10:20:16 -0700
Local: Sun, Aug 25 2002 1:20 pm
Subject: Re: Why learn Lisp

> I have learned the very basics of Lisp. It is in my opinion a weird
> language. It uses strange named operators (car...) and lots of (()).
> I am left witha very superficial look at what appears to be a
> retro language, a throwback to a time when computers were the size
> of buildings. It is hard to think in Lisp or what I can use it for.

One comment about `car' and `cdr' and the like.  This is one where
people disagree, but I still like them.  The way I think about them is
like `x' and `y' in a coordinate system.  Why do you call it `x'?  How
about `horizontal'?  Wouldn't that make more sense?  But that misses
the point --- `x' and `y' are abstractions.  So are `car' and `cdr'.

The other thing is that you can do `cadr', `caar' and so on.  Some
people hate this but I think it's kind of neat.

> I can not imagine why I should keep trying to program in this
> language when I have better, easier modern languages with a cleaner
> syntax and operators with names that make sense to me. SO far
> everything I understand I can do in Lisp I can just as well do in
> another language I know. I know not the ways of Lisp or what it is
> about that has enabled it survive this long.

You didn't give examples.  So I'm not sure which languages you prefer
as having cleaner syntax etc.

If you are unhappy with prefix --- that is, the way lisp does (+ 2 3)
as opposed to 2 + 3 --- then I can only say that you'll get used to
it, and you'll be happy when you find yourself doing (+ 2 3 4 5) or
(= x y z) or things like that.

Lisp uses a `regular' syntax, with parentheses as its primary
structure-creating mechanism.  For this reason, it's easy to read
Lisp.  You always know what's going on.  Almost all the semantics is
pushed into named operators.

For example, instead of

   a[4]

you say

   (aref a 4)

Instead of

   for(i = 0; i < 5; i++) {
     ...do something....
   }

you say

   (dotimes (i 5)
     (...do something))

Note in the examples from C you see braces, brackets, semicolons and
parentheses to indicate structure of one kind or another.  In Lisp you
see parentheses.  (Lisp programs are `line noise free zones'!)

> So far the only thing I have learned to do with Lisp is make a stack
> using a very strange syntax. I could easily code this same problem
> in Python or C or Java much faster and easier to read (to me).

I guess you must have been writing a stack using the Common Lisp
Object System?  Otherwise, in Lisp, stacks are trivial:

(defvar *my-stack* nil)

(push 3 *my-stack*)
(push 4 *my-stack*)
(push 12 *my-stack*)
(push 7 *my-stack*)

(pop *my-stack*)
(pop *my-stack*)

(etc.)

Of course, this isn't an `information-hiding' version of a stack, but
it's easy enough to do that in Lisp too using closures.

(let ((my-stack nil))
  (defun my-push (e)
    (push e my-stack))

  (defun my-pop ()
    (if my-stack
        (pop my-stack)
        (error "Stack empty!"))))

> What oh what makes Lisp or Scheme useful? Are they just hacker
> languages that a hacker must know to be accepted by the hacker
> community? Or is there really something about Lisp (or Scheme) that
> makes them stand apart from the easier (IMO) to understand languages
> like Python, Java or C/C++?

I like the distinction people make with regard to GUIs:  easy to learn
vs. easy to use.  Some people call a GUI "easy to use" when they mean
"easy to learn", or easy to get started with.  Lisp really isn't THAT
hard to learn, but some people find languages like Java or C++ more
familiar (at first).  But after a while you find that Lisp is easer to
use.  That's because as time goes on, in C++ or Java you start getting
bogged down in language-induced complexity.  Things become harder to
do because the language makes them harder to do.  In Lisp, there isn't
as much language-induced complexity; things become harder because of
problem-induced complexity (that is, because the problem itself is
harder).

An example of language-induced complexity that someone posted in this
newsgroup some time ago can be found in the following paper:

   http://www.oonumerics.org/tmpw00/eisenecker.html

I am not sure I understand this paper, but it seems to me that in Lisp
the problem doesn't arise at all.

For example, here's my Lisp code that does what I think they were
trying to do in the paper:

;;;;

(defclass customer ()
 ((first-name :initarg :first-name)
  (last-name :initarg :last-name)))

(defmethod print-it ((cust customer))
  (with-slots (first-name last-name) cust
      (format t "~&First name: ~A~%Last name: ~A~%" first-name last-name)))

(defclass phone-contact (customer)
  ((phone-number :initarg :phone-number)))

(defmethod print-it ((phone phone-contact))
  (with-slots (phone-number) phone
    (call-next-method)
    (format t "~&Phone number: ~A~%" phone-number)))

(defclass email-contact (customer)
  ((email-address :initarg :email-address)))

(defmethod print-it ((email email-contact))
  (with-slots (email-address) email
    (call-next-method)
    (format t "~&Email address: ~A~%" email-address)))

(defclass postal-address (customer)
  ((postal-address :initarg :postal-address)))

(defmethod print-it ((address postal-address))
  (with-slots (postal-address) address
    (call-next-method)
    (format t "~&Postal address: ~A~%" postal-address)))

(defclass customer-info (phone-contact email-contact postal-address)
   ())

(setf *my-info*
  (make-instance 'customer-info
                 :first-name "Foo" :last-name "Bar"
                 :phone-number "555-1212"
                 :email-address "f...@bar.com"
                 :postal-address "1234 Main. St. Anytown, CA"))

(print-it *my-info*)

;;;

It all works as it is.  (I think I'd write it a little differently,
though.)

The working code at the end of the paper contains a lot of extra
mechanism and complexity, and I claim that this is all
language-induced, that is, necessary to work around shortcomings in
the language.

To put it somewhat hyperbolically, Lisp lets you solve problems, while
other languages let you solve problems AFTER you've solved the
problems presented by using that language in the first place.

> I would like to learn how to program in Lisp, so I can appreciate
> something of the history of Computer Science. I am also interested
> in understanding Lisp, because I have read that it teaches you to
> think about problems recursively. But I am still struggling to
> figure out how to write an interesting program in the language.

Just take an interesting program that you want to write, and write it
in Lisp.  You'll find it pretty hard at first, but if you persist,
one day you'll reach enlightenment.

One thing to realize.  If Lisp is really snake-oil, it will seem weird
and quirky because it is just a collection of poorly thought-out hacks
and frauds.  But if Lisp really is a serious alternative, it will also
seem weird and quirky because it doesn't follow various fundamental
assumptions about how things must be done.  That's the very thing that
makes it a serious alternative.

The only way to find out which is true (snake oil or serious
alternative) is to take Lisp on its own terms, and NOT impose those
fundamental assumptions on it.  Don't expect anything in Lisp to work
the way it does in any other language and you'll get it faster.

--
Fred Gilham                                   gil...@csl.sri.com
Lisp has jokingly been called "the most intelligent way to misuse a
computer". I think that description is a great compliment because it
transmits the full flavor of liberation: it has assisted a number of
our most gifted fellow humans in thinking previously impossible
thoughts.   E. Dijkstra


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kaz Kylheku  
View profile  
 More options Aug 25 2002, 1:44 pm
Newsgroups: comp.lang.lisp
From: Kaz Kylheku <k...@ashi.footprints.net>
Date: Sun, 25 Aug 2002 17:44:34 +0000 (UTC)
Local: Sun, Aug 25 2002 1:44 pm
Subject: Re: Why learn Lisp
In article <pan.2002.08.25.07.02.46.793119.14...@charter.net>, Mr. Neutron
wrote:

> language. I just stare at the clisp prompt wondering what I should do
> next. I can write simple programs that process a list, but it is a toy.
> There must be more to it than just making toys.

This is your personal problem that has nothing to do with any programming
language. If you can't think of what to do, it can only be because you have
reached your wit's end.

You should go back to one of those programming languages that you cited; these
will give you enough impedance so that you can push against them and dissipate
your energy to create the feeling that you are accomplishing something.

C is great for this; you can start with no idea at all, and starting writing
thousands of lines of supporting code in hopes that the idea will materialize
in the meanwhile.

``Gee, I don't know what I will write, but I bet it will need a linked list, a
better malloc routine, some binary trees and reference-counted strings,
a buffer management module, ...''


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kaz Kylheku  
View profile  
 More options Aug 25 2002, 1:44 pm
Newsgroups: comp.lang.lisp
From: Kaz Kylheku <k...@ashi.footprints.net>
Date: Sun, 25 Aug 2002 17:44:33 +0000 (UTC)
Local: Sun, Aug 25 2002 1:44 pm
Subject: Re: Why learn Lisp

In article <umhtki4h9vk...@corp.supernews.com>, cr88192 wrote:
>> The very reason why Lisp might look silly to you on first encounter is
>> that it has a _very_ clean syntax as opposed to other languages like
>> C, Java or Perl (!!) which have things like curly braces, parentheses,
>> brackets, semicolons, commas and more all over the place and use it
>> pretty arbitrarily.

> yes, this is one good point. even though I have been using scheme (not so
> much cl) for a while now I still do not like the abundance of parenthesis
> around, though the syntax pointed out in my spec has a few bad points for
> many things I would still rather use it.

Nobody cares about the braindamaged spec for your nonexistent language, so stop
bringing it up, you lunatic. It's not topical here.  Maybe try the patience of
comp.compilers for a change.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Browne  
View profile  
 More options Aug 25 2002, 2:33 pm
Newsgroups: comp.lang.lisp
From: Christopher Browne <cbbro...@acm.org>
Date: 25 Aug 2002 18:33:12 GMT
Local: Sun, Aug 25 2002 2:33 pm
Subject: Re: Why learn Lisp
The world rejoiced as Fred Gilham <gil...@snapdragon.csl.sri.com> wrote:

>> I have learned the very basics of Lisp. It is in my opinion a weird
>> language. It uses strange named operators (car...) and lots of (()).
>> I am left witha very superficial look at what appears to be a
>> retro language, a throwback to a time when computers were the size
>> of buildings. It is hard to think in Lisp or what I can use it for.

> One comment about `car' and `cdr' and the like.  This is one where
> people disagree, but I still like them.  The way I think about them is
> like `x' and `y' in a coordinate system.  Why do you call it `x'?  How
> about `horizontal'?  Wouldn't that make more sense?  But that misses
> the point --- `x' and `y' are abstractions.  So are `car' and `cdr'.

> The other thing is that you can do `cadr', `caar' and so on.  Some
> people hate this but I think it's kind of neat.

.. And if your code is filled with this stuff, it _usually_
demonstrates that you're not making particularly good use of the rest
of the language.

It is really painful to read "cadaverous" code; not unlike fiddling
with assembler, or FORTH code that's full of ROT, -ROT, SWAP, and
ROLL.

If you're using Lisp _well_, you'll have a nice set of defuns,
defmethods, perhaps some macros, and such, that make it largely
unnecessary to fill your code with rubbish looking like
   (cons (cdddadar a) (cddar (car b)))

When I finish working on some Lisp code, I usually do a read through
it to see where there are references to CAR and CDR, with a view to
seeing if they couldn't be replaced with something a little more
elegant.

> Instead of
>    for(i = 0; i < 5; i++) {
>      ...do something....
>    }

> you say

>    (dotimes (i 5)
>      (...do something))

And you do _that_ instead of

(do ((i 0 (incf i)))
    ((= i 5))
  (format t "Value: ~A~%" i))

It's pretty likely that the introductory texts on Lisp mention DO, and
say little, if anything, about the other alternatives.  The only place
I _ever_ use DO is if I'm building an iteration macro, and even _that_
is rare.  DO is almost perfectly analagous to the C "for(;;) {}" loop,
with the difference that the order of the three statements changes a
bit.

> Note in the examples from C you see braces, brackets, semicolons and
> parentheses to indicate structure of one kind or another.  In Lisp
> you see parentheses.  (Lisp programs are `line noise free zones'!)

Mind you, the DO example is filled with somewhat non-obvious sets of
list structure:

(do ((variable initial-value update-form))
    (termination-test)
    (body-of-loop))

The only piece of that which is expressly identified as what it is is
the DO at the start.  And I downright _hate_ looking at DO loops,
pretty much as a result of that.

One thing that I kind of like about the syntax of ML is that it puts
fairly sensible names to the pieces.

The similarly-not-overly-obvious LET statement
(let ((a b) (c d)) (foo a) (bar c))
in ML would look something like:

let
   a = b and
   c = d
 in
   foo(a);
   bar(c);

And while I wouldn't argue that it's worth leaping to ML _just_
because of that, I _would_ argue that it's likely to be more
"intuitive," initially, than the Lisp way of expressing it, and that
the ML representation is a pretty nice way of _explaining_ what is
going on to the beginner.
--
(reverse (concatenate 'string "moc.enworbbc@" "sirhc"))
http://www3.sympatico.ca/cbbrowne/oses.html
"What  you end  up with,  after  running an  operating system  concept
through these  many marketing coffee filters, is  something not unlike
plain hot water."  -- Matt Welsh


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
cr88192  
View profile  
 More options Aug 25 2002, 2:40 pm
Newsgroups: comp.lang.lisp
From: cr88192 <cr88...@hotmail.nospam.com>
Date: Sun, 25 Aug 2002 11:41:17 -0700
Local: Sun, Aug 25 2002 2:41 pm
Subject: Re: Why learn Lisp

hell, at least this is some feedback.
if others feel similar I guess it explains the lack of reply.

if I write a compiler will this topic be more acceptable?...

--
<cr88192[at]hotmail[dot]com>
<http://bgb1.hypermart.net/>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thien-Thi Nguyen  
View profile  
 More options Aug 25 2002, 2:54 pm
Newsgroups: comp.lang.lisp
From: Thien-Thi Nguyen <t...@glug.org>
Date: 25 Aug 2002 18:54:15 +0000
Local: Sun, Aug 25 2002 2:54 pm
Subject: Re: Why learn Lisp

Kaz Kylheku <k...@ashi.footprints.net> writes:
> If you can't think of what to do, it can only be because you have
> reached your wit's end.

OP needs inspiration.  OP: maybe a good idea to take a step back, look
at yourself, see what is your personality, then try to express yourself
somehow.  some humble suggestions:

if you are artistic, write programs that are artistic (and produce art,
bonus!).

if you rage against the machine, write simulation programs, and build a
better society.

if you are lazy, write screensavers.

if you are curious, write virii.

if you are a slave, convince your fellows that lisp is no good and talk
amongst yourselves.

if you are kind, learn what you can learn and teach what you can teach.

if you are whiny, write programs that filter spam (please).

if you want to cash in on the programming "profession", hire lisp
programmers and give them some slack.

thi


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Stegen CES2000  
View profile  
 More options Aug 25 2002, 3:48 pm
Newsgroups: comp.lang.lisp
From: "Thomas Stegen CES2000" <tho_ste...@hotmail.com>
Date: Sun, 25 Aug 2002 20:46:36 +0200
Local: Sun, Aug 25 2002 2:46 pm
Subject: Re: Why learn Lisp
"cr88192" <cr88...@hotmail.nospam.com> wrote in message

news:umi9336kgckg2c@corp.supernews.com...

> if I write a compiler will this topic be more acceptable?...

His point if more than likely that in this newsgroup lisp is the
topic. If your language is not a Lisp then it is off topic here.

--
Thomas.

Approaching singularity.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kaz Kylheku  
View profile  
 More options Aug 25 2002, 3:58 pm
Newsgroups: comp.lang.lisp
From: Kaz Kylheku <k...@ashi.footprints.net>
Date: Sun, 25 Aug 2002 19:58:50 +0000 (UTC)
Local: Sun, Aug 25 2002 3:58 pm
Subject: Re: Why learn Lisp

In article <umi9336kgck...@corp.supernews.com>, cr88192 wrote:
> Kaz Kylheku wrote:
>> Nobody cares about the braindamaged spec for your nonexistent language, so
>> stop
>> bringing it up, you lunatic. It's not topical here.  Maybe try the
>> patience of comp.compilers for a change.

> hell, at least this is some feedback.
> if others feel similar I guess it explains the lack of reply.

> if I write a compiler will this topic be more acceptable?...

Not in this forum unless it is a compiler for the language ANSI Common Lisp.
Not in comp.lang.scheme, unless it contains an implementation of an RnRS spec.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
cr88192  
View profile  
 More options Aug 25 2002, 5:03 pm
Newsgroups: comp.lang.lisp
From: cr88192 <cr88...@hotmail.nospam.com>
Date: Sun, 25 Aug 2002 14:03:18 -0700
Local: Sun, Aug 25 2002 5:03 pm
Subject: Re: Why learn Lisp

my last compiler was scheme.

no one in comp.lang.misc seemed to care either when I had posted there.

--
<cr88192[at]hotmail[dot]com>
<http://bgb1.hypermart.net/>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erik Naggum  
View profile  
 More options Aug 25 2002, 5:19 pm
Newsgroups: comp.lang.lisp
From: Erik Naggum <e...@naggum.no>
Date: 25 Aug 2002 21:19:36 +0000
Local: Sun, Aug 25 2002 5:19 pm
Subject: Re: Why learn Lisp
* cr88192 <cr88...@hotmail.nospam.com>
| no one in comp.lang.misc seemed to care either when I had posted there.

  Why does it matter to you whether people on Usenet care?  Usenet is a good
  place to people who already care about the same things; they congregate in
  newsgroups according to what they care about.  When people in a newsgroup do
  not care about what you care about, they are extremely unlikely to /start/ if
  you somehow imply that they /ought/ to.

  If you feel that people /should/ care about what you care about, you have only
  set out to become a nuisance to others in their eyes.  They will want you to
  go away more than anything else.  If even this conducive to your personal
  needs, you should really talk to someone who already cares about /you/.

--
Erik Naggum, Oslo, Norway

Act from reason, and failure makes you rethink and study harder.
Act from faith, and failure makes you blame someone and push harder.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mr. Neutron  
View profile  
 More options Aug 25 2002, 6:07 pm
Newsgroups: comp.lang.lisp
From: "Mr. Neutron" <nicktsoca...@charter.net>
Date: Sun, 25 Aug 2002 18:02:52 -0400
Local: Sun, Aug 25 2002 6:02 pm
Subject: Re: Why learn Lisp
>>But all I have is a dumb book that talks about
>> making a stack or two and moving items around on a list. You have to
>> understand from my perspective, I can accomplish the same thing in just
>> about any language i know and without any learning curve.
> Can you really? So please write such thing in C, without knowing any C
> of course.

I *do* know C. If I *didn't* know C, obviously it would be hard to
do.

I am just experiencing a problem in learning a new language. You could
imagine that I am fluent in a certain type of language. Lisp and Scheme
are a very different type of language.

I can not see in my mind how to translate my ideas from my native tongue
to my new language. All I can do in my new language is make toys. While
that is an interesting career, I want to build rocket ships.

I can build rocket ships in my native tongue (C). Translating my rocket
ship into Lisp results in a broken machine. I am missing doors, windows,
glass, steering controls, landing gear, wings, and fuel. I have a
complete toolbox in C. In Lisp, I just have a screwdriver.

That is my frustration with Lisp so far. I can build rockets. But in Lisp
I am starting all over again. It is sort of intimidating. I am actually
kind of interested in the challenge. But I need a guide to teach me.
I just can't find a guide. It would be nice if there was a Lisp for C
programmers book around.

That's why I am griping. It's not that I think Lisp sucks. It is that I
can not communicate in it at all. I am a stranger in a strange land in
Lisp.

Bye


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jacek Podkanski  
View profile  
 More options Aug 25 2002, 6:09 pm
Newsgroups: comp.lang.lisp
From: Jacek Podkanski <jacekpodkan...@supanet.com>
Date: Sun, 25 Aug 2002 23:08:02 +0100
Local: Sun, Aug 25 2002 6:08 pm
Subject: Re: Why learn Lisp

Wojciech Sobczuk wrote:
> Why don't you read this newsgroup's archives?  Your question has been
> answered many times already.

> Greetings,
> Wojtek

Because everybody seems to love to discuss this subject
--
Jacek Podkanski

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
cr88192  
View profile  
 More options Aug 25 2002, 6:28 pm
Newsgroups: comp.lang.lisp
From: cr88192 <cr88...@hotmail.nospam.com>
Date: Sun, 25 Aug 2002 15:25:32 -0700
Local: Sun, Aug 25 2002 6:25 pm
Subject: Re: Why learn Lisp

I have not really found any real language design groups which have very
many people in them. I could try again on comp.lang.misc, but it would
probably be more of the same.

in life I have no freinds, and I am alone. I guess I wanted people to talk
to about something so that I am not in more isolation...

before I could talk to my ex about stuff, then she left me. since then I
have made little progress on anything, everything now seems to be in the
past. I still do not really understand why she left, just at the end she
said she did not care about me anymore. that was 2 months ago...

all my life has been like that, people get bored with me then they leave.
everyone else avoids me altogether...
being online has been an attempt to escape that, hoping somewhere somehow
what I said would mean something. due to my lack of productivity this is
too large of a goal, thus I continue to be worthless...

--
<cr88192[at]hotmail[dot]com>
<http://bgb1.hypermart.net/>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 118   Newer >
« Back to Discussions « Newer topic     Older topic »