Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

19 May, 2024: Line wrapping has been changed to be consistent with Usenet standards.
 If you find that it is broken please let me know here rocksolid.nodes.help


devel / comp.lang.forth / Re: String processing, for example

SubjectAuthor
* String processing, for exampleAndy Valencia
+- Re: String processing, for examplePaul Rubin
+* Re: String processing, for examplemeff
|`* Re: String processing, for examplePaul Rubin
| `* Re: String processing, for exampleJali Heinonen
|  `- Re: String processing, for exampleRon AARON
+- Re: String processing, for exampleAndy Valencia
+* Re: String processing, for exampleNickolay Kolchin
|`* Re: String processing, for exampleminf...@arcor.de
| `* Re: String processing, for exampleNickolay Kolchin
|  `* Re: String processing, for exampleminf...@arcor.de
|   +* Re: String processing, for exampleNickolay Kolchin
|   |+- Re: String processing, for exampleminf...@arcor.de
|   |`* Re: String processing, for exampleAnton Ertl
|   | `* Re: String processing, for exampleNickolay Kolchin
|   |  +* Re: String processing, for exampleMarcel Hendrix
|   |  |+* Re: String processing, for exampleNickolay Kolchin
|   |  ||`* Re: String processing, for exampleNickolay Kolchin
|   |  || `- Re: String processing, for exampleS Jack
|   |  |`- Re: String processing, for exampledxforth
|   |  `* Re: String processing, for exampleAnton Ertl
|   |   `* Re: String processing, for exampleNickolay Kolchin
|   |    `* Re: String processing, for exampleMarcel Hendrix
|   |     +* Re: String processing, for examplePaul Rubin
|   |     |`- Re: String processing, for exampleMarcel Hendrix
|   |     `- Re: String processing, for exampleminf...@arcor.de
|   `* Re: String processing, for exampleHugh Aguilar
|    `* Re: String processing, for exampleNickolay Kolchin
|     `* Re: String processing, for exampleHugh Aguilar
|      `* Re: String processing, for exampleNickolay Kolchin
|       +* Re: String processing, for examplePaul Rubin
|       |+* Re: String processing, for exampleNickolay Kolchin
|       ||`* Re: String processing, for exampleminf...@arcor.de
|       || +- Re: String processing, for exampleNickolay Kolchin
|       || `* Re: String processing, for exampleHowerd Oakford
|       ||  `- Re: String processing, for exampleminf...@arcor.de
|       |`- Re: String processing, for exampleAnton Ertl
|       `- Re: String processing, for exampleHugh Aguilar
+* Re: String processing, for exampleAnton Ertl
|+* Re: String processing, for exampleNickolay Kolchin
||+* Re: String processing, for exampleMarcel Hendrix
|||`- Re: String processing, for exampleNickolay Kolchin
||`* Re: String processing, for exampleAnton Ertl
|| +* Re: String processing, for exampleMarcel Hendrix
|| |+- Re: String processing, for exampledxforth
|| |+* Re: String processing, for exampleNickolay Kolchin
|| ||`- Re: String processing, for exampleMarcel Hendrix
|| |`* Re: String processing, for exampleAnton Ertl
|| | `- Re: String processing, for exampleRuvim
|| +- Re: String processing, for exampleNickolay Kolchin
|| +* Re: String processing, for exampleStephen Pelc
|| |+- Re: String processing, for exampleHugh Aguilar
|| |`* Re: String processing, for exampleAnton Ertl
|| | `* Re: String processing, for exampleAnton Ertl
|| |  `- Re: String processing, for examplelehs
|| `- Re: String processing, for exampleNickolay Kolchin
|+- Re: String processing, for exampleJan Coombs
|+- Re: String processing, for exampleUlrich Hoffmann
|`* Re: String processing, for exampleAndy Valencia
| +* Re: String processing, for exampleminf...@arcor.de
| |+* Re: String processing, for examplePaul Rubin
| ||`- Re: String processing, for exampleDoug Hoffman
| |`* Re: String processing, for exampleNickolay Kolchin
| | `* Re: String processing, for exampledxforth
| |  `* Re: String processing, for exampleNickolay Kolchin
| |   `- Re: String processing, for exampleS Jack
| +- Re: String processing, for exampleRon AARON
| +- Re: String processing, for exampleAndy Valencia
| +* Re: String processing, for exampledxforth
| |+* Re: String processing, for exampleNickolay Kolchin
| ||`* Re: String processing, for exampledxforth
| || +* Re: String processing, for exampleNickolay Kolchin
| || |`* Re: String processing, for exampleRobert L.
| || | `- Re: String processing, for exampledxforth
| || +* Re: String processing, for exampleMarcel Hendrix
| || |`- Re: String processing, for exampledxforth
| || `- Re: String processing, for exampleS Jack
| |+* Re: String processing, for examplePaul Rubin
| ||+- Re: String processing, for exampledxforth
| ||+- Re: String processing, for exampleAnton Ertl
| ||`* Re: String processing, for exampleMarcel Hendrix
| || `- Re: String processing, for exampleNickolay Kolchin
| |+* Re: String processing, for exampleHugh Aguilar
| ||`- Re: String processing, for exampledxforth
| |`* Re: String processing, for exampleRobert L.
| | `- Re: String processing, for exampledxforth
| +- Re: String processing, for exampleAnton Ertl
| `* Re: String processing, for exampleAndy Valencia
|  +- Re: String processing, for exampleAnton Ertl
|  `* Re: String processing, for exampleAndy Valencia
|   `- Re: String processing, for exampleAnton Ertl
+* Re: String processing, for exampleluser droog
|`* Re: String processing, for exampleAnton Ertl
| `* Re: String processing, for exampleluser droog
|  `- Re: String processing, for exampleAnton Ertl
+* Re: String processing, for exampleHans Bezemer
|`- Re: String processing, for exampleHans Bezemer
+- Re: String processing, for exampleDoug Hoffman
+* Re: String processing, for examplelehs
|`- Re: String processing, for exampledxforth
+* Re: String processing, for exampleRobert L.
+* Re: String processing, for exampleRobert L.
+- Re: String processing, for exampleMark Wills
`* Re: String processing, for examplePaul Rubin

Pages:1234567891011
Re: String processing, for example

<sta4uf$83m$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!4R0EQelEiUrVefjGYMtJog.user.46.165.242.75.POSTED!not-for-mail
From: No_spamm...@noWhere_7073.org (Robert L.)
Newsgroups: comp.lang.forth
Subject: Re: String processing, for example
Date: Tue, 1 Feb 2022 02:12:33 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <sta4uf$83m$1@gioia.aioe.org>
References: <62bb8956-0d39-499c-9a00-6939c7982728n@googlegroups.com> <164037894202.1384.9410906461200956517@media.vsta.org> <2021Dec25.105035@mips.complang.tuwien.ac.at> <164070267602.29570.12758378715096697496@media.vsta.org> <sqgjcj$1id6$1@gioia.aioe.org>
Injection-Info: gioia.aioe.org; logging-data="8310"; posting-host="4R0EQelEiUrVefjGYMtJog.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: XanaNews/1.18.1.6
X-Notice: Filtered by postfilter v. 0.9.2
 by: Robert L. - Tue, 1 Feb 2022 02:12 UTC

On 12/28/2021, dxforth wrote:

> "We choose to go to the Moon [...] and do the other things, not because
> they are easy, but because they are hard;

https://archive.org/details/DidWeLandOnTheMoon
https://archive.org/details/EndgameVostfr
https://archive.org/details/DidWeReallyLandMenOnTheMoon
http://archive.org/details/WasItOnlyAPaperMoonApolloHoaxJamesM.Collier1997
http://archive.org/details/BillKaysingRawInterview
http://archive.org/details/RalphReneRawInterview
https://archive.org/details/BartSibrelMoonMyths
https://archive.org/details/Season2Episode8BartSibrel
https://archive.org/details/LunarConspiracy

--
DELTA OMICRON =
MEDIA CONTROL

Re: String processing, for example

<sta7sf$12a5$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!7AktqsUqy5CCvnKa3S0Dkw.user.46.165.242.75.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: String processing, for example
Date: Tue, 1 Feb 2022 14:02:39 +1100
Organization: Aioe.org NNTP Server
Message-ID: <sta7sf$12a5$1@gioia.aioe.org>
References: <62bb8956-0d39-499c-9a00-6939c7982728n@googlegroups.com>
<164037894202.1384.9410906461200956517@media.vsta.org>
<2021Dec25.105035@mips.complang.tuwien.ac.at>
<164070267602.29570.12758378715096697496@media.vsta.org>
<sqgjcj$1id6$1@gioia.aioe.org> <sta4uf$83m$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="35141"; posting-host="7AktqsUqy5CCvnKa3S0Dkw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
 by: dxforth - Tue, 1 Feb 2022 03:02 UTC

On 1/02/2022 13:12, Robert L. wrote:
> On 12/28/2021, dxforth wrote:
>
>> "We choose to go to the Moon [...] and do the other things, not because
>> they are easy, but because they are hard;
>
> https://archive.org/details/DidWeLandOnTheMoon
> https://archive.org/details/EndgameVostfr
> https://archive.org/details/DidWeReallyLandMenOnTheMoon
> http://archive.org/details/WasItOnlyAPaperMoonApolloHoaxJamesM.Collier1997
> http://archive.org/details/BillKaysingRawInterview
> http://archive.org/details/RalphReneRawInterview
> https://archive.org/details/BartSibrelMoonMyths
> https://archive.org/details/Season2Episode8BartSibrel
> https://archive.org/details/LunarConspiracy
>

When it comes to beliefs, I choose the easy ones because they are easy.

Re: String processing, for example

<stb7mb$15ra$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!7liAD2Nk5yxUyirObb02/A.user.46.165.242.75.POSTED!not-for-mail
From: No_spamm...@noWhere_7073.org (Robert L.)
Newsgroups: comp.lang.forth
Subject: Re: String processing, for example
Date: Tue, 1 Feb 2022 12:05:33 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <stb7mb$15ra$1@gioia.aioe.org>
References: <164037894202.1384.9410906461200956517@media.vsta.org>
Injection-Info: gioia.aioe.org; logging-data="38762"; posting-host="7liAD2Nk5yxUyirObb02/A.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: XanaNews/1.18.1.6
X-Notice: Filtered by postfilter v. 0.9.2
 by: Robert L. - Tue, 1 Feb 2022 12:05 UTC

On 12/24/2021, Andy Valencia wrote:

> counting the number of words in the diction with an "a" in them

variable na
s" words" r/o open-file throw Value f

variable buf
: read-ch buf 1 f read-file throw 0= throw
buf c@ ;

: matches ( char -- char bool ) dup read-ch = ;

: read-till ( char -- ) begin matches until drop ;

: count-a-words
begin
[char] a read-till
1 na +!
10 read-till
again ;

' count-a-words catch drop na ?
f close-file throw

--
archive.org/details/nolies

Re: String processing, for example

<61f92bb2$0$700$14726298@news.sunsite.dk>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Tue, 1 Feb 2022 07:46:38 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.5.1
Subject: Re: String processing, for example
Content-Language: en-US
Newsgroups: comp.lang.forth
References: <164037894202.1384.9410906461200956517@media.vsta.org>
<stb7mb$15ra$1@gioia.aioe.org>
From: dhoffman...@gmail.com (Doug Hoffman)
In-Reply-To: <stb7mb$15ra$1@gioia.aioe.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 41
Message-ID: <61f92bb2$0$700$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 327b9629.news.sunsite.dk
X-Trace: 1643719603 news.sunsite.dk 700 glidedog@gmail.com/68.55.82.126:49420
X-Complaints-To: staff@sunsite.dk
 by: Doug Hoffman - Tue, 1 Feb 2022 12:46 UTC

On 2/1/22 7:05 AM, Robert L. wrote:
> variable na
> s" words" r/o open-file throw Value f
>
> variable buf
> : read-ch buf 1 f read-file throw 0= throw
> buf c@ ;
>
> : matches ( char -- char bool ) dup read-ch = ;
>
> : read-till ( char -- ) begin matches until drop ;
>
> : count-a-words
> begin
> [char] a read-till
> 1 na +!
> 10 read-till
> again ;
>
> ' count-a-words catch drop na ?
> f close-file throw

You used library code in the other languages you presented. Seems to me
that library code could(should) also be used in a Forth solution:

https://github.com/DouglasBHoffman/FMS2
include FMS2VT.f
include array.f
include string.f
include file.f

s" /usr/share/dict/words" file f r/o f :fam
0 [: 'a' swap :chsearch if 1+ then ;] f :apply .

Granted, with Forth everyone seems to use their own library code.

The :apply HOF will step through each line of the file and pass that to
the quotation as a string object.

-Doug

Re: String processing, for example

<077895e5-2976-4592-86b5-15fe3cef863en@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ac8:5c16:: with SMTP id i22mr20574332qti.669.1643745097555;
Tue, 01 Feb 2022 11:51:37 -0800 (PST)
X-Received: by 2002:a05:6214:20e6:: with SMTP id 6mr1239504qvk.29.1643745097362;
Tue, 01 Feb 2022 11:51:37 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!2.eu.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.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: Tue, 1 Feb 2022 11:51:37 -0800 (PST)
In-Reply-To: <61f92bb2$0$700$14726298@news.sunsite.dk>
Injection-Info: google-groups.googlegroups.com; posting-host=79.224.100.194; posting-account=AqNUYgoAAADmkK2pN-RKms8sww57W0Iw
NNTP-Posting-Host: 79.224.100.194
References: <164037894202.1384.9410906461200956517@media.vsta.org>
<stb7mb$15ra$1@gioia.aioe.org> <61f92bb2$0$700$14726298@news.sunsite.dk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <077895e5-2976-4592-86b5-15fe3cef863en@googlegroups.com>
Subject: Re: String processing, for example
From: minfo...@arcor.de (minf...@arcor.de)
Injection-Date: Tue, 01 Feb 2022 19:51:37 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 48
 by: minf...@arcor.de - Tue, 1 Feb 2022 19:51 UTC

Doug Hoffman schrieb am Dienstag, 1. Februar 2022 um 13:46:46 UTC+1:
> On 2/1/22 7:05 AM, Robert L. wrote:
> > variable na
> > s" words" r/o open-file throw Value f
> >
> > variable buf
> > : read-ch buf 1 f read-file throw 0= throw
> > buf c@ ;
> >
> > : matches ( char -- char bool ) dup read-ch = ;
> >
> > : read-till ( char -- ) begin matches until drop ;
> >
> > : count-a-words
> > begin
> > [char] a read-till
> > 1 na +!
> > 10 read-till
> > again ;
> >
> > ' count-a-words catch drop na ?
> > f close-file throw
> You used library code in the other languages you presented. Seems to me
> that library code could(should) also be used in a Forth solution:
>
> https://github.com/DouglasBHoffman/FMS2
> include FMS2VT.f
> include array.f
> include string.f
> include file.f
>
> s" /usr/share/dict/words" file f r/o f :fam
> 0 [: 'a' swap :chsearch if 1+ then ;] f :apply .
>
> Granted, with Forth everyone seems to use their own library code.
>
> The :apply HOF will step through each line of the file and pass that to
> the quotation as a string object.
>

Impressive! Thanks for this example.

And once again you nailed down the "crux of standard Forth": meagre libraries
force Forth programmers to roll their own DSL. Babylonian confusion of
languages is the result.

IMHO your FMS2 should become part of Forth203X ...

Re: String processing, for example

<stc8uj$c3v$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: step...@vfxforth.com (Stephen Pelc)
Newsgroups: comp.lang.forth
Subject: Re: String processing, for example
Date: Tue, 1 Feb 2022 21:33:07 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <stc8uj$c3v$1@dont-email.me>
References: <164037894202.1384.9410906461200956517@media.vsta.org> <stb7mb$15ra$1@gioia.aioe.org> <61f92bb2$0$700$14726298@news.sunsite.dk> <077895e5-2976-4592-86b5-15fe3cef863en@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 1 Feb 2022 21:33:07 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="cf024bc98796d0af7302fa6f1817cc03";
logging-data="12415"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/GuB2229G7ABROhX3W32s"
User-Agent: Usenapp/1.17/l for MacOS - Full License
Cancel-Lock: sha1:oCDzwR+cgXx3ZsgWqVZek6uPXzo=
 by: Stephen Pelc - Tue, 1 Feb 2022 21:33 UTC

On 1 Feb 2022 at 20:51:37 CET, "minforth@arcor.de" <minforth@arcor.de> wrote:
>
> And once again you nailed down the "crux of standard Forth": meagre libraries
> force Forth programmers to roll their own DSL. Babylonian confusion of
> languages is the result.
>
> IMHO your FMS2 should become part of Forth203X ...

Some while ago, I attempted to promote a standard for Forth OOP, regardless of
whether it came from Neon of FMS (my personal favourite). Now that I am no
longer
the Forth 200x chair, I can apply what energy I have to libraries. IMHO the
Forth
200x kernel is adequate - modifications will introduce as many problems as
they
solve.

The first libraries I will focus on are strings and FMS.

Stephen

--
Stephen Pelc, stephen@vfxforth.com
MicroProcessor Engineering Ltd - More Real, Less Time
133 Hill Lane, Southampton SO15 5AF, England
tel: +44 (0)23 8063 1441, +44 (0)78 0390 3612, +34 649 662 974
http://www.mpeforth.com - free VFX Forth downloads

Re: String processing, for example

<b6b3392f-c5b8-4897-a1fc-03331272063fn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:424c:: with SMTP id w12mr19032929qko.605.1643755736624;
Tue, 01 Feb 2022 14:48:56 -0800 (PST)
X-Received: by 2002:a05:622a:1102:: with SMTP id e2mr21051265qty.2.1643755736426;
Tue, 01 Feb 2022 14:48:56 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.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: Tue, 1 Feb 2022 14:48:56 -0800 (PST)
In-Reply-To: <stc8uj$c3v$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=79.224.100.194; posting-account=AqNUYgoAAADmkK2pN-RKms8sww57W0Iw
NNTP-Posting-Host: 79.224.100.194
References: <164037894202.1384.9410906461200956517@media.vsta.org>
<stb7mb$15ra$1@gioia.aioe.org> <61f92bb2$0$700$14726298@news.sunsite.dk>
<077895e5-2976-4592-86b5-15fe3cef863en@googlegroups.com> <stc8uj$c3v$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b6b3392f-c5b8-4897-a1fc-03331272063fn@googlegroups.com>
Subject: Re: String processing, for example
From: minfo...@arcor.de (minf...@arcor.de)
Injection-Date: Tue, 01 Feb 2022 22:48:56 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 26
 by: minf...@arcor.de - Tue, 1 Feb 2022 22:48 UTC

Stephen Pelc schrieb am Dienstag, 1. Februar 2022 um 22:33:10 UTC+1:
> On 1 Feb 2022 at 20:51:37 CET, "minf...@arcor.de" <minf...@arcor.de> wrote:
> >
> > And once again you nailed down the "crux of standard Forth": meagre libraries
> > force Forth programmers to roll their own DSL. Babylonian confusion of
> > languages is the result.
> >
> > IMHO your FMS2 should become part of Forth203X ...
> Some while ago, I attempted to promote a standard for Forth OOP, regardless of
> whether it came from Neon of FMS (my personal favourite). Now that I am no
> longer
> the Forth 200x chair, I can apply what energy I have to libraries. IMHO the
> Forth
> 200x kernel is adequate - modifications will introduce as many problems as
> they
> solve.
>
> The first libraries I will focus on are strings and FMS.
>

Right. What spurned my response (among other things) is the seamless coexistence
of objects in the dictionary and in the heap. There are even two words dict> and
heap> for fine control.

Standard Forth has just a generic but otherwise empty notion of heap memory
through the memory wordset. To improve/extend Forth's string wordset by dynamic
strings would call quite naturally for heap objects.

Library Code ( was Re: String processing, for example)

<61fa4ec5$0$705$14726298@news.sunsite.dk>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Wed, 2 Feb 2022 04:28:33 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.5.1
From: dhoffman...@gmail.com (Doug Hoffman)
Subject: Library Code ( was Re: String processing, for example)
Newsgroups: comp.lang.forth
References: <164037894202.1384.9410906461200956517@media.vsta.org>
<stb7mb$15ra$1@gioia.aioe.org> <61f92bb2$0$700$14726298@news.sunsite.dk>
<077895e5-2976-4592-86b5-15fe3cef863en@googlegroups.com>
Content-Language: en-US
In-Reply-To: <077895e5-2976-4592-86b5-15fe3cef863en@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 16
Message-ID: <61fa4ec5$0$705$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 6f0c2f23.news.sunsite.dk
X-Trace: 1643794117 news.sunsite.dk 705 glidedog@gmail.com/68.55.82.126:49749
X-Complaints-To: staff@sunsite.dk
 by: Doug Hoffman - Wed, 2 Feb 2022 09:28 UTC

On 2/1/22 2:51 PM, minf...@arcor.de wrote:

> And once again you nailed down the "crux of standard Forth": meagre libraries
> force Forth programmers to roll their own DSL. Babylonian confusion of
> languages is the result.
>
> IMHO your FMS2 should become part of Forth203X ...

Some Forthers detest oop.
Some have written their own string and oop extensions. There are already
several of each available.
Some say mini-oof is all the oop they need/want.

Regardless, thanks for the feedback.

-Doug

Re: Library Code ( was Re: String processing, for example)

<721db24d-bc30-4ffc-b777-6fa40143f305n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:6214:29ec:: with SMTP id jv12mr25571574qvb.87.1643798926560;
Wed, 02 Feb 2022 02:48:46 -0800 (PST)
X-Received: by 2002:a05:620a:4448:: with SMTP id w8mr12440006qkp.227.1643798926355;
Wed, 02 Feb 2022 02:48:46 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.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: Wed, 2 Feb 2022 02:48:46 -0800 (PST)
In-Reply-To: <61fa4ec5$0$705$14726298@news.sunsite.dk>
Injection-Info: google-groups.googlegroups.com; posting-host=79.224.111.239; posting-account=AqNUYgoAAADmkK2pN-RKms8sww57W0Iw
NNTP-Posting-Host: 79.224.111.239
References: <164037894202.1384.9410906461200956517@media.vsta.org>
<stb7mb$15ra$1@gioia.aioe.org> <61f92bb2$0$700$14726298@news.sunsite.dk>
<077895e5-2976-4592-86b5-15fe3cef863en@googlegroups.com> <61fa4ec5$0$705$14726298@news.sunsite.dk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <721db24d-bc30-4ffc-b777-6fa40143f305n@googlegroups.com>
Subject: Re: Library Code ( was Re: String processing, for example)
From: minfo...@arcor.de (minf...@arcor.de)
Injection-Date: Wed, 02 Feb 2022 10:48:46 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 33
 by: minf...@arcor.de - Wed, 2 Feb 2022 10:48 UTC

Doug Hoffman schrieb am Mittwoch, 2. Februar 2022 um 10:28:39 UTC+1:
> On 2/1/22 2:51 PM, minf...@arcor.de wrote:
>
> > And once again you nailed down the "crux of standard Forth": meagre libraries
> > force Forth programmers to roll their own DSL. Babylonian confusion of
> > languages is the result.
> >
> > IMHO your FMS2 should become part of Forth203X ...
> Some Forthers detest oop.
> Some have written their own string and oop extensions. There are already
> several of each available.
> Some say mini-oof is all the oop they need/want.
>
> Regardless, thanks for the feedback.
>
> -Doug

You are welcome. I guess even in Babylon everybody spoke his/her mother tongue
at home. Nothing bad about it.

However for successfully doing work and trade and shopping one needs
one common language understood and spoken by all. IIRC in Babylonian time
it was Accadian spoken and kuneiform written, today it is mostly English all
over the world. Even within China, Mandarin is not spoken everywhere.

The analogy to one common OOP language for Forth is obvious. He who can
work fine with mini-oof has only mini-oo requirements. Nothing bad about it.

If I could do my math with fixed-point numbers, I won't need any fat floating-point
number wordset. But still I am glad that I have it ready - battle-proven
(also by other people!!) and well documented and accepted by customers
because it had been standardized - should I ever need it in future.

Andreas

Re: Library Code ( was Re: String processing, for example)

<20220202105647.d4405ad6ed3aab6343cba2ae@127.0.0.1>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: adm...@127.0.0.1 (Kerr-Mudd, John)
Newsgroups: comp.lang.forth
Subject: Re: Library Code ( was Re: String processing, for example)
Date: Wed, 2 Feb 2022 10:56:47 +0000
Organization: Dis
Lines: 42
Message-ID: <20220202105647.d4405ad6ed3aab6343cba2ae@127.0.0.1>
References: <164037894202.1384.9410906461200956517@media.vsta.org>
<stb7mb$15ra$1@gioia.aioe.org>
<61f92bb2$0$700$14726298@news.sunsite.dk>
<077895e5-2976-4592-86b5-15fe3cef863en@googlegroups.com>
<61fa4ec5$0$705$14726298@news.sunsite.dk>
<721db24d-bc30-4ffc-b777-6fa40143f305n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="141b69e5c683ec8f1dfa21e4495eb844";
logging-data="3719"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187UVLpkbC5InRC4dUF2ATd12d0bfUl1Qs="
Cancel-Lock: sha1:z79PsU1BY3MaBY6ehJAtho3UEmU=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
;X-no-Archive: Maybe
GNU: Terry Pratchett
 by: Kerr-Mudd, John - Wed, 2 Feb 2022 10:56 UTC

On Wed, 2 Feb 2022 02:48:46 -0800 (PST)
"minf...@arcor.de" <minforth@arcor.de> wrote:

> Doug Hoffman schrieb am Mittwoch, 2. Februar 2022 um 10:28:39 UTC+1:
> > On 2/1/22 2:51 PM, minf...@arcor.de wrote:
> >
> > > And once again you nailed down the "crux of standard Forth": meagre libraries
> > > force Forth programmers to roll their own DSL. Babylonian confusion of
> > > languages is the result.
> > >
> > > IMHO your FMS2 should become part of Forth203X ...
> > Some Forthers detest oop.
> > Some have written their own string and oop extensions. There are already
> > several of each available.
> > Some say mini-oof is all the oop they need/want.
> >
> > Regardless, thanks for the feedback.
> >
> > -Doug
>
> You are welcome. I guess even in Babylon everybody spoke his/her mother tongue
> at home. Nothing bad about it.
>
> However for successfully doing work and trade and shopping one needs
> one common language understood and spoken by all. IIRC in Babylonian time
> it was Accadian spoken and kuneiform written, today it is mostly English all
> over the world. Even within China, Mandarin is not spoken everywhere.
>
> The analogy to one common OOP language for Forth is obvious. He who can
> work fine with mini-oof has only mini-oo requirements. Nothing bad about it.
>
> If I could do my math with fixed-point numbers, I won't need any fat floating-point
> number wordset. But still I am glad that I have it ready - battle-proven
> (also by other people!!) and well documented and accepted by customers
> because it had been standardized - should I ever need it in future.
>
> Andreas

There are n diffrent implementation of x. You decide to set a standard; there are now x+1 versions to choose from.

--
Bah, and indeed Humbug.

Re: Library Code ( was Re: String processing, for example)

<997c68b9-d5d9-433a-b4fb-60132687fc36n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ad4:5dc4:: with SMTP id m4mr26231806qvh.54.1643799999816;
Wed, 02 Feb 2022 03:06:39 -0800 (PST)
X-Received: by 2002:a05:620a:4084:: with SMTP id f4mr18881924qko.327.1643799999661;
Wed, 02 Feb 2022 03:06:39 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.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: Wed, 2 Feb 2022 03:06:39 -0800 (PST)
In-Reply-To: <61fa4ec5$0$705$14726298@news.sunsite.dk>
Injection-Info: google-groups.googlegroups.com; posting-host=82.95.228.79; posting-account=Ebqe4AoAAABfjCRL4ZqOHWv4jv5ZU4Cs
NNTP-Posting-Host: 82.95.228.79
References: <164037894202.1384.9410906461200956517@media.vsta.org>
<stb7mb$15ra$1@gioia.aioe.org> <61f92bb2$0$700$14726298@news.sunsite.dk>
<077895e5-2976-4592-86b5-15fe3cef863en@googlegroups.com> <61fa4ec5$0$705$14726298@news.sunsite.dk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <997c68b9-d5d9-433a-b4fb-60132687fc36n@googlegroups.com>
Subject: Re: Library Code ( was Re: String processing, for example)
From: the.beez...@gmail.com (Hans Bezemer)
Injection-Date: Wed, 02 Feb 2022 11:06:39 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 21
 by: Hans Bezemer - Wed, 2 Feb 2022 11:06 UTC

On Wednesday, February 2, 2022 at 10:28:39 AM UTC+1, Doug Hoffman wrote:
> Some Forthers detest oop.
Agreed - I developed it, but apart from making "design patterns" I do very little with it. Agreed, some libs would IMHO benefit from a more beautiful and elegant API, but it's not worth the burden and hassle OOP brings along. In many (not all!) instances, it would simply convert "STRUCT WORD" to "OBJECT -> METHOD".

> Some have written their own string and oop extensions. There are already
> several of each available.
True. FOOS (4tH OOP) has been there since 2013 - and vastly improved ever since. It features all your usual OOP junk (incl. inheritance) and lately even constructors, destructors and forwarding of classes. And it uses 4tH's strengths. I find most Forth OOP syntaxes quite ugly. So you won't see me switch pretty quickly. Too much work has gone into that.

> Some say mini-oof is all the oop they need/want.
Well, I started out with this one ;-) Still, I don't wanna go back to the home plate.

Hans Bezemer

Re: Library Code ( was Re: String processing, for example)

<stdpvs$1i72$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!news.niel.me!aioe.org!7AktqsUqy5CCvnKa3S0Dkw.user.46.165.242.75.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: Library Code ( was Re: String processing, for example)
Date: Wed, 2 Feb 2022 22:30:04 +1100
Organization: Aioe.org NNTP Server
Message-ID: <stdpvs$1i72$1@gioia.aioe.org>
References: <164037894202.1384.9410906461200956517@media.vsta.org>
<stb7mb$15ra$1@gioia.aioe.org> <61f92bb2$0$700$14726298@news.sunsite.dk>
<077895e5-2976-4592-86b5-15fe3cef863en@googlegroups.com>
<61fa4ec5$0$705$14726298@news.sunsite.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="51426"; posting-host="7AktqsUqy5CCvnKa3S0Dkw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.1
Content-Language: en-GB
X-Notice: Filtered by postfilter v. 0.9.2
 by: dxforth - Wed, 2 Feb 2022 11:30 UTC

On 2/02/2022 20:28, Doug Hoffman wrote:
> On 2/1/22 2:51 PM, minf...@arcor.de wrote:
>
>> And once again you nailed down the "crux of standard Forth": meagre libraries
>> force Forth programmers to roll their own DSL. Babylonian confusion of
>> languages is the result.
>>
>> IMHO your FMS2 should become part of Forth203X ...
>
> Some Forthers detest oop.
> Some have written their own string and oop extensions. There are already
> several of each available.
> Some say mini-oof is all the oop they need/want.
>
> Regardless, thanks for the feedback.
>
> -Doug

It's never stopped 200x. You need to be more pushy. 'Consensus' may be
how it's advertised but the gameplay is a combination of 'Who dares wins'
and 'Whack-a-mole'. Much like regular politics.

Re: Library Code ( was Re: String processing, for example)

<2fa503d8-b1e5-4daa-89a4-c78f3c67234en@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:128c:: with SMTP id w12mr20006462qki.464.1643806140137;
Wed, 02 Feb 2022 04:49:00 -0800 (PST)
X-Received: by 2002:a05:6214:29ec:: with SMTP id jv12mr25955381qvb.87.1643806139973;
Wed, 02 Feb 2022 04:48:59 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.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: Wed, 2 Feb 2022 04:48:59 -0800 (PST)
In-Reply-To: <997c68b9-d5d9-433a-b4fb-60132687fc36n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=79.224.111.239; posting-account=AqNUYgoAAADmkK2pN-RKms8sww57W0Iw
NNTP-Posting-Host: 79.224.111.239
References: <164037894202.1384.9410906461200956517@media.vsta.org>
<stb7mb$15ra$1@gioia.aioe.org> <61f92bb2$0$700$14726298@news.sunsite.dk>
<077895e5-2976-4592-86b5-15fe3cef863en@googlegroups.com> <61fa4ec5$0$705$14726298@news.sunsite.dk>
<997c68b9-d5d9-433a-b4fb-60132687fc36n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2fa503d8-b1e5-4daa-89a4-c78f3c67234en@googlegroups.com>
Subject: Re: Library Code ( was Re: String processing, for example)
From: minfo...@arcor.de (minf...@arcor.de)
Injection-Date: Wed, 02 Feb 2022 12:49:00 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 33
 by: minf...@arcor.de - Wed, 2 Feb 2022 12:48 UTC

the.bee...@gmail.com schrieb am Mittwoch, 2. Februar 2022 um 12:06:40 UTC+1:
> On Wednesday, February 2, 2022 at 10:28:39 AM UTC+1, Doug Hoffman wrote:
> > Some Forthers detest oop.
> Agreed - I developed it, but apart from making "design patterns" I do very little with it. Agreed, some libs would IMHO benefit from a more beautiful and elegant API, but it's not worth the burden and hassle OOP brings along. In many (not all!) instances, it would simply convert "STRUCT WORD" to "OBJECT -> METHOD".
> > Some have written their own string and oop extensions. There are already
> > several of each available.
> True. FOOS (4tH OOP) has been there since 2013 - and vastly improved ever since. It features all your usual OOP junk (incl. inheritance) and lately even constructors, destructors and forwarding of classes. And it uses 4tH's strengths. I find most Forth OOP syntaxes quite ugly. So you won't see me switch pretty quickly. Too much work has gone into that.
> > Some say mini-oof is all the oop they need/want.
> Well, I started out with this one ;-) Still, I don't wanna go back to the home plate.
>

IMO it all boils down to "I wanna share my OO applications
plus I wanna benefit from other people's ideas and code".
Then one common OO language is absolutely necessary.

If FOOS can be be ANSI-fied and plays in the same quality
ballpark as FMS, fine by me to let FOOS become that new
standard OO language. At least finally we have one.

All the other talks are just a matter of personal preference,
or often within c.l.f. ole redneck programmers' stubborness
(not meaning you personally, there are others...)

Re: Library Code ( was Re: String processing, for example)

<61fab1c6$0$699$14726298@news.sunsite.dk>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Wed, 2 Feb 2022 11:30:59 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.5.1
From: dhoffman...@gmail.com (Doug Hoffman)
Subject: Re: Library Code ( was Re: String processing, for example)
Newsgroups: comp.lang.forth
References: <164037894202.1384.9410906461200956517@media.vsta.org>
<stb7mb$15ra$1@gioia.aioe.org> <61f92bb2$0$700$14726298@news.sunsite.dk>
<077895e5-2976-4592-86b5-15fe3cef863en@googlegroups.com>
<61fa4ec5$0$705$14726298@news.sunsite.dk>
<997c68b9-d5d9-433a-b4fb-60132687fc36n@googlegroups.com>
Content-Language: en-US
In-Reply-To: <997c68b9-d5d9-433a-b4fb-60132687fc36n@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 39
Message-ID: <61fab1c6$0$699$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 55cfe615.news.sunsite.dk
X-Trace: 1643819462 news.sunsite.dk 699 glidedog@gmail.com/68.55.82.126:49854
X-Complaints-To: staff@sunsite.dk
 by: Doug Hoffman - Wed, 2 Feb 2022 16:30 UTC

On 2/2/22 6:06 AM, Hans Bezemer wrote:
> On Wednesday, February 2, 2022 at 10:28:39 AM UTC+1, Doug Hoffman wrote:
>> Some Forthers detest oop.
> Agreed - I developed it, but apart from making "design patterns" I do
> very little with it. Agreed, some libs would IMHO benefit from a more
> beautiful and elegant API, but it's not worth the burden and hassle
> OOP brings along. In many (not all!) instances, it would simply
> convert "STRUCT WORD" to "OBJECT -> METHOD".

Without objects and methods one must do something like:

structa array-insert
structs string-insert
structh hashtable-insert
structj json-insert
etc.

structa array-each
structs string-each
structh hashtable-each
structj json-each
structf file-each
etc.
: someWord ( structx -- ) each ; \ not possible, each must be qualified

With objects and methods:

objectx insert
objectx each
etc.
: someWord ( objectx -- ) each ; \ easy

There is encapsulation and more.
My point:
It's not simply "STRUCT WORD" to "OBJECT -> METHOD" ( -> is superfluous)

-Doug

Re: Library Code ( was Re: String processing, for example)

<c7348431-3cf6-4856-b691-d8de0590e1d4n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:573:: with SMTP id p19mr13073439qkp.615.1643823295379;
Wed, 02 Feb 2022 09:34:55 -0800 (PST)
X-Received: by 2002:a37:2f84:: with SMTP id v126mr21054034qkh.99.1643823295202;
Wed, 02 Feb 2022 09:34:55 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.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: Wed, 2 Feb 2022 09:34:54 -0800 (PST)
In-Reply-To: <61fab1c6$0$699$14726298@news.sunsite.dk>
Injection-Info: google-groups.googlegroups.com; posting-host=82.95.228.79; posting-account=Ebqe4AoAAABfjCRL4ZqOHWv4jv5ZU4Cs
NNTP-Posting-Host: 82.95.228.79
References: <164037894202.1384.9410906461200956517@media.vsta.org>
<stb7mb$15ra$1@gioia.aioe.org> <61f92bb2$0$700$14726298@news.sunsite.dk>
<077895e5-2976-4592-86b5-15fe3cef863en@googlegroups.com> <61fa4ec5$0$705$14726298@news.sunsite.dk>
<997c68b9-d5d9-433a-b4fb-60132687fc36n@googlegroups.com> <61fab1c6$0$699$14726298@news.sunsite.dk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c7348431-3cf6-4856-b691-d8de0590e1d4n@googlegroups.com>
Subject: Re: Library Code ( was Re: String processing, for example)
From: the.beez...@gmail.com (Hans Bezemer)
Injection-Date: Wed, 02 Feb 2022 17:34:55 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 15
 by: Hans Bezemer - Wed, 2 Feb 2022 17:34 UTC

On Wednesday, February 2, 2022 at 5:31:04 PM UTC+1, Doug Hoffman wrote:
> My point:
> It's not simply "STRUCT WORD" to "OBJECT -> METHOD" ( -> is superfluous)
Wow. This is completely new to me. And of course there is NO OTHER WAY than OO to implement that. Without OOP you're COMPLETELY unable to achieve such abstraction.

And yes, "->" in 4tH compiles to exactly NOTHING. It is my way to note you're working with a member of a structure (or a property or a method). It is there because I think:

begin-structure person
field: ->Length
field: ->Age
field: ->Zipcode
end-structure

Is REALLY butt ugly code. There is a reason for everything.

Hans Bezemer

Re: Library Code ( was Re: String processing, for example)

<5577ad88-ae39-4ba9-8837-161eb7c984e1n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:622a:101:: with SMTP id u1mr7119819qtw.559.1643823855114;
Wed, 02 Feb 2022 09:44:15 -0800 (PST)
X-Received: by 2002:a05:620a:1645:: with SMTP id c5mr13145248qko.609.1643823854969;
Wed, 02 Feb 2022 09:44:14 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.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: Wed, 2 Feb 2022 09:44:14 -0800 (PST)
In-Reply-To: <2fa503d8-b1e5-4daa-89a4-c78f3c67234en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=82.95.228.79; posting-account=Ebqe4AoAAABfjCRL4ZqOHWv4jv5ZU4Cs
NNTP-Posting-Host: 82.95.228.79
References: <164037894202.1384.9410906461200956517@media.vsta.org>
<stb7mb$15ra$1@gioia.aioe.org> <61f92bb2$0$700$14726298@news.sunsite.dk>
<077895e5-2976-4592-86b5-15fe3cef863en@googlegroups.com> <61fa4ec5$0$705$14726298@news.sunsite.dk>
<997c68b9-d5d9-433a-b4fb-60132687fc36n@googlegroups.com> <2fa503d8-b1e5-4daa-89a4-c78f3c67234en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5577ad88-ae39-4ba9-8837-161eb7c984e1n@googlegroups.com>
Subject: Re: Library Code ( was Re: String processing, for example)
From: the.beez...@gmail.com (Hans Bezemer)
Injection-Date: Wed, 02 Feb 2022 17:44:15 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 24
 by: Hans Bezemer - Wed, 2 Feb 2022 17:44 UTC

On Wednesday, February 2, 2022 at 1:49:01 PM UTC+1, minf...@arcor.de wrote:
> IMO it all boils down to "I wanna share my OO applications
> plus I wanna benefit from other people's ideas and code".
> Then one common OO language is absolutely necessary.
Yes. But I think the Forth community has waited too long. You can nick my code if you want to - free license. You may have to put in some effort. Some FOOS programs are ported as well - often from vastly different languages. Ridiculous argument, if you ask me.
> If FOOS can be be ANSI-fied and plays in the same quality
> ballpark as FMS, fine by me to let FOOS become that new
> standard OO language. At least finally we have one.
I never created it to make it a standard - so I don't expect it to. I created it, because I saw mini-OOF and thought - "ME WANT, ME WANT, ME WANT!" and that's all there is to it.
> All the other talks are just a matter of personal preference,
> or often within c.l.f. ole redneck programmers' stubbornness
> (not meaning you personally, there are others...)
It's not stubbornness - it's that 4tH has a completely different architecture - and sometimes it just can't follow stuff that is designed for a traditional Forth architecture. E.g. hard to do dictionary stuff if you don't have a dictionary. Just saying..

Hans Bezemer

Re: String processing, for example

<b251880f-19ba-4072-8511-00d18bdc0293n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:6214:1025:: with SMTP id k5mr27523453qvr.61.1643824125638;
Wed, 02 Feb 2022 09:48:45 -0800 (PST)
X-Received: by 2002:a05:620a:4448:: with SMTP id w8mr13745529qkp.227.1643824125411;
Wed, 02 Feb 2022 09:48:45 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.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: Wed, 2 Feb 2022 09:48:45 -0800 (PST)
In-Reply-To: <164037894202.1384.9410906461200956517@media.vsta.org>
Injection-Info: google-groups.googlegroups.com; posting-host=92.40.195.183; posting-account=-Z7-HwoAAAAWOrLQDWUcFYPD8_KiaWMt
NNTP-Posting-Host: 92.40.195.183
References: <164037894202.1384.9410906461200956517@media.vsta.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b251880f-19ba-4072-8511-00d18bdc0293n@googlegroups.com>
Subject: Re: String processing, for example
From: markwill...@gmail.com (Mark Wills)
Injection-Date: Wed, 02 Feb 2022 17:48:45 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 37
 by: Mark Wills - Wed, 2 Feb 2022 17:48 UTC

On Friday, December 24, 2021 at 9:01:50 PM UTC, Andy Valencia wrote:
> So if you wanted a "descendent of Forth" which fit the hand nicely in the
> current compute environment, how about strings? I thought of the toy problem
> of counting the number of words in the diction with an "a" in them:
>
> >>> f = open("/usr/share/dict/words", "r")
> >>> na = 0
> >>> for l in f:
> ... if "a" in l:
> ... na += 1
> ...
> >>> print na
> 52849
> >>>
>
> (Python, obviously, and it took .13 CPU seconds on an arm64
> device, the RockPRO64. The file is 102,401 lines.)
>
> I typed it in just on the fly, no IDE or any dev references needed, and got
> it right on the first go--not too surprising.
>
> It could go shorter:
>
> >>> print len([l for l in f if ("a" in l)])
> 52849
> >>>
>
> And--I was surprised--using the same amount of CPU.
>
> Forth as hand written assembly code for a stack machine will never touch
> this. I've tried many times to find the language which brings higher level
> of expressiveness. Failed every time so far.
>
> Andy Valencia
> Home page: https://www.vsta.org/andy/
> To contact me: https://www.vsta.org/contact/andy.html

This is apples and oranges. You said it yourself, Andy... Forth is an assembly language for a virtual processor. Python is a high-level language that can execute on any processor. Apples to apples would be to implement Python in Forth.

Re: String processing, for example

<87k0edyr85.fsf@nightsong.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: no.em...@nospam.invalid (Paul Rubin)
Newsgroups: comp.lang.forth
Subject: Re: String processing, for example
Date: Wed, 02 Feb 2022 11:59:38 -0800
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <87k0edyr85.fsf@nightsong.com>
References: <164037894202.1384.9410906461200956517@media.vsta.org>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="5f0bf89a421cda437056c5888eb4a38d";
logging-data="27424"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/iiPGjvkfT8EiGSu+z9k2J"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:U7b1siZ3DIFc7AqKyOc+or1QldY=
sha1:dxPXjp+E+d6UcNM6OxM5Cf7o7xA=
 by: Paul Rubin - Wed, 2 Feb 2022 19:59 UTC

Andy Valencia <vandys@vsta.org> writes:
>>>> print len([l for l in f if ("a" in l)])
> And--I was surprised--using the same amount of CPU.
> Forth as hand written assembly code for a stack machine will never
> touch this. I've tried many times to find the language which brings
> higher level of expressiveness. Failed every time so far.

The inner loop of the Python code is ("a" in l), which scans the line l
for the letter a. That scanning is done in a Python primitive written
in C, the same primitive for both Python versions. So that is why the
cpu is about the same. The C code is compiled with a fancy optimizing
compiler such as GCC, so of course interpreted Forth will be a lot
slower.

If you have a Forth with a primitive to read a line from a file, and
another primitive for the SEARCH word, that might get comparable speed
to Python.

As for languages more expressive than Python, try Erlang or Elixir for
better concurrency primitives, Haskell for better datatypes and
invariants, Ruby for maybe more consistent syntax and better support for
EDSL's, etc. I want to try using Elixir for some of my own stuff but I
don't have a real use for it right now.

Re: String processing, for example

<331f6d25-b31c-4a4b-a6e3-2b26d17e4fc9n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:622a:199e:: with SMTP id u30mr19052307qtc.564.1643835047062;
Wed, 02 Feb 2022 12:50:47 -0800 (PST)
X-Received: by 2002:a05:620a:2481:: with SMTP id i1mr10735047qkn.159.1643835046894;
Wed, 02 Feb 2022 12:50:46 -0800 (PST)
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!border1.nntp.dca1.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: Wed, 2 Feb 2022 12:50:46 -0800 (PST)
In-Reply-To: <87k0edyr85.fsf@nightsong.com>
Injection-Info: google-groups.googlegroups.com; posting-host=79.224.111.239; posting-account=AqNUYgoAAADmkK2pN-RKms8sww57W0Iw
NNTP-Posting-Host: 79.224.111.239
References: <164037894202.1384.9410906461200956517@media.vsta.org> <87k0edyr85.fsf@nightsong.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <331f6d25-b31c-4a4b-a6e3-2b26d17e4fc9n@googlegroups.com>
Subject: Re: String processing, for example
From: minfo...@arcor.de (minf...@arcor.de)
Injection-Date: Wed, 02 Feb 2022 20:50:47 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 16
 by: minf...@arcor.de - Wed, 2 Feb 2022 20:50 UTC

Paul Rubin schrieb am Mittwoch, 2. Februar 2022 um 20:59:40 UTC+1:
> As for languages more expressive than Python, try Erlang or Elixir for
> better concurrency primitives, Haskell for better datatypes and
> invariants, Ruby for maybe more consistent syntax and better support for
> EDSL's, etc. I want to try using Elixir for some of my own stuff but I
> don't have a real use for it right now.

I'm on the same language exploration turf, but always shied away when
I learnt that a fat VM is required (eg Elixir compiles for an Erlang VM).

To build a Forth that requires a fat compiler backend or compiles to an
overly complex IL (eg LLVM) did so far not seem worth the effort or seem
just clumsy. Assembler is no option for other reasons.

So at the end of the day it stays with old C, perhaps Ada or Rust
in future for systems programming. For higher level stuff I like Julia.
For very high level stuff: amazing Prolog (I haven't tested F# so far).

Re: String processing, for example

<877dacztig.fsf@nightsong.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: no.em...@nospam.invalid (Paul Rubin)
Newsgroups: comp.lang.forth
Subject: Re: String processing, for example
Date: Wed, 02 Feb 2022 16:24:55 -0800
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <877dacztig.fsf@nightsong.com>
References: <164037894202.1384.9410906461200956517@media.vsta.org>
<87k0edyr85.fsf@nightsong.com>
<331f6d25-b31c-4a4b-a6e3-2b26d17e4fc9n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="1b28e044a1ccf561961d75bc5f6dbab6";
logging-data="6901"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19y5aRPXsEIA1qh61a16zlr"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:mIzPi9vuv3A/oQOOOmtAcbSwSpc=
sha1:bOntgsGkwsUbT1swpFu9eT46QbI=
 by: Paul Rubin - Thu, 3 Feb 2022 00:24 UTC

"minf...@arcor.de" <minforth@arcor.de> writes:
> I'm on the same language exploration turf, but always shied away when
> I learnt that a fat VM is required (eg Elixir compiles for an Erlang VM).

Idk if a fat VM is really required: BEAM is fat, but in principle there
could be a thinner VM that Elixir could use. Look at Go, which comes
fairly close.

Because of BEAM's size, I probably wouldn't use Elixir for a small
script, but for a long running network server it is pretty reasonable.
I've programmed in Erlang (Elixir is sort of a Ruby-like skin on Erlang)
and it is pleasant if you don't mind the weird syntax.

Re: String processing, for example

<stfh9v$137$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!yApV+34a05Yjd9DhDLP8YQ.user.46.165.242.75.POSTED!not-for-mail
From: No_spamm...@noWhere_7073.org (Robert L.)
Newsgroups: comp.lang.forth
Subject: Re: String processing, for example
Date: Thu, 3 Feb 2022 03:14:08 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <stfh9v$137$1@gioia.aioe.org>
References: <164037894202.1384.9410906461200956517@media.vsta.org> <st9jg7$38l$1@gioia.aioe.org>
Injection-Info: gioia.aioe.org; logging-data="1127"; posting-host="yApV+34a05Yjd9DhDLP8YQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: XanaNews/1.18.1.6
X-Notice: Filtered by postfilter v. 0.9.2
 by: Robert L. - Thu, 3 Feb 2022 03:14 UTC

On 1/31/2022, Robert L. wrote:

> On 12/24/2021, Andy Valencia wrote:
>
> > I thought of the toy problem
> > of counting the number of words in the diction with an "a" in them:
> >
> > >>> f = open("/usr/share/dict/words", "r")
> > >>> na = 0
> > >>> for l in f:
> > ... if "a" in l:
> > ... na += 1
> > ...
> > >>> print na
> > 52849
> > > > >
> >
> > (Python, obviously,
>
> Nonsense. Not everyone is so unfortunate as to know Python.
>
> > and it took .13 CPU seconds on an arm64
> > device, the RockPRO64. The file is 102,401 lines.)
>
> Python certainly makes it look difficult.
>
> Awk:
>
> /a/ {na++} END {print na}
>
> Invocation:
>
> awk "/a/ {na++} END {print na}" words

ruby -e"p ARGF.grep(/a/).size" words

or

ruby -e"p $<.grep(/a/).size" words

Re: String processing, for example

<95619595-12a3-4ca0-9b6f-b0f88ba65e29n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ac8:5c45:: with SMTP id j5mr25428267qtj.265.1643876569750;
Thu, 03 Feb 2022 00:22:49 -0800 (PST)
X-Received: by 2002:a05:620a:44d4:: with SMTP id y20mr17374473qkp.272.1643876569600;
Thu, 03 Feb 2022 00:22:49 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.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: Thu, 3 Feb 2022 00:22:49 -0800 (PST)
In-Reply-To: <877dacztig.fsf@nightsong.com>
Injection-Info: google-groups.googlegroups.com; posting-host=79.224.111.239; posting-account=AqNUYgoAAADmkK2pN-RKms8sww57W0Iw
NNTP-Posting-Host: 79.224.111.239
References: <164037894202.1384.9410906461200956517@media.vsta.org>
<87k0edyr85.fsf@nightsong.com> <331f6d25-b31c-4a4b-a6e3-2b26d17e4fc9n@googlegroups.com>
<877dacztig.fsf@nightsong.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <95619595-12a3-4ca0-9b6f-b0f88ba65e29n@googlegroups.com>
Subject: Re: String processing, for example
From: minfo...@arcor.de (minf...@arcor.de)
Injection-Date: Thu, 03 Feb 2022 08:22:49 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 12
 by: minf...@arcor.de - Thu, 3 Feb 2022 08:22 UTC

Paul Rubin schrieb am Donnerstag, 3. Februar 2022 um 01:24:58 UTC+1:
> "minf...@arcor.de" <minf...@arcor.de> writes:
> > I'm on the same language exploration turf, but always shied away when
> > I learnt that a fat VM is required (eg Elixir compiles for an Erlang VM).
> Idk if a fat VM is really required: BEAM is fat, but in principle there
> could be a thinner VM that Elixir could use. Look at Go, which comes
> fairly close.
>

AFAIK Go compiles to native code. However its executables are rather fat.
I think this will not improve anytime soon because unlike Rust, Golang
does not see apps for small devices within their domain. Even their notion
of 'systems programming' is more geared towards distributed systems.

Re: String processing, for example

<73d038d4-95ac-4796-bda1-f13224c8cbacn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ad4:5941:: with SMTP id eo1mr29274635qvb.50.1643880763544;
Thu, 03 Feb 2022 01:32:43 -0800 (PST)
X-Received: by 2002:a05:620a:44d4:: with SMTP id y20mr17486332qkp.272.1643880763322;
Thu, 03 Feb 2022 01:32:43 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.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: Thu, 3 Feb 2022 01:32:43 -0800 (PST)
In-Reply-To: <95619595-12a3-4ca0-9b6f-b0f88ba65e29n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=213.21.29.203; posting-account=DoM31goAAADuzlbg5XKrMFannjkYS2Lr
NNTP-Posting-Host: 213.21.29.203
References: <164037894202.1384.9410906461200956517@media.vsta.org>
<87k0edyr85.fsf@nightsong.com> <331f6d25-b31c-4a4b-a6e3-2b26d17e4fc9n@googlegroups.com>
<877dacztig.fsf@nightsong.com> <95619595-12a3-4ca0-9b6f-b0f88ba65e29n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <73d038d4-95ac-4796-bda1-f13224c8cbacn@googlegroups.com>
Subject: Re: String processing, for example
From: nbkolc...@gmail.com (Nickolay Kolchin)
Injection-Date: Thu, 03 Feb 2022 09:32:43 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 15
 by: Nickolay Kolchin - Thu, 3 Feb 2022 09:32 UTC

On Thursday, February 3, 2022 at 11:22:50 AM UTC+3, minf...@arcor.de wrote:
> Paul Rubin schrieb am Donnerstag, 3. Februar 2022 um 01:24:58 UTC+1:
> > "minf...@arcor.de" <minf...@arcor.de> writes:
> > > I'm on the same language exploration turf, but always shied away when
> > > I learnt that a fat VM is required (eg Elixir compiles for an Erlang VM).
> > Idk if a fat VM is really required: BEAM is fat, but in principle there
> > could be a thinner VM that Elixir could use. Look at Go, which comes
> > fairly close.
> >
> AFAIK Go compiles to native code. However its executables are rather fat.
> I think this will not improve anytime soon because unlike Rust, Golang
> does not see apps for small devices within their domain. Even their notion
> of 'systems programming' is more geared towards distributed systems.

- https://tinygo.org/
- https://www.rust-lang.org/what/embedded

Re: String processing, for example

<87r18kxnac.fsf@nightsong.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: no.em...@nospam.invalid (Paul Rubin)
Newsgroups: comp.lang.forth
Subject: Re: String processing, for example
Date: Thu, 03 Feb 2022 02:22:19 -0800
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <87r18kxnac.fsf@nightsong.com>
References: <164037894202.1384.9410906461200956517@media.vsta.org>
<87k0edyr85.fsf@nightsong.com>
<331f6d25-b31c-4a4b-a6e3-2b26d17e4fc9n@googlegroups.com>
<877dacztig.fsf@nightsong.com>
<95619595-12a3-4ca0-9b6f-b0f88ba65e29n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="1b28e044a1ccf561961d75bc5f6dbab6";
logging-data="26758"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX184Ujn/a/eY5o+q2r23pT8x"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:YEG1FBd/ZsVjP+s3D7oeFZXeAdk=
sha1:m+GEfrwXx/PaaQy60Efx6u1+XtY=
 by: Paul Rubin - Thu, 3 Feb 2022 10:22 UTC

"minf...@arcor.de" <minforth@arcor.de> writes:
> AFAIK Go compiles to native code. However its executables are rather fat.

They are around 1MB iirc, fat compared with C programs but small
compared with BEAM. 1MB is of course huge for embedded, but for server
side programming it's comparable to using Python or Ruby. Also, I don't
think the runtime is inherently that large. It needs a lot of stuff
that a C or Forth runtime doesn't, but it could be smaller than it is.

Re: String processing, for example

<164389973767.11424.2474508113395960378@media.vsta.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: van...@vsta.org (Andy Valencia)
Newsgroups: comp.lang.forth
Subject: Re: String processing, for example
Date: Thu, 03 Feb 2022 06:48:57 -0800
Lines: 17
Message-ID: <164389973767.11424.2474508113395960378@media.vsta.org>
References: <331f6d25-b31c-4a4b-a6e3-2b26d17e4fc9n@googlegroups.com> <164037894202.1384.9410906461200956517@media.vsta.org> <87k0edyr85.fsf@nightsong.com>
X-Trace: individual.net ZIk4EkxPwvaJ4NsJ3NG6hg6QcbVxRFwKH/8bBwCOhPsNsrYOV8
X-Orig-Path: media
Cancel-Lock: sha1:8oeswVKHRI9iMh6J229Qi0SRHU4=
User-Agent: rn.py v0.0.1
 by: Andy Valencia - Thu, 3 Feb 2022 14:48 UTC

"minf...@arcor.de" <minforth@arcor.de> writes:
> I'm on the same language exploration turf, but always shied away when
> I learnt that a fat VM is required (eg Elixir compiles for an Erlang VM).

I'm just finishing a deployment for a highly stressed web application server,
and for the first time did it in Go. And... wow. Good type checking, high
performance compiled code, and SMP threading with impressive scaling. Lots
of modules to start from.

There's no VM, although the runtime is more bloated than I'd like. Still,
all in all, I think it's the direction I'll be moving. Use one of the many
code examples out there, otherwise write it as you would in C and chase the
compiler errors out to stackoverflow to find out how it's done now.

Andy Valencia
Home page: https://www.vsta.org/andy/
To contact me: https://www.vsta.org/contact/andy.html


devel / comp.lang.forth / Re: String processing, for example

Pages:1234567891011
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor