Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

You are confused; but this is your normal state.


comp / comp.lang.misc / Re: Command Languages Versus Programming Languages

SubjectAuthor
* Re: Command Languages Versus Programming LanguagesBozo User
+* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
|`* Re: Command Languages Versus Programming Languagesusuario
| `* Re: Command Languages Versus Programming LanguagesMuttley
|  `* Re: Command Languages Versus Programming Languagesusuario
|   `- Re: Command Languages Versus Programming LanguagesMuttley
`* Re: Command Languages Versus Programming LanguagesRainer Weikusat
 `* Re: Command Languages Versus Programming LanguagesMuttley
  +* Re: Command Languages Versus Programming LanguagesRainer Weikusat
  |+* Re: Command Languages Versus Programming LanguagesMuttley
  ||+* Re: Command Languages Versus Programming LanguagesRainer Weikusat
  |||+* Re: Command Languages Versus Programming LanguagesKaz Kylheku
  ||||`* Re: Command Languages Versus Programming LanguagesRainer Weikusat
  |||| `* Re: Command Languages Versus Programming LanguagesBart
  ||||  `* Re: Command Languages Versus Programming LanguagesRainer Weikusat
  ||||   `* Re: Command Languages Versus Programming LanguagesMuttley
  ||||    +* Re: Command Languages Versus Programming LanguagesDan Cross
  ||||    |+* Re: Command Languages Versus Programming LanguagesMuttley
  ||||    ||+* Re: Command Languages Versus Programming LanguagesDan Cross
  ||||    |||`* Re: Command Languages Versus Programming LanguagesMuttley
  ||||    ||| `* Re: Command Languages Versus Programming LanguagesDan Cross
  ||||    |||  `* Re: Command Languages Versus Programming LanguagesMuttley
  ||||    |||   +* Re: Command Languages Versus Programming LanguagesScott Lurndal
  ||||    |||   |`- Re: Command Languages Versus Programming LanguagesMuttley
  ||||    |||   `* Re: Command Languages Versus Programming LanguagesDan Cross
  ||||    |||    `* Re: Command Languages Versus Programming LanguagesMuttley
  ||||    |||     +* Re: Command Languages Versus Programming LanguagesDan Cross
  ||||    |||     |+* Re: Command Languages Versus Programming LanguagesMuttley
  ||||    |||     ||+- Re: Command Languages Versus Programming LanguagesJanis Papanagnou
  ||||    |||     ||+* Re: Command Languages Versus Programming LanguagesDan Cross
  ||||    |||     |||`* Re: Command Languages Versus Programming LanguagesMuttley
  ||||    |||     ||| +* Re: Command Languages Versus Programming LanguagesJanis Papanagnou
  ||||    |||     ||| |+* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
  ||||    |||     ||| ||`* Re: Command Languages Versus Programming LanguagesJanis Papanagnou
  ||||    |||     ||| || `* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
  ||||    |||     ||| ||  `- Re: Command Languages Versus Programming LanguagesJanis Papanagnou
  ||||    |||     ||| |`* Re: Command Languages Versus Programming LanguagesMuttley
  ||||    |||     ||| | +- Re: Command Languages Versus Programming LanguagesJanis Papanagnou
  ||||    |||     ||| | +* Re: Command Languages Versus Programming LanguagesScott Lurndal
  ||||    |||     ||| | |+- Re: Command Languages Versus Programming LanguagesMuttley
  ||||    |||     ||| | |`* Re: Command Languages Versus Programming LanguagesBart
  ||||    |||     ||| | | +- Re: Command Languages Versus Programming LanguagesDavid Brown
  ||||    |||     ||| | | `- Re: Command Languages Versus Programming LanguagesDan Cross
  ||||    |||     ||| | `- Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
  ||||    |||     ||| +* Re: Command Languages Versus Programming LanguagesDan Cross
  ||||    |||     ||| |`* Re: Command Languages Versus Programming LanguagesMuttley
  ||||    |||     ||| | `* Re: Command Languages Versus Programming LanguagesDan Cross
  ||||    |||     ||| |  +* Re: Command Languages Versus Programming LanguagesMuttley
  ||||    |||     ||| |  |+* Re: Command Languages Versus Programming LanguagesScott Lurndal
  ||||    |||     ||| |  ||`* Re: Command Languages Versus Programming LanguagesDavid Brown
  ||||    |||     ||| |  || `- Re: Command Languages Versus Programming LanguagesJanis Papanagnou
  ||||    |||     ||| |  |+- Re: Command Languages Versus Programming LanguagesJanis Papanagnou
  ||||    |||     ||| |  |`- Re: Command Languages Versus Programming LanguagesDan Cross
  ||||    |||     ||| |  `- Re: Command Languages Versus Programming LanguagesStefan Ram
  ||||    |||     ||| `- Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
  ||||    |||     ||`- Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
  ||||    |||     |`* Re: Command Languages Versus Programming LanguagesScott Lurndal
  ||||    |||     | `* Re: Command Languages Versus Programming LanguagesDan Cross
  ||||    |||     |  `* Re: Command Languages Versus Programming LanguagesBart
  ||||    |||     |   `* Re: Command Languages Versus Programming LanguagesDan Cross
  ||||    |||     |    `* Re: Command Languages Versus Programming LanguagesBart
  ||||    |||     |     `- Re: On overly rigid definitions (was Re: Command Languages Versus Programming LaDan Cross
  ||||    |||     `- Re: Command Languages Versus Programming LanguagesScott Lurndal
  ||||    ||`* Re: Command Languages Versus Programming LanguagesKaz Kylheku
  ||||    || +- Re: Command Languages Versus Programming LanguagesBart
  ||||    || `- Re: Command Languages Versus Programming LanguagesDan Cross
  ||||    |`- Re: Command Languages Versus Programming LanguagesScott Lurndal
  ||||    +* Re: Command Languages Versus Programming LanguagesRainer Weikusat
  ||||    |`- Re: Command Languages Versus Programming LanguagesMuttley
  ||||    `* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
  ||||     `* Re: Command Languages Versus Programming LanguagesMuttley
  ||||      +* Re: Command Languages Versus Programming LanguagesRainer Weikusat
  ||||      |+* Re: Command Languages Versus Programming LanguagesChristian Weisgerber
  ||||      ||+- Re: Command Languages Versus Programming LanguagesMuttley
  ||||      ||`- Re: Command Languages Versus Programming LanguagesRainer Weikusat
  ||||      |`- Re: Command Languages Versus Programming LanguagesBart
  ||||      `* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
  ||||       `* Re: Command Languages Versus Programming LanguagesMuttley
  ||||        `- Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
  |||+* Re: Command Languages Versus Programming LanguagesBart
  ||||`- Re: Command Languages Versus Programming LanguagesRainer Weikusat
  |||`* Re: Command Languages Versus Programming LanguagesMuttley
  ||| `- Re: Command Languages Versus Programming LanguagesRainer Weikusat
  ||`- Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
  |`* Re: Command Languages Versus Programming LanguagesEric Pozharski
  | `* Re: Command Languages Versus Programming LanguagesMuttley
  |  +- Re: Command Languages Versus Programming LanguagesJanis Papanagnou
  |  +* Re: Command Languages Versus Programming LanguagesRainer Weikusat
  |  |`* Re: Command Languages Versus Programming LanguagesMuttley
  |  | `* Re: Command Languages Versus Programming LanguagesRainer Weikusat
  |  |  `* Re: Command Languages Versus Programming LanguagesMuttley
  |  |   `* Re: Command Languages Versus Programming LanguagesRainer Weikusat
  |  |    `- Re: Command Languages Versus Programming LanguagesMuttley
  |  `- Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
  `* Re: Command Languages Versus Programming LanguagesSebastian
   +* Re: Command Languages Versus Programming LanguagesMuttley
   |+* Re: Command Languages Versus Programming LanguagesWolfgang Agnes
   ||`- Re: Command Languages Versus Programming LanguagesMuttley
   |+- Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
   |`* Re: Command Languages Versus Programming LanguagesJanis Papanagnou
   | `* Re: Command Languages Versus Programming LanguagesMuttley
   `* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro

Pages:12345678
Subject: Re: Command Languages Versus Programming Languages
From: Janis Papanagnou
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Tue, 12 Nov 2024 09:14 UTC
References: 1 2 3 4 5 6 7 8 9
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Tue, 12 Nov 2024 10:14:20 +0100
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <vgv69c$1h4fb$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk>
<uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me>
<87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com>
<ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me>
<vgskvg$u8sh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 12 Nov 2024 10:14:20 +0100 (CET)
Injection-Info: dont-email.me; posting-host="3d587463838b5a57dfcaac7f39e268d0";
logging-data="1610219"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/gMX02grdj6jG2VgC9pp53"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:/inB6a6PsJ63c9DaBkgqcerZZ1k=
In-Reply-To: <vgskvg$u8sh$1@dont-email.me>
X-Mozilla-News-Host: news://news.eternal-september.org
View all headers

On 11.11.2024 11:06, Muttley@DastartdlyHQ.org wrote:
>
> Yes, Python does have a lot of cons as a language. But its syntax lets
> newbies get up to speed quickly

and to abruptly get stopped again due to obscure, misleading, or
(at best), non-informative error messages

> and there are a lot of libraries. However its
> dog slow and inefficient and I'm amazed its used as a key language for AI

(and not only there; it's ubiquitous, it seems)

> development - not traditionally a newbie coder area - when in that application
> speed really is essential. Yes it generally calls libraries written in C/C++
> but then why not just write the higher level code in C++ too?

Because of its simpler syntax and less syntactical ballast compared
to C++?

Janis

Subject: Re: Command Languages Versus Programming Languages
From: Muttley@DastartdlyHQ.org
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Tue, 12 Nov 2024 09:21 UTC
References: 1 2 3 4 5 6 7 8 9 10
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Muttley@DastartdlyHQ.org
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Tue, 12 Nov 2024 09:21:51 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <vgv6nf$1h790$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk>
<uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me>
<87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com>
<ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me>
<vgskvg$u8sh$1@dont-email.me>
<vgv69c$1h4fb$1@dont-email.me>
Injection-Date: Tue, 12 Nov 2024 10:21:52 +0100 (CET)
Injection-Info: dont-email.me; posting-host="ddfc3d397de469850af03a6d8c1dcede";
logging-data="1613088"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19iLaTj4IJQ5kJ0DmDBCnMH"
Cancel-Lock: sha1:skThISsoDVGvetTIKhMp5W1otPw=
View all headers

On Tue, 12 Nov 2024 10:14:20 +0100
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> boring babbled:
>On 11.11.2024 11:06, Muttley@DastartdlyHQ.org wrote:
>> and there are a lot of libraries. However its
>> dog slow and inefficient and I'm amazed its used as a key language for AI
>
>(and not only there; it's ubiquitous, it seems)

Yes, certainly seems to be the case now.

>> development - not traditionally a newbie coder area - when in that
>application
>> speed really is essential. Yes it generally calls libraries written in C/C++
>> but then why not just write the higher level code in C++ too?
>
>Because of its simpler syntax and less syntactical ballast compared
>to C++?

When you're dealing with something as complicated and frankly ineffable as
an AI model I doubt syntactic quirks of the programming language matter that
much in comparison. Surely you'd want the fastest implementation possible and
in this case it would be C++.

Subject: Re: Command Languages Versus Programming Languages
From: Janis Papanagnou
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Tue, 12 Nov 2024 09:23 UTC
References: 1 2 3 4 5 6 7 8 9
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Tue, 12 Nov 2024 10:23:38 +0100
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <vgv6qr$1h7ol$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk>
<uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me>
<87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com>
<ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me>
<vgtslt$16754$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 12 Nov 2024 10:23:39 +0100 (CET)
Injection-Info: dont-email.me; posting-host="3d587463838b5a57dfcaac7f39e268d0";
logging-data="1613589"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19z+uuiyZWrk2C0vyj+8FLt"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:rlmVJdAJOygbp1CdrBuENx1e9UY=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <vgtslt$16754$1@dont-email.me>
View all headers

On 11.11.2024 22:24, Lawrence D'Oliveiro wrote:
> On Mon, 11 Nov 2024 07:31:13 -0000 (UTC), Sebastian wrote:
>
>> In comp.unix.programmer Muttley@dastartdlyhq.org wrote:
>>
>>> [Perl’s] syntax is also a horrific mess. Larry took the worst parts of
>>> C and shell syntax and mashed them together.
>>
>> I think you've identified the one language that Python is better than.
>
> In terms of the modern era of high-level programming, Perl was the
> breakthrough language. Before Perl, BASIC was considered to be an example
> of a language with “good” string handling. After Perl, BASIC looked old
> and clunky indeed.

I'm not, erm.., a fan of Perl or anything, but comparing it to BASIC
is way off; Perl is not *that* bad. - N.B.: Of course no one can say
what "BASIC" actually is given the many variants and dialects. - I'm
sure you must have some modern variant in mind that might have little
to do with the various former BASIC dialects (that I happened to use
in the 1970's; e.g., Wang, Olivetti, Commodore, and a mainframe that
I don't recall).

It's more interesting what Perl added compared to BRE/ERE, what Unix
provided since its beginning (and long before Perl).

>
> Perl was the language that made regular expressions sexy. Because it made
> them easy to use.

For those of us who used regexps in Unix from the beginning it's not
that shiny as you want us to buy it; Unix was supporting Chomsky-3
Regular Expressions with a syntax that is still used in contemporary
languages. Perl supports some nice syntactic shortcuts, but also
patterns that exceed Chomsky-3's; too bad if one doesn't know these
differences and any complexity degradation that may be bought with it.

More interesting to me is the fascinating fact that on some non-Unix
platforms it took decades before regexps got (slooooowly) introduced
(even in its simplest form).

Janis

Subject: Re: Command Languages Versus Programming Languages
From: Janis Papanagnou
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Tue, 12 Nov 2024 09:31 UTC
References: 1 2 3 4 5 6 7 8 9 10 11
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Tue, 12 Nov 2024 10:31:58 +0100
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <vgv7af$1haej$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk>
<uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me>
<87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com>
<ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me>
<vgskvg$u8sh$1@dont-email.me> <vgv69c$1h4fb$1@dont-email.me>
<vgv6nf$1h790$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 12 Nov 2024 10:31:59 +0100 (CET)
Injection-Info: dont-email.me; posting-host="3d587463838b5a57dfcaac7f39e268d0";
logging-data="1616339"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19m/VjypMg7IFnUGQT3alHT"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:dbxdyAP0uaifxa/QWhJgnJAa3Ow=
In-Reply-To: <vgv6nf$1h790$1@dont-email.me>
X-Enigmail-Draft-Status: N1110
View all headers

On 12.11.2024 10:21, Muttley@DastartdlyHQ.org wrote:
> On Tue, 12 Nov 2024 10:14:20 +0100
> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> boring babbled:
>> On 11.11.2024 11:06, Muttley@DastartdlyHQ.org wrote:
>>> [ Q: why some prefer Python over C++ ]
>>
>> Because of its simpler syntax and less syntactical ballast compared
>> to C++?
>
> When you're dealing with something as complicated and frankly ineffable as
> an AI model I doubt syntactic quirks of the programming language matter that
> much in comparison.

Oh, I would look at it differently; in whatever application domain I
program I want a syntactic clear and well defined language.

> Surely you'd want the fastest implementation possible and
> in this case it would be C++.

Speed is one factor (to me), and expressiveness or "modeling power"
(OO) is another one. I also appreciate consistently defined languages
and quality of error catching and usefulness of diagnostic messages.
(There's some more factors, but...)

Janis

Subject: Re: Command Languages Versus Programming Languages
From: Muttley@DastartdlyHQ.org
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Tue, 12 Nov 2024 09:53 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Muttley@DastartdlyHQ.org
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Tue, 12 Nov 2024 09:53:59 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <vgv8jn$1hids$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk>
<uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me>
<87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com>
<ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me>
<vgskvg$u8sh$1@dont-email.me> <vgv69c$1h4fb$1@dont-email.me>
<vgv6nf$1h790$1@dont-email.me>
<vgv7af$1haej$1@dont-email.me>
Injection-Date: Tue, 12 Nov 2024 10:53:59 +0100 (CET)
Injection-Info: dont-email.me; posting-host="ddfc3d397de469850af03a6d8c1dcede";
logging-data="1624508"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18jXgoCJWL3EmYd9hfDjfkk"
Cancel-Lock: sha1:dvmkuGiGYAe2RllSt/vKUHjOUe4=
View all headers

On Tue, 12 Nov 2024 10:31:58 +0100
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> boring babbled:
>On 12.11.2024 10:21, Muttley@DastartdlyHQ.org wrote:
>> On Tue, 12 Nov 2024 10:14:20 +0100
>> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> boring babbled:
>>> On 11.11.2024 11:06, Muttley@DastartdlyHQ.org wrote:
>>>> [ Q: why some prefer Python over C++ ]
>>>
>>> Because of its simpler syntax and less syntactical ballast compared
>>> to C++?
>>
>> When you're dealing with something as complicated and frankly ineffable as
>> an AI model I doubt syntactic quirks of the programming language matter that
>> much in comparison.
>
>Oh, I would look at it differently; in whatever application domain I
>program I want a syntactic clear and well defined language.

In which case I'd go with a statically typed language like C++ every time
ahead of a dynamic one like python.

>> Surely you'd want the fastest implementation possible and
>> in this case it would be C++.
>
>Speed is one factor (to me), and expressiveness or "modeling power"
>(OO) is another one. I also appreciate consistently defined languages
>and quality of error catching and usefulness of diagnostic messages.
>(There's some more factors, but...)

C++ is undeniably powerful, but I think the majority would agree now that
its syntax has become an unwieldy mess.

Subject: Re: Command Languages Versus Programming Languages
From: Janis Papanagnou
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Tue, 12 Nov 2024 14:05 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Tue, 12 Nov 2024 15:05:00 +0100
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <vgvnae$1kfp1$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk>
<uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me>
<87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com>
<ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me>
<vgskvg$u8sh$1@dont-email.me> <vgv69c$1h4fb$1@dont-email.me>
<vgv6nf$1h790$1@dont-email.me> <vgv7af$1haej$1@dont-email.me>
<vgv8jn$1hids$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 12 Nov 2024 15:05:02 +0100 (CET)
Injection-Info: dont-email.me; posting-host="627f0c3ddb7576132c30b4ade425bf02";
logging-data="1720097"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+GjWOYOzpuKIWaCi8HZmEs"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:uC6EvTI5Jjj3wfCFRmxfQqO8Ans=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <vgv8jn$1hids$1@dont-email.me>
View all headers

On 12.11.2024 10:53, Muttley@DastartdlyHQ.org wrote:
>
> In which case I'd go with a statically typed language like C++ every time
> ahead of a dynamic one like python.

Definitely!

I'm using untyped languages (like Awk) for scripting, though, but
not for code of considerable scale.

Incidentally, on of my children recently spoke about their setups;
they use Fortran with old libraries (hydrodynamic earth processes),
have the higher level tasks implemented in C++, and they do the
"job control" of the simulation tasks with Python. - A multi-tier
architecture. - That sounds not unreasonable to me. (But they had
built their system based on existing software, so it might have
been a different decision if they'd have built it from scratch.)

>
> C++ is undeniably powerful, but I think the majority would agree now that
> its syntax has become an unwieldy mess.

Yes. And recent standards made it yet worse - When I saw it the
first time I couldn't believe that this would be possible. ;-)

Janis

Subject: Re: Command Languages Versus Programming Languages
From: Bart
Newsgroups: comp.lang.misc
Organization: A noiseless patient Spider
Date: Tue, 12 Nov 2024 14:50 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc@freeuk.com (Bart)
Newsgroups: comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Tue, 12 Nov 2024 14:50:26 +0000
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <vgvpvh$1kkgv$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk>
<uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me>
<87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com>
<ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me>
<vgskvg$u8sh$1@dont-email.me> <vgv69c$1h4fb$1@dont-email.me>
<vgv6nf$1h790$1@dont-email.me> <vgv7af$1haej$1@dont-email.me>
<vgv8jn$1hids$1@dont-email.me> <vgvnae$1kfp1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 12 Nov 2024 15:50:26 +0100 (CET)
Injection-Info: dont-email.me; posting-host="7ba1e57d7ea9ec9c4605a38e1584966a";
logging-data="1724959"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+HyfDZs8YxuVcLzz1vmSbA"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:O2pyNtm3xVTv+i5pjUksSwbHL1Y=
In-Reply-To: <vgvnae$1kfp1$1@dont-email.me>
Content-Language: en-GB
View all headers

On 12/11/2024 14:05, Janis Papanagnou wrote:
> On 12.11.2024 10:53, Muttley@DastartdlyHQ.org wrote:
>>
>> In which case I'd go with a statically typed language like C++ every time
>> ahead of a dynamic one like python.
>
> Definitely!
>
> I'm using untyped languages (like Awk) for scripting, though, but
> not for code of considerable scale.
>
> Incidentally, on of my children recently spoke about their setups;
> they use Fortran with old libraries (hydrodynamic earth processes),
> have the higher level tasks implemented in C++, and they do the
> "job control" of the simulation tasks with Python. - A multi-tier
> architecture. - That sounds not unreasonable to me. (But they had
> built their system based on existing software, so it might have
> been a different decision if they'd have built it from scratch.)
>

My last major app (now over 20 years ago), had such a 2-language solution.

It was a GUI-based low-end 2D/3D CAD app, written in my lower level
systems language.

But the app also had an embedded scripting language, which had access to
the app's environment and users' data.

That was partly so that users (both OEMs and end-users) could write
their own scripts. To this end it was moderately successful as OEMs
could write their own add-on applications (for example, to help design
lighting rigs).

But I also used it exclusively for the GUI side of the application:
menus, dialogs, cursor control, layouts, the simpler file conversions
(eg. export my data models to 3DS format) while the native code parts
dealt with the critical parts: the 3D maths, managing the 3D models the
display drivers, etc.

The whole thing was perhaps 150-200Kloc (not including OEM or user
programs), which was about half static/compiled code and half
dynamic/interpreted.

(One of the original motivations, when it had to run on constrained
systems, was to allow a lot of the code to exist as standalone scripts,
which resided on floppy disks, and which ere only loaded as needed.)

Subject: Re: Command Languages Versus Programming Languages
From: Muttley@DastartdlyHQ.org
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Tue, 12 Nov 2024 15:09 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Muttley@DastartdlyHQ.org
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Tue, 12 Nov 2024 15:09:23 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <vgvr33$1l8a4$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk>
<uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me>
<87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com>
<ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me>
<vgskvg$u8sh$1@dont-email.me> <vgv69c$1h4fb$1@dont-email.me>
<vgv6nf$1h790$1@dont-email.me> <vgv7af$1haej$1@dont-email.me>
<vgv8jn$1hids$1@dont-email.me>
<vgvnae$1kfp1$1@dont-email.me>
Injection-Date: Tue, 12 Nov 2024 16:09:23 +0100 (CET)
Injection-Info: dont-email.me; posting-host="ddfc3d397de469850af03a6d8c1dcede";
logging-data="1745220"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19CECPJa0tyx/Gv6oMQUI1N"
Cancel-Lock: sha1:xNfSkFYSNx4TOAfCw5XonTecqb4=
View all headers

On Tue, 12 Nov 2024 15:05:00 +0100
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> boring babbled:
>On 12.11.2024 10:53, Muttley@DastartdlyHQ.org wrote:
>> C++ is undeniably powerful, but I think the majority would agree now that
>> its syntax has become an unwieldy mess.
>
>Yes. And recent standards made it yet worse - When I saw it the
>first time I couldn't believe that this would be possible. ;-)

Unfortunately these days the C++ steering committee (or whatever its called)
simply seem to be using the language to justify their positions and keep
chucking in "features" that no one asked for or care about, with the end
result of the language becoming a huge mess that no single person could
ever learn (or at least remember if they tried).

Subject: Re: Command Languages Versus Programming Languages
From: Wolfgang Agnes
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Followup: comp.lang.misc
Organization: A noiseless patient Spider
Date: Tue, 12 Nov 2024 16:47 UTC
References: 1 2 3 4 5 6 7 8 9 10 11
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wagnes@jemoni.to (Wolfgang Agnes)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Followup-To: comp.lang.misc
Date: Tue, 12 Nov 2024 13:47:15 -0300
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <87y11oo0vg.fsf@jemoni.to>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk>
<uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me>
<87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com>
<ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me>
<vgskvg$u8sh$1@dont-email.me> <vgv69c$1h4fb$1@dont-email.me>
<vgv6nf$1h790$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Tue, 12 Nov 2024 17:47:25 +0100 (CET)
Injection-Info: dont-email.me; posting-host="a6293ace6acf8881b98e0e33ffe48d9f";
logging-data="1782880"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18MAag0vXGQQkUP/Tp1uxZChMbfePT0WsY="
Cancel-Lock: sha1:pJDehHApZReNZwUcgTrB9f72L/g=
sha1:UgiCiO/MEXnSxR/8+NVSYvp2l6w=
View all headers

Muttley@DastartdlyHQ.org writes:

> On Tue, 12 Nov 2024 10:14:20 +0100
> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> boring babbled:

[...]

>>Because of its simpler syntax and less syntactical ballast compared
>>to C++?
>
> When you're dealing with something as complicated and frankly ineffable as
> an AI model I doubt syntactic quirks of the programming language matter that
> much in comparison. Surely you'd want the fastest implementation possible and
> in this case it would be C++.

I really wouldn't be so sure. :)

Subject: Re: Command Languages Versus Programming Languages
From: Wolfgang Agnes
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Followup: comp.lang.misc
Organization: A noiseless patient Spider
Date: Tue, 12 Nov 2024 16:50 UTC
References: 1 2 3 4 5 6 7 8 9 10
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wagnes@jemoni.to (Wolfgang Agnes)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Followup-To: comp.lang.misc
Date: Tue, 12 Nov 2024 13:50:58 -0300
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <87serwo0p9.fsf@jemoni.to>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk>
<uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me>
<87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com>
<ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me>
<vgtslt$16754$1@dont-email.me> <vgv6qr$1h7ol$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Tue, 12 Nov 2024 17:51:04 +0100 (CET)
Injection-Info: dont-email.me; posting-host="a6293ace6acf8881b98e0e33ffe48d9f";
logging-data="1782880"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18qLjffWrDNcG/xDfHPIOuc7MAmhusjTrM="
Cancel-Lock: sha1:6Zr+sLJrF+myQUiBdSxf4Ks+mHE=
sha1:z90dMf6Y1LfgSkkxslqEun/OkcA=
View all headers

Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:

[...]

>> Perl was the language that made regular expressions sexy. Because it made
>> them easy to use.
>
> For those of us who used regexps in Unix from the beginning it's not
> that shiny as you want us to buy it; Unix was supporting Chomsky-3
> Regular Expressions with a syntax that is still used in contemporary
> languages. Perl supports some nice syntactic shortcuts, but also
> patterns that exceed Chomsky-3's; too bad if one doesn't know these
> differences and any complexity degradation that may be bought with it.

By Chomsky-3 you mean a grammar of type 3 in the Chomsky hierarchy? And
that would be ``regular'' language, recognizable by a finite-state
automaton? If not, could you elaborate on the terminology?

> More interesting to me is the fascinating fact that on some non-Unix
> platforms it took decades before regexps got (slooooowly) introduced
> (even in its simplest form).

Such as which platform?

Subject: Re: Command Languages Versus Programming Languages
From: Lawrence D'Oliv
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Tue, 12 Nov 2024 20:29 UTC
References: 1 2 3 4 5 6 7 8 9 10
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Tue, 12 Nov 2024 20:29:02 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <vh0dqe$1p1ec$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk>
<uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me>
<87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com>
<ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me>
<vgtslt$16754$1@dont-email.me> <vgv6qr$1h7ol$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 12 Nov 2024 21:29:03 +0100 (CET)
Injection-Info: dont-email.me; posting-host="c4ae03b8c5b109994837b0ca20032955";
logging-data="1869260"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+O0jx/R+VTzq7VRCMCrxdQ"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:o21ezjV2VU/Ygf73pFvy74ocokQ=
View all headers

On Tue, 12 Nov 2024 10:23:38 +0100, Janis Papanagnou wrote:

> On 11.11.2024 22:24, Lawrence D'Oliveiro wrote:
>
>> Perl was the language that made regular expressions sexy. Because it
>> made them easy to use.
>
> ... Unix was supporting Chomsky-3
> Regular Expressions with a syntax that is still used in contemporary
> languages.

Not in anything resembling a general-purpose high-level language. That’s
what Perl pioneered.

Subject: Re: Command Languages Versus Programming Languages
From: Lawrence D'Oliv
Newsgroups: comp.lang.misc
Organization: A noiseless patient Spider
Date: Tue, 12 Nov 2024 20:35 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Tue, 12 Nov 2024 20:35:30 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <vh0e6h$1p1ec$3@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk>
<uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me>
<87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com>
<ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me>
<vgskvg$u8sh$1@dont-email.me> <vgv69c$1h4fb$1@dont-email.me>
<vgv6nf$1h790$1@dont-email.me> <vgv7af$1haej$1@dont-email.me>
<vgv8jn$1hids$1@dont-email.me> <vgvnae$1kfp1$1@dont-email.me>
<vgvpvh$1kkgv$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 12 Nov 2024 21:35:30 +0100 (CET)
Injection-Info: dont-email.me; posting-host="c4ae03b8c5b109994837b0ca20032955";
logging-data="1869260"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19DPOA8SstCi0boE8h/Gkja"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:j06XEBx2K7aympWTWjTwfacXApQ=
View all headers

On Tue, 12 Nov 2024 14:50:26 +0000, Bart wrote:

> But the app also had an embedded scripting language, which had access to
> the app's environment and users' data.

Did you invent your own scripting language? Nowadays you would use
something ready-made, like Lua, Guile or even Python.

Subject: Re: Command Languages Versus Programming Languages
From: Bart
Newsgroups: comp.lang.misc
Organization: A noiseless patient Spider
Date: Tue, 12 Nov 2024 21:48 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc@freeuk.com (Bart)
Newsgroups: comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Tue, 12 Nov 2024 21:48:39 +0000
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <vh0ifm$1pqdi$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk>
<uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me>
<87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com>
<ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me>
<vgskvg$u8sh$1@dont-email.me> <vgv69c$1h4fb$1@dont-email.me>
<vgv6nf$1h790$1@dont-email.me> <vgv7af$1haej$1@dont-email.me>
<vgv8jn$1hids$1@dont-email.me> <vgvnae$1kfp1$1@dont-email.me>
<vgvpvh$1kkgv$1@dont-email.me> <vh0e6h$1p1ec$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 12 Nov 2024 22:48:38 +0100 (CET)
Injection-Info: dont-email.me; posting-host="7ba1e57d7ea9ec9c4605a38e1584966a";
logging-data="1894834"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/cwhwzGQdaSfqbQgncyKSJ"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:86WMPQEl3IoE7NNod8WTeOW5bkk=
In-Reply-To: <vh0e6h$1p1ec$3@dont-email.me>
Content-Language: en-GB
View all headers

On 12/11/2024 20:35, Lawrence D'Oliveiro wrote:
> On Tue, 12 Nov 2024 14:50:26 +0000, Bart wrote:
>
>> But the app also had an embedded scripting language, which had access to
>> the app's environment and users' data.
>
> Did you invent your own scripting language? Nowadays you would use
> something ready-made, like Lua, Guile or even Python.

At that (late 80s) I had to invent pretty much everything.

I still do, language-wise.

Subject: Re: Command Languages Versus Programming Languages
From: Janis Papanagnou
Newsgroups: comp.lang.misc
Organization: A noiseless patient Spider
Date: Tue, 19 Nov 2024 05:14 UTC
References: 1 2 3 4 5 6 7 8 9 10 11
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Tue, 19 Nov 2024 06:14:27 +0100
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <vhh6rk$1mn6o$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk>
<uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me>
<87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com>
<ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me>
<vgtslt$16754$1@dont-email.me> <vgv6qr$1h7ol$1@dont-email.me>
<87serwo0p9.fsf@jemoni.to>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 19 Nov 2024 06:14:29 +0100 (CET)
Injection-Info: dont-email.me; posting-host="ece78514e4f65c6792a686a8d9751b44";
logging-data="1793240"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/YgVENcPukHWFD01QIV78+"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:mSDveL0AgvMQU13df2GI6vfoKJs=
In-Reply-To: <87serwo0p9.fsf@jemoni.to>
X-Enigmail-Draft-Status: N1110
View all headers

On 12.11.2024 17:50, Wolfgang Agnes wrote:
> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
> [...]
>
> By Chomsky-3 you mean a grammar of type 3 in the Chomsky hierarchy? And
> that would be ``regular'' language, recognizable by a finite-state
> automaton? If not, could you elaborate on the terminology?

Yes. I hoped the term was clear enough. If I had used too sloppy
wording in my ad hoc writing I apologize for the inconvenience.

My point was about runtime guarantees and complexities (O(N)) of
Regexp processing, which are also reflected by the FSA model.

Janis

Subject: Re: Command Languages Versus Programming Languages
From: Randal L. Schwartz
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: Stonehenge Consulting Services; Portland, Oregon, USA
Date: Wed, 20 Nov 2024 02:43 UTC
References: 1 2 3 4 5 6 7 8 9
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news-out.netnews.com!postmaster.netnews.com!us1.netnews.com!not-for-mail
X-Trace: DXC=10L:0H>=7m_F]=8K_PAL1YHWonT5<]0T]djI?Uho:Xe[=aHS]UU?AT_oPD:4AD`_[Y9n@eEZbI0fQ_2o1RXTMe8_B<UgVTjIcl[MYaAF_O@aR]
X-Complaints-To: support@blocknews.net
From: merlyn@stonehenge.com (Randal L. Schwartz)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org> <0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk> <uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me> <87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com> <ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me> <vgtslt$16754$1@dont-email.me>
x-mayan-date: Long count = 13.0.12.1.11; tzolkin = 13 Chuen; haab = 14 Ceh
Date: Tue, 19 Nov 2024 18:43:48 -0800
Message-ID: <86frnmmxp7.fsf@red.stonehenge.com>
Organization: Stonehenge Consulting Services; Portland, Oregon, USA
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (berkeley-unix)
Cancel-Lock: sha1:vUc2r2YG8Mt6etAd3KIHJd4F6qw=
MIME-Version: 1.0
Content-Type: text/plain
Lines: 16
NNTP-Posting-Host: 127.0.0.1
X-Trace: 1732071778 reader.netnews.com 2789 127.0.0.1:39523
View all headers

>>>>> "Lawrence" == Lawrence D'Oliveiro <ldo@nz.invalid> writes:

Lawrence> Perl was the language that made regular expressions
Lawrence> sexy. Because it made them easy to use.

I'm often reminded of this as I've been coding very little in Perl these
days, and a lot more in languages like Dart, where the regex feels like
a clumsy bolt-on rather than a proper first-class citizen.

There are times I miss Perl. But not too often any more. :)

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Dart/Flutter consulting, Technical writing, Comedy, etc. etc.
Still trying to think of something clever for the fourth line of this .sig

Subject: Re: Command Languages Versus Programming Languages
From: Lawrence D'Oliv
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Wed, 20 Nov 2024 04:34 UTC
References: 1 2 3 4 5 6 7 8 9 10
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Wed, 20 Nov 2024 04:34:31 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <vhjosn$29cfe$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk>
<uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me>
<87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com>
<ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me>
<vgtslt$16754$1@dont-email.me> <86frnmmxp7.fsf@red.stonehenge.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 20 Nov 2024 05:34:32 +0100 (CET)
Injection-Info: dont-email.me; posting-host="c8a5d8f8287a46a043b46813003956ce";
logging-data="2404846"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19RAG3UPEGL/TNHmkXQDLBp"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:XMR5qAclUg6kEDL11yedBynYA4c=
View all headers

On Tue, 19 Nov 2024 18:43:48 -0800, Randal L. Schwartz wrote:

>>>>>> "Lawrence" == Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>
> Lawrence> Perl was the language that made regular expressions
> Lawrence> sexy. Because it made them easy to use.
>
> I'm often reminded of this as I've been coding very little in Perl these
> days, and a lot more in languages like Dart, where the regex feels like
> a clumsy bolt-on rather than a proper first-class citizen.

Python has regexes as a bolt-on -- a library module, not a core part of
the language. But I think the way it leverages the core language -- e.g.
being able to iterate over pattern matches, and collecting information
about matches in a “Match” object -- keeps it quite useful in a nicely
functional way.

Subject: Re: Command Languages Versus Programming Languages
From: Muttley@DastartdlyHQ.org
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Wed, 20 Nov 2024 08:21 UTC
References: 1 2 3 4 5 6 7 8 9 10
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Muttley@DastartdlyHQ.org
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Wed, 20 Nov 2024 08:21:17 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <vhk65t$o5i$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org> <0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk> <uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me> <87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com> <ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me> <vgtslt$16754$1@dont-email.me> <86frnmmxp7.fsf@red.stonehenge.com>
Injection-Date: Wed, 20 Nov 2024 09:21:17 +0100 (CET)
Injection-Info: dont-email.me; posting-host="36fbe858f1cae8ac98599318d5cdf800";
logging-data="24754"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/xQkLZsttDsoSMh5pUrfk0"
Cancel-Lock: sha1:cQO0vES6SLgA+vQTiNcJNxo62J4=
View all headers

On Tue, 19 Nov 2024 18:43:48 -0800
merlyn@stonehenge.com (Randal L. Schwartz) boring babbled:
>>>>>> "Lawrence" == Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>
>Lawrence> Perl was the language that made regular expressions
>Lawrence> sexy. Because it made them easy to use.
>
>I'm often reminded of this as I've been coding very little in Perl these
>days, and a lot more in languages like Dart, where the regex feels like
>a clumsy bolt-on rather than a proper first-class citizen.

Regex itself is clumsy beyond simple search and replace patterns. A lot of
stuff I've seen done in regex would have better done procedurally at the
expense of slightly more code but a LOT more readability. Also given its
effectively a compact language with its own grammar and syntax IMO it should
not be the core part of any language as it can lead to a syntatic mess, which
is what often happens with Perl.

Subject: Re: Command Languages Versus Programming Languages
From: Janis Papanagnou
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Wed, 20 Nov 2024 10:51 UTC
References: 1 2 3 4 5 6 7 8 9 10 11
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Wed, 20 Nov 2024 11:51:11 +0100
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <vhkev7$29sc$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk>
<uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me>
<87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com>
<ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me>
<vgtslt$16754$1@dont-email.me> <86frnmmxp7.fsf@red.stonehenge.com>
<vhk65t$o5i$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Nov 2024 11:51:20 +0100 (CET)
Injection-Info: dont-email.me; posting-host="989e2dc1ebe8052ec6f7beceade503c1";
logging-data="75660"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9fLqYsAAuQbY5zsNl/wlt"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:n+/Etx9b3HHqHwTyUMk0ZuBFkHc=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <vhk65t$o5i$1@dont-email.me>
View all headers

On 20.11.2024 09:21, Muttley@DastartdlyHQ.org wrote:
> On Tue, 19 Nov 2024 18:43:48 -0800
> merlyn@stonehenge.com (Randal L. Schwartz) boring babbled:
>>
>> I'm often reminded of this as I've been coding very little in Perl these
>> days, and a lot more in languages like Dart, where the regex feels like
>> a clumsy bolt-on rather than a proper first-class citizen.
>
> Regex itself is clumsy beyond simple search and replace patterns. A lot of
> stuff I've seen done in regex would have better done procedurally at the
> expense of slightly more code but a LOT more readability. Also given its
> effectively a compact language with its own grammar and syntax IMO it should
> not be the core part of any language as it can lead to a syntatic mess, which
> is what often happens with Perl.

I wouldn't look at it that way. I've seen Regexps as part of languages
usually in well defined syntactical contexts. For example, like strings
are enclosed in "...", Regexps could be seen within /.../ delimiters.
GNU Awk (in recent versions) went towards first class "strongly typed"
Regexps which are then denoted by the @/.../ syntax.

I'm curious what you mean by Regexps presented in a "procedural" form.
Can you give some examples?

Personally I'm fine with the typical lexical meta-symbols in Regexps
which resembles the FSA and allows a simple transformation forth/back.

In practice, given that a Regexp conforms to a FSA, any Regexp can be
precompiled and used multiple times. The thing I had used in Java - it
was a library from Apache, IIRC, not the bulky thing that got included
later - was easily usable; create a Regexp object by a RE expression,
then operate on that same object. (Since there's still typical Regexp
syntax involved I suppose that is not what you meant by "procedural"?)

Janis

Subject: Re: Command Languages Versus Programming Languages
From: Muttley@DastartdlyHQ.org
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Wed, 20 Nov 2024 11:30 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Muttley@DastartdlyHQ.org
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Wed, 20 Nov 2024 11:30:44 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <vhkh94$2oi3$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk>
<uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me>
<87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com>
<ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me>
<vgtslt$16754$1@dont-email.me> <86frnmmxp7.fsf@red.stonehenge.com>
<vhk65t$o5i$1@dont-email.me>
<vhkev7$29sc$1@dont-email.me>
Injection-Date: Wed, 20 Nov 2024 12:30:44 +0100 (CET)
Injection-Info: dont-email.me; posting-host="36fbe858f1cae8ac98599318d5cdf800";
logging-data="90691"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Nbp0oaNNoz5S3Bduf1PwN"
Cancel-Lock: sha1:ez4z3rrylpx24SOojjsVet3IR+M=
View all headers

On Wed, 20 Nov 2024 11:51:11 +0100
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> boring babbled:
>On 20.11.2024 09:21, Muttley@DastartdlyHQ.org wrote:
>> On Tue, 19 Nov 2024 18:43:48 -0800
>> merlyn@stonehenge.com (Randal L. Schwartz) boring babbled:
>>>
>>> I'm often reminded of this as I've been coding very little in Perl these
>>> days, and a lot more in languages like Dart, where the regex feels like
>>> a clumsy bolt-on rather than a proper first-class citizen.
>>
>> Regex itself is clumsy beyond simple search and replace patterns. A lot of
>> stuff I've seen done in regex would have better done procedurally at the
>> expense of slightly more code but a LOT more readability. Also given its
>> effectively a compact language with its own grammar and syntax IMO it should
>> not be the core part of any language as it can lead to a syntatic mess,
>which
>> is what often happens with Perl.
>
>I wouldn't look at it that way. I've seen Regexps as part of languages
>usually in well defined syntactical contexts. For example, like strings
>are enclosed in "...", Regexps could be seen within /.../ delimiters.
>GNU Awk (in recent versions) went towards first class "strongly typed"
>Regexps which are then denoted by the @/.../ syntax.
>
>I'm curious what you mean by Regexps presented in a "procedural" form.
>Can you give some examples?

Anything that can be done in regex can obviously also be done procedurally.
At the point regex expression become unwieldy - usually when substitution
variables raise their heads - I prefer procedural code as its also often
easier to debug.

>In practice, given that a Regexp conforms to a FSA, any Regexp can be
>precompiled and used multiple times. The thing I had used in Java - it

Precompiled regex is no more efficient than precompiled anything , its all
just assembler at the bottom.

>then operate on that same object. (Since there's still typical Regexp
>syntax involved I suppose that is not what you meant by "procedural"?)

If you don't know the different between declarative syntax like regex and
procedural syntax then there's not much point continuing this discussion.

Subject: Re: Command Languages Versus Programming Languages
From: Ed Morton
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Wed, 20 Nov 2024 11:46 UTC
References: 1 2 3 4 5 6 7 8 9 10 11
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mortonspam@gmail.com (Ed Morton)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Wed, 20 Nov 2024 05:46:49 -0600
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <vhki79$2pho$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk>
<uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me>
<87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com>
<ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me>
<vgtslt$16754$1@dont-email.me> <86frnmmxp7.fsf@red.stonehenge.com>
<vhk65t$o5i$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Nov 2024 12:46:51 +0100 (CET)
Injection-Info: dont-email.me; posting-host="61cdf8b9945abf027c8ade10fe7b6534";
logging-data="91704"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18fctxzwEvHsVPKub4y0N9J"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:+OvgIN4RS7QBnZPMuNHt5aBYDJg=
Content-Language: en-US
X-Antivirus-Status: Clean
X-Antivirus: Avast (VPS 241120-0, 11/19/2024), Outbound message
In-Reply-To: <vhk65t$o5i$1@dont-email.me>
View all headers

On 11/20/2024 2:21 AM, Muttley@DastartdlyHQ.org wrote:
> On Tue, 19 Nov 2024 18:43:48 -0800
> merlyn@stonehenge.com (Randal L. Schwartz) boring babbled:
>>>>>>> "Lawrence" == Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>>
>> Lawrence> Perl was the language that made regular expressions
>> Lawrence> sexy. Because it made them easy to use.
>>
>> I'm often reminded of this as I've been coding very little in Perl these
>> days, and a lot more in languages like Dart, where the regex feels like
>> a clumsy bolt-on rather than a proper first-class citizen.
>
> Regex itself is clumsy beyond simple search and replace patterns. A lot of
> stuff I've seen done in regex would have better done procedurally at the
> expense of slightly more code but a LOT more readability.

Definitely. The most relevant statement about regexps is this:

> Some people, when confronted with a problem, think "I know, I'll use
> regular expressions." Now they have two problems.

attributed to Jamie Zawinski, see
https://blog.codinghorror.com/regular-expressions-now-you-have-two-problems/.

Obviously regexps are very useful and commonplace but if you find you
have to use some online site or other tools to help you write/understand
one or just generally need more than a couple of minutes to
write/understand it then it's time to back off and figure out a better
way to write your code for the sake of whoever has to read it 6 months
later (and usually for robustness too as it's hard to be sure all rainy
day cases are handled correctly in a lengthy and/or complicated regexp).

Ed.

Subject: Re: Command Languages Versus Programming Languages
From: Rainer Weikusat
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Date: Wed, 20 Nov 2024 12:21 UTC
References: 1 2 3 4 5 6 7 8 9 10 11
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!tncsrv06.tnetconsulting.net!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: rweikusat@talktalk.net (Rainer Weikusat)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Wed, 20 Nov 2024 12:21:04 +0000
Lines: 30
Message-ID: <871pz62j0v.fsf@doppelsaurus.mobileactivedefense.com>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk>
<uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me>
<87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com>
<ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me>
<vgtslt$16754$1@dont-email.me> <86frnmmxp7.fsf@red.stonehenge.com>
<vhk65t$o5i$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net ooWKHjueEWtSwz7CAayCQgxYA2Yb51ui9OX3lut6c0xKZufN4=
Cancel-Lock: sha1:WMVSPdMeiIbD+GA4bCmnwTS/KBA= sha1:i/twUzO9XalDfiLmyhXSdzHrOng= sha256:enaTuBopRj1VrR8beP1JzXHmuB9DrbmvEjsxHyA4thc=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
View all headers

Muttley@DastartdlyHQ.org writes:
> merlyn@stonehenge.com (Randal L. Schwartz) boring babbled:
>>>>>>> "Lawrence" == Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>>
>>Lawrence> Perl was the language that made regular expressions
>>Lawrence> sexy. Because it made them easy to use.
>>
>>I'm often reminded of this as I've been coding very little in Perl these
>>days, and a lot more in languages like Dart, where the regex feels like
>>a clumsy bolt-on rather than a proper first-class citizen.
>
> Regex itself is clumsy beyond simple search and replace patterns. A lot of
> stuff I've seen done in regex would have better done procedurally at the
> expense of slightly more code but a LOT more readability. Also given its
> effectively a compact language with its own grammar and syntax IMO it should
> not be the core part of any language as it can lead to a syntatic mess, which
> is what often happens with Perl.

A mess is something which often happens when people who can't organize
their thoughts just trudge on nevertheless. They're perfectly capable of
accomplishing that in any programming language.

A real problem with regexes in Perl is that they're pretty slow for simple
use cases (like lexical analysis) and thus, not suitable for volume data
processing outside of throwaway code¹.

¹ I used to use a JSON parser written in OO-Perl which made extensive
use of regexes for that. I've recently replaced that with a C/XS version
which - while slightly larger (617 vs 410 lines of text) - is over a
hundred times faster and conceptually simpler at the same time.

Subject: Re: Command Languages Versus Programming Languages
From: Muttley@DastartdlyHQ.org
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Wed, 20 Nov 2024 12:27 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Muttley@DastartdlyHQ.org
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Wed, 20 Nov 2024 12:27:54 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <vhkkka$3dja$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk>
<uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me>
<87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com>
<ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me>
<vgtslt$16754$1@dont-email.me> <86frnmmxp7.fsf@red.stonehenge.com>
<vhk65t$o5i$1@dont-email.me>
<vhki79$2pho$1@dont-email.me>
Injection-Date: Wed, 20 Nov 2024 13:27:54 +0100 (CET)
Injection-Info: dont-email.me; posting-host="36fbe858f1cae8ac98599318d5cdf800";
logging-data="112234"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Id46ANee5b0ewfl8UeIRz"
Cancel-Lock: sha1:chQZaFcQjG0ot6b5ZvvrkCAlfnI=
View all headers

On Wed, 20 Nov 2024 05:46:49 -0600
Ed Morton <mortonspam@gmail.com> boring babbled:
>On 11/20/2024 2:21 AM, Muttley@DastartdlyHQ.org wrote:
>> On Tue, 19 Nov 2024 18:43:48 -0800
>> merlyn@stonehenge.com (Randal L. Schwartz) boring babbled:
>>>>>>>> "Lawrence" == Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>>>
>>> Lawrence> Perl was the language that made regular expressions
>>> Lawrence> sexy. Because it made them easy to use.
>>>
>>> I'm often reminded of this as I've been coding very little in Perl these
>>> days, and a lot more in languages like Dart, where the regex feels like
>>> a clumsy bolt-on rather than a proper first-class citizen.
>>
>> Regex itself is clumsy beyond simple search and replace patterns. A lot of
>> stuff I've seen done in regex would have better done procedurally at the
>> expense of slightly more code but a LOT more readability.
>
>Definitely. The most relevant statement about regexps is this:
>
> > Some people, when confronted with a problem, think "I know, I'll use
> > regular expressions." Now they have two problems.

Very true!

>Obviously regexps are very useful and commonplace but if you find you
>have to use some online site or other tools to help you write/understand
>one or just generally need more than a couple of minutes to
>write/understand it then it's time to back off and figure out a better
>way to write your code for the sake of whoever has to read it 6 months
>later (and usually for robustness too as it's hard to be sure all rainy
>day cases are handled correctly in a lengthy and/or complicated regexp).

Edge cases are regex achilles heal, eg an expression that only accounted
for 1 -> N chars, not 0 -> N, or matches in the middle but not at the ends.

Subject: Re: Command Languages Versus Programming Languages
From: Janis Papanagnou
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Wed, 20 Nov 2024 15:38 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Wed, 20 Nov 2024 16:38:24 +0100
Organization: A noiseless patient Spider
Lines: 130
Message-ID: <vhkvpi$5h8v$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk>
<uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me>
<87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com>
<ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me>
<vgtslt$16754$1@dont-email.me> <86frnmmxp7.fsf@red.stonehenge.com>
<vhk65t$o5i$1@dont-email.me> <vhkev7$29sc$1@dont-email.me>
<vhkh94$2oi3$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Nov 2024 16:38:26 +0100 (CET)
Injection-Info: dont-email.me; posting-host="989e2dc1ebe8052ec6f7beceade503c1";
logging-data="181535"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18cMrFgRHQxnPeKg0Su8It2"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:jkgCTd0VUMMZs58s7hjbAmkaJh0=
In-Reply-To: <vhkh94$2oi3$1@dont-email.me>
X-Enigmail-Draft-Status: N1110
View all headers

On 20.11.2024 12:30, Muttley@DastartdlyHQ.org wrote:
> On Wed, 20 Nov 2024 11:51:11 +0100
> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> boring babbled:
>> On 20.11.2024 09:21, Muttley@DastartdlyHQ.org wrote:
>>> On Tue, 19 Nov 2024 18:43:48 -0800
>>> merlyn@stonehenge.com (Randal L. Schwartz) boring babbled:
>>>>
>>>> I'm often reminded of this as I've been coding very little in Perl these
>>>> days, and a lot more in languages like Dart, where the regex feels like
>>>> a clumsy bolt-on rather than a proper first-class citizen.
>>>
>>> Regex itself is clumsy beyond simple search and replace patterns. A lot of
>>> stuff I've seen done in regex would have better done procedurally at the
>>> expense of slightly more code but a LOT more readability. Also given its
>>> effectively a compact language with its own grammar and syntax IMO it should
>>> not be the core part of any language as it can lead to a syntatic mess,
>> which
>>> is what often happens with Perl.
>>
>> I wouldn't look at it that way. I've seen Regexps as part of languages
>> usually in well defined syntactical contexts. For example, like strings
>> are enclosed in "...", Regexps could be seen within /.../ delimiters.
>> GNU Awk (in recent versions) went towards first class "strongly typed"
>> Regexps which are then denoted by the @/.../ syntax.
>>
>> I'm curious what you mean by Regexps presented in a "procedural" form.
>> Can you give some examples?
>
> Anything that can be done in regex can obviously also be done procedurally.
> At the point regex expression become unwieldy - usually when substitution
> variables raise their heads - I prefer procedural code as its also often
> easier to debug.

You haven't even tried to honestly answer my (serious) question.
With your statement above and your hostility below, it rather seems
you have no clue of what I am talking about.

>
>> In practice, given that a Regexp conforms to a FSA, any Regexp can be
>> precompiled and used multiple times. The thing I had used in Java - it
>
> Precompiled regex is no more efficient than precompiled anything , its all
> just assembler at the bottom.

The Regexps are a way to specify the words of a regular language;
for pattern matching the expression gets interpreted or compiled; you
specify it, e.g., using strings of characters and meta-characters.
If you have a programming language where that string gets repeatedly
interpreted then it's slower than a precompiled Regexp expression.

I give you examples...

(1) DES encryption function

(1a) ciphertext = des_encode (key, plaintext)

(1b) cipher = des (key)
ciphertext = cipher.encode (plaintext)

In case (1) you can either call the des encription (decription) for
any (key, plaintext)-pair in a procedural function as in (1a), or
you can create the key-specific encryption once and encode various
texts with the same cipher object as in (1b).

(2) regexp matching

(2a) location = regexp (pattern, string)

(2b) fsm = rexexp (pattern)
location = fsm.match (string)

In case (2) you can either do the match in a string with a pattern
in a procedural form as in (2a) or you can create the FSM for the
given Regexp just once and apply it on various strings as in (2b).

That's what I was talking about.

Only if key (in (1)) or pattern (in (2)) are static or "constant"
that compilation could (but only theoretically) be done in advance
and optimizing system may (or may not) precompile it (both) to
[similar] assembler code. How should that work with regexps or DES?
The optimizing system would need knowledge how to use the library
code (DES, Regexps, ...) to create binary structures based on the
algorithms (key-initialization in DES, FSM-generation in Regexps).
This is [statically] not done.

Otherwise - i.e. the normal, expected case - there's an efficiency
difference to observe between the respective cases of (a) and (b).

>
>> then operate on that same object. (Since there's still typical Regexp
>> syntax involved I suppose that is not what you meant by "procedural"?)
>
> If you don't know the different between declarative syntax like regex and
> procedural syntax then there's not much point continuing this discussion.

Why do you think so, and why are you saying that? - That wasn't and
still isn't the point. - You said upthread

"A lot of stuff I've seen done in regex would have better done
procedurally at the expense of slightly more code but a LOT more
readability."

and I asked

"I'm curious what you mean by Regexps presented in a "procedural"
form.
Can you give some examples?"

What you wanted to say wasn't clear to me, since you were complaining
about the _Regexp syntax_. So it couldn't be meant to just write
regexp (pattern, string) instead of pattern ~ string
but to somehow(!) transform "pattern", say, like /[0-9]+(ABC)?x*foo/,
to something syntactically "better".
I was interested in that "somehow" (that I emphasized), and in an
example how that would look like in your opinion.
If you're unable to answer that simple question then just take that
simple regexp /[0-9]+(ABC)?x*foo/ example and show us your preferred
procedural variant.

But my expectation is that you cannot provide any reasonable example
anyway.

Personally I think that writing bulky procedural stuff for something
like [0-9]+ can only be much worse, and that further abbreviations
like \d+ are the better direction to go if targeting a good interface.
YMMV.

Janis

Subject: Re: Command Languages Versus Programming Languages
From: Janis Papanagnou
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Wed, 20 Nov 2024 15:53 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Wed, 20 Nov 2024 16:53:38 +0100
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <vhl0m3$5mu9$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk>
<uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me>
<87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com>
<ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me>
<vgtslt$16754$1@dont-email.me> <86frnmmxp7.fsf@red.stonehenge.com>
<vhk65t$o5i$1@dont-email.me> <vhki79$2pho$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Nov 2024 16:53:40 +0100 (CET)
Injection-Info: dont-email.me; posting-host="989e2dc1ebe8052ec6f7beceade503c1";
logging-data="187337"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18OiBEg5Wjx+/Qc598MdGUg"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:QEGDWPnuL1M6q+rkt6qWgXeH5OM=
In-Reply-To: <vhki79$2pho$1@dont-email.me>
X-Enigmail-Draft-Status: N1110
View all headers

On 20.11.2024 12:46, Ed Morton wrote:
>
> Definitely. The most relevant statement about regexps is this:
>
>> Some people, when confronted with a problem, think "I know, I'll use
>> regular expressions." Now they have two problems.

(Worth a scribbling on a WC wall.)

>
> Obviously regexps are very useful and commonplace but if you find you
> have to use some online site or other tools to help you write/understand
> one or just generally need more than a couple of minutes to
> write/understand it then it's time to back off and figure out a better
> way to write your code for the sake of whoever has to read it 6 months
> later (and usually for robustness too as it's hard to be sure all rainy
> day cases are handled correctly in a lengthy and/or complicated regexp).

Regexps are nothing for newbies.

The inherent fine thing with Regexps is that you can incrementally
compose them[*].[**]

It seems you haven't found a sensible way to work with them?
(And I'm really astonished about that since I know you worked with
Regexps for years if not decades.)

In those cases where Regexps *are* the tool for a specific task -
I don't expect you to use them where they are inappropriate?! -
what would be the better solution[***] then?

Janis

[*] Like the corresponding FSMs.

[**] And you can also decompose them if they are merged in a huge
expression, too large for you to grasp it. (BTW, I'm doing such
decompositions also with other expressions in program code that
are too bulky.)

[***] Can you answer the question that another poster failed to do?

Subject: Re: Command Languages Versus Programming Languages
From: Muttley@DastartdlyHQ.org
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Wed, 20 Nov 2024 16:38 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Muttley@DastartdlyHQ.org
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Wed, 20 Nov 2024 16:38:15 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <vhl39n$67lp$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk>
<uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me>
<87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com>
<ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me>
<vgtslt$16754$1@dont-email.me> <86frnmmxp7.fsf@red.stonehenge.com>
<vhk65t$o5i$1@dont-email.me> <vhkev7$29sc$1@dont-email.me>
<vhkh94$2oi3$1@dont-email.me>
<vhkvpi$5h8v$1@dont-email.me>
Injection-Date: Wed, 20 Nov 2024 17:38:15 +0100 (CET)
Injection-Info: dont-email.me; posting-host="36fbe858f1cae8ac98599318d5cdf800";
logging-data="204473"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18u1JR5/k7Q1uHZDFnsCAZb"
Cancel-Lock: sha1:+Dg5PqzRO8xrWyI8hYws+4lyjXc=
View all headers

On Wed, 20 Nov 2024 16:38:24 +0100
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> boring babbled:
>On 20.11.2024 12:30, Muttley@DastartdlyHQ.org wrote:
>> Anything that can be done in regex can obviously also be done procedurally.
>> At the point regex expression become unwieldy - usually when substitution
>> variables raise their heads - I prefer procedural code as its also often
>> easier to debug.
>
>You haven't even tried to honestly answer my (serious) question.

You mean you can't figure out how to do something like string search and replace
procedurally? I'm not going to show you, ask a kid who knows Python or Basic.

>With your statement above and your hostility below, it rather seems

If you think my reply was hostile then I suggest you go find a safe space
and cuddle your teddy bear snowflake.

Pages:12345678

rocksolid light 0.9.8
clearnet tor