Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

What is research but a blind date with knowledge? -- Will Harvey


devel / comp.lang.forth / Re: Forth running in windows with acces to a graphics window

SubjectAuthor
* Forth running in windows with acces to a graphics windowAntoni Gual Via
+* Re: Forth running in windows with acces to a graphics windownone
|`- Re: Forth running in windows with acces to a graphics windowJos Ven
+* Re: Forth running in windows with acces to a graphics windowJerry Petrey
|`* Re: Forth running in windows with acces to a graphics windowBrad Eckert
| +* Re: Forth running in windows with acces to a graphics windowNN
| |`- Re: Forth running in windows with acces to a graphics windowdxf
| +- Re: Forth running in windows with acces to a graphics windowAnton Ertl
| `- Re: Forth running in windows with acces to a graphics windownone
+* Re: Forth running in windows with acces to a graphics windowminforth
|`- Re: Forth running in windows with acces to a graphics windowdxf
+* Re: Forth running in windows with acces to a graphics windowMarcel Hendrix
|`* Re: Forth running in windows with acces to a graphics windownone
| `* Re: Forth running in windows with acces to a graphics windowAntoni Gual Via
|  +- Re: Forth running in windows with acces to a graphics windowMarcel Hendrix
|  `- Re: Forth running in windows with acces to a graphics windowminforth
+- Re: Forth running in windows with acces to a graphics windowPablo Hugo Reda
`- Re: Forth running in windows with acces to a graphics windowJos Ven

1
Forth running in windows with acces to a graphics window

<a506163e-269b-4b98-9c8b-0b2f9d1ca0c6n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24810&group=comp.lang.forth#24810

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:622a:1aa2:b0:417:d657:9fd7 with SMTP id s34-20020a05622a1aa200b00417d6579fd7mr99179qtc.9.1696590152819;
Fri, 06 Oct 2023 04:02:32 -0700 (PDT)
X-Received: by 2002:a9d:4d84:0:b0:6c4:a036:cc11 with SMTP id
u4-20020a9d4d84000000b006c4a036cc11mr2224777otk.2.1696590152547; Fri, 06 Oct
2023 04:02:32 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!newsfeed.hasname.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.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, 6 Oct 2023 04:02:31 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=213.96.45.226; posting-account=bd1LGwoAAAArJUc1f4XW695QNxDQwWXL
NNTP-Posting-Host: 213.96.45.226
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a506163e-269b-4b98-9c8b-0b2f9d1ca0c6n@googlegroups.com>
Subject: Forth running in windows with acces to a graphics window
From: antonigualvia@gmail.com (Antoni Gual Via)
Injection-Date: Fri, 06 Oct 2023 11:02:32 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1326
 by: Antoni Gual Via - Fri, 6 Oct 2023 11:02 UTC

Hello
Is there a Forth running in Windows able to open a graphics window and plot pixels to it? My idea is just to test some graphics programming.
I do not need access to the awful Win32 API and I would prefer an easy setup.
Does this beast exist? Or the transition from MS-DOS to Windows killed them all?
Antoni

Re: Forth running in windows with acces to a graphics window

<nnd$0f9a1fba$301ce66d@8c8ce474995ee798>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24814&group=comp.lang.forth#24814

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
References: <a506163e-269b-4b98-9c8b-0b2f9d1ca0c6n@googlegroups.com>
Subject: Re: Forth running in windows with acces to a graphics window
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: albert@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$0f9a1fba$301ce66d@8c8ce474995ee798>
Organization: KPN B.V.
Date: Fri, 06 Oct 2023 14:20:09 +0200
Path: i2pn2.org!rocksolid2!news.neodome.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe004.abavia.com!abp003.abavia.com!news.kpn.nl!not-for-mail
Lines: 109
Injection-Date: Fri, 06 Oct 2023 14:20:09 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 4440
 by: none - Fri, 6 Oct 2023 12:20 UTC

In article <a506163e-269b-4b98-9c8b-0b2f9d1ca0c6n@googlegroups.com>,
Antoni Gual Via <antonigualvia@gmail.com> wrote:
>Hello
>Is there a Forth running in Windows able to open a graphics window and plot pixels to it? My idea is just to test some graphics programming.
>I do not need access to the awful Win32 API and I would prefer an easy setup.
>Does this beast exist? Or the transition from MS-DOS to Windows killed them all?

I consider WIN32FORTH dead anyway because before long you can no longer run
32 bits programs in MS-Windows. They have done a great job in sorting out
the zillions of symbolic constants in MS-Windows.

wina wina64 can call any dll function. Contrary to win32 graphics is not done
through a resource stuff.
What remains is to sort out the function calls to open a graphics window
and use it.
Documentation for Windows is hard to come by and not precise, because
everybody is forced to work with resource managers.

An example:

/ ----------------------------
\ A vd Horst, vrij naar FASM
\ Beer - example of tiny (one section) Win32 program

HEX
20 CONSTANT MB_ICONQUESTION
4 CONSTANT MB_YESNO
6 CONSTANT IDYES

WANT K32
"USER32.DLL" DLL-IMPORT user32
'user32 "MessageBoxA" PROC-IMPORT MessageBoxA
"WINMM.DLL" DLL-IMPORT winmm
'winmm "mciSendStringA" PROC-IMPORT mciSendStringA

"open cdaudio" Z CONSTANT _cmd_open
"set cdaudio door open" Z CONSTANT _cmd_eject
"close cdaudio" Z CONSTANT _cmd_close

"Do you need additional place to put the beer?" Z CONSTANT _message
"Desktop configuration" Z CONSTANT _caption

: handle-error DUP IF ." HET IS HELEMAAL FOUT " . CR ELSE DROP THEN ;
: handle-error DUP ?ERROR ;

: MAKE-PLACE-FOR-BEER
0 0 0 _cmd_open mciSendStringA .S CALL .S handle-error .S
0 0 0 _cmd_eject mciSendStringA CALL .S handle-error .S
0 0 0 _cmd_close mciSendStringA CALL .S handle-error .S
; : beer \ HEX
MB_ICONQUESTION MB_YESNO OR
_caption
_message
0
MessageBoxA .S CALL
IDYES = IF
MAKE-PLACE-FOR-BEER
THEN
;

: beer \ HEX
CALL[
MB_ICONQUESTION MB_YESNO OR PAR4
_caption PAR3
_message PAR2
0 PAR1
MessageBoxA .S CALL]
IDYES = IF
MAKE-PLACE-FOR-BEER
THEN
; / ----------------------------

This is a bit more complicated than strictly necessary because
wina -c beer.frt
generates a beer.exe that can be run on a system that has no
wina running (winmm.dll and system32.dll must be available of course.)
(During startup constant are looked up and patched.)

Note that wina has a 32 bit and 64 bit version.
PAR4 .. fills in the 4th parameter, and is portable across versions.

Don't be fooled by SYSTEM32.DLL. This is a 64 but library but
for "compatibility" it has not been renamed.

You can see that simple CALL can be used too. Positioned
CALL[ are more convenient because the params are not need in order.
For 64 bits CALL[ are advisable.

Note:
"USER32.DLL" is a file. "MessageBox" is a name of a procedure in that f
file, converted to an executable address.

"open cdaudio" Z CONSTANT _cmd_open
"open cdaudio" is part of the DLL specification of the MM (multi-media)
library. It is passed to the cd player of Windows and interpreted.

>Antoni

Groetjes Albert
--
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: Forth running in windows with acces to a graphics window

<ufpfi8$1l2bt$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24817&group=comp.lang.forth#24817

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!news.niel.me!news.gegeweb.eu!gegeweb.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: gpetrey@cox.net (Jerry Petrey)
Newsgroups: comp.lang.forth
Subject: Re: Forth running in windows with acces to a graphics window
Date: Fri, 6 Oct 2023 10:19:04 -0700
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <ufpfi8$1l2bt$1@dont-email.me>
References: <a506163e-269b-4b98-9c8b-0b2f9d1ca0c6n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 6 Oct 2023 17:19:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c50803ab78e8ebec8a646063aca5a1fb";
logging-data="1739133"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19U84rolOTH+zgidRYQsjYx"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:d/d9Ea0zs/aGLcazS6H1mBJgwCU=
In-Reply-To: <a506163e-269b-4b98-9c8b-0b2f9d1ca0c6n@googlegroups.com>
Content-Language: en-US
 by: Jerry Petrey - Fri, 6 Oct 2023 17:19 UTC

You might want to check out eForth for Windows. It is quite nice.
https://eforth.appspot.com/windows.html

On 10/6/23 4:02, Antoni Gual Via wrote:
> Hello
> Is there a Forth running in Windows able to open a graphics window and plot pixels to it? My idea is just to test some graphics programming.
> I do not need access to the awful Win32 API and I would prefer an easy setup.
> Does this beast exist? Or the transition from MS-DOS to Windows killed them all?
> Antoni

Re: Forth running in windows with acces to a graphics window

<b20dd705-8de4-48e9-8edd-64f32225b29cn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24820&group=comp.lang.forth#24820

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:622a:180b:b0:417:b909:22d with SMTP id t11-20020a05622a180b00b00417b909022dmr136713qtc.6.1696660062666;
Fri, 06 Oct 2023 23:27:42 -0700 (PDT)
X-Received: by 2002:a05:6870:98af:b0:1c5:87d6:b779 with SMTP id
eg47-20020a05687098af00b001c587d6b779mr3979374oab.8.1696660062393; Fri, 06
Oct 2023 23:27:42 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.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, 6 Oct 2023 23:27:41 -0700 (PDT)
In-Reply-To: <nnd$0f9a1fba$301ce66d@8c8ce474995ee798>
Injection-Info: google-groups.googlegroups.com; posting-host=213.10.199.198; posting-account=nkqetwkAAACepkf86cwWAMB6YF6pRh3F
NNTP-Posting-Host: 213.10.199.198
References: <a506163e-269b-4b98-9c8b-0b2f9d1ca0c6n@googlegroups.com> <nnd$0f9a1fba$301ce66d@8c8ce474995ee798>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b20dd705-8de4-48e9-8edd-64f32225b29cn@googlegroups.com>
Subject: Re: Forth running in windows with acces to a graphics window
From: josv@planet.nl (Jos Ven)
Injection-Date: Sat, 07 Oct 2023 06:27:42 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 5288
 by: Jos Ven - Sat, 7 Oct 2023 06:27 UTC

Op vrijdag 6 oktober 2023 om 14:20:13 UTC+2 schreef none albert:
> In article <a...glegroups.com>,
> Antoni Gual Via <antoni...il.com> wrote:
> >Hello
> >Is there a Forth running in Windows able to open a graphics window and plot pixels to it? My idea is just to test some graphics programming.
> >I do not need access to the awful Win32 API and I would prefer an easy setup.
> >Does this beast exist? Or the transition from MS-DOS to Windows killed them all?
> I consider WIN32FORTH dead anyway because before long you can no longer run
> 32 bits programs in MS-Windows. They have done a great job in sorting out
> the zillions of symbolic constants in MS-Windows.
>
> wina wina64 can call any dll function. Contrary to win32 graphics is not done
> through a resource stuff.
> What remains is to sort out the function calls to open a graphics window
> and use it.
> Documentation for Windows is hard to come by and not precise, because
> everybody is forced to work with resource managers.
>
> An example:
>
> / ----------------------------
> \ A vd Horst, vrij naar FASM
> \ Beer - example of tiny (one section) Win32 program
>
> HEX
> 20 CONSTANT MB_ICONQUESTION
> 4 CONSTANT MB_YESNO
> 6 CONSTANT IDYES
>
>
> WANT K32
> "USER32.DLL" DLL-IMPORT user32
> 'user32 "MessageBoxA" PROC-IMPORT MessageBoxA
> "WINMM.DLL" DLL-IMPORT winmm
> 'winmm "mciSendStringA" PROC-IMPORT mciSendStringA
>
> "open cdaudio" Z CONSTANT _cmd_open
> "set cdaudio door open" Z CONSTANT _cmd_eject
> "close cdaudio" Z CONSTANT _cmd_close
>
>
> "Do you need additional place to put the beer?" Z CONSTANT _message
> "Desktop configuration" Z CONSTANT _caption
>
> : handle-error DUP IF ." HET IS HELEMAAL FOUT " . CR ELSE DROP THEN ;
> : handle-error DUP ?ERROR ;
>
> : MAKE-PLACE-FOR-BEER
> 0 0 0 _cmd_open mciSendStringA .S CALL .S handle-error .S
> 0 0 0 _cmd_eject mciSendStringA CALL .S handle-error .S
> 0 0 0 _cmd_close mciSendStringA CALL .S handle-error .S
> ;
> : beer \ HEX
> MB_ICONQUESTION MB_YESNO OR
> _caption
> _message
> 0
> MessageBoxA .S CALL
> IDYES = IF
> MAKE-PLACE-FOR-BEER
> THEN
> ;
>
> : beer \ HEX
> CALL[
> MB_ICONQUESTION MB_YESNO OR PAR4
> _caption PAR3
> _message PAR2
> 0 PAR1
> MessageBoxA .S CALL]
> IDYES = IF
> MAKE-PLACE-FOR-BEER
> THEN
> ;
> / ----------------------------
>
> This is a bit more complicated than strictly necessary because
> wina -c beer.frt
> generates a beer.exe that can be run on a system that has no
> wina running (winmm.dll and system32.dll must be available of course.)
> (During startup constant are looked up and patched.)
>
> Note that wina has a 32 bit and 64 bit version.
> PAR4 .. fills in the 4th parameter, and is portable across versions.
>
> Don't be fooled by SYSTEM32.DLL. This is a 64 but library but
> for "compatibility" it has not been renamed.
>
> You can see that simple CALL can be used too. Positioned
> CALL[ are more convenient because the params are not need in order.
> For 64 bits CALL[ are advisable.
>
> Note:
> "USER32.DLL" is a file. "MessageBox" is a name of a procedure in that f
> file, converted to an executable address.
>
> "open cdaudio" Z CONSTANT _cmd_open
> "open cdaudio" is part of the DLL specification of the MM (multi-media)
> library. It is passed to the cd player of Windows and interpreted.
>
> >Antoni
>
> Groetjes Albert
> --
> 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 -

I still run Win32Forth on my w11 pc.
From: https://www.intowindows.com/does-windows-11-support-32-bit-applications
and other sites:
Windows 11, although available in 64-bit version only, supports 32-bit or x86 applications.
In fact, Windows 11 supports both 32-bit and 64-bit programs.
Jos

Re: Forth running in windows with acces to a graphics window

<5f06c4a2-bab9-4788-9f74-a329ae09068dn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24821&group=comp.lang.forth#24821

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:622a:1a14:b0:412:31bf:105 with SMTP id f20-20020a05622a1a1400b0041231bf0105mr148715qtb.3.1696664469358;
Sat, 07 Oct 2023 00:41:09 -0700 (PDT)
X-Received: by 2002:a05:6871:6a83:b0:1dc:8274:a1e with SMTP id
zf3-20020a0568716a8300b001dc82740a1emr3888217oab.10.1696664469104; Sat, 07
Oct 2023 00:41:09 -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: Sat, 7 Oct 2023 00:41:08 -0700 (PDT)
In-Reply-To: <a506163e-269b-4b98-9c8b-0b2f9d1ca0c6n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:f7:1f1d:b5bd:7d0d:3012:9eb1:8e46;
posting-account=AqNUYgoAAADmkK2pN-RKms8sww57W0Iw
NNTP-Posting-Host: 2003:f7:1f1d:b5bd:7d0d:3012:9eb1:8e46
References: <a506163e-269b-4b98-9c8b-0b2f9d1ca0c6n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5f06c4a2-bab9-4788-9f74-a329ae09068dn@googlegroups.com>
Subject: Re: Forth running in windows with acces to a graphics window
From: minforth@arcor.de (minforth)
Injection-Date: Sat, 07 Oct 2023 07:41:09 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1682
 by: minforth - Sat, 7 Oct 2023 07:41 UTC

Antoni Gual Via schrieb am Freitag, 6. Oktober 2023 um 13:02:34 UTC+2:
> Hello
> Is there a Forth running in Windows able to open a graphics window and plot pixels to it? My idea is just to test some graphics programming.
> I do not need access to the awful Win32 API and I would prefer an easy setup.
> Does this beast exist? Or the transition from MS-DOS to Windows killed them all?

Not for scientific plotting, but still:
https://mathscitech.org/articles/turtle-logo-forth

Re: Forth running in windows with acces to a graphics window

<17a16588-f2ab-462a-8eed-a1e8defbf72fn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24822&group=comp.lang.forth#24822

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ac8:6883:0:b0:419:a33e:e6fa with SMTP id m3-20020ac86883000000b00419a33ee6famr121950qtq.5.1696667184404;
Sat, 07 Oct 2023 01:26:24 -0700 (PDT)
X-Received: by 2002:a05:6870:5aa7:b0:1e1:a878:e535 with SMTP id
dt39-20020a0568705aa700b001e1a878e535mr4138541oab.1.1696667184114; Sat, 07
Oct 2023 01:26:24 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.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, 7 Oct 2023 01:26:23 -0700 (PDT)
In-Reply-To: <a506163e-269b-4b98-9c8b-0b2f9d1ca0c6n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:1c05:2f18:6d00:8f9f:1384:8637:5260;
posting-account=-JQ2RQoAAAB6B5tcBTSdvOqrD1HpT_Rk
NNTP-Posting-Host: 2001:1c05:2f18:6d00:8f9f:1384:8637:5260
References: <a506163e-269b-4b98-9c8b-0b2f9d1ca0c6n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <17a16588-f2ab-462a-8eed-a1e8defbf72fn@googlegroups.com>
Subject: Re: Forth running in windows with acces to a graphics window
From: mhx@iae.nl (Marcel Hendrix)
Injection-Date: Sat, 07 Oct 2023 08:26:24 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 9
 by: Marcel Hendrix - Sat, 7 Oct 2023 08:26 UTC

On Friday, October 6, 2023 at 1:02:34 PM UTC+2, Antoni Gual Via wrote:
> Is there a Forth running in Windows able to open a graphics window and
> plot pixels to it?

It is possible to run 16-bit applications on Windows 11 (numerous
references from Google/Youtube). Ergo, any old DOS Forth should
do. (Assuming it's ok that "graphics window" == application window).

-marcel

Re: Forth running in windows with acces to a graphics window

<nnd$7c68db37$1bccb2bd@15ce632e4fad2de0>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24824&group=comp.lang.forth#24824

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
Subject: Re: Forth running in windows with acces to a graphics window
References: <a506163e-269b-4b98-9c8b-0b2f9d1ca0c6n@googlegroups.com> <17a16588-f2ab-462a-8eed-a1e8defbf72fn@googlegroups.com>
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: albert@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$7c68db37$1bccb2bd@15ce632e4fad2de0>
Organization: KPN B.V.
Date: Sat, 07 Oct 2023 12:44:02 +0200
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe004.abavia.com!abp002.abavia.com!news.kpn.nl!not-for-mail
Lines: 24
Injection-Date: Sat, 07 Oct 2023 12:44:02 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 1772
 by: none - Sat, 7 Oct 2023 10:44 UTC

In article <17a16588-f2ab-462a-8eed-a1e8defbf72fn@googlegroups.com>,
Marcel Hendrix <mhx@iae.nl> wrote:
>On Friday, October 6, 2023 at 1:02:34 PM UTC+2, Antoni Gual Via wrote:
>> Is there a Forth running in Windows able to open a graphics window and
>> plot pixels to it?
>
>It is possible to run 16-bit applications on Windows 11 (numerous
>references from Google/Youtube). Ergo, any old DOS Forth should
>do. (Assuming it's ok that "graphics window" == application window).

Really? Can you run third party 64 bit graphics DLL libraries from there?
If you have a 4Gbyte GPU you want run Nvidia's (proprietary) graphic
tools, at least I do.

>
>-marcel

Groetjes Albert
--
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: Forth running in windows with acces to a graphics window

<4c3190c2-e828-4f13-ba23-50f942372867n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24826&group=comp.lang.forth#24826

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:622a:1aa2:b0:417:d657:9fd7 with SMTP id s34-20020a05622a1aa200b00417d6579fd7mr143902qtc.9.1696679352496;
Sat, 07 Oct 2023 04:49:12 -0700 (PDT)
X-Received: by 2002:a05:6830:22c1:b0:6bf:287e:1afd with SMTP id
q1-20020a05683022c100b006bf287e1afdmr3048259otc.5.1696679352272; Sat, 07 Oct
2023 04:49:12 -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: Sat, 7 Oct 2023 04:49:11 -0700 (PDT)
In-Reply-To: <nnd$7c68db37$1bccb2bd@15ce632e4fad2de0>
Injection-Info: google-groups.googlegroups.com; posting-host=92.189.48.160; posting-account=bd1LGwoAAAArJUc1f4XW695QNxDQwWXL
NNTP-Posting-Host: 92.189.48.160
References: <a506163e-269b-4b98-9c8b-0b2f9d1ca0c6n@googlegroups.com>
<17a16588-f2ab-462a-8eed-a1e8defbf72fn@googlegroups.com> <nnd$7c68db37$1bccb2bd@15ce632e4fad2de0>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4c3190c2-e828-4f13-ba23-50f942372867n@googlegroups.com>
Subject: Re: Forth running in windows with acces to a graphics window
From: antonigualvia@gmail.com (Antoni Gual Via)
Injection-Date: Sat, 07 Oct 2023 11:49:12 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1524
 by: Antoni Gual Via - Sat, 7 Oct 2023 11:49 UTC

@minforth I checked the logo forth but the download link does'nt seem to work
@marcel Yes, I sometimes run my old qbasic programs in a DosBox in Win10, but all programs run slower than in a 20 years old PC. I guess the switch to 16bits in each cycle most of the time...
Antoni

Re: Forth running in windows with acces to a graphics window

<03062c85-0d8a-497b-a74f-fc7e7e57a122n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24827&group=comp.lang.forth#24827

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:622a:1a9b:b0:40c:8ba5:33e7 with SMTP id s27-20020a05622a1a9b00b0040c8ba533e7mr169523qtc.1.1696682060226;
Sat, 07 Oct 2023 05:34:20 -0700 (PDT)
X-Received: by 2002:a05:6808:1a09:b0:3ae:7044:fde0 with SMTP id
bk9-20020a0568081a0900b003ae7044fde0mr5627073oib.7.1696682060022; Sat, 07 Oct
2023 05:34:20 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.1d4.us!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: Sat, 7 Oct 2023 05:34:19 -0700 (PDT)
In-Reply-To: <4c3190c2-e828-4f13-ba23-50f942372867n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:1c05:2f18:6d00:8f9f:1384:8637:5260;
posting-account=-JQ2RQoAAAB6B5tcBTSdvOqrD1HpT_Rk
NNTP-Posting-Host: 2001:1c05:2f18:6d00:8f9f:1384:8637:5260
References: <a506163e-269b-4b98-9c8b-0b2f9d1ca0c6n@googlegroups.com>
<17a16588-f2ab-462a-8eed-a1e8defbf72fn@googlegroups.com> <nnd$7c68db37$1bccb2bd@15ce632e4fad2de0>
<4c3190c2-e828-4f13-ba23-50f942372867n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <03062c85-0d8a-497b-a74f-fc7e7e57a122n@googlegroups.com>
Subject: Re: Forth running in windows with acces to a graphics window
From: mhx@iae.nl (Marcel Hendrix)
Injection-Date: Sat, 07 Oct 2023 12:34:20 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1752
 by: Marcel Hendrix - Sat, 7 Oct 2023 12:34 UTC

On Saturday, October 7, 2023 at 1:49:13 PM UTC+2, Antoni Gual Via wrote:
> @marcel Yes, I sometimes run my old qbasic programs in a DosBox in Win10,
> but all programs run slower than in a 20 years old PC.

So it should be fast, run on current Windows, and be able to use graphics?
Why not download Vfx or SwiftForth then?

-marcel

Re: Forth running in windows with acces to a graphics window

<3c5229ec-7329-47d4-9704-c80cdcb53d91n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24829&group=comp.lang.forth#24829

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:622a:1889:b0:418:387:dcc8 with SMTP id v9-20020a05622a188900b004180387dcc8mr138274qtc.4.1696684261833;
Sat, 07 Oct 2023 06:11:01 -0700 (PDT)
X-Received: by 2002:a05:6870:c782:b0:1e1:82c6:33ec with SMTP id
dy2-20020a056870c78200b001e182c633ecmr3939583oab.2.1696684261542; Sat, 07 Oct
2023 06:11:01 -0700 (PDT)
Path: i2pn2.org!rocksolid2!news.neodome.net!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: Sat, 7 Oct 2023 06:11:01 -0700 (PDT)
In-Reply-To: <4c3190c2-e828-4f13-ba23-50f942372867n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:f7:1f1d:b5bd:7d0d:3012:9eb1:8e46;
posting-account=AqNUYgoAAADmkK2pN-RKms8sww57W0Iw
NNTP-Posting-Host: 2003:f7:1f1d:b5bd:7d0d:3012:9eb1:8e46
References: <a506163e-269b-4b98-9c8b-0b2f9d1ca0c6n@googlegroups.com>
<17a16588-f2ab-462a-8eed-a1e8defbf72fn@googlegroups.com> <nnd$7c68db37$1bccb2bd@15ce632e4fad2de0>
<4c3190c2-e828-4f13-ba23-50f942372867n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3c5229ec-7329-47d4-9704-c80cdcb53d91n@googlegroups.com>
Subject: Re: Forth running in windows with acces to a graphics window
From: minforth@arcor.de (minforth)
Injection-Date: Sat, 07 Oct 2023 13:11:01 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1594
 by: minforth - Sat, 7 Oct 2023 13:11 UTC

Antoni Gual Via schrieb am Samstag, 7. Oktober 2023 um 13:49:13 UTC+2:
> @minforth I checked the logo forth but the download link does'nt seem to work

It works here
http://www.mathscitech.org/code/forth-turtle-logo/turtle-logo-plus.zip

Re: Forth running in windows with acces to a graphics window

<ac0ddcd8-4f3f-400a-b36f-74a492c26c57n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24833&group=comp.lang.forth#24833

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:622a:4f:b0:412:1bc3:10f3 with SMTP id y15-20020a05622a004f00b004121bc310f3mr179322qtw.13.1696704320206;
Sat, 07 Oct 2023 11:45:20 -0700 (PDT)
X-Received: by 2002:a4a:3714:0:b0:57b:66fb:5e25 with SMTP id
r20-20020a4a3714000000b0057b66fb5e25mr3868762oor.1.1696704320004; Sat, 07 Oct
2023 11:45:20 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sat, 7 Oct 2023 11:45:19 -0700 (PDT)
In-Reply-To: <a506163e-269b-4b98-9c8b-0b2f9d1ca0c6n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=181.224.104.137; posting-account=09QgXQoAAACihArpLC0Xx_Qjo5NIPo4h
NNTP-Posting-Host: 181.224.104.137
References: <a506163e-269b-4b98-9c8b-0b2f9d1ca0c6n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ac0ddcd8-4f3f-400a-b36f-74a492c26c57n@googlegroups.com>
Subject: Re: Forth running in windows with acces to a graphics window
From: pabloreda@gmail.com (Pablo Hugo Reda)
Injection-Date: Sat, 07 Oct 2023 18:45:20 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Pablo Hugo Reda - Sat, 7 Oct 2023 18:45 UTC

El viernes, 6 de octubre de 2023 a las 8:02:34 UTC-3, Antoni Gual Via escribió:
> Hello
> Is there a Forth running in Windows able to open a graphics window and plot pixels to it? My idea is just to test some graphics programming.
> I do not need access to the awful Win32 API and I would prefer an easy setup.
> Does this beast exist? Or the transition from MS-DOS to Windows killed them all?
> Antoni

yes, 32 bits
https://github.com/phreda4/r4
newer 64 bits, with sdl lib
https://github.com/phreda4/r3

Re: Forth running in windows with acces to a graphics window

<ufsvls$2mepo$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24834&group=comp.lang.forth#24834

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dxforth@gmail.com (dxf)
Newsgroups: comp.lang.forth
Subject: Re: Forth running in windows with acces to a graphics window
Date: Sun, 8 Oct 2023 12:12:30 +1100
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <ufsvls$2mepo$1@dont-email.me>
References: <a506163e-269b-4b98-9c8b-0b2f9d1ca0c6n@googlegroups.com>
<5f06c4a2-bab9-4788-9f74-a329ae09068dn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 8 Oct 2023 01:12:29 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6264b37f6d6df0d267f6d33e6b0838a0";
logging-data="2833208"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ORqPTy7OzbUsWOVaBiqKY"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:5bKmWQ7OgBnkZKq20gaS2RLjxPQ=
In-Reply-To: <5f06c4a2-bab9-4788-9f74-a329ae09068dn@googlegroups.com>
Content-Language: en-GB
 by: dxf - Sun, 8 Oct 2023 01:12 UTC

On 7/10/2023 6:41 pm, minforth wrote:
> Antoni Gual Via schrieb am Freitag, 6. Oktober 2023 um 13:02:34 UTC+2:
>> Hello
>> Is there a Forth running in Windows able to open a graphics window and plot pixels to it? My idea is just to test some graphics programming.
>> I do not need access to the awful Win32 API and I would prefer an easy setup.
>> Does this beast exist? Or the transition from MS-DOS to Windows killed them all?
>
> Not for scientific plotting, but still:
> https://mathscitech.org/articles/turtle-logo-forth

For plotting there's Krishna Myneni's XYPLOT:

https://github.com/mynenik/XYPLOT-Win32

Hard to believe this app isn't better known.

Re: Forth running in windows with acces to a graphics window

<5d609f20-0a38-4a03-8248-fbc2946414e8n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24836&group=comp.lang.forth#24836

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ad4:4d54:0:b0:65d:1a8:45a0 with SMTP id m20-20020ad44d54000000b0065d01a845a0mr183144qvm.13.1696752606440;
Sun, 08 Oct 2023 01:10:06 -0700 (PDT)
X-Received: by 2002:a05:6808:14c7:b0:3a7:b55e:a54 with SMTP id
f7-20020a05680814c700b003a7b55e0a54mr6501653oiw.1.1696752606206; Sun, 08 Oct
2023 01:10:06 -0700 (PDT)
Path: i2pn2.org!i2pn.org!nntp.comgw.net!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sun, 8 Oct 2023 01:10:05 -0700 (PDT)
In-Reply-To: <a506163e-269b-4b98-9c8b-0b2f9d1ca0c6n@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: <a506163e-269b-4b98-9c8b-0b2f9d1ca0c6n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5d609f20-0a38-4a03-8248-fbc2946414e8n@googlegroups.com>
Subject: Re: Forth running in windows with acces to a graphics window
From: josv@planet.nl (Jos Ven)
Injection-Date: Sun, 08 Oct 2023 08:10:06 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Jos Ven - Sun, 8 Oct 2023 08:10 UTC

Op vrijdag 6 oktober 2023 om 13:02:34 UTC+2 schreef Antoni Gual Via:
> Hello
> Is there a Forth running in Windows able to open a graphics window and plot pixels to it? My idea is just to test some graphics programming.
> I do not need access to the awful Win32 API and I would prefer an easy setup.
> Does this beast exist? Or the transition from MS-DOS to Windows killed them all?
> Antoni

Under Win32Forth Version 6.15.04 from https://sourceforge.net/projects/win32forth/files/

You can use:
- Turtle like plots
- Plot to a dibsection
- Use OpenGl

For the extra extensions see:
https://github.com/Jos-Ven/Win32Forth-extensions
Jos

Re: Forth running in windows with acces to a graphics window

<ca73fa95-c696-41c8-9ce0-f0f9557692c7n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24841&group=comp.lang.forth#24841

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a0c:bf44:0:b0:66a:ea5b:45de with SMTP id b4-20020a0cbf44000000b0066aea5b45demr118786qvj.0.1696802370816;
Sun, 08 Oct 2023 14:59:30 -0700 (PDT)
X-Received: by 2002:a05:6830:1419:b0:6bd:178f:ef85 with SMTP id
v25-20020a056830141900b006bd178fef85mr4458117otp.7.1696802370542; Sun, 08 Oct
2023 14:59:30 -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: Sun, 8 Oct 2023 14:59:30 -0700 (PDT)
In-Reply-To: <ufpfi8$1l2bt$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=72.217.63.66; posting-account=6GCGIQoAAAAyO8IjR_VTwqiqLwx0Q_G8
NNTP-Posting-Host: 72.217.63.66
References: <a506163e-269b-4b98-9c8b-0b2f9d1ca0c6n@googlegroups.com> <ufpfi8$1l2bt$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ca73fa95-c696-41c8-9ce0-f0f9557692c7n@googlegroups.com>
Subject: Re: Forth running in windows with acces to a graphics window
From: hwfwguy@gmail.com (Brad Eckert)
Injection-Date: Sun, 08 Oct 2023 21:59:30 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2213
 by: Brad Eckert - Sun, 8 Oct 2023 21:59 UTC

On Friday, October 6, 2023 at 10:19:08 AM UTC-7, Jerry Petrey wrote:
> You might want to check out eForth for Windows. It is quite nice.
> https://eforth.appspot.com/windows.html
> On 10/6/23 4:02, Antoni Gual Via wrote:
> > Hello
> > Is there a Forth running in Windows able to open a graphics window and plot pixels to it? My idea is just to test some graphics programming.
> > I do not need access to the awful Win32 API and I would prefer an easy setup.
> > Does this beast exist? Or the transition from MS-DOS to Windows killed them all?
> > Antoni

uEforth v7.0.6.19 - rev 2f2c3cb9e1f6c128d428
Forth dictionary: 10187368 free + 101756 used = 10289124 total (99% free)
3 x Forth stacks: 65536 bytes each
ok
--> : ud. <# #S #> type ;
ok
--> -1 -1 ud.
18446744073709551615 ok
-1 -->

I was expecting 38 digits. Is the change to numeric output words common for 64-bit Forths? I was expecting #S and #> to handle doubles. This kind of breaks ANS code.

Re: Forth running in windows with acces to a graphics window

<0c870983-59a7-4608-b1ce-ed23f38b9249n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24843&group=comp.lang.forth#24843

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ad4:4e41:0:b0:65b:7ba:8c9e with SMTP id eb1-20020ad44e41000000b0065b07ba8c9emr183287qvb.1.1696809214548;
Sun, 08 Oct 2023 16:53:34 -0700 (PDT)
X-Received: by 2002:a9d:6a44:0:b0:6bc:b75c:f32f with SMTP id
h4-20020a9d6a44000000b006bcb75cf32fmr4665650otn.2.1696809214233; Sun, 08 Oct
2023 16:53:34 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.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: Sun, 8 Oct 2023 16:53:33 -0700 (PDT)
In-Reply-To: <ca73fa95-c696-41c8-9ce0-f0f9557692c7n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23c5:6f05:3a01:45b5:b1aa:8312:c32c;
posting-account=9A5f7goAAAD_QfJPZnlK3Xq_UhzYjdP-
NNTP-Posting-Host: 2a00:23c5:6f05:3a01:45b5:b1aa:8312:c32c
References: <a506163e-269b-4b98-9c8b-0b2f9d1ca0c6n@googlegroups.com>
<ufpfi8$1l2bt$1@dont-email.me> <ca73fa95-c696-41c8-9ce0-f0f9557692c7n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0c870983-59a7-4608-b1ce-ed23f38b9249n@googlegroups.com>
Subject: Re: Forth running in windows with acces to a graphics window
From: november.nihal@gmail.com (NN)
Injection-Date: Sun, 08 Oct 2023 23:53:34 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2555
 by: NN - Sun, 8 Oct 2023 23:53 UTC

On Sunday, 8 October 2023 at 22:59:32 UTC+1, Brad Eckert wrote:
> On Friday, October 6, 2023 at 10:19:08 AM UTC-7, Jerry Petrey wrote:
> > You might want to check out eForth for Windows. It is quite nice.
> > https://eforth.appspot.com/windows.html
> > On 10/6/23 4:02, Antoni Gual Via wrote:
> > > Hello
> > > Is there a Forth running in Windows able to open a graphics window and plot pixels to it? My idea is just to test some graphics programming.
> > > I do not need access to the awful Win32 API and I would prefer an easy setup.
> > > Does this beast exist? Or the transition from MS-DOS to Windows killed them all?
> > > Antoni
> uEforth v7.0.6.19 - rev 2f2c3cb9e1f6c128d428
> Forth dictionary: 10187368 free + 101756 used = 10289124 total (99% free)
> 3 x Forth stacks: 65536 bytes each
> ok
> --> : ud. <# #S #> type ;
> ok
> --> -1 -1 ud.
> 18446744073709551615 ok
> -1 -->
>
> I was expecting 38 digits. Is the change to numeric output words common for 64-bit Forths? I was expecting #S and #> to handle doubles. This kind of breaks ANS code.

I cant see anything wrong so whats the size of a cell in bytes ?

Re: Forth running in windows with acces to a graphics window

<2023Oct9.084739@mips.complang.tuwien.ac.at>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24845&group=comp.lang.forth#24845

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.lang.forth
Subject: Re: Forth running in windows with acces to a graphics window
Date: Mon, 09 Oct 2023 06:47:39 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 31
Message-ID: <2023Oct9.084739@mips.complang.tuwien.ac.at>
References: <a506163e-269b-4b98-9c8b-0b2f9d1ca0c6n@googlegroups.com> <ufpfi8$1l2bt$1@dont-email.me> <ca73fa95-c696-41c8-9ce0-f0f9557692c7n@googlegroups.com>
Injection-Info: dont-email.me; posting-host="3d5dfe58e443cdb445e455c5e45f338e";
logging-data="3917367"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19AExb8UiiXhx6nAeh7HsK7"
Cancel-Lock: sha1:22BcPIUYNMZmH6gPAR5UIxZxOt0=
X-newsreader: xrn 10.11
 by: Anton Ertl - Mon, 9 Oct 2023 06:47 UTC

Brad Eckert <hwfwguy@gmail.com> writes:
>uEforth v7.0.6.19 - rev 2f2c3cb9e1f6c128d428
>Forth dictionary: 10187368 free + 101756 used =3D 10289124 total (99% free)
>3 x Forth stacks: 65536 bytes each
> ok
>--> : ud. <# #S #> type ;
> ok
>--> -1 -1 ud.
>18446744073709551615 ok
>-1 -->
>
>I was expecting 38 digits. Is the change to numeric output words common for=
> 64-bit Forths?

Running the following on various Forth systems:

1 cells . -1 -1 <# #s #> type

I see the following outputs:

8 340282366920938463463374607431768211455 gforth 64-bit
8 340282366920938463463374607431768211455 iForth
8 340282366920938463463374607431768211455 SwiftForth x64-Linux
8 340282366920938463463374607431768211455 VFX Forth 64

- 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 2023: https://euro.theforth.net/2023

Re: Forth running in windows with acces to a graphics window

<ug0d8t$3odkl$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24846&group=comp.lang.forth#24846

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dxforth@gmail.com (dxf)
Newsgroups: comp.lang.forth
Subject: Re: Forth running in windows with acces to a graphics window
Date: Mon, 9 Oct 2023 19:22:52 +1100
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <ug0d8t$3odkl$1@dont-email.me>
References: <a506163e-269b-4b98-9c8b-0b2f9d1ca0c6n@googlegroups.com>
<ufpfi8$1l2bt$1@dont-email.me>
<ca73fa95-c696-41c8-9ce0-f0f9557692c7n@googlegroups.com>
<0c870983-59a7-4608-b1ce-ed23f38b9249n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 9 Oct 2023 08:22:53 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a54ebe8873419be18a4c43d04aa55c0f";
logging-data="3946133"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19lVNtD38VCkkmX80nRNc6R"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:tc7teNmHJlMyERm1VRVwOYPOCmc=
Content-Language: en-GB
In-Reply-To: <0c870983-59a7-4608-b1ce-ed23f38b9249n@googlegroups.com>
 by: dxf - Mon, 9 Oct 2023 08:22 UTC

On 9/10/2023 10:53 am, NN wrote:
> On Sunday, 8 October 2023 at 22:59:32 UTC+1, Brad Eckert wrote:
>> On Friday, October 6, 2023 at 10:19:08 AM UTC-7, Jerry Petrey wrote:
>>> You might want to check out eForth for Windows. It is quite nice.
>>> https://eforth.appspot.com/windows.html
>>> On 10/6/23 4:02, Antoni Gual Via wrote:
>>>> Hello
>>>> Is there a Forth running in Windows able to open a graphics window and plot pixels to it? My idea is just to test some graphics programming.
>>>> I do not need access to the awful Win32 API and I would prefer an easy setup.
>>>> Does this beast exist? Or the transition from MS-DOS to Windows killed them all?
>>>> Antoni
>> uEforth v7.0.6.19 - rev 2f2c3cb9e1f6c128d428
>> Forth dictionary: 10187368 free + 101756 used = 10289124 total (99% free)
>> 3 x Forth stacks: 65536 bytes each
>> ok
>> --> : ud. <# #S #> type ;
>> ok
>> --> -1 -1 ud.
>> 18446744073709551615 ok
>> -1 -->
>>
>> I was expecting 38 digits. Is the change to numeric output words common for 64-bit Forths? I was expecting #S and #> to handle doubles. This kind of breaks ANS code.
>
> I cant see anything wrong so whats the size of a cell in bytes ?

--> 1 cells .
8 ok

ueForth # works with singles. Hence ud. above was actually u.

Re: Forth running in windows with acces to a graphics window

<nnd$374ef822$16da3d0d@34330427289a2007>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24848&group=comp.lang.forth#24848

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
Subject: Re: Forth running in windows with acces to a graphics window
References: <a506163e-269b-4b98-9c8b-0b2f9d1ca0c6n@googlegroups.com> <ufpfi8$1l2bt$1@dont-email.me> <ca73fa95-c696-41c8-9ce0-f0f9557692c7n@googlegroups.com>
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: albert@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$374ef822$16da3d0d@34330427289a2007>
Organization: KPN B.V.
Date: Mon, 09 Oct 2023 11:22:51 +0200
Path: i2pn2.org!i2pn.org!news.neodome.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe006.abavia.com!abp003.abavia.com!news.kpn.nl!not-for-mail
Lines: 53
Injection-Date: Mon, 09 Oct 2023 11:22:51 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 2689
 by: none - Mon, 9 Oct 2023 09:22 UTC

In article <ca73fa95-c696-41c8-9ce0-f0f9557692c7n@googlegroups.com>,
Brad Eckert <hwfwguy@gmail.com> wrote:
>On Friday, October 6, 2023 at 10:19:08 AM UTC-7, Jerry Petrey wrote:
>> You might want to check out eForth for Windows. It is quite nice.
>> https://eforth.appspot.com/windows.html
>> On 10/6/23 4:02, Antoni Gual Via wrote:
>> > Hello
>> > Is there a Forth running in Windows able to open a graphics window
>and plot pixels to it? My idea is just to test some graphics
>programming.
>> > I do not need access to the awful Win32 API and I would prefer an
>easy setup.
>> > Does this beast exist? Or the transition from MS-DOS to Windows
>killed them all?
>> > Antoni
>
>uEforth v7.0.6.19 - rev 2f2c3cb9e1f6c128d428
>Forth dictionary: 10187368 free + 101756 used = 10289124 total (99% free)
>3 x Forth stacks: 65536 bytes each
> ok
>--> : ud. <# #S #> type ;
> ok
>--> -1 -1 ud.
>18446744073709551615 ok
>-1 -->
>
>I was expecting 38 digits. Is the change to numeric output words common
>for 64-bit Forths? I was expecting #S and #> to handle doubles. This
>kind of breaks ANS code.

It is a defect (verstosz gegen die Ansi Reglen).

Usually 64 bit Forths follows ANS in this regard:

~/PROJECT/ciforths/ciforth/LISPAOL/mal-forth: gforth
Gforth 0.7.3, Copyright (C) 1995-2008 Free Software Foundation, Inc.
Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license'
Type `bye' to exit
-1. UD. 340282366920938463463374607431768211455 ok
BYE
~/PROJECT/ciforths/ciforth/LISPAOL/mal-forth: lina

AMDX86 ciforth beta 2023Sep03
-1. <# #S #> TYPE
340282366920938463463374607431768211455 OK

Groetjes Albert
--
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 -

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor