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
forth vs 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 50 - 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
 
gavino  
View profile  
 More options Nov 8 2011, 6:17 am
Newsgroups: comp.lang.lisp
From: gavino <gavcom...@gmail.com>
Date: Tue, 8 Nov 2011 03:17:24 -0800 (PST)
Local: Tues, Nov 8 2011 6:17 am
Subject: forth vs lisp
opinions?

 
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.
ok  
View profile  
 More options Nov 8 2011, 6:57 am
Newsgroups: comp.lang.lisp
From: ok <java....@gmail.com>
Date: Tue, 8 Nov 2011 03:57:43 -0800 (PST)
Local: Tues, Nov 8 2011 6:57 am
Subject: Re: forth vs lisp
On 8 Nov, 12:17, gavino <gavcom...@gmail.com> wrote:

> opinions?

they are simply best friends, jus' like you'n me.

P.S. the only real difference is that Forth was inspired by the number
4, and Lisp by the number 7 (the number tells it all).


 
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.
fortunatus  
View profile  
 More options Nov 8 2011, 11:16 am
Newsgroups: comp.lang.lisp
From: fortunatus <daniel.elia...@excite.com>
Date: Tue, 8 Nov 2011 08:16:48 -0800 (PST)
Local: Tues, Nov 8 2011 11:16 am
Subject: Re: forth vs lisp
My opinion?  Lisp is prefix FORTH.  That hit me right off the bat when
I started learning Lisp.  Similar (for a beginner) experience of
working with symbol table + interpreter.

Prefix requires full parenthesisation, whereas postfix requires no
parenthesisation, and FORTH opted not to put in parenthesisation.
Full paranthesisation leads to comprehensible complex operand
arrangements.  Despite so many '))))' happening, folks can parse out
what the operators and operands are.  That gets hard in postfix
without parenthesis.  So operators stay fairly simple.  Lisp could
grow larger and more complex due to the paranthesis.  Also Lisp had
academic attention and bias in its favor for developing complexity.
Although nobody could claim FORTH has not been successful!  Its goals
were less lofty from the start, I think.

Notice that Chuck Moore, developer of FORTH, took a class on Lisp from
John McCarthy before developing FORTH.

http://www.colorforth.com/HOPL.html


 
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.
Nomen Nescio  
View profile  
 More options Nov 8 2011, 10:26 am
Newsgroups: comp.lang.lisp
From: Nomen Nescio <nob...@dizum.com>
Date: Tue, 8 Nov 2011 16:26:51 +0100 (CET)
Local: Tues, Nov 8 2011 10:26 am
Subject: Re: forth vs lisp

gavino <gavcom...@gmail.com> wrote:
> opinions?

My opinion is your a dumb motherfucker

 
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.
Nomen Nescio  
View profile   Translate to Translated (View Original)
 More options Nov 8 2011, 12:12 pm
Newsgroups: comp.lang.lisp
From: Nomen Nescio <nob...@dizum.com>
Date: Tue, 8 Nov 2011 18:12:47 +0100 (CET)
Local: Tues, Nov 8 2011 12:12 pm
Subject: Re: forth vs lisp

gavino <gavcom...@gmail.com> wrote:
> opinions?

hhahahahahahahahahahahhahaha
aaahhahahahahahahahahahahaha

 
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.
Don Geddis  
View profile  
 More options Nov 8 2011, 5:23 pm
Newsgroups: comp.lang.lisp
From: Don Geddis <d...@geddis.org>
Date: Tue, 08 Nov 2011 14:23:46 -0800
Local: Tues, Nov 8 2011 5:23 pm
Subject: Re: forth vs lisp
fortunatus <daniel.elia...@excite.com> wrote on Tue, 8 Nov 2011 :

> My opinion?  Lisp is prefix FORTH.

That's certainly one difference, but hardly the most important one.

> Prefix requires full parenthesisation, whereas postfix requires no
> parenthesisation, and FORTH opted not to put in parenthesisation.

If you think the two languages are basically identical, except that one
put the operators before the operands and the other put them afterwards
... you'll come away with a very broken impression of both Forth and
Lisp.

        -- Don
___________________________________________________________________________ ____
Don Geddis                  http://don.geddis.org/               d...@geddis.org
Correlation may not cause causation, but they often occur together.


 
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 Nov 8 2011, 7:02 pm
Newsgroups: comp.lang.lisp
From: Kaz Kylheku <k...@kylheku.com>
Date: Wed, 9 Nov 2011 00:02:53 +0000 (UTC)
Local: Tues, Nov 8 2011 7:02 pm
Subject: Re: forth vs lisp
On 2011-11-08, fortunatus <daniel.elia...@excite.com> wrote:

> My opinion?  Lisp is prefix FORTH.  

The syntactic structure of a Lisp expression can be grasped even if you don't
know what it means.

If a Lisp expression adds two numbers X and Y together,
it usually looks like (+ X Y). This is a unit which stays together
even if you rearrange the rest of the expression.

None of the above holds in Forth. A Forth "expression" is just a sequence of
words. To know how they go together, you have to know their implementation.

An expression which adds together X and Y could have this in it:

  X Y +

That's if you're lucky. In between these words, there could be arbitrary
quantities of other words, which will work if these sequences leave
the stack where it is, so that by the time we get to the +, it has
the value of X and Y on top of the stack:

  X a b c d Y e f g h +

This is a kind of better assembly language for idiots savants.

The success stories on the Forth website are nearly all about trivial one-man
embedded projects, where Forth is an alternative to assembly language (and in a
good number of them, in parallel with assembly language).

To their credit some, some of the projects are mission-critical deployments.
But assembly language is also used in similar mission-critical deployments.

The Blub programmer working in Forth looks down at assembly language and sees
how Forth is so much easier to manipulate.

> Prefix requires full parenthesisation, whereas postfix requires no

Prefix does not require parenthesization when you fix the arity of every
operator:

  * + x y + z w    (x + y) * (z + w)

This is called polish notation, and the postfix mirror image of
that is reverse polish notation (RPN).

RPN is more prevalent because it can be processed from left to
right using a stack.

> Full paranthesisation leads to comprehensible complex operand
> arrangements.  Despite so many '))))' happening, folks can parse out
> what the operators and operands are.  That gets hard in postfix
> without parenthesis.  So operators stay fairly simple.  

Not only that, but more importantly, /programs/ stay fairly simple.

E.g. you don't see a workstation with mass storage, mouse+window GUI and
networking, programmed from hardware on up in Forth.


 
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.
fortunatus  
View profile  
 More options Nov 8 2011, 9:14 pm
Newsgroups: comp.lang.lisp
From: fortunatus <daniel.elia...@excite.com>
Date: Tue, 8 Nov 2011 18:14:10 -0800 (PST)
Local: Tues, Nov 8 2011 9:14 pm
Subject: Re: forth vs lisp
On Nov 8, 7:02 pm, Kaz Kylheku <k...@kylheku.com> wrote:

> Prefix does not require parenthesization when you fix the arity of every
> operator:
>   * + x y + z w    (x + y) * (z + w)

Nice analysis on all points...  of course, what the heck was I
thinking??  Even, I think, you can't do postfix without parens unless
you fix the arity of the operators, can you?

(LAMBDA (A B &REST C) ... )

Or more "complex" arity?

(LAMBDA (A (B C &OPTIONAL D) E) ... )


 
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.
fortunatus  
View profile  
 More options Nov 8 2011, 9:36 pm
Newsgroups: comp.lang.lisp
From: fortunatus <daniel.elia...@excite.com>
Date: Tue, 8 Nov 2011 18:36:14 -0800 (PST)
Local: Tues, Nov 8 2011 9:36 pm
Subject: Re: forth vs lisp
On Nov 8, 5:23 pm, Don Geddis <d...@geddis.org> wrote:

> If you think the two languages are basically identical, except that one
> put the operators before the operands and the other put them afterwards
> ... you'll come away with a very broken impression of both Forth and
> Lisp.

Oh, crikey! I believe I qualified the limits on my opinion pretty
well: "Similar (for a beginner) experience of working with symbol
table + interpreter."

 
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.
Tim Bradshaw  
View profile  
 More options Nov 9 2011, 2:29 am
Newsgroups: comp.lang.lisp
From: Tim Bradshaw <t...@tfeb.org>
Date: Wed, 9 Nov 2011 07:29:53 +0000 (UTC)
Local: Wed, Nov 9 2011 2:29 am
Subject: Re: forth vs lisp

Kaz Kylheku <k...@kylheku.com> wrote:
> Not only that, but more importantly, /programs/ stay fairly simple.

> E.g. you don't see a workstation with mass storage, mouse+window GUI and
> networking, programmed from hardware on up in Forth.

the HP48 & related calculators were quite substantially programmed in a
sort- of Forth. it's not really Forth though, and it certainly is hard to
write substantial programs.

I do think Forth is spiritually similar to Lisp in some ways though.


 
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.
Fritz Wuehler  
View profile  
 More options Nov 9 2011, 5:18 am
Newsgroups: comp.lang.lisp
From: Fritz Wuehler <fr...@spamexpire-201111.rodent.frell.theremailer.net>
Date: Wed, 09 Nov 2011 11:18:39 +0100
Local: Wed, Nov 9 2011 5:18 am
Subject: Re: forth vs lisp

> the HP48 & related calculators were quite substantially programmed in a
> sort- of Forth. it's not really Forth though, and it certainly is hard to
> write substantial programs.

There are Forth machines, see greenarrays.com and ask on comp.lang.forth if
you're really interested. The previous poster's comments were incorrect and
uninformed.

> I do think Forth is spiritually similar to Lisp in some ways though.

How? They are dissimilar in fundamental ways. FORTH is based on a stack
machine and it's not meaningful when separated from the underlying
architecture. LISP is a complete abstraction from its implementation. FORTH
is fundamentally interactive, LISP is not, not fundamentally. FORTH is not
appropriate for everything, nor is LISP. When you use tools appropriately
you get the best results. The only general purpose languages are assemblers
and low-level languages like C, PL/I, PL/M. Any higher than that and a
domain specific language helps. Yes I can pound nails with a screwdriver but
no I don't have to.

 
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.
jvt  
View profile  
 More options Nov 9 2011, 6:55 am
Newsgroups: comp.lang.lisp
From: jvt <vincent.to...@gmail.com>
Date: Wed, 9 Nov 2011 03:55:30 -0800 (PST)
Local: Wed, Nov 9 2011 6:55 am
Subject: Re: forth vs lisp
Better to compare Factor and Lisp.  Forth is simply too low level for
appropriate comparison.  It is no type system whatsoever, for
instance, either run time or compile time.  Obviously such could be
implemented, but that is not standard practice.  It also lacks
facilities for higher order functional programming, which Joy/Factor
remedy.

Also, I wrote this stack language integrated into emacs lisp:

https://github.com/VincentToups/emacs-utils/blob/master/with-stack.md

But, again, its much more like Factor than Forth.


 
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 Coleman  
View profile  
 More options Nov 9 2011, 10:08 am
Newsgroups: comp.lang.lisp
From: Larry Coleman <all.are.wond...@gmail.com>
Date: Wed, 9 Nov 2011 07:08:07 -0800 (PST)
Local: Wed, Nov 9 2011 10:08 am
Subject: Re: forth vs lisp
On Nov 9, 6:55 am, jvt <vincent.to...@gmail.com> wrote:

> Better to compare Factor and Lisp.  Forth is simply too low level for
> appropriate comparison.  It is no type system whatsoever, for
> instance, either run time or compile time.  Obviously such could be
> implemented, but that is not standard practice.  It also lacks
> facilities for higher order functional programming, which Joy/Factor
> remedy.

> Also, I wrote this stack language integrated into emacs lisp:

> https://github.com/VincentToups/emacs-utils/blob/master/with-stack.md

> But, again, its much more like Factor than Forth.

It also bears mention that Factor has stack-effect checking. When you
define a word, you also have to define the stack effect. If the
defined effect doesn't match the results of the definition, the word
won't compile.

 
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.
jvt  
View profile  
 More options Nov 9 2011, 10:39 am
Newsgroups: comp.lang.lisp
From: jvt <vincent.to...@gmail.com>
Date: Wed, 9 Nov 2011 07:39:44 -0800 (PST)
Local: Wed, Nov 9 2011 10:39 am
Subject: Re: forth vs lisp
Stack effect inference and checking is a really interesting aspect of
Factor which I wish Slava would write a paper about (maybe he already
has?) Checking stack effects is essentially like a very simple type
system, and so can serve as a kind of toy model for type checking and
inference.

 
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.
paul-donne...@sbcglobal.net  
View profile  
 More options Nov 9 2011, 12:52 pm
Newsgroups: comp.lang.lisp
From: paul-donne...@sbcglobal.net
Date: Wed, 09 Nov 2011 11:52:30 -0600
Local: Wed, Nov 9 2011 12:52 pm
Subject: Re: forth vs lisp
Fritz Wuehler <fr...@spamexpire-201111.rodent.frell.theremailer.net>
writes:

>> the HP48 & related calculators were quite substantially programmed in a
>> sort- of Forth. it's not really Forth though, and it certainly is hard to
>> write substantial programs.

> There are Forth machines, see greenarrays.com and ask on comp.lang.forth if
> you're really interested. The previous poster's comments were incorrect and
> uninformed.

>> I do think Forth is spiritually similar to Lisp in some ways though.

> FORTH is fundamentally interactive, LISP is not, not
> fundamentally.

What do you mean?

 
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.
Raymond Wiker  
View profile  
 More options Nov 9 2011, 3:40 pm
Newsgroups: comp.lang.lisp
From: Raymond Wiker <r...@unknown-00-23-6c-8d-9e-26.lan>
Date: Wed, 09 Nov 2011 21:40:26 +0100
Local: Wed, Nov 9 2011 3:40 pm
Subject: Re: forth vs lisp

Tim Bradshaw <t...@tfeb.org> writes:
> Kaz Kylheku <k...@kylheku.com> wrote:

>> Not only that, but more importantly, /programs/ stay fairly simple.

>> E.g. you don't see a workstation with mass storage, mouse+window GUI and
>> networking, programmed from hardware on up in Forth.

> the HP48 & related calculators were quite substantially programmed in a
> sort- of Forth. it's not really Forth though, and it certainly is hard to
> write substantial programs.

> I do think Forth is spiritually similar to Lisp in some ways though.

The programming language used in the HP-48 family of calculators is
called RPL - Reverse Polish Lisp.

 
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.
Rob Warnock  
View profile  
 More options Nov 9 2011, 11:02 pm
Newsgroups: comp.lang.lisp
From: r...@rpw3.org (Rob Warnock)
Date: Wed, 09 Nov 2011 22:02:24 -0600
Local: Wed, Nov 9 2011 11:02 pm
Subject: Re: forth vs lisp
fortunatus  <daniel.elia...@excite.com> wrote:

+---------------
| Kaz Kylheku <k...@kylheku.com> wrote:
| > Prefix does not require parenthesization when you fix the arity of every
| > operator:
| >   * + x y + z w    (x + y) * (z + w)
|
| Nice analysis on all points...  of course, what the heck was I
| thinking??  Even, I think, you can't do postfix without parens unless
| you fix the arity of the operators, can you?
|
| (LAMBDA (A B &REST C) ... )
+---------------

IIRC, PostScript [and maybe Smalltalk as well?] has a way of MARKing
the argument stack, and then APPLYing all of the args between the mark
and the top of the stack to a function. I forget the exact syntax,
but that's the effect. [I think the Adobe extension "pdfmark" does
approximately that: "mark <arg1> <arg2> ... <argn> <function> pdfmark"
is roughly (APPLY FUNCTION (LIST ARG1 ARG2 ... ARGn).]

Yes, it's not terribly uniform/orthogonal. Many of the mark-using
operators are named DOFUNCTIONTOMARK, e.g., "dicttomark", "cleartomark",
but not all (or even most?). Some take alists as args, e.g.,
"mark <key1> <value1> <key2> <value2> ... .dicttomark" ==> <dict>".

But as I said, I don't remember the exact details. (Anyone?)

-Rob

-----
Rob Warnock             <r...@rpw3.org>
627 26th Avenue         <http://rpw3.org/>
San Mateo, CA 94403


 
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.
D Herring  
View profile  
 More options Nov 10 2011, 1:29 am
Newsgroups: comp.lang.lisp
From: D Herring <dherr...@at.tentpost.dot.com>
Date: Thu, 10 Nov 2011 01:29:00 -0500
Subject: Re: forth vs lisp
On 11/09/2011 11:02 PM, Rob Warnock wrote:

> IIRC, PostScript [and maybe Smalltalk as well?] has a way of MARKing
> the argument stack, and then APPLYing all of the args between the mark
> and the top of the stack to a function. I forget the exact syntax,
> but that's the effect. [I think the Adobe extension "pdfmark" does
> approximately that: "mark<arg1>  <arg2>  ...<argn>  <function>  pdfmark"
> is roughly (APPLY FUNCTION (LIST ARG1 ARG2 ... ARGn).]

> Yes, it's not terribly uniform/orthogonal. Many of the mark-using
> operators are named DOFUNCTIONTOMARK, e.g., "dicttomark", "cleartomark",
> but not all (or even most?). Some take alists as args, e.g.,
> "mark<key1>  <value1>  <key2>  <value2>  ... .dicttomark" ==>  <dict>".

> But as I said, I don't remember the exact details. (Anyone?)

I never wrote much PS, but...  On my old HP48G, there were commands of
the form <stack> <N> <op>, where <N> specified how many parameters
<op> would consume from <stack>.  For example, ROLL would use this to
determine how many levels of the stack to rotate.

- Daniel


 
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.
Tim Bradshaw  
View profile  
 More options Nov 10 2011, 2:41 am
Newsgroups: comp.lang.lisp
From: Tim Bradshaw <t...@tfeb.org>
Date: Thu, 10 Nov 2011 07:41:23 +0000
Local: Thurs, Nov 10 2011 2:41 am
Subject: Re: forth vs lisp
On 2011-11-09 10:18:39 +0000, Fritz Wuehler said:

>> I do think Forth is spiritually similar to Lisp in some ways though.

> How?

Obviously they aren't, it's just people like me who've programmed in
both who get confused and think they are.  What would I know?

 
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.
Tim Bradshaw  
View profile  
 More options Nov 10 2011, 3:08 am
Newsgroups: comp.lang.lisp
From: Tim Bradshaw <t...@tfeb.org>
Date: Thu, 10 Nov 2011 08:08:46 +0000
Local: Thurs, Nov 10 2011 3:08 am
Subject: Re: forth vs lisp
On 2011-11-09 20:40:26 +0000, Raymond Wiker said:

> The programming language used in the HP-48 family of calculators is
> called RPL - Reverse Polish Lisp.

People often did call it that, I agree, though I think it's not clear
if HP did.  The expericne of programming in it, I found, was much more
Forth-like than Lisp-like though.  What I really meant though was that
the HP48 was a kind of mini RPL-machine in the interesting Lisp-machine
sense of being a fairly seamless environment built around a language,
not the boring "executes the language directly in HW" sense.

 
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 J. Bourguignon  
View profile  
 More options Nov 10 2011, 3:21 am
Newsgroups: comp.lang.lisp
From: "Pascal J. Bourguignon" <p...@informatimago.com>
Date: Thu, 10 Nov 2011 09:21:21 +0100
Local: Thurs, Nov 10 2011 3:21 am
Subject: Re: forth vs lisp

Tim Bradshaw <t...@tfeb.org> writes:
> On 2011-11-09 20:40:26 +0000, Raymond Wiker said:

>> The programming language used in the HP-48 family of calculators is
>> called RPL - Reverse Polish Lisp.

> People often did call it that, I agree, though I think it's not clear
> if HP did.  The expericne of programming in it, I found, was much more
> Forth-like than Lisp-like though.

Of course.  The essential difference between lisp code and the other
programming languages, is that in lisp, you don't need to know the arity
of the operators (or the "priority" of the operators, there's no such
notion in lisp), since applications are always parenthesized.

This is the feature (with attendant homoiconicity) that makes macro
programming a breeze in lisp, but more importantly, that frees
programmer neurons for better programming.  It allows lisp programmers
to read lisp code even without knowing thee operators used.  On the
other hand, in forth or Postscript and even with languages with complex
syntaxes, you cannot read the code without knowing all the operators,
their arity, and their priority.

--
__Pascal Bourguignon__                     http://www.informatimago.com/
A bad day in () is better than a good day in {}.


 
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 Nov 10 2011, 11:21 am
Newsgroups: comp.lang.lisp
From: Kaz Kylheku <k...@kylheku.com>
Date: Thu, 10 Nov 2011 16:21:51 +0000 (UTC)
Local: Thurs, Nov 10 2011 11:21 am
Subject: Re: forth vs lisp
On 2011-11-10, Pascal J. Bourguignon <p...@informatimago.com> wrote:

> to read lisp code even without knowing thee operators used.  On the
> other hand, in forth or Postscript and even with languages with complex
> syntaxes, you cannot read the code without knowing all the operators,
> their arity, and their priority.

Note that even raw machine language in a disassembly dump does not
have this readability issue.

 
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.
Antsan  
View profile  
 More options Nov 10 2011, 1:16 pm
Newsgroups: comp.lang.lisp
From: Antsan <thomas.bartsc...@googlemail.com>
Date: Thu, 10 Nov 2011 10:16:25 -0800 (PST)
Local: Thurs, Nov 10 2011 1:16 pm
Subject: Re: forth vs lisp
"On the other hand, in forth or Postscript and even with languages with complex syntaxes, you cannot read the code without knowing all the operators, their arity, and their priority."
That's not correct, as in Forth you don't need to know priority, as is the case for all stack based languages.

 
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.
Tim Bradshaw  
View profile  
 More options Nov 10 2011, 2:50 pm
Newsgroups: comp.lang.lisp
From: Tim Bradshaw <t...@tfeb.org>
Date: Thu, 10 Nov 2011 19:50:12 +0000 (UTC)
Local: Thurs, Nov 10 2011 2:50 pm
Subject: Re: forth vs lisp
"Pascal J. Bourguignon" <p...@informatimago.com> wrote:

> Tim Bradshaw <t...@tfeb.org> writes:
> Of course.  The essential difference between lisp code and the other
> programming languages, is that in lisp, you don't need to know the arity
> of the operators (or the "priority" of the operators, there's no such
> notion in lisp), since applications are always parenthesized.

Yes, that's right, I think: in Forth and RPL you don't have to worry about
priority, but you do have to know the arity, and that makes it hard, I
find.

 
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.
Fritz Wuehler  
View profile  
 More options Nov 10 2011, 4:04 pm
Newsgroups: comp.lang.lisp
From: Fritz Wuehler <fr...@spamexpire-201111.rodent.frell.theremailer.net>
Date: Thu, 10 Nov 2011 22:04:28 +0100
Local: Thurs, Nov 10 2011 4:04 pm
Subject: Re: forth vs lisp

> > FORTH is fundamentally interactive, LISP is not, not
> > fundamentally.
> What do you mean?

The first LISPs ran on IBM machines, in batch AFAIK and this was true for
many years. That is as far from interactive as it gets. You code something,
you punch it on cards, you submit a job to the operator, he runs it when he
gets a chance, it prints out, the operator hands you the printout when he
gets a chance. You fix what you mispunched or miscoded and try again.

There is nothing fundamentally interative about LISP.

FORTH is fundamentally interactive. That's how Moore designed it. You type a
command (word) or a definition for a word. The machine accepts it or flags
and error. You build your program step by step, interactively.


 
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 50   Newer >
« Back to Discussions « Newer topic     Older topic »