Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #48: bad ether in the cables


comp / comp.unix.shell / 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 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 LanguagesDavid Brown
  ||||    |||     ||| `- 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 LanguagesJanis Papanagnou
   |  |`* Re: Command Languages Versus Programming LanguagesMuttley
   |  | `* Re: Command Languages Versus Programming LanguagesJanis Papanagnou
   |  |  `- Re: Command Languages Versus Programming LanguagesMuttley
   |  `- Re: Command Languages Versus Programming LanguagesWolfgang Agnes
   `* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
    +* Re: Command Languages Versus Programming LanguagesJanis Papanagnou
    |+- Re: Command Languages Versus Programming LanguagesWolfgang Agnes
    |`- Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
    `* Re: Command Languages Versus Programming LanguagesRandal L. Schwartz
     +- Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
     `* Re: Command Languages Versus Programming LanguagesMuttley
      +* 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 LanguagesMuttley
      || |`* Re: Command Languages Versus Programming LanguagesRainer Weikusat
      || | +* Re: Command Languages Versus Programming LanguagesJohn Ames
      || | `* 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 LanguagesEd Morton
      `* Re: Command Languages Versus Programming LanguagesRainer Weikusat

Pages:1234567
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: Mon, 14 Oct 2024 15:39 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: Muttley@DastartdlyHQ.org
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Mon, 14 Oct 2024 15:39:19 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <vejdv7$18nhg$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>
<87wmighu4i.fsf@doppelsaurus.mobileactivedefense.com>
<slrnvgl9ho.39m.apple.universe@freight.zombinet>
<vefvq4$k1s6$1@dont-email.me>
<874j5fyc7f.fsf@doppelsaurus.mobileactivedefense.com>
<veiko9$14grm$1@dont-email.me>
<87frozj7fe.fsf@doppelsaurus.mobileactivedefense.com>
<veitt2$15uek$1@dont-email.me>
<87jzeapvyl.fsf@doppelsaurus.mobileactivedefense.com>
Injection-Date: Mon, 14 Oct 2024 17:39:20 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f4e8605d1a482459fedfaef44a859ddc";
logging-data="1334832"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19UyN/kObSWxd7izKoYQr3V"
Cancel-Lock: sha1:jjmX3NKTlZLMGdueqt+ucWuh6mU=
View all headers

On Mon, 14 Oct 2024 16:04:18 +0100
Rainer Weikusat <rweikusat@talktalk.net> boring babbled:
>Muttley@DastartdlyHQ.org writes:
>> On Mon, 14 Oct 2024 11:38:29 +0100
>> Rainer Weikusat <rweikusat@talktalk.net> boring babbled:
>>>The simple but flexible OO system, reliable automatic memory management
>
>[...]
>
>> Then there's the whole 2 stage object creation with the "bless"
>> nonsense. Hacky.
>
>I was planning to write a longer reply but killed it. You're obviously
>argueing about something you reject for political reasons despite you're
>not really familiar with it and you even 'argue' like a politician. That
>is, you stick peiorative labels on stuff you don't like to emphasize how
>really disagreeable you believe it to be. IMHO, such a method of
>(pseudo-)discussing anything is completely pointless.

Umm, whatever. I was just saying why I didn't like Perl but if you want to
read some grand motive into it knock yourself out.

Subject: Re: Command Languages Versus Programming Languages
From: Sebastian
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Mon, 11 Nov 2024 07:31 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: sebastian@here.com.invalid (Sebastian)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Mon, 11 Nov 2024 07:31:13 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <vgsbrv$sko5$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>
Injection-Date: Mon, 11 Nov 2024 08:31:13 +0100 (CET)
Injection-Info: dont-email.me; posting-host="95ed1b7dc2c6d53a71bbeb27cdc618dd";
logging-data="938757"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+fxIpYUp6sbv+dohSaQyjFG25RcS1IuJg="
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.1.0-18-amd64 (x86_64))
Cancel-Lock: sha1:uxoDpOrEfbd+UGGX7GjitJhIBTw=
View all headers

In comp.unix.programmer Muttley@dastartdlyhq.org wrote:
> On Wed, 09 Oct 2024 22:25:05 +0100
> Rainer Weikusat <rweikusat@talktalk.net> boring babbled:
>>Bozo User <anthk@disroot.org> writes:
>>> On 2024-04-07, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>>>> On Sun, 07 Apr 2024 00:01:43 +0000, Javier wrote:
>>>>
>>>>> The downside is the loss of performance because of disk access for
>>>>> trivial things like 'nfiles=$(ls | wc -l)'.
>>>>
>>>> Well, you could save one process creation by writing
>>>> ???nfiles=$(echo * | wc -l)??? instead. But that would still not be
>>strictly
>>>> correct.
>>>>
>>>>> I suspect disk access times where
>>>>> one of the reasons for the development of perl in the early 90s.
>>>>
>>>> Shells were somewhat less powerful in those days. I would describe the
>>>> genesis of Perl as ???awk on steroids???. Its big party trick was regular
>>>> expressions. And I guess combining that with more sophisticated data-
>>>> structuring capabilities.
>>>
>>> Perl is more awk+sed+sh in a single language. Basically the killer
>>> of the Unix philophy in late 90's/early 00's, and for the good.
>>
>>Perl is a high-level programming language with a rich syntax??, with
>>support for deterministic automatic memory management, functions as
>>first-class objects and message-based OO. It's also a virtual machine
>>for executing threaded code and a(n optimizing) compiler for translating
>>Perl code into the corresponding threaded code.
>
> Its syntax is also a horrific mess. Larry took the worst parts of C and shell
> syntax and mashed them together. Its no surprise Perl has been ditched in
> favour of Python just about everywhere for new scripting projects. And while
> I hate Pythons meangingful whitespace nonsense, I'd use it in preference
> to Perl any day.

I think you've identified the one language that Python is better than.

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: Mon, 11 Nov 2024 10:06 UTC
References: 1 2 3 4 5 6 7 8
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: Mon, 11 Nov 2024 10:06:40 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <vgskvg$u8sh$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>
Injection-Date: Mon, 11 Nov 2024 11:06:41 +0100 (CET)
Injection-Info: dont-email.me; posting-host="dce9ef009493e7bff49a3fdd7efd443b";
logging-data="992145"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Ker8wn7SWu7b2VxUZLUoB"
Cancel-Lock: sha1:2uiFomptoDxwKx2m1oQAsM2Av0M=
View all headers

On Mon, 11 Nov 2024 07:31:13 -0000 (UTC)
Sebastian <sebastian@here.com.invalid> boring babbled:
>In comp.unix.programmer Muttley@dastartdlyhq.org wrote:
>> syntax and mashed them together. Its no surprise Perl has been ditched in
>> favour of Python just about everywhere for new scripting projects. And while
>> I hate Pythons meangingful whitespace nonsense, I'd use it in preference
>> to Perl any day.
>
>I think you've identified the one language that Python is better than.

Yes, Python does have a lot of cons as a language. But its syntax lets
newbies get up to speed quickly 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
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?

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: Mon, 11 Nov 2024 11:28 UTC
References: 1 2 3 4 5 6 7 8 9
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: Mon, 11 Nov 2024 08:28:51 -0300
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <87msi6t3f0.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>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Mon, 11 Nov 2024 12:29:00 +0100 (CET)
Injection-Info: dont-email.me; posting-host="3b9c4e065a5e8a9a86df711005fd4432";
logging-data="1016613"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/dumMBGiUEWe8G739WpBVhDSQIBJkY54E="
Cancel-Lock: sha1:4IY6YOzDk3Spf3shPZAMvxT5Uls=
sha1:SlDxVgW/A5ybNAyENnfZJEl0HnA=
View all headers

Muttley@DastartdlyHQ.org writes:

> On Mon, 11 Nov 2024 07:31:13 -0000 (UTC)
> Sebastian <sebastian@here.com.invalid> boring babbled:
>>In comp.unix.programmer Muttley@dastartdlyhq.org wrote:
>>> syntax and mashed them together. Its no surprise Perl has been ditched in
>>> favour of Python just about everywhere for new scripting projects. And while
>>> I hate Pythons meangingful whitespace nonsense, I'd use it in preference
>>> to Perl any day.
>>
>>I think you've identified the one language that Python is better than.
>
> Yes, Python does have a lot of cons as a language. But its syntax lets
> newbies get up to speed quickly 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
> 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?

You'd have to give up the REPL, for instance.

Subject: Re: Command Languages Versus Programming Languages
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Mon, 11 Nov 2024 16: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@dastardlyhq.com
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Mon, 11 Nov 2024 16:21:26 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <vgtau6$12m7o$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>
<87msi6t3f0.fsf@jemoni.to>
Content-Type: text/plain
Injection-Date: Mon, 11 Nov 2024 17:21:27 +0100 (CET)
Injection-Info: dont-email.me; posting-host="dce9ef009493e7bff49a3fdd7efd443b";
logging-data="1136888"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18p3ZWi9YDqUv6gsRggEu5o"
Cancel-Lock: sha1:zd+5/HowEo/RjFh3Uew5f4E7vsc=
View all headers

On Mon, 11 Nov 2024 08:28:51 -0300
Wolfgang Agnes <wagnes@jemoni.to> gabbled:
>Muttley@DastartdlyHQ.org writes:
>
>> On Mon, 11 Nov 2024 07:31:13 -0000 (UTC)
>> Sebastian <sebastian@here.com.invalid> boring babbled:
>>>In comp.unix.programmer Muttley@dastartdlyhq.org wrote:
>>>> syntax and mashed them together. Its no surprise Perl has been ditched in
>>>> favour of Python just about everywhere for new scripting projects. And
>while
>>>> I hate Pythons meangingful whitespace nonsense, I'd use it in preference
>>>> to Perl any day.
>>>
>>>I think you've identified the one language that Python is better than.
>>
>> Yes, Python does have a lot of cons as a language. But its syntax lets
>> newbies get up to speed quickly 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
>> 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?
>
>You'd have to give up the REPL, for instance.

Not that big a deal especially if the model takes hours or days to train
anyway.

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: Mon, 11 Nov 2024 20:55 UTC
References: 1 2 3 4 5 6 7 8 9
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: Mon, 11 Nov 2024 20:55:15 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <vgtqvj$15srv$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=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 11 Nov 2024 21:55:16 +0100 (CET)
Injection-Info: dont-email.me; posting-host="13b7eac62ff6457352a541d5a235d1e2";
logging-data="1241983"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+dgRdeRnHFVI9rKrtTKOYp"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:hCaYdQrviwJkyIeoRDAtCJsjQx0=
View all headers

On Mon, 11 Nov 2024 10:06:40 -0000 (UTC), Muttley wrote:

> Yes it generally calls libraries written in C/C++
> but then why not just write the higher level code in C++ too?

Because it’s easier to do higher-level stuff in Python.

Example:
<https://github.com/HamPUG/meetings/tree/master/2018/2018-08-13/ldo-creating-api-bindings-using-ctypes>

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: Mon, 11 Nov 2024 21:24 UTC
References: 1 2 3 4 5 6 7 8
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: Mon, 11 Nov 2024 21:24:14 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <vgtslt$16754$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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 11 Nov 2024 22:24:14 +0100 (CET)
Injection-Info: dont-email.me; posting-host="13b7eac62ff6457352a541d5a235d1e2";
logging-data="1252516"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Z6mj1+G0aAZKlcTMshNqF"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:+T0OEEQ/JUEHYCnj9BGN5I8QhAA=
View all headers

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.

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

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: 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: 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.

Pages:1234567

rocksolid light 0.9.8
clearnet tor