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
Difference between LISP and C++
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 151 - 175 of 722 - Collapse all  -  Translate all to Translated (View all originals) < Older  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
 
Vassil Nikolov  
View profile  
 More options Oct 23 2002, 12:30 am
Newsgroups: comp.lang.lisp
From: Vassil Nikolov <vniko...@poboxes.com>
Date: 23 Oct 2002 00:27:19 -0400
Local: Wed, Oct 23 2002 12:27 am
Subject: Re: Difference between LISP and C++
    On Wed, 23 Oct 2002 13:22:40 +0930, arien <spammers_s...@getlost.invalid> said:
    [...]
    *> a missing ; at the end of a line is easy to find

But one usually learns quickly to not forget semicolons (whether at
the end of the line or elsewhere).  Then one goes on to make much
more interesting syntax errors.  The example given in another
article in this thread,

  foo("bar);

at least will likely have the number of that same line in the error
message.  I don't have a good example handy, but it is much more
fun when the reported line number is far off the place where the
problem is (and it does happen).

By the way, even in a language with C's syntax, using Emacs can be
very helpful because the moment you notice the current line does
not indent correctly, you know something is wrong, you don't have
to wait for the compiler to tell you.

---Vassil.

--
Non-googlable is googlable.


 
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.
Kenny Tilton  
View profile  
 More options Oct 23 2002, 1:00 am
Newsgroups: comp.lang.lisp
From: Kenny Tilton <ktil...@nyc.rr.com>
Date: Wed, 23 Oct 2002 04:59:02 GMT
Local: Wed, Oct 23 2002 12:59 am
Subject: Re: Difference between LISP and C++

arien wrote:
> The syntax of lisp makes it virtually impossible
> to use without a suitable editor.

Well, /are/ you using a suitable editor? It seems not.

> But like I said, Java never has
> this problem.

Well Lispers have no problem with and in fact strongly prefer parentheses.

So maybe the problem is with you (or your editor)? You totally ignored
what others have pointed out: you are simply stuck on the first syntax
you happened to learn. you should just relax and do your classwork. Get
back to us after a couple of months (with a good editor) and let us know
what you think.

Right now you are just showing us how close-minded you are.

--

  kenny tilton
  clinisys, inc
  ---------------------------------------------------------------
""Well, I've wrestled with reality for thirty-five years, Doctor,
   and I'm happy to state I finally won out over it.""
                                                   Elwood P. Dowd


 
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.
Adam Warner  
View profile  
 More options Oct 23 2002, 3:04 am
Newsgroups: comp.lang.lisp
From: "Adam Warner" <use...@consulting.net.nz>
Date: Wed, 23 Oct 2002 20:04:11 +1300
Local: Wed, Oct 23 2002 3:04 am
Subject: Re: Difference between LISP and C++
Hi arien,

> The problem is, that the only languages I have learnt are Java and C++.
> Java first. Learning C++ wasn't much more difficult because the syntax
> is similar. Then you get lisp thrown in your face, and all these
> ((((((()))))))'s. I mean, a missing ; at the end of a line is easy to
> find, even in Notepad. The syntax of lisp makes it virtually impossible
> to use without a suitable editor.

This is true. A suitable editor will perform automatic indentation for
you. This makes finding mistakes with a parenthesis relatively easy to
spot. Especially if you also have matching parenthesis highlighting. You
can see by the display of the code whether it contains a logical error.

For example if an if-then-else doesn't look like this:

(if test (do-something-to a)
  (do-something-to b))

or like this:

(if test
    (do-something-to a)
  (do-something-to b))

Then the code contains a logical error. Let's introduce an incorrect
parenthesis while we type:

(if test (do-something-to a))    <--hit return here
(do-something-to b))

You can see the logical error visually. You don't need to count the
parentheses to see this. And with parenthesis highlighting you would
already have seen that you matched the wrong parenthesis while still in
the top line.

There is one language currently more popular than Lisp that has syntax
where programs cannot even be accurately written on a blank piece of paper
(without drawing a load of vertical lines to make sure all the appropriate
columns match up) Get over the fact that Lisp cannot be written
productively without a suitable editor. I believe you. It can't.

Personally I think Lisp's syntax allows remarkable expressiveness and I
enjoy being able to completely ignore manual indentation.

> Now this, regardless of what you all say about how good it is, puts lisp
> behind the eight-ball when it comes to readability. I have sat there
> with my lecturer going through the code, trying to find where the error
> is. But like I said, Java never has this problem.

You may change this view when you realise that you can press a key to
automatically reindent your code and the indentation levels will describe
a lot of the logical structure of the program.

If a lecturer displays code to the class with mistakes and the
indentation couldn't possibly have been generated by someone typing the
incorrect code within a suitable editor then the examples could give a
false impression about how hard it is to track down errors in Lisp code.

If you are given the source to a broken example try reindenting it and
watch what moves.

Regards,
Adam


 
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.
Pascal Costanza  
View profile  
 More options Oct 23 2002, 5:59 am
Newsgroups: comp.lang.lisp
From: Pascal Costanza <costa...@web.de>
Date: Wed, 23 Oct 2002 11:59:38 +0200
Local: Wed, Oct 23 2002 5:59 am
Subject: Re: Difference between LISP and C++

arien wrote:
> The problem is, that the only languages I have learnt are Java and C++.
> Java first. Learning C++ wasn't much more difficult because the syntax
> is similar. Then you get lisp thrown in your face, and all these
> ((((((()))))))'s. I mean, a missing ; at the end of a line is easy to
> find, even in Notepad. The syntax of lisp makes it virtually impossible
> to use without a suitable editor. Now this, regardless of what you all
> say about how good it is, puts lisp behind the eight-ball when it comes
> to readability.

I can really relate to the problems you have with Lisp's syntax. I have
had similar problems not so long ago. (I have started to use Lisp
seriously in April.)

Here is a mental model that might help you in the beginning: Think about
natural languages like Japanese, Chinese, Russian or even sign language.
These languages are totally different from English, especially with
regard to "syntax". Yet, they are at least equally effective for
communication, in some circumstances even more effective. Of course,
their "syntax" makes it a little harder to learn them, but would you
dismiss those languages only because of the "syntax"?

Pascal

--
Pascal Costanza               University of Bonn
mailto:costa...@web.de        Institute of Computer Science III
http://www.pascalcostanza.de  Römerstr. 164, D-53117 Bonn (Germany)


 
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.
Hannah Schroeter  
View profile  
 More options Oct 23 2002, 7:28 am
Newsgroups: comp.lang.lisp
From: han...@schlund.de (Hannah Schroeter)
Date: 23 Oct 2002 11:26:42 GMT
Local: Wed, Oct 23 2002 7:26 am
Subject: Re: Difference between LISP and C++
Hello!

Vassil Nikolov  <vniko...@poboxes.com> wrote:

>[...]
>  foo("bar);
>at least will likely have the number of that same line in the error
>message.  I don't have a good example handy, but it is much more
>fun when the reported line number is far off the place where the
>problem is (and it does happen).

Oh yeah.

... foo(...)
{
        ... {
                ... {
                        /* Deeply nested in some function */
                        if (foo) /* See, I've forgotten a '{' */
                                bar;
                                baz;
                                blah;
                        }
                        blaz;
                }
        }

} /* It'll be here or even later that the error is recognized */
>By the way, even in a language with C's syntax, using Emacs can be
>very helpful because the moment you notice the current line does
>not indent correctly, you know something is wrong, you don't have
>to wait for the compiler to tell you.

Right. In my example, the baz statement will be indented to line up
with the "if".

And tools like paren-matching (:set showmatch in vim, that magic
paren highlighting thing in emacs, ...) help for C like syntaxes, too.

>[...]

Kind regards,

Hannah.


 
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 Oct 23 2002, 9:16 am
Newsgroups: comp.lang.lisp
From: Erik Naggum <e...@naggum.no>
Date: 23 Oct 2002 13:16:45 +0000
Local: Wed, Oct 23 2002 9:16 am
Subject: Re: Difference between LISP and C++
* arien <spammers_s...@getlost.invalid>
| The problem is, that the only languages I have learnt are Java and C++.

  Well, at least you are aware of your handicap.

| Now this, regardless of what you all say about how good it is, puts lisp
| behind the eight-ball when it comes to readability.

  Look, if you spent the time you spent complaining about it just working
  with Common Lisp, the problem would go away by itself.  However, since
  you have gone public with your whining, there is a natural psychological
  barrier to growing a clue: It is easy to recognize and fix a mistake made
  in good faith, but it is hard for many people to recognize that they did
  something stupid, and they spend a lot of time and effort defending their
  stupidity so as to make it appear less stupid.  This tends to slow down
  learning.  All good things come later to those who defend everything they
  do.  Successful people make and fix more mistakes than the unsuccessful.

| But like I said, Java never has this problem.

  This would carry more weight if you said you never had any problems with
  Java whatsoever.  So far, it appears that the /only/ problem you have
  with Common Lisp is the parentheses.  That is pretty good, actually.

--
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.
Pascal Costanza  
View profile  
 More options Oct 23 2002, 9:25 am
Newsgroups: comp.lang.lisp
From: Pascal Costanza <costa...@web.de>
Date: Wed, 23 Oct 2002 15:25:48 +0200
Local: Wed, Oct 23 2002 9:25 am
Subject: Re: Difference between LISP and C++

Erik Naggum wrote:
> | Now this, regardless of what you all say about how good it is, puts lisp
> | behind the eight-ball when it comes to readability.

>   Look, if you spent the time you spent complaining about it just working
>   with Common Lisp, the problem would go away by itself.
[...]
>   It is easy to recognize and fix a mistake made
>   in good faith, but it is hard for many people to recognize that they did
>   something stupid, and they spend a lot of time and effort defending their
>   stupidity so as to make it appear less stupid.  This tends to slow down
>   learning.

Things get even worse when the majority of people, including so-called
"professionals", tell us that the stupid things are the right things to do.

However, note that people can only recognize that they have done
something stupid with hindsight.

Pascal

--
Pascal Costanza               University of Bonn
mailto:costa...@web.de        Institute of Computer Science III
http://www.pascalcostanza.de  Römerstr. 164, D-53117 Bonn (Germany)


 
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.
Joe Marshall  
View profile  
 More options Oct 23 2002, 9:40 am
Newsgroups: comp.lang.lisp
From: Joe Marshall <j...@ccs.neu.edu>
Date: 23 Oct 2002 09:40:49 -0400
Local: Wed, Oct 23 2002 9:40 am
Subject: Re: Difference between LISP and C++

arien <spammers_s...@getlost.invalid> writes:
> Then you get lisp thrown in your face, and all these
> ((((((()))))))'s. I mean, a missing ; at the end of a line is easy to
> find, even in Notepad. The syntax of lisp makes it virtually impossible
> to use without a suitable editor.

I posted these before, but they seem relevant to this conversation.

Excerpts from real C header files:

#define FromHex(n) (((n) >= 'A') ? ((n) + 10 - 'A') : ((n) - '0'))
#define StreamFromFOURCC(fcc) ((WORD) ((FromHex(LOBYTE(LOWORD(fcc))) << 4) + (FromHex(HIBYTE(LOWORD(fcc))))))
#define ToHex(n) ((BYTE) (((n) > 9) ? ((n) - 10 + 'A') : ((n) + '0')))
#define MAKEAVICKID(tcc,stream)  MAKELONG((ToHex((stream) & 0x0f) << 8) | (ToHex(((stream) & 0xf0) >> 4)),tcc)

#define va_arg(AP, TYPE)      \
 (AP = (__gnuc_va_list) ((char *) (AP) + __va_rounded_size (TYPE)), \
  *((TYPE *) (void *) ((char *) (AP)     \
         - ((sizeof (TYPE) < __va_rounded_size (char) \
      ? sizeof (TYPE) : __va_rounded_size (TYPE))))))

#define PLAUSIBLE_BLOCK_START_P(addr, offset)    \
((*((format_word *)       \
    (((char *) (addr)) + ((offset) - (sizeof (format_word)))))) == \
   ((BYTE_OFFSET_TO_OFFSET_WORD(offset))))

There is a fundamental tension between ease of debugging and ease of
writing code.  Imagine the space of all possible strings and consider
the subspace of all syntactically correct (well-formed) strings.  If
every syntactically correct string is far away from its nearest
neighbor, then it would be virtually impossible to make a typographic
error that couldn't be easily seen (and possibly corrected by the
computer).  Consider a language in which all numbers needed to be
written out longhand.  You'd virtually eliminate errors that occur
because of a finger hitting the wrong key.  However, such a language
would be quite verbose and difficult to write.

If the semantics were such that nearness in syntactic space lead to
extraordinary distance in semantic space, I imagine that even simple
`braino' errors would be easy to spot.  If `<' meant `compare for less
than' and `>' meant `string upcase', you'd quickly discover those
cases where you meant the former but typed the latter.  On the other
hand, the intellectual burden of using such a language would be much
higher.

Lisp tends to be more parsimonious in syntax, so a misplaced paren can
often lead to something that is syntactically well-formed and
semantically subtlely different from what the user intended.  The
intellectual burden, however, is far lower than for C.  In Lisp, you
never ask yourself `what do I delimit *this* expression with?', or
`does *this* form bind closer than *that*?', or `what code has the
responsibility for freeing this temporary storage?'.


 
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.
Joe Marshall  
View profile  
 More options Oct 23 2002, 9:44 am
Newsgroups: comp.lang.lisp
From: Joe Marshall <j...@ccs.neu.edu>
Date: 23 Oct 2002 09:44:03 -0400
Local: Wed, Oct 23 2002 9:44 am
Subject: Re: Difference between LISP and C++

Vassil Nikolov <vniko...@poboxes.com> writes:
> By the way, even in a language with C's syntax, using Emacs can be
> very helpful because the moment you notice the current line does
> not indent correctly, you know something is wrong, you don't have
> to wait for the compiler to tell you.

Font-lock is even better!  I have my emacs set up for `las vegas'
style color coding and have found that I can find some syntax errors
simply because the code is the wrong color.

 
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 Oct 23 2002, 10:32 am
Newsgroups: comp.lang.lisp
From: Erik Naggum <e...@naggum.no>
Date: 23 Oct 2002 14:32:21 +0000
Local: Wed, Oct 23 2002 10:32 am
Subject: Re: Difference between LISP and C++
* Pascal Costanza <costa...@web.de>
| Things get even worse when the majority of people, including so-called
| "professionals", tell us that the stupid things are the right things to do.

  This is a completely vacuous statement.  What are you talking about?

| However, note that people can only recognize that they have done
| something stupid with hindsight.

  They can realize with hindsight that even at the time they did it, it was
  stupid.  If they rebel against this realization by trying to make it not
  stupid at the time, such as by defending themselves, they make matters
  much worse since even this is stupid at the time, to be realized later.

  You seem to make an assumption that people do not do stupid things.  This
  is not so.  The problem is that people do not /think/, and therefore do
  stupid things because they do not pay attention at the time.  To /think/
  is a choice, perhaps the only choice.  Not to think is /really/ stupid,
  but some people respond only with emotions when this is pointed out.

--
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.
Jock Cooper  
View profile  
 More options Oct 23 2002, 1:20 pm
Newsgroups: comp.lang.lisp
From: Jock Cooper <jo...@mail.com>
Date: 23 Oct 2002 09:55:07 -0700
Local: Wed, Oct 23 2002 12:55 pm
Subject: Re: Difference between LISP and C++

arien <spammers_s...@getlost.invalid> writes:
> The problem is, that the only languages I have learnt are Java and C++.
> Java first. Learning C++ wasn't much more difficult because the syntax
> is similar. Then you get lisp thrown in your face, and all these
> ((((((()))))))'s. I mean, a missing ; at the end of a line is easy to
> find, even in Notepad. The syntax of lisp makes it virtually impossible
> to use without a suitable editor. Now this, regardless of what you all
> say about how good it is, puts lisp behind the eight-ball when it comes
> to readability. I have sat there with my lecturer going through the
> code, trying to find where the error is. But like I said, Java never has
> this problem.

I don't understand why you are still participating in this thread.
Lisp is not your cup of tea, that's fine.  So finish your Lisp course,
and never use it again.  There are plenty of Java and C++ jobs out
there.  Arguing with Lispers about syntax and parentheses is pointless
and only increases the noise in this newsgroup.  When I moved from
C/Perl to Lisp my productivity increased by an order of magnitude.
(in fact part of that *IS* because of the parentheses (and s-exps, and
how emacs treats them)). I suspect this is true of most Lispers.  So
you're fighting a losing argument, at least in this ng.

 
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.
Jason Kantz  
View profile  
 More options Oct 23 2002, 4:23 pm
Newsgroups: comp.lang.lisp
From: "Jason Kantz" <jason+s...@kantz.com>
Date: Wed, 23 Oct 2002 20:22:46 GMT
Local: Wed, Oct 23 2002 4:22 pm
Subject: Re: Difference between LISP and C++
Joe Marshall <j...@ccs.neu.edu> wrote in message

news:7kgie9hz.fsf@ccs.neu.edu...
> I have always detested compilers that report things like:
> ``Expected a ; found a }''

> If it is smart enough to know what ought to go there, why doesn't it
> just fix it?

Some compilers do something like this ...

(defun statement-list ()
  (and (statement) (sl*)))

(defun sl* ()
  (if (match '|;|)
      (or (and (statement) (sl*))  t)
      (error "Expected \";\" on line ~s, but read \"~a\""
                *line-number* *lookahead*)))

where statement is some function that breaks down to parsing assignments and
expressions.

When parsing

b = a/(b+23) * a/b-1);

everything looks all good if you read as far as
b =  a/(b+23) *  a/b  - 1

then you hit the dangling paren instead of the end of a valid statement.
the parser can't just throw in a ;  ... what the programmer actually meant
is ambiguous:

b = a/(b+23) * a/b  -1;    or
b = a/(b+23) * (a/b -1);  or
b = a/(b+23) * a/(b-1); or
b = a/((b+23) * a/b -1);

--
Jason Kantz
http://kantz.com/jason


 
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.
arien  
View profile  
 More options Oct 23 2002, 8:12 pm
Newsgroups: comp.lang.lisp
From: arien <spammers_s...@getlost.invalid>
Date: Thu, 24 Oct 2002 09:45:13 +0930
Local: Wed, Oct 23 2002 8:15 pm
Subject: Re: Difference between LISP and C++
In article <w5pt9.49829$ER5.3482...@news2.telusplanet.net>,
w...@nospam.nowhere says...

> "arien" <spammers_s...@getlost.invalid> wrote in message
> news:MPG.1820c1077a253887989755@news.adl.ihug.com.au...
> > to readability. I have sat there with my lecturer going through the
> > code, trying to find where the error is. But like I said, Java never has
> > this problem.

> Post the code you are having trouble with.

> --
> Wade

> Email: (format nil "~A@~A.~A" "whumeniu" "telus" "net")

The problem is solved now. I have been having these problems more than
once, and it takes very close inspection to find them.

Wait until I start on my next assignment, then it'll happen all over
again :-)

--
Mel

Please post reply to newsgroup. Reply address isn't valid.


 
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.
arien  
View profile  
 More options Oct 23 2002, 8:13 pm
Newsgroups: comp.lang.lisp
From: arien <spammers_s...@getlost.invalid>
Date: Thu, 24 Oct 2002 09:46:35 +0930
Local: Wed, Oct 23 2002 8:16 pm
Subject: Re: Difference between LISP and C++
In article <un0p593vc....@poboxes.com>, vniko...@poboxes.com says...

fun? this is your idea of fun?

--
Mel

Please post reply to newsgroup. Reply address isn't valid.


 
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.
arien  
View profile  
 More options Oct 23 2002, 8:16 pm
Newsgroups: comp.lang.lisp
From: arien <spammers_s...@getlost.invalid>
Date: Thu, 24 Oct 2002 09:49:27 +0930
Local: Wed, Oct 23 2002 8:19 pm
Subject: Re: Difference between LISP and C++
In article <3DB62D5E.5030...@nyc.rr.com>, ktil...@nyc.rr.com says...

Is LispWorks a good editor?

> Right now you are just showing us how close-minded you are.

no, not close-minded, just exasperated! I never said I don't like the
language, I'm just finding it harder to learn.

--
Mel

Please post reply to newsgroup. Reply address isn't valid.


 
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.
Larry Clapp  
View profile  
 More options Oct 23 2002, 8:18 pm
Newsgroups: comp.lang.lisp
From: Larry Clapp <la...@rabbit.ddts.net>
Date: 24 Oct 2002 00:18:12 GMT
Local: Wed, Oct 23 2002 8:18 pm
Subject: Re: Difference between LISP and C++

In article <3244372341279...@naggum.no>, Erik Naggum wrote:
> * Pascal Costanza <costa...@web.de>
>| Things get even worse when the majority of people, including
>| so-called "professionals", tell us that the stupid things are
>| the right things to do.

>   This is a completely vacuous statement.  What are you talking
>   about?

I figured he meant either Java or xml.  :)  You hear lots of
"experts" and "professionals" talking about both.

-- L


 
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.
Donald Fisk  
View profile  
 More options Oct 23 2002, 8:25 pm
Newsgroups: comp.lang.lisp
From: Donald Fisk <hibou00000nos...@enterprise.net>
Date: Thu, 24 Oct 2002 01:41:26 +0100
Local: Wed, Oct 23 2002 8:41 pm
Subject: Re: Difference between LISP and C++

Erann Gat wrote:
> (NB: IMO, the artificial distinction between "program" and "data" is
> actually very destructive, in fact the root cause of many of the problems
> that software engineering faces today.  That's why Lisp is the Right
> Thing: it is (so far) the only programming language that works to erase
> this distinction rather than reinforce it.)

(The) Lisp (family) is not unique in this.   Prolog also works to
erase the distinction between code and data.

> E.

Le Hibou
--
Dalinian: Lisp. Java. Which one sounds sexier?
RevAaron: Definitely Lisp. Lisp conjures up images of hippy coders,
drugs,
sex, and rock & roll. Late nights at Berkeley, coding in Lisp fueled by
LSD.
Java evokes a vision of a stereotypical nerd, with no life or social
skills.

 
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.
arien  
View profile  
 More options Oct 23 2002, 8:29 pm
Newsgroups: comp.lang.lisp
From: arien <spammers_s...@getlost.invalid>
Date: Thu, 24 Oct 2002 10:02:30 +0930
Local: Wed, Oct 23 2002 8:32 pm
Subject: Re: Difference between LISP and C++
In article <m3adl5w0wk....@jcooper02.sagepub.com>, jo...@mail.com
says...

> arien <spammers_s...@getlost.invalid> writes:
> > The problem is, that the only languages I have learnt are Java and C++.
> > Java first. Learning C++ wasn't much more difficult because the syntax
> > is similar. Then you get lisp thrown in your face, and all these
> > ((((((()))))))'s. I mean, a missing ; at the end of a line is easy to
> > find, even in Notepad. The syntax of lisp makes it virtually impossible
> > to use without a suitable editor. Now this, regardless of what you all
> > say about how good it is, puts lisp behind the eight-ball when it comes
> > to readability. I have sat there with my lecturer going through the
> > code, trying to find where the error is. But like I said, Java never has
> > this problem.

> I don't understand why you are still participating in this thread.

Well EXCUSE me for speaking. In case you didn't notice, I was the one
who started this thread! I'm trying to understand why Lisp is the way it
is. I'm just expressing my exasperation with learning Lisp, and how I am
finding it more difficult than learning Java.

> Lisp is not your cup of tea, that's fine.

I never said that I don't like lisp. I don't understand how to use it
yet, but that doesn't mean I don't like it!

> So finish your Lisp course,
> and never use it again.  There are plenty of Java and C++ jobs out
> there.  Arguing with Lispers about syntax and parentheses is pointless
> and only increases the noise in this newsgroup.  

The syntax is harder to learn. From the sounds of it this isn't
uncommon. I don't mean to say that the syntax is bad, and obviously
Lispers have grown to like it. But for me, it is harder to learn.

> When I moved from
> C/Perl to Lisp my productivity increased by an order of magnitude.
> (in fact part of that *IS* because of the parentheses (and s-exps, and
> how emacs treats them)). I suspect this is true of most Lispers.  So
> you're fighting a losing argument, at least in this ng.

I'm not argueing about the parentheses. Like I said, it just makes
learning the language hard.

--
Mel

Please post reply to newsgroup. Reply address isn't valid.


 
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 Oct 23 2002, 8:42 pm
Newsgroups: comp.lang.lisp
From: Erik Naggum <e...@naggum.no>
Date: 24 Oct 2002 00:42:06 +0000
Local: Wed, Oct 23 2002 8:42 pm
Subject: Re: Difference between LISP and C++
* arien <spammers_s...@getlost.invalid>
| Wait until I start on my next assignment, then it'll happen all over
| again :-)

  Do you admit to being learning-impaired or to think that being learning-
  impaired is a joking matter?  Either is pretty tasteless.  If humor is
  your calling, why are you not interested in joking about the silliness of
  your mistakes and how easily you could have avoided them with a little
  more concentration and dedication to your goal of making each and every
  one of all the mistakes you ever make in your life once and only once?

  Cockroaches can do it.  Pigs can do it.  Even sheep do not repeat their
  mistakes.  Granted, they live much shorter lives, do not vote for George
  W. Bush except in Florida, and their death is usually well planned and
  deemed for a good cause (just as in Texas), which could warp anyone's
  ethics, but I think human beings should learn from their mistakes, too.
  For instance, if I were to visit the USA soon, no doubt some IRS person
  would have read comp.lang.lisp while waiting for the lines to grow long
  enough, and I would regret the mistake of posting anti-Bush materials.
  I can wait for the American people to correct /their/ mistake, but I do
  not have particularly high hopes that the GOP will admit to theirs.  See?
  If people make the same mistake all over again, that sure is no laughing
  matter.  This is really, really serious.  Learn from your mistakes today!

--
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.
Erik Naggum  
View profile  
 More options Oct 23 2002, 8:43 pm
Newsgroups: comp.lang.lisp
From: Erik Naggum <e...@naggum.no>
Date: 24 Oct 2002 00:43:10 +0000
Local: Wed, Oct 23 2002 8:43 pm
Subject: Re: Difference between LISP and C++
* Larry Clapp <la...@rabbit.ddts.net>
| In article <3244372341279...@naggum.no>, Erik Naggum wrote:
| > * Pascal Costanza <costa...@web.de>
| >| Things get even worse when the majority of people, including
| >| so-called "professionals", tell us that the stupid things are
| >| the right things to do.
| >
| >   This is a completely vacuous statement.  What are you talking
| >   about?
|
| I figured he meant either Java or xml.  :)  You hear lots of
| "experts" and "professionals" talking about both.

  But the sad thing is that by being vacuous, he commits the same error.

--
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.
Marc Spitzer  
View profile  
 More options Oct 23 2002, 8:57 pm
Newsgroups: comp.lang.lisp
From: Marc Spitzer <mspit...@optonline.net>
Date: Thu, 24 Oct 2002 00:57:39 GMT
Local: Wed, Oct 23 2002 8:57 pm
Subject: Re: Difference between LISP and C++
arien <spammers_s...@getlost.invalid> wrote in
news:MPG.1821e3a39b2daccc989765@news.adl.ihug.com.au:

> In article <m3adl5w0wk....@jcooper02.sagepub.com>, jo...@mail.com
> says...
> Well EXCUSE me for speaking. In case you didn't notice, I was the one
> who started this thread! I'm trying to understand why Lisp is the way
> it is. I'm just expressing my exasperation with learning Lisp, and how
> I am finding it more difficult than learning Java.

There is a lot more to core lisp then there is to core java

> The syntax is harder to learn. From the sounds of it this isn't
> uncommon. I don't mean to say that the syntax is bad, and obviously
> Lispers have grown to like it. But for me, it is harder to learn.

How can the syntax be harder to learn when there is so much less of it?

> I'm not argueing about the parentheses. Like I said, it just makes
> learning the language hard.

The syntax of lisp is not hard, lisp is hard.  There is a lot in the core  
language that you need to know and that is the hard part.  

marc


 
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.
Donald Fisk  
View profile  
 More options Oct 23 2002, 9:03 pm
Newsgroups: comp.lang.lisp
From: Donald Fisk <hibou00000nos...@enterprise.net>
Date: Thu, 24 Oct 2002 02:19:21 +0100
Local: Wed, Oct 23 2002 9:19 pm
Subject: Re: Difference between LISP and C++

arien wrote:

> In article <X=auPQFo=2R07=EX8AZkMUfJH...@4ax.com>, amor...@mclink.it
> says...
> > Although there have been a number of proposals for changing the Lisp syntax
> > and getting rid of the parentheses, none of them caught up. Lisp has been
> > preserving its parentheses for a very long time.

> > What does all of this suggest you?

> It explains to me the reason why no one has ever heard of lisp :-)

And why lots more people have heard of CGOL I suppose?

Other languages have {, }, [, ], and various other bits of
syntactic aspartame which Lisp doesn't need.   Strictly speaking
Lisp doesn't even have parentheses, except by convention.   (
is just a read macro, which tells the reader that a list of items
follows, which is terminated by ).   So if you don't like those
parentheses, you could always replace them.   But then how would
you represent a list of items?   And in what way is a sequence of
expressions different from a list?

But I have a solution for you.   You complain of Lisp's arcane
syntax, but only of this.   You pine for C's familiar mixture of
parentheses, braces, what have you.   There is a language out
there, very popular it is too, which looks like C but acts more
like Lisp.   It's called JavaScript.   Perhaps you'll find it
more to your liking.

> Mel

Le Hibou
--
Dalinian: Lisp. Java. Which one sounds sexier?
RevAaron: Definitely Lisp. Lisp conjures up images of hippy coders,
drugs,
sex, and rock & roll. Late nights at Berkeley, coding in Lisp fueled by
LSD.
Java evokes a vision of a stereotypical nerd, with no life or social
skills.

 
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 Oct 23 2002, 9:08 pm
Newsgroups: comp.lang.lisp
From: Erik Naggum <e...@naggum.no>
Date: 24 Oct 2002 01:08:16 +0000
Local: Wed, Oct 23 2002 9:08 pm
Subject: Re: Difference between LISP and C++
* arien <spammers_s...@getlost.invalid>
| The syntax is harder to learn.  From the sounds of it this isn't
| uncommon.  I don't mean to say that the syntax is bad, and obviously
| Lispers have grown to like it.  But for me, it is harder to learn.

  But it is harder to learn becuase you resist it!  We all know this.  Yes,
  it is not uncommon to resist change.  Lots of dumb people resist changes
  of all kinds, whether they will benefit from them or not, in fact more
  often than not, they resist changes they /will/ benefit greatly from.
  What is so tragic about people who keep insisting that things are hard to
  learn is that saying makes it so.  Have you ever heard of a person who
  admits to thinking "I can'to do this!" over and over until he finally
  succeeded?  No?  I know I have not.  Why not?  What is the #1 advice they
  give to athletes who want to win so badly they are willing to abuse their
  body to the extreme, to experience more pain than they were ever meant to,
  to break every reasonable and rational limit to human performance?  To
  get into the winning mindset.  Not only /can/ they beat the odds against
  them, they /have to/.  Not that I want you to go overboard and ignore the
  finely tuned instructions that are embedded in our finely tuned bodies
  that pain means a mistake, but you should not yield to resistance if you
  want to succeed.  Learning is hard work.  Succeeding is hard work.  If
  you only plan to do what you find easy to do in your life, you /will/ go
  nuts in no time.  Boredom kills people, literally.  Every bored moment of
  your life is an experience of what death is like.  If it is hard to learn,
  that means you have to use your brain and concentrate to succeed.  This
  has "good for you" written all over it.  If Java was easy to learn, you
  would go mad if you were to program in it for real.  As I have said on
  several occasions: Life is too long to be good at C++, meaning that if
  you spent the decade it takes to become good at it, you would have wasted
  the opportunity to be good at something worth being good at, and you
  would have to spend the rest of your miserable life programming in C++.
  Yes, scream.  Now, being good at Java takes the average Joe a good while,
  and he can expect to use it for long enough to both be worth it and to be
  worth more than the alternatives.  But if you found Java easy to learn,
  you are not the average Joe.  Java is not for you.  The only things worth
  becoming good at are things that are hard to learn, but not all things
  that are hard to learn are worth being good at.  The only thing you know
  is that if it is too easy to learn, it is not worth wasting brain time on
  it.  Quit whining about how hard Common Lisp is to learn.  Start whining
  about how easy Java was and how much you hate wasting your time on the
  easy stuff: Yell "BOOORING!" at it and "Gimme something my dog can't do!"

--
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.
Donald Fisk  
View profile  
 More options Oct 23 2002, 9:16 pm
Newsgroups: comp.lang.lisp
From: Donald Fisk <hibou00000nos...@enterprise.net>
Date: Thu, 24 Oct 2002 02:32:48 +0100
Local: Wed, Oct 23 2002 9:32 pm
Subject: Re: Difference between LISP and C++

arien wrote:
> No one has yet explained what the difference is between a High or Low
> level language? This is why I'm confused!

High level languages allow you to write code without bothering
about how it runs on the hardware.   Low level languages allow
you to get closer to the hardware at the expense of you having
to worry about how to represent things.   A rough ordering of
some languages not so randomly selected would be:

Prolog > Lisp > Java > C > Assembly language.

C frees you from having to think about register allocation,
Java frees you from having to think about memory allocation
and cleanup, Lisp frees you from having to represent symbols,
or write code which manipulates them, Prolog frees you
from having to write code which does pattern matching or
backtracking.

> Mel

Le Hibou
--
Dalinian: Lisp. Java. Which one sounds sexier?
RevAaron: Definitely Lisp. Lisp conjures up images of hippy coders,
drugs,
sex, and rock & roll. Late nights at Berkeley, coding in Lisp fueled by
LSD.
Java evokes a vision of a stereotypical nerd, with no life or social
skills.

 
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.
arien  
View profile  
 More options Oct 23 2002, 9:17 pm
Newsgroups: comp.lang.lisp
From: arien <spammers_s...@getlost.invalid>
Date: Thu, 24 Oct 2002 10:50:47 +0930
Local: Wed, Oct 23 2002 9:20 pm
Subject: Re: Difference between LISP and C++
In article <3244408926315...@naggum.no>, e...@naggum.no says...

wow, you are weird. What an insulting reply. I'm sure a learning
impaired person wouldn't be able to acheive High Distinctions in Java. I
have so far taken to programming like a duck to water. Unfortunately,
the water in Lisp is a little boggy, and I KNOW I'm not the only one
having this problem. I don't understand why you guys are all so
defensive of Lisp. Obviously lispers are forever defending their case,
and that many others in the world are having the same problem.

I never said I didn't like lisp, I'm just sure I like the people who use
it though.

--
Mel

Please post reply to newsgroup. Reply address isn't valid.


 
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 151 - 175 of 722 < Older  Newer >
« Back to Discussions « Newer topic     Older topic »