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
:NONAME a different viewpoint
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
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
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
 
Albert van der Horst  
View profile  
 More options Jul 22 2012, 10:45 am
Newsgroups: comp.lang.forth
From: Albert van der Horst <alb...@spenarnc.xs4all.nl>
Date: 22 Jul 2012 14:45:16 GMT
Local: Sun, Jul 22 2012 10:45 am
Subject: :NONAME a different viewpoint
It occurred to me that if :NONAME had not been conceived as
a trick, but as a fundamental programming construct
{ 1 2 DROP }
it would have become a building block of definitions:
{ 1 2 DROP } : aap

and the talk about quotations could be rephrased:

Must :NONAME (or { ) be allowed with a definition?
        or even
Should { be allowed to nest?

These thoughts have been triggered by the implementation of
`` ; ''. It ends both :NONAME and : . In a similar situation
with methods we prefer a matched pair M: .. M; over
M: ... ; . Indeed I experience implementation difficulties
caused by ; ending both : and :NONAME.

I wonder whether it make sense in the context of quotations
to replace :NONAME .... ; by one of
N: ...... N;
(: ...... ;)
[: ...... ;]
{  ...... }
{{ ...... }}
and refrain from having a different notation for quotations,
within definitions,just add the phrase to the standard:

a system shall document whether N: nests.

From all possible notation

In this context [: ... ;] is actually the worst alternative.
I would greatly prefer  (: .... ;) .

Groetjes Albert

--
--
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- being exponential -- ultimately falters.
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst


 
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.
Aleksej Saushev  
View profile  
 More options Jul 22 2012, 1:30 pm
Newsgroups: comp.lang.forth
From: Aleksej Saushev <a...@inbox.ru>
Date: Sun, 22 Jul 2012 21:30:52 +0400
Local: Sun, Jul 22 2012 1:30 pm
Subject: Re: :NONAME a different viewpoint
Albert van der Horst <alb...@spenarnc.xs4all.nl> writes:

> I would greatly prefer  (: .... ;) .

It is really bad idea to use anything containing ")" when you lack proper lexer.

--
HE CE3OH...


 
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.
Rod Pemberton  
View profile  
 More options Jul 22 2012, 7:28 pm
Newsgroups: comp.lang.forth
From: "Rod Pemberton" <do_not_h...@notemailnot.cmm>
Date: Sun, 22 Jul 2012 19:28:57 -0400
Local: Sun, Jul 22 2012 7:28 pm
Subject: Re: :NONAME a different viewpoint
"Aleksej Saushev" <a...@inbox.ru> wrote in message

news:87wr1vpusz.fsf@inbox.ru...

> Albert van der Horst <alb...@spenarnc.xs4all.nl> writes:

> > I would greatly prefer  (: .... ;) .

> It is really bad idea to use anything containing ")" when
> you lack proper lexer.

Why exactly is it a bad idea to use ) with Forth's space delimited lexing?
You're not placing (: ... ;) inside of comments ( ... ) are you?  A space
delimits every token including (: and ;) except for a few Forth words that
find their own delimiter.  So, a ) shouldn't be matched unintentionally, as
long as you avoid placing (: ... :) in the self-delimited words which use )
as a delimiter.  Those are the two Forth words ( and .(   So, you should
only have to avoid ( comments and .( for display for proper use of (: ... :)

Rod Pemberton


 
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.
Elizabeth D. Rather  
View profile  
 More options Jul 22 2012, 8:14 pm
Newsgroups: comp.lang.forth
From: "Elizabeth D. Rather" <erat...@forth.com>
Date: Sun, 22 Jul 2012 14:14:00 -1000
Subject: Re: :NONAME a different viewpoint
On 7/22/12 1:28 PM, Rod Pemberton wrote:

Because a large number of programs, including Thunderbird (my
newsreader) automatically represents them as smiley-faces.
Interestingly, the quoted text above did not, because it is text format,
whereas the original representation on my screen was html, and every ;)
was converted to a smiley face.

Cheers,
Elizabeth

--
==================================================
Elizabeth D. Rather   (US & Canada)   800-55-FORTH
FORTH Inc.                         +1 310.999.6784
5959 West Century Blvd. Suite 700
Los Angeles, CA 90045
http://www.forth.com

"Forth-based products and Services for real-time
applications since 1973."
==================================================


 
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.
Aleksej Saushev  
View profile  
 More options Jul 22 2012, 9:35 pm
Newsgroups: comp.lang.forth
From: Aleksej Saushev <a...@inbox.ru>
Date: Mon, 23 Jul 2012 05:35:23 +0400
Local: Sun, Jul 22 2012 9:35 pm
Subject: Re: :NONAME a different viewpoint

Perhaps, you don't write programs long enough to bother with commentaries,
or you like to track everything you comment off, or you never comment
part of code off, I don't know. But many other people do comment their code,
and do comment parts of code off regularly. Forth is already broken enough
to use that common delimiters for commentaries, you don't really need to
make things worse.

Besides, in this case all you need is reenterable compiler (this isn't
quite trivial thing in Forth already but anyway), so that you could write

:noname ... [ :noname ... ; ] literal ... ;

Thus, square brackets indicate better what's going on.

(Making compiler operate in dynamically allocated memory is even more
complicated, given Forth's aversion of dynamic memory in general.)

--
HE CE3OH...


 
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.
Albert van der Horst  
View profile  
 More options Jul 22 2012, 11:24 pm
Newsgroups: comp.lang.forth
From: Albert van der Horst <alb...@spenarnc.xs4all.nl>
Date: 23 Jul 2012 03:24:29 GMT
Local: Sun, Jul 22 2012 11:24 pm
Subject: Re: :NONAME a different viewpoint
In article <87wr1vpusz....@inbox.ru>, Aleksej Saushev  <a...@inbox.ru> wrote:

>Albert van der Horst <alb...@spenarnc.xs4all.nl> writes:

>> I would greatly prefer  (: .... ;) .

>It is really bad idea to use anything containing ")" when you lack proper lexer.

Like
(;) (DO) (LOOP) (+LOOP) (?DO)
for the runtime compiled in by ; DO etc. ?

Or having words like
(CREATE) (FIND)
that underly CREATE FIND ?

It is some hassle if you want to comment out code, but that is such
a bad habit, that I don't care much. A block where each line starts
with \ stands out better anyway.

>--
>HE CE3OH...

--
--
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- being exponential -- ultimately falters.
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst

 
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.
A. K.  
View profile  
 More options Jul 23 2012, 1:48 am
Newsgroups: comp.lang.forth
From: "A. K." <a...@nospam.org>
Date: Mon, 23 Jul 2012 07:48:39 +0200
Local: Mon, Jul 23 2012 1:48 am
Subject: Re: :NONAME a different viewpoint
On 22.07.2012 16:45, Albert van der Horst wrote:

> It occurred to me that if :NONAME had not been conceived as
> a trick, but as a fundamental programming construct
> { 1 2 DROP }
> it would have become a building block of definitions:
> { 1 2 DROP } : aap

Improvement:
{ 1 2 DROP AAP }

It is but high time for a postfix stack-based lisp.
After all an xt is just a number, right?
So code = data easily.


 
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 Rubin  
View profile  
 More options Jul 23 2012, 2:01 am
Newsgroups: comp.lang.forth
From: Paul Rubin <no.em...@nospam.invalid>
Date: Sun, 22 Jul 2012 23:01:44 -0700
Local: Mon, Jul 23 2012 2:01 am
Subject: Re: :NONAME a different viewpoint

"A. K." <a...@nospam.org> writes:
> It is but high time for a postfix stack-based lisp.

http://factorcode.org/

 
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.
Alex McDonald  
View profile  
 More options Jul 23 2012, 7:28 am
Newsgroups: comp.lang.forth
From: Alex McDonald <b...@rivadpm.com>
Date: Mon, 23 Jul 2012 04:28:24 -0700 (PDT)
Local: Mon, Jul 23 2012 7:28 am
Subject: Re: :NONAME a different viewpoint
On Jul 23, 1:14 am, "Elizabeth D. Rather" <erat...@forth.com> wrote:

Tools|Options then on the Display tab unselect "Display emoticons as
graphics".

 
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.
Albert van der Horst  
View profile  
 More options Jul 23 2012, 11:38 am
Newsgroups: comp.lang.forth
From: Albert van der Horst <alb...@spenarnc.xs4all.nl>
Date: 23 Jul 2012 15:38:00 GMT
Subject: Re: :NONAME a different viewpoint
In article <87r4s3mf8k....@inbox.ru>, Aleksej Saushev  <a...@inbox.ru> wrote:

I comment meticulously, and if I want to keep code, I save it in a
source control system. In the next version I remove the code I don't
use. Commenting out code is for people who don't use source control
systems. Code should be saved together with the tests it passes.
What tests are passed by commented out code?

>Besides, in this case all you need is reenterable compiler (this isn't
>quite trivial thing in Forth already but anyway), so that you could write

>:noname ... [ :noname ... ; ] literal ... ;

>Thus, square brackets indicate better what's going on.

For a fundamental construct `` [ :noname '' is way to verbose.
With fundamental constructs one wants to things to become second nature,
you want to forget that you have a reenterable compiler, you don't
want to be reminded that you go interpreting, then start a new
compiler.

>(Making compiler operate in dynamically allocated memory is even more
>complicated, given Forth's aversion of dynamic memory in general.)

If you want LISP you know where to find it.

>--
>HE CE3OH...

Groetjes Albert

--
--
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- being exponential -- ultimately falters.
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst


 
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.
Aleksej Saushev  
View profile  
 More options Jul 24 2012, 7:02 pm
Newsgroups: comp.lang.forth
From: Aleksej Saushev <a...@inbox.ru>
Date: Wed, 25 Jul 2012 03:02:07 +0400
Local: Tues, Jul 24 2012 7:02 pm
Subject: Re: :NONAME a different viewpoint
Albert van der Horst <alb...@spenarnc.xs4all.nl> writes:

> In article <87wr1vpusz....@inbox.ru>, Aleksej Saushev  <a...@inbox.ru> wrote:
>>Albert van der Horst <alb...@spenarnc.xs4all.nl> writes:

>>> I would greatly prefer  (: .... ;) .

>>It is really bad idea to use anything containing ")" when you lack proper lexer.

> Like
> (;) (DO) (LOOP) (+LOOP) (?DO)
> for the runtime compiled in by ; DO etc. ?

> Or having words like
> (CREATE) (FIND)
> that underly CREATE FIND ?

Yes. The only reason why it isn't annoying is that these words are not used
frequently.

> It is some hassle if you want to comment out code, but that is such
> a bad habit, that I don't care much.

Commenting code out is not a bad habit. It is storing all unnecessary
side steps in a version control system what constitutes bad habit.

> A block where each line starts
> with \ stands out better anyway.

If it were that way, we wouldn't be using parentheses in natural languages.

--
HE CE3OH...


 
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.
End of messages
« Back to Discussions « Newer topic     Older topic »