Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

In order to dial out, it is necessary to broaden one's dimension.


devel / comp.lang.forth / Re: context as a user?

SubjectAuthor
* context as a user?Jos Ven
+* Re: context as a user?minforth
|`* Re: context as a user?Jos Ven
| `* Re: context as a user?Anton Ertl
|  +- Re: context as a user?Jos Ven
|  `- Re: context as a user?Jos Ven
+- Re: context as a user?none
+* Re: context as a user?Brian Fox
|`* Re: context as a user?minforth
| `* Re: context as a user?David Schultz
|  `- Re: context as a user?none
`- Re: context as a user?Anton Ertl

1
context as a user?

<8e360ba4-7f02-4a0b-ba1b-aa2977b2127cn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23491&group=comp.lang.forth#23491

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:622a:587:b0:3ea:3d30:af91 with SMTP id c7-20020a05622a058700b003ea3d30af91mr254429qtb.1.1683274672947;
Fri, 05 May 2023 01:17:52 -0700 (PDT)
X-Received: by 2002:ac8:5744:0:b0:3f3:64fd:c684 with SMTP id
4-20020ac85744000000b003f364fdc684mr282506qtx.5.1683274672824; Fri, 05 May
2023 01:17:52 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Fri, 5 May 2023 01:17:52 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=213.10.199.198; posting-account=nkqetwkAAACepkf86cwWAMB6YF6pRh3F
NNTP-Posting-Host: 213.10.199.198
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8e360ba4-7f02-4a0b-ba1b-aa2977b2127cn@googlegroups.com>
Subject: context as a user?
From: jos...@planet.nl (Jos Ven)
Injection-Date: Fri, 05 May 2023 08:17:52 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1134
 by: Jos Ven - Fri, 5 May 2023 08:17 UTC

It seems context is always defined as a variable.
Would there be a problem if it was defined as a USER so
multiple tasks could have their own search context at the same time?
Jos

Re: context as a user?

<94684133-1723-4128-8824-a827632f41f5n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23492&group=comp.lang.forth#23492

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:3197:b0:74f:afa1:79de with SMTP id bi23-20020a05620a319700b0074fafa179demr126977qkb.13.1683275646194;
Fri, 05 May 2023 01:34:06 -0700 (PDT)
X-Received: by 2002:a05:622a:1981:b0:3ef:6035:465 with SMTP id
u1-20020a05622a198100b003ef60350465mr266383qtc.8.1683275646008; Fri, 05 May
2023 01:34:06 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Fri, 5 May 2023 01:34:05 -0700 (PDT)
In-Reply-To: <8e360ba4-7f02-4a0b-ba1b-aa2977b2127cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:f7:1f00:1303:adf4:51ae:82b2:7841;
posting-account=AqNUYgoAAADmkK2pN-RKms8sww57W0Iw
NNTP-Posting-Host: 2003:f7:1f00:1303:adf4:51ae:82b2:7841
References: <8e360ba4-7f02-4a0b-ba1b-aa2977b2127cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <94684133-1723-4128-8824-a827632f41f5n@googlegroups.com>
Subject: Re: context as a user?
From: minfo...@arcor.de (minforth)
Injection-Date: Fri, 05 May 2023 08:34:06 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1569
 by: minforth - Fri, 5 May 2023 08:34 UTC

Jos Ven schrieb am Freitag, 5. Mai 2023 um 10:17:54 UTC+2:
> It seems context is always defined as a variable.
> Would there be a problem if it was defined as a USER so
> multiple tasks could have their own search context at the same time?

To hold a task-specific search-order you need a task-specific array/list.
Whether you call this array/list or a pointer to it CONTEXT is implementation
defined.

Re: context as a user?

<e25a1000-3635-4d43-bf4f-39e5954c3e8dn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23493&group=comp.lang.forth#23493

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:4554:b0:74e:37dd:61a6 with SMTP id u20-20020a05620a455400b0074e37dd61a6mr155337qkp.13.1683281118272;
Fri, 05 May 2023 03:05:18 -0700 (PDT)
X-Received: by 2002:a05:620a:254a:b0:74d:f736:a060 with SMTP id
s10-20020a05620a254a00b0074df736a060mr175617qko.6.1683281118083; Fri, 05 May
2023 03:05:18 -0700 (PDT)
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!feeder1.feed.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Fri, 5 May 2023 03:05:17 -0700 (PDT)
In-Reply-To: <94684133-1723-4128-8824-a827632f41f5n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=213.10.199.198; posting-account=nkqetwkAAACepkf86cwWAMB6YF6pRh3F
NNTP-Posting-Host: 213.10.199.198
References: <8e360ba4-7f02-4a0b-ba1b-aa2977b2127cn@googlegroups.com> <94684133-1723-4128-8824-a827632f41f5n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e25a1000-3635-4d43-bf4f-39e5954c3e8dn@googlegroups.com>
Subject: Re: context as a user?
From: jos...@planet.nl (Jos Ven)
Injection-Date: Fri, 05 May 2023 10:05:18 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1946
 by: Jos Ven - Fri, 5 May 2023 10:05 UTC

Op vrijdag 5 mei 2023 om 10:34:07 UTC+2 schreef minforth:
> Jos Ven schrieb am Freitag, 5. Mai 2023 um 10:17:54 UTC+2:
> > It seems context is always defined as a variable.
> > Would there be a problem if it was defined as a USER so
> > multiple tasks could have their own search context at the same time?
> To hold a task-specific search-order you need a task-specific array/list.
> Whether you call this array/list or a pointer to it CONTEXT is implementation
> defined.

> CONTEXT is implementation defined.
That is the problem.
Under Gforth, Win32forth context is defined as a variable.
There a variable is a kind of global within Forth then
all tasks get the same context.

Re: context as a user?

<nnd$3b70a182$232bf427@fd15c3a84aeccb10>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23494&group=comp.lang.forth#23494

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
Subject: Re: context as a user?
References: <8e360ba4-7f02-4a0b-ba1b-aa2977b2127cn@googlegroups.com>
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: alb...@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$3b70a182$232bf427@fd15c3a84aeccb10>
Organization: KPN B.V.
Date: Fri, 05 May 2023 15:28:52 +0200
Path: i2pn2.org!i2pn.org!news.swapon.de!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe005.abavia.com!abp002.abavia.com!news.kpn.nl!not-for-mail
Lines: 19
Injection-Date: Fri, 05 May 2023 15:28:52 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 1512
 by: none - Fri, 5 May 2023 13:28 UTC

In article <8e360ba4-7f02-4a0b-ba1b-aa2977b2127cn@googlegroups.com>,
Jos Ven <josv@planet.nl> wrote:
>It seems context is always defined as a variable.
>Would there be a problem if it was defined as a USER so
>multiple tasks could have their own search context at the same time?
>Jos

In a decent design (ciforth) the list of context wordlist is
naturally allocated in the space of USER variables.
Otherwise it would not make sense to allow processes to compile their
own separated definitions.

Groetjes Albertg
--
Don't praise the day before the evening. One swallow doesn't make spring.
You must not say "hey" before you have crossed the bridge. Don't sell the
hide of the bear until you shot it. Better one bird in the hand than ten in
the air. First gain is a cat spinning. - the Wise from Antrim -

Re: context as a user?

<35a4db16-5a89-4157-a332-2a6cb6ca4b97n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23495&group=comp.lang.forth#23495

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:622a:1a89:b0:3f2:2ac7:cda9 with SMTP id s9-20020a05622a1a8900b003f22ac7cda9mr564053qtc.11.1683301173629;
Fri, 05 May 2023 08:39:33 -0700 (PDT)
X-Received: by 2002:a05:620a:4051:b0:74e:5103:2c9c with SMTP id
i17-20020a05620a405100b0074e51032c9cmr408487qko.12.1683301173469; Fri, 05 May
2023 08:39:33 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Fri, 5 May 2023 08:39:33 -0700 (PDT)
In-Reply-To: <8e360ba4-7f02-4a0b-ba1b-aa2977b2127cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=104.245.145.10; posting-account=2z7GawoAAADc70p5SM5AbaCyzjLblS3g
NNTP-Posting-Host: 104.245.145.10
References: <8e360ba4-7f02-4a0b-ba1b-aa2977b2127cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <35a4db16-5a89-4157-a332-2a6cb6ca4b97n@googlegroups.com>
Subject: Re: context as a user?
From: brian....@brianfox.ca (Brian Fox)
Injection-Date: Fri, 05 May 2023 15:39:33 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1640
 by: Brian Fox - Fri, 5 May 2023 15:39 UTC

On Friday, May 5, 2023 at 4:17:54 AM UTC-4, Jos Ven wrote:
> It seems context is always defined as a variable.
> Would there be a problem if it was defined as a USER so
> multiple tasks could have their own search context at the same time?
> Jos

FigForth defined CONTEXT as a user variable.
People seemed to forget about multi-tasking and multi-user features
in Forth as time went on.
Once you have an O/S underneath I guess it matters less.

Re: context as a user?

<63aaddb5-7fe7-4e18-bdc7-3c3baf12f185n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23496&group=comp.lang.forth#23496

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:6214:4c0a:b0:5bb:ca1d:f043 with SMTP id qh10-20020a0562144c0a00b005bbca1df043mr249197qvb.8.1683303946658;
Fri, 05 May 2023 09:25:46 -0700 (PDT)
X-Received: by 2002:a05:622a:4c7:b0:3ef:2db1:6e59 with SMTP id
q7-20020a05622a04c700b003ef2db16e59mr604357qtx.9.1683303946487; Fri, 05 May
2023 09:25:46 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.neodome.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Fri, 5 May 2023 09:25:46 -0700 (PDT)
In-Reply-To: <35a4db16-5a89-4157-a332-2a6cb6ca4b97n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:f7:1f00:13cf:2c6b:3e60:5e3d:219;
posting-account=AqNUYgoAAADmkK2pN-RKms8sww57W0Iw
NNTP-Posting-Host: 2003:f7:1f00:13cf:2c6b:3e60:5e3d:219
References: <8e360ba4-7f02-4a0b-ba1b-aa2977b2127cn@googlegroups.com> <35a4db16-5a89-4157-a332-2a6cb6ca4b97n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <63aaddb5-7fe7-4e18-bdc7-3c3baf12f185n@googlegroups.com>
Subject: Re: context as a user?
From: minfo...@arcor.de (minforth)
Injection-Date: Fri, 05 May 2023 16:25:46 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2136
 by: minforth - Fri, 5 May 2023 16:25 UTC

Brian Fox schrieb am Freitag, 5. Mai 2023 um 17:39:34 UTC+2:
> On Friday, May 5, 2023 at 4:17:54 AM UTC-4, Jos Ven wrote:
> > It seems context is always defined as a variable.
> > Would there be a problem if it was defined as a USER so
> > multiple tasks could have their own search context at the same time?
> > Jos
> FigForth defined CONTEXT as a user variable.
> People seemed to forget about multi-tasking and multi-user features
> in Forth as time went on.
> Once you have an O/S underneath I guess it matters less.

AFAIK Forth never had a decent interrupt handler or timer. That was
the main shortcoming, while seemingly savvy people argued enthusiastically
about pros and cons of cooperative round-robin scheduling. Water under
the bridge...

Re: context as a user?

<r1-dnQcSYJea1sj5nZ2dnZfqnPdg4p2d@earthlink.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23497&group=comp.lang.forth#23497

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 05 May 2023 18:29:27 +0000
Date: Fri, 5 May 2023 13:29:27 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Subject: Re: context as a user?
Newsgroups: comp.lang.forth
References: <8e360ba4-7f02-4a0b-ba1b-aa2977b2127cn@googlegroups.com>
<35a4db16-5a89-4157-a332-2a6cb6ca4b97n@googlegroups.com>
<63aaddb5-7fe7-4e18-bdc7-3c3baf12f185n@googlegroups.com>
Content-Language: en-US
From: david.sc...@earthlink.net (David Schultz)
In-Reply-To: <63aaddb5-7fe7-4e18-bdc7-3c3baf12f185n@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <r1-dnQcSYJea1sj5nZ2dnZfqnPdg4p2d@earthlink.com>
Lines: 16
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 108.194.108.102
X-Trace: sv3-24vLX07XawqMDQU92/nV4HZO+v+RoCnwEevED79dY5j8tAwGAHyyS4OVS2QBu991b2JxqkQdI8rtB3Z!H/8/ki0tnfK5t3LWi5LS+6DZoWU3ZBL0EvzLQe8cio2nENqi5dXeldQG8DnhPBM4/l3qAyPgFbQX!ccknSDbAV4UBvZq2L8LTCbDfilXLGKzzhejR3000sls=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: David Schultz - Fri, 5 May 2023 18:29 UTC

On 5/5/23 11:25 AM, minforth wrote:

> AFAIK Forth never had a decent interrupt handler or timer. That was
> the main shortcoming, while seemingly savvy people argued enthusiastically
> about pros and cons of cooperative round-robin scheduling. Water under
> the bridge...

I found adding interrupt handling to an ARM version of eForth pretty
easy. It helps that so much context is saved to the stack before the ISR
begins.

--
http://davesrocketworks.com
David Schultz

Re: context as a user?

<2023May6.121146@mips.complang.tuwien.ac.at>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23502&group=comp.lang.forth#23502

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ant...@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.lang.forth
Subject: Re: context as a user?
Date: Sat, 06 May 2023 10:11:46 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 18
Message-ID: <2023May6.121146@mips.complang.tuwien.ac.at>
References: <8e360ba4-7f02-4a0b-ba1b-aa2977b2127cn@googlegroups.com>
Injection-Info: dont-email.me; posting-host="dab4522add320524ce1cd5273eb6ce28";
logging-data="2970752"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+uMQfzIU/wsi8WEkFY3gPl"
Cancel-Lock: sha1:W/gsMlo71GI3oXZZvny9O8oLb2Y=
X-newsreader: xrn 10.11
 by: Anton Ertl - Sat, 6 May 2023 10:11 UTC

Jos Ven <josv@planet.nl> writes:
>It seems context is always defined as a variable.

In Gforth it's a deferred word that is filled with a colon definition
that produces an address of a search-order entry.

>Would there be a problem if it was defined as a USER so
>multiple tasks could have their own search context at the same time?

No problem in principle; of course it depends on the individual system
what you need to do to support searching in multiple tasks.

- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: https://forth-standard.org/
EuroForth 2022: https://euro.theforth.net

Re: context as a user?

<2023May6.122620@mips.complang.tuwien.ac.at>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23503&group=comp.lang.forth#23503

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ant...@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.lang.forth
Subject: Re: context as a user?
Date: Sat, 06 May 2023 10:26:20 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 19
Message-ID: <2023May6.122620@mips.complang.tuwien.ac.at>
References: <8e360ba4-7f02-4a0b-ba1b-aa2977b2127cn@googlegroups.com> <94684133-1723-4128-8824-a827632f41f5n@googlegroups.com> <e25a1000-3635-4d43-bf4f-39e5954c3e8dn@googlegroups.com>
Injection-Info: dont-email.me; posting-host="dab4522add320524ce1cd5273eb6ce28";
logging-data="2970752"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187lEXKouyExmdBavyWS/N7"
Cancel-Lock: sha1:ZWDlMzAJoJ8YUSxMFImSTDKPf+M=
X-newsreader: xrn 10.11
 by: Anton Ertl - Sat, 6 May 2023 10:26 UTC

Jos Ven <josv@planet.nl> writes:
>Under Gforth, Win32forth context is defined as a variable.

Not in the Gforth versions I have looked at (0.7 and the current
development version).

>There a variable is a kind of global within Forth then
>all tasks get the same context.

In Gforth we have discussed whether we want to support compilation
(and, more generally, text interpretation) in multiple tasks, and
decided against it.

- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: https://forth-standard.org/
EuroForth 2022: https://euro.theforth.net

Re: context as a user?

<nnd$27a36a66$1eeeb4e0@546078449dd0decd>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23504&group=comp.lang.forth#23504

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
References: <8e360ba4-7f02-4a0b-ba1b-aa2977b2127cn@googlegroups.com> <35a4db16-5a89-4157-a332-2a6cb6ca4b97n@googlegroups.com> <63aaddb5-7fe7-4e18-bdc7-3c3baf12f185n@googlegroups.com> <r1-dnQcSYJea1sj5nZ2dnZfqnPdg4p2d@earthlink.com>
Subject: Re: context as a user?
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: alb...@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$27a36a66$1eeeb4e0@546078449dd0decd>
Organization: KPN B.V.
Date: Sat, 06 May 2023 13:01:56 +0200
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!feed.abavia.com!abe005.abavia.com!abp001.abavia.com!news.kpn.nl!not-for-mail
Lines: 35
Injection-Date: Sat, 06 May 2023 13:01:56 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
 by: none - Sat, 6 May 2023 11:01 UTC

In article <r1-dnQcSYJea1sj5nZ2dnZfqnPdg4p2d@earthlink.com>,
David Schultz <david.schultz@earthlink.net> wrote:
>On 5/5/23 11:25 AM, minforth wrote:
>
>> AFAIK Forth never had a decent interrupt handler or timer. That was
>> the main shortcoming, while seemingly savvy people argued enthusiastically
>> about pros and cons of cooperative round-robin scheduling. Water under
>> the bridge...
>
>I found adding interrupt handling to an ARM version of eForth pretty
>easy. It helps that so much context is saved to the stack before the ISR
>begins.

Many Forths have support for interrupts, but there is not really
a common ground. Forth's for single board computers (MSP430,
Arduino, 8051) have supported it because it enhances the usability
of those boards.
See e.g.
https://home.hccnet.nl/anij/nof/noforth.html
and link through to Egel project.
It contains several examples using interrupts, and you are right,
it is not a big deal using interrupts on those stand alone Forths.
A different situation occurs on Linux/MS-Windows because the
OS jealously guards those interrupts.

>--
>http://davesrocketworks.com
>David Schultz
>
--
Don't praise the day before the evening. One swallow doesn't make spring.
You must not say "hey" before you have crossed the bridge. Don't sell the
hide of the bear until you shot it. Better one bird in the hand than ten in
the air. First gain is a cat spinning. - the Wise from Antrim -

Re: context as a user?

<6189d4c9-4ae5-424d-a405-85f1836d9009n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23506&group=comp.lang.forth#23506

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:28cf:b0:74e:17da:5d7d with SMTP id l15-20020a05620a28cf00b0074e17da5d7dmr1465663qkp.13.1683380702005;
Sat, 06 May 2023 06:45:02 -0700 (PDT)
X-Received: by 2002:a05:620a:1991:b0:74d:1be5:f1a3 with SMTP id
bm17-20020a05620a199100b0074d1be5f1a3mr1331064qkb.15.1683380701791; Sat, 06
May 2023 06:45:01 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sat, 6 May 2023 06:45:01 -0700 (PDT)
In-Reply-To: <2023May6.122620@mips.complang.tuwien.ac.at>
Injection-Info: google-groups.googlegroups.com; posting-host=213.10.199.198; posting-account=nkqetwkAAACepkf86cwWAMB6YF6pRh3F
NNTP-Posting-Host: 213.10.199.198
References: <8e360ba4-7f02-4a0b-ba1b-aa2977b2127cn@googlegroups.com>
<94684133-1723-4128-8824-a827632f41f5n@googlegroups.com> <e25a1000-3635-4d43-bf4f-39e5954c3e8dn@googlegroups.com>
<2023May6.122620@mips.complang.tuwien.ac.at>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6189d4c9-4ae5-424d-a405-85f1836d9009n@googlegroups.com>
Subject: Re: context as a user?
From: jos...@planet.nl (Jos Ven)
Injection-Date: Sat, 06 May 2023 13:45:01 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2297
 by: Jos Ven - Sat, 6 May 2023 13:45 UTC

Op zaterdag 6 mei 2023 om 12:30:06 UTC+2 schreef Anton Ertl:
> Jos Ven <jo..> writes:
> >Under Gforth, Win32forth context is defined as a variable.
> Not in the Gforth versions I have looked at (0.7 and the current
> development version).
> >There a variable is a kind of global within Forth then
> >all tasks get the same context.
> In Gforth we have discussed whether we want to support compilation
> (and, more generally, text interpretation) in multiple tasks, and
> decided against it.
> - anton
> --
> M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
> comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
> New standard: https://forth-standard.org/
> EuroForth 2022: https://euro.theforth.net

Hi,

> >Under Gforth, Win32forth context is defined as a variable.

Sorry, you are right.
I should have looked better when I got into problems.
Thanks for the correction.

Jos

Re: context as a user?

<51bbd781-3c5d-42b8-96ca-36ed6a95c1c2n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23507&group=comp.lang.forth#23507

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:6214:5650:b0:61a:bbd9:2c6d with SMTP id mh16-20020a056214565000b0061abbd92c6dmr770373qvb.6.1683381626178;
Sat, 06 May 2023 07:00:26 -0700 (PDT)
X-Received: by 2002:a05:622a:8f:b0:3e1:6129:f094 with SMTP id
o15-20020a05622a008f00b003e16129f094mr1607426qtw.7.1683381625640; Sat, 06 May
2023 07:00:25 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sat, 6 May 2023 07:00:25 -0700 (PDT)
In-Reply-To: <2023May6.122620@mips.complang.tuwien.ac.at>
Injection-Info: google-groups.googlegroups.com; posting-host=213.10.199.198; posting-account=nkqetwkAAACepkf86cwWAMB6YF6pRh3F
NNTP-Posting-Host: 213.10.199.198
References: <8e360ba4-7f02-4a0b-ba1b-aa2977b2127cn@googlegroups.com>
<94684133-1723-4128-8824-a827632f41f5n@googlegroups.com> <e25a1000-3635-4d43-bf4f-39e5954c3e8dn@googlegroups.com>
<2023May6.122620@mips.complang.tuwien.ac.at>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <51bbd781-3c5d-42b8-96ca-36ed6a95c1c2n@googlegroups.com>
Subject: Re: context as a user?
From: jos...@planet.nl (Jos Ven)
Injection-Date: Sat, 06 May 2023 14:00:26 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 24
 by: Jos Ven - Sat, 6 May 2023 14:00 UTC

Op zaterdag 6 mei 2023 om 12:30:06 UTC+2 schreef Anton Ertl:
> Jos Ven <jo...> writes:
> >Under Gforth, Win32forth context is defined as a variable.
> Not in the Gforth versions I have looked at (0.7 and the current
> development version).
> >There a variable is a kind of global within Forth then
> >all tasks get the same context.
> In Gforth we have discussed whether we want to support compilation
> (and, more generally, text interpretation) in multiple tasks, and
> decided against it.
> - anton
> --
> M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
> comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
> New standard: https://forth-standard.org/
> EuroForth 2022: https://euro.theforth.net

Hi,
My problem was as follows:
2 tasks are using the same word.
In a first attempt the context was saved at the start of the word and restored at the exit.
That did not work.
Now the context of the whole program is changed before the 2 tasks are running.
That solved my problem.
Jos

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor