Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

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


devel / comp.unix.shell / Command Languages Versus Programming Languages

SubjectAuthor
* Command Languages Versus Programming LanguagesLawrence D'Oliveiro
+- Re: Command Languages Versus Programming Languagescandycanearter07
+* 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 LanguagesJanis Papanagnou
|| |`* Re: Command Languages Versus Programming LanguagesKeith Thompson
|| | `- Re: Command Languages Versus Programming LanguagesJanis Papanagnou
|| +* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
|| |+* Re: Command Languages Versus Programming LanguagesKeith Thompson
|| ||`* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
|| || +- Re: Command Languages Versus Programming LanguagesKeith Thompson
|| || `- Re: Command Languages Versus Programming LanguagesScott Lurndal
|| |`* Re: Command Languages Versus Programming LanguagesJanis Papanagnou
|| | `- Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
|| +* Re: Command Languages Versus Programming LanguagesKeith Thompson
|| |`* Re: Command Languages Versus Programming LanguagesJanis Papanagnou
|| | `- Re: Command Languages Versus Programming LanguagesKeith Thompson
|| `- Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
|`* Re: Command Languages Versus Programming LanguagesStefan Ram
| `* Re: Command Languages Versus Programming LanguagesJanis Papanagnou
|  `- Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
+* Re: Command Languages Versus Programming LanguagesMuttley
|+- Re: Command Languages Versus Programming LanguagesJosef Möllers
|+* Re: Command Languages Versus Programming LanguagesRichard Kettlewell
||`* Re: Command Languages Versus Programming LanguagesMuttley
|| `* Re: Command Languages Versus Programming LanguagesKaz Kylheku
||  `* Re: Command Languages Versus Programming LanguagesMuttley
||   `* Re: Command Languages Versus Programming LanguagesKaz Kylheku
||    `* Re: Command Languages Versus Programming LanguagesMuttley
||     +- Re: Command Languages Versus Programming LanguagesJanis Papanagnou
||     +* Re: Command Languages Versus Programming LanguagesKaz Kylheku
||     |`- Re: Command Languages Versus Programming LanguagesMuttley
||     `- Re: Command Languages Versus Programming LanguagesScott Lurndal
|`* Re: Command Languages Versus Programming LanguagesJohn Ames
| +* Re: Command Languages Versus Programming LanguagesMuttley
| |+- Re: Command Languages Versus Programming LanguagesJohn Ames
| |+* Re: Command Languages Versus Programming LanguagesKaz Kylheku
| ||`* Re: Command Languages Versus Programming LanguagesMuttley
| || +* Re: Command Languages Versus Programming LanguagesKaz Kylheku
| || |+* Re: Command Languages Versus Programming LanguagesDavid W. Hodgins
| || ||+* Re: Command Languages Versus Programming LanguagesJohanne Fairchild
| || |||`- Re: Command Languages Versus Programming LanguagesDavid W. Hodgins
| || ||`- Re: Command Languages Versus Programming LanguagesJanis Papanagnou
| || |`* Re: Command Languages Versus Programming LanguagesMuttley
| || | `* Re: Command Languages Versus Programming LanguagesKaz Kylheku
| || |  `* Re: Command Languages Versus Programming LanguagesMuttley
| || |   +* Re: Command Languages Versus Programming LanguagesJohanne Fairchild
| || |   |`* Re: Command Languages Versus Programming LanguagesMuttley
| || |   | +- Re: Command Languages Versus Programming LanguagesKaz Kylheku
| || |   | `* Re: Command Languages Versus Programming LanguagesJohanne Fairchild
| || |   |  +* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
| || |   |  |+* Re: Command Languages Versus Programming LanguagesKeith Thompson
| || |   |  ||`- Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
| || |   |  |+* Re: Command Languages Versus Programming LanguagesJames Kuyper
| || |   |  ||`- Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
| || |   |  |`* Re: Command Languages Versus Programming LanguagesJohanne Fairchild
| || |   |  | +* Re: Command Languages Versus Programming LanguagesKenny McCormack
| || |   |  | |`* Re: Command Languages Versus Programming LanguagesScott Lurndal
| || |   |  | | +- Re: Command Languages Versus Programming LanguagesDmitry A. Kazakov
| || |   |  | | +* Too much? (Was: Command Languages Versus Programming Languages)Kenny McCormack
| || |   |  | | |+* Re: Too much? (Was: Command Languages Versus Programming Languages)Kaz Kylheku
| || |   |  | | ||`- Re: Too much? (Was: Command Languages Versus Programming Languages)Kenny McCormack
| || |   |  | | |`* Re: Too much? (Was: Command Languages Versus Programming Languages)David Brown
| || |   |  | | | +* Re: Too much? (Was: Command Languages Versus Programming Languages)James Kuyper
| || |   |  | | | |`- Football (Was: Too much? (Was: Command Languages Versus Programming Languages))Kenny McCormack
| || |   |  | | | `* Re: Too much? (Was: Command Languages Versus Programming Languages)Chris Elvidge
| || |   |  | | |  +- Re: Too much? (Was: Command Languages Versus Programming Languages)Muttley
| || |   |  | | |  +- Re: Too much? (Was: Command Languages Versus Programming Languages)David Brown
| || |   |  | | |  `- Re: Too much? (Was: Command Languages Versus Programming Languages)Mister Johnson
| || |   |  | | `- Re: Command Languages Versus Programming LanguagesJames Kuyper
| || |   |  | `* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
| || |   |  |  `- Re: Command Languages Versus Programming LanguagesJohanne Fairchild
| || |   |  `* Re: Command Languages Versus Programming LanguagesStefan Ram
| || |   |   +* Re: Command Languages Versus Programming LanguagesStefan Ram
| || |   |   |+* Re: Command Languages Versus Programming LanguagesStefan Ram
| || |   |   ||`* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
| || |   |   || `* Re: Command Languages Versus Programming LanguagesDavid Brown
| || |   |   ||  +- Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
| || |   |   ||  +- Re: Command Languages Versus Programming LanguagesJohn Ames
| || |   |   ||  `* Re: Command Languages Versus Programming LanguagesKeith Thompson
| || |   |   ||   +* Re: Command Languages Versus Programming LanguagesRichard Kettlewell
| || |   |   ||   |+- Re: Command Languages Versus Programming LanguagesMuttley
| || |   |   ||   |`* Re: Command Languages Versus Programming LanguagesStefan Ram
| || |   |   ||   | `* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
| || |   |   ||   |  +* Re: Command Languages Versus Programming LanguagesMuttley
| || |   |   ||   |  |+* Re: Command Languages Versus Programming Languagescandycanearter07
| || |   |   ||   |  ||`* Re: Command Languages Versus Programming LanguagesMuttley
| || |   |   ||   |  || `- Re: Command Languages Versus Programming Languagescandycanearter07
| || |   |   ||   |  |`* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
| || |   |   ||   |  | `* Re: Command Languages Versus Programming LanguagesAlan Bawden
| || |   |   ||   |  |  +* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
| || |   |   ||   |  |  |`* Re: Command Languages Versus Programming LanguagesJohn Ames
| || |   |   ||   |  |  | `* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
| || |   |   ||   |  |  |  +* Re: Command Languages Versus Programming LanguagesJohn Ames
| || |   |   ||   |  |  |  |`* Re: Command Languages Versus Programming LanguagesRichard Kettlewell
| || |   |   ||   |  |  |  | +* Re: Command Languages Versus Programming LanguagesJanis Papanagnou
| || |   |   ||   |  |  |  | |`- Re: Command Languages Versus Programming LanguagesRichard Kettlewell
| || |   |   ||   |  |  |  | `* Re: Command Languages Versus Programming LanguagesDavid Brown
| || |   |   ||   |  |  |  |  `* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
| || |   |   ||   |  |  |  |   `* Re: Command Languages Versus Programming LanguagesDavid Brown
| || |   |   ||   |  |  |  `- Re: Command Languages Versus Programming LanguagesKaz Kylheku
| || |   |   ||   |  |  +* Re: Command Languages Versus Programming LanguagesKaz Kylheku
| || |   |   ||   |  |  +- Re: Command Languages Versus Programming Languagescandycanearter07
| || |   |   ||   |  |  `* Re: Command Languages Versus Programming LanguagesMuttley
| || |   |   ||   |  `* Re: Command Languages Versus Programming LanguagesJanis Papanagnou
| || |   |   ||   `* Re: Command Languages Versus Programming LanguagesDavid Brown
| || |   |   |`- Re: Command Languages Versus Programming LanguagesKaz Kylheku
| || |   |   `- Re: Command Languages Versus Programming LanguagesKaz Kylheku
| || |   `- Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
| || `- Re: Command Languages Versus Programming LanguagesAndreas Eder
| |+- Re: Command Languages Versus Programming LanguagesChristian Weisgerber
| |`* Re: Command Languages Versus Programming LanguagesDavid Brown
| `- Re: Command Languages Versus Programming LanguagesKaz Kylheku
+* Re: Command Languages Versus Programming LanguagesJohanne Fairchild
+* Re: Command Languages Versus Programming LanguagesDavid Brown
`* Re: Command Languages Versus Programming LanguagesDmitry A. Kazakov

Pages:12345678910111213
Re: Command Languages Versus Programming Languages

<uu8oq1$udf8$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=7032&group=comp.unix.shell#7032

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.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: Sat, 30 Mar 2024 10:16:33 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <uu8oq1$udf8$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<wwv34s92rn0.fsf@LkoBDZeT.terraraq.uk> <uu6akq$9dc6$1@dont-email.me>
<20240329095607.314@kylheku.com> <uu6t4v$dob8$1@dont-email.me>
<20240329102026.442@kylheku.com>
Injection-Date: Sat, 30 Mar 2024 10:16:33 +0100 (CET)
Injection-Info: dont-email.me; posting-host="f8dd17b7a96c4cae0acd6ae19dda985f";
logging-data="996840"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/BSd9nymIEU7hL3OxnO172"
Cancel-Lock: sha1:c+It6Q2fMu+cfQwpedtTs1qXlug=
 by: Muttley@dastardlyhq.com - Sat, 30 Mar 2024 10:16 UTC

On Fri, 29 Mar 2024 17:25:18 -0000 (UTC)
Kaz Kylheku <643-408-1753@kylheku.com> wrote:
>On 2024-03-29, Muttley@dastardlyhq.com <Muttley@dastardlyhq.com> wrote:
>>>Scripting is an activity, a use case, not a language.
>>
>> So if I write a program to for example process some files in a directory by
>> your argument its a script whether I write it in shell, python, C++ or
>> assembler.
>
>I also wrote: "Scripting refers to executing commands which are so high
>level that they are entire applications or functional blocks within an
>application."

So if I write:

int main()
{ system("ls | wc -l");
return 0;
}

Thats a script? No? What if I use popen() or execve() then? Where do you
draw the line?

>You're just being deliberately obtuse, not to mention snippy with the
>scissors.

I'm not being obtuse. There is no hard dividing line between scripts and
programs - as I said, its shades of grey.

Re: Command Languages Versus Programming Languages

<uu8p02$uebm$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=7033&group=comp.unix.shell#7033

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.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: Sat, 30 Mar 2024 10:19:46 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <uu8p02$uebm$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@dont-email.me>
<20240329101248.556@kylheku.com> <uu6t9h$dq4d$1@dont-email.me>
<20240329104716.777@kylheku.com>
Injection-Date: Sat, 30 Mar 2024 10:19:46 +0100 (CET)
Injection-Info: dont-email.me; posting-host="f8dd17b7a96c4cae0acd6ae19dda985f";
logging-data="997750"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ZxStaO7B7D82YxHALPELQ"
Cancel-Lock: sha1:Kym6spMPXbGu10Ijh9d2/OqP+Qc=
 by: Muttley@dastardlyhq.com - Sat, 30 Mar 2024 10:19 UTC

On Fri, 29 Mar 2024 17:58:41 -0000 (UTC)
Kaz Kylheku <643-408-1753@kylheku.com> wrote:
>On 2024-03-29, Muttley@dastardlyhq.com <Muttley@dastardlyhq.com> wrote:
>> Were the mucky bits actually written in Lisp or was Lisp simply calling some
>> routines written in assembler?
>
>Sorry, could you demarcate where exactly the goalposts are? Which mucky
>bits?

Oh I dunno, the parts that walk a kernel memory structure for example.

>In kernels written in C, there are mucky bits in assembler, like
>entry and exit into an trap/interrupt handler. You usually can't save

Sure, but far less that there would be in a higher level language.

Re: Command Languages Versus Programming Languages

<uu8pgj$ui8u$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=7034&group=comp.unix.shell#7034

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.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: Sat, 30 Mar 2024 11:28:34 +0100
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <uu8pgj$ui8u$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<programming-20240329210532@ram.dialup.fu-berlin.de>
<877chkindf.fsf@tudado.org>
<scripting-20240330084331@ram.dialup.fu-berlin.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 30 Mar 2024 10:28:35 +0100 (CET)
Injection-Info: dont-email.me; posting-host="9f251e9298e3611245e862f5e59fa23a";
logging-data="1001758"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/tICwAiNlIZTMtCHzTOJN/"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:IJ1vlYnuqaQ3jQ3rbqDpJXd5ceo=
In-Reply-To: <scripting-20240330084331@ram.dialup.fu-berlin.de>
X-Enigmail-Draft-Status: N1110
 by: Janis Papanagnou - Sat, 30 Mar 2024 10:28 UTC

On 30.03.2024 08:47, Stefan Ram wrote:
>
> But look at Pascal, Java, or Python. They are usually compiled
> into an intermediate code (called "p-code" in the case of
> Pascal) which is then interpreted (the interpreter is called
> "JVM" in the case of Java). Yet, we think of Pascal and Java
> as programming languages and of Python as a scripting language.

I never used an interpreted Pascal, nor one that produced p-code.
(As far as memory serves it was the UCSD Pascal dialect that
decided to use intermediate code to be interpreted.) My Pascal
programs have always been compiled.

And there were BASIC compilers on mainframes before the BASIC
interpreters on PCs became popular and widespread.

It's _the same_ language (modulo dialects), and languages are
usually defined by their grammar and semantics and not whether
it is interpreted/compiled or how it is run (VM or else).

I think it's obvious that interpretation vs. compilation or any
intermediate interpreted p-code is not an appropriate criterion
to declare something as a "scripting" language. You can't tell
whether a language, Pascal, BASIC, or any other language, is a
"scripting" language by that criterion. It's also generally a
fuzzy term; literature speaks vaguely about "typical" criteria
but cannot pin them down. - And that term isn't even helpful in
any way! - So why use it at all or religiously dispute about it.

Janis

>
> But this is actually an implementation detail: Java also can
> be compiled into machine code.
>
> [...]

Re: Command Languages Versus Programming Languages

<uu8puc$ultt$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=7035&group=comp.unix.shell#7035

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.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: Sat, 30 Mar 2024 11:35:55 +0100
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <uu8puc$ultt$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<wwv34s92rn0.fsf@LkoBDZeT.terraraq.uk> <uu6akq$9dc6$1@dont-email.me>
<20240329095607.314@kylheku.com> <uu6t4v$dob8$1@dont-email.me>
<20240329102026.442@kylheku.com> <uu8oq1$udf8$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 30 Mar 2024 10:35:56 +0100 (CET)
Injection-Info: dont-email.me; posting-host="9f251e9298e3611245e862f5e59fa23a";
logging-data="1005501"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18bwTu2upM80Qfe2T10+m1N"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:4OkACVfIFVy1Cqvhk7ObOKFvE8M=
In-Reply-To: <uu8oq1$udf8$1@dont-email.me>
 by: Janis Papanagnou - Sat, 30 Mar 2024 10:35 UTC

On 30.03.2024 11:16, Muttley@dastardlyhq.com wrote:
>
> I'm not being obtuse. There is no hard dividing line between scripts and
> programs - as I said, its shades of grey.

The terms "script" and "scripting languages" are very fuzzy and
just trying to be descriptive, but are effectively meaningless,
the terms don't serve any practical purpose (in my book).

Janis

Re: Command Languages Versus Programming Languages

<uu8tv5$vk2g$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=7036&group=comp.unix.shell#7036

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mailbox@dmitry-kazakov.de (Dmitry A. Kazakov)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Sat, 30 Mar 2024 12:44:37 +0100
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <uu8tv5$vk2g$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 30 Mar 2024 11:44:37 +0100 (CET)
Injection-Info: dont-email.me; posting-host="a727377dea3619238eb5776757160b11";
logging-data="1036368"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/qUDqpsjrxR98Z9PXGZIE2r9mremofUWM="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:q1UycZ3a+3nH7Iy1VnUFwXSWy4M=
Content-Language: en-US
In-Reply-To: <uu54la$3su5b$6@dont-email.me>
 by: Dmitry A. Kazakov - Sat, 30 Mar 2024 11:44 UTC

On 2024-03-29 02:14, Lawrence D'Oliveiro wrote:
> At one time, we distinguished between “scripting” languages and
> “programming” languages. To begin with, the “scripting” languages were
> somehow more limited in functionality than full-fledged “programming”
> languages. Or they were slower, because they were interpreted.
[...]

The key difference is that a program in a scripting language need not to
be complete or known in order to be executed.

The limitations and ugliness of scripting languages is determined by
this requirement, but also easiness of use.

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

Re: Command Languages Versus Programming Languages

<slrnv0g5ck.13mp.naddy@lorvorc.mips.inka.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=7037&group=comp.unix.shell#7037

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!inka.de!mips.inka.de!.POSTED.localhost!not-for-mail
From: naddy@mips.inka.de (Christian Weisgerber)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Sat, 30 Mar 2024 13:37:24 -0000 (UTC)
Message-ID: <slrnv0g5ck.13mp.naddy@lorvorc.mips.inka.de>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<programming-20240329210532@ram.dialup.fu-berlin.de>
<877chkindf.fsf@tudado.org>
<scripting-20240330084331@ram.dialup.fu-berlin.de>
Injection-Date: Sat, 30 Mar 2024 13:37:24 -0000 (UTC)
Injection-Info: lorvorc.mips.inka.de; posting-host="localhost:::1";
logging-data="36570"; mail-complaints-to="usenet@mips.inka.de"
User-Agent: slrn/1.0.3 (FreeBSD)
 by: Christian Weisgerber - Sat, 30 Mar 2024 13:37 UTC

On 2024-03-30, Stefan Ram <ram@zedat.fu-berlin.de> wrote:

> But look at Pascal, Java, or Python. They are usually compiled
> into an intermediate code (called "p-code" in the case of
> Pascal) which is then interpreted

Pascal is usually compiled to machine code. UCSD Pascal with its
intermediate p-code was an atypical case.

--
Christian "naddy" Weisgerber naddy@mips.inka.de

Re: Command Languages Versus Programming Languages

<20240330110335.775@kylheku.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=7038&group=comp.unix.shell#7038

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 643-408-1753@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Sat, 30 Mar 2024 18:10:36 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 56
Message-ID: <20240330110335.775@kylheku.com>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<wwv34s92rn0.fsf@LkoBDZeT.terraraq.uk> <uu6akq$9dc6$1@dont-email.me>
<20240329095607.314@kylheku.com> <uu6t4v$dob8$1@dont-email.me>
<20240329102026.442@kylheku.com> <uu8oq1$udf8$1@dont-email.me>
Injection-Date: Sat, 30 Mar 2024 18:10:36 +0100 (CET)
Injection-Info: dont-email.me; posting-host="59a90be9cb8ca6b8cdebb54e344432f2";
logging-data="1206970"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Cx6b2U1u1ZDWLtQr6CoXd4U0M2J9xIXY="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:68+mcudMq1UA0B4C9+1Rt2Je+1E=
 by: Kaz Kylheku - Sat, 30 Mar 2024 18:10 UTC

On 2024-03-30, Muttley@dastardlyhq.com <Muttley@dastardlyhq.com> wrote:
> On Fri, 29 Mar 2024 17:25:18 -0000 (UTC)
> Kaz Kylheku <643-408-1753@kylheku.com> wrote:
>>On 2024-03-29, Muttley@dastardlyhq.com <Muttley@dastardlyhq.com> wrote:
>>>>Scripting is an activity, a use case, not a language.
>>>
>>> So if I write a program to for example process some files in a directory by
>>> your argument its a script whether I write it in shell, python, C++ or
>>> assembler.
>>
>>I also wrote: "Scripting refers to executing commands which are so high
>>level that they are entire applications or functional blocks within an
>>application."
>
> So if I write:
>
> int main()
> {
> system("ls | wc -l");
> return 0;
> }
>
> Thats a script?

The "ls | wc -l" part is a script, passed off for execution to a
language that mainly supports scripting.

Note the non-scripting features here like "int main",
which doesn't /do/ anything, and typically the need to compile
and link this in order to run it.

system() itself also isn't quite "command which is so high level that
it's an inter application or functional block within an application";
it's a shim whose argument might be such a command.

> No? What if I use popen() or execve() then? Where do you
> draw the line?

If you use popen and execve, you're using more systems programming
functional blocks that are not scripting commands.

>>You're just being deliberately obtuse, not to mention snippy with the
>>scissors.
>
> I'm not being obtuse. There is no hard dividing line between scripts and

Right now you're doubling down on obtusity, by my estimate.

> programs - as I said, its shades of grey.

Would you say, fifty shades?

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Re: Command Languages Versus Programming Languages

<uu9lr5$150fp$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=7039&group=comp.unix.shell#7039

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.brown@hesbynett.no (David Brown)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Sat, 30 Mar 2024 19:32:05 +0100
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <uu9lr5$150fp$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 30 Mar 2024 18:32:06 +0100 (CET)
Injection-Info: dont-email.me; posting-host="7219c98a14e36cd8922b7f94f3863fc2";
logging-data="1212921"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX199Ta9t5yuqR+vrYWvzzJ9QZRof+xZXiNI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:OTMriOy6D+Wce9+m2mpLVi/XgBQ=
Content-Language: en-GB
In-Reply-To: <uu6om5$cmv8$1@dont-email.me>
 by: David Brown - Sat, 30 Mar 2024 18:32 UTC

On 29/03/2024 17:02, Muttley@dastardlyhq.com wrote:
> On Fri, 29 Mar 2024 08:44:54 -0700
> John Ames <commodorejohn@gmail.com> wrote:
>> On Fri, 29 Mar 2024 09:55:33 -0000 (UTC)
>> Muttley@dastardlyhq.com wrote:
>>
>>> My rule of thimb is that a scripting language is one whereby the
>>> source code can be run immediately by the interpreter, eg perl,
>>> python, regardless of what happens internally. A full fledged
>>> programming language is one that requires a compile/debug/link step
>>> first with the compiler and runtime (if required) being seperate. eg
>>> Java, C
>>
>> By *that* logic, even Lisp and Forth don't count as "full-fledged
>> programming languages" o_O Johanne's definition of a "scripting
>
> As a counter point, good luck writing a device driver in lisp. Forth maybe,
> no idea.
>

"Open Firmware" is an attempt to have device drivers for PCI cards (and
other hardware) included in flash on the cards, in a processor and
platform independent way. It uses Forth - so the device drivers are
provided as Forth source code or byte-compiled Forth, and can then be
executed with a simple Forth VM on the target system. They can also be
JIT compiled for the target.

<https://en.wikipedia.org/wiki/Open_Firmware>

It didn't really take off very well, but certainly people have written
device drivers in Forth.

Re: Command Languages Versus Programming Languages

<20240330112105.553@kylheku.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=7040&group=comp.unix.shell#7040

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 643-408-1753@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Sat, 30 Mar 2024 18:46:50 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 74
Message-ID: <20240330112105.553@kylheku.com>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@dont-email.me>
<20240329101248.556@kylheku.com> <uu6t9h$dq4d$1@dont-email.me>
<20240329104716.777@kylheku.com> <uu8p02$uebm$1@dont-email.me>
Injection-Date: Sat, 30 Mar 2024 18:46:50 +0100 (CET)
Injection-Info: dont-email.me; posting-host="59a90be9cb8ca6b8cdebb54e344432f2";
logging-data="1230317"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/bw361GgctdzKMfy7l+/o2+zbY4Px5YZU="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:NpyvzI2/VzxHejc/kPmlde85RMI=
 by: Kaz Kylheku - Sat, 30 Mar 2024 18:46 UTC

On 2024-03-30, Muttley@dastardlyhq.com <Muttley@dastardlyhq.com> wrote:
> On Fri, 29 Mar 2024 17:58:41 -0000 (UTC)
> Kaz Kylheku <643-408-1753@kylheku.com> wrote:
>>On 2024-03-29, Muttley@dastardlyhq.com <Muttley@dastardlyhq.com> wrote:
>>> Were the mucky bits actually written in Lisp or was Lisp simply calling some
>>> routines written in assembler?
>>
>>Sorry, could you demarcate where exactly the goalposts are? Which mucky
>>bits?
>
> Oh I dunno, the parts that walk a kernel memory structure for example.

Well, since the kernel is written in Lisp, of course Lisp walks its own
data structures.

In a kernel, there often occur externally imposed memory structures,
like for instance lists of entries in a DMA buffer ring above an
ethernet device. Or banks of registers.

The kernel-writing Lisp dialect would have provisions for dealing
with binary structures like that.

The following example is not from a Lisp operating system, or a Lisp
that is known for operating system work. It's from my own application.

It shows how in CCL (Clozure Common Lisp) (note: note the Z, not Clojure
with a J) we can obtain a linked list C data structure and walk it,
using some CCL-specific concepts; CCL provides #> notations for C
types, and offsets into C structures and such.

The GetAdaptersInfo Win32 API is called, filling the list into a
stack-allocated buffer, with the help of CCL's %stack-block operator.
We get a list of adapters, each of which is a list consisting of
a list of the mac bytes, IP address list, name and description.

(The information is then encrypted, hashed and tied to a software license,
along with other bits of system info.)

(defun get-network-interface-list ()
(open-shared-library "iphlpapi.dll")
(let ((blk-size 65536) ;; crude!
(get-adapters-info (foreign-symbol-address "GetAdaptersInfo")))
(if get-adapters-info
(%stack-block ((blk blk-size))
(rlet ((len-inout #>ULONG blk-size))
(if (zerop (ff-call get-adapters-info :address blk
:address len-inout
#>DWORD))
(loop for ptr = blk then (pref ptr #>IP_ADAPTER_INFO.Next)
until (%null-ptr-p ptr)
collecting
(let ((alen (pref ptr #>IP_ADAPTER_INFO.AddressLength))
(addr (pref ptr #>IP_ADAPTER_INFO.Address))
(aname (pref ptr #>IP_ADAPTER_INFO.AdapterName))
(descr (pref ptr #>IP_ADAPTER_INFO.Description))
(iplist (pref ptr #>IP_ADAPTER_INFO.IpAddressList))
(type (pref ptr #>IP_ADAPTER_INFO.Type)))
(list type
(loop for i below alen
collecting (%get-unsigned-byte addr i)
into mac-bytes
finally
(return (mac-bytes-to-string mac-bytes)))
(get-ip-address-list iplist)
(%get-cstring aname)
(%get-cstring descr))))))))))

CCL is compiled; this just turns into a machine language function
poking at stack memory.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Re: Command Languages Versus Programming Languages

<aHZNN.587348$PuZ9.521405@fx11.iad>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=7041&group=comp.unix.shell#7041

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!newsfeed.bofh.team!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!npeer.as286.net!npeer-ng0.as286.net!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx11.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Command Languages Versus Programming Languages
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org> <programming-20240329210532@ram.dialup.fu-berlin.de> <877chkindf.fsf@tudado.org> <scripting-20240330084331@ram.dialup.fu-berlin.de>
Lines: 29
Message-ID: <aHZNN.587348$PuZ9.521405@fx11.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Sat, 30 Mar 2024 19:25:58 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Sat, 30 Mar 2024 19:25:58 GMT
X-Received-Bytes: 2307
 by: Scott Lurndal - Sat, 30 Mar 2024 19:25 UTC

ram@zedat.fu-berlin.de (Stefan Ram) writes:
>Johanne Fairchild <jfairchild@tudado.org> wrote or quoted:
>>ram@zedat.fu-berlin.de (Stefan Ram) writes:
>>>Johanne Fairchild <jfairchild@tudado.org> wrote or quoted:
>>>>A scripting language is a programming language made for a hypothetical
>>>>machine, not too different from a programming language made for a real
>>>>machine, one made of hardware.
>>>C is clearly a programming language, yet its specification
>>>says, "The semantic descriptions in this document describe
>>>the behavior of an abstract machine". And you cannot buy
>>> this abstract C machine as a piece of hardware anywhere!
>>Of course. :) But we both know what that means. It's abstract because
>>there are so many real machines for which this abstract one is an
>>abstraction of. And the real ones are the target of the language.
>
> If you want to see it this way ...
>
> But look at Pascal, Java, or Python. They are usually compiled
> into an intermediate code (called "p-code" in the case of
> Pascal) which is then interpreted (the interpreter is called
> "JVM" in the case of Java). Yet, we think of Pascal and Java
> as programming languages and of Python as a scripting language.

VAX Pascal (1980) was compiled directly to VAX machine code, as was
the Pascal compiler I wrote in the graduate compiler class.

UCSD Pascal used p-code, and IIRC Borland picked up
on that.

Re: Command Languages Versus Programming Languages

<dIZNN.587349$PuZ9.406216@fx11.iad>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=7042&group=comp.unix.shell#7042

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!nntp.comgw.net!peer01.ams4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx11.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Command Languages Versus Programming Languages
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me> <wwv34s92rn0.fsf@LkoBDZeT.terraraq.uk> <uu6akq$9dc6$1@dont-email.me> <20240329095607.314@kylheku.com> <uu6t4v$dob8$1@dont-email.me> <20240329102026.442@kylheku.com> <uu8oq1$udf8$1@dont-email.me>
Lines: 28
Message-ID: <dIZNN.587349$PuZ9.406216@fx11.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Sat, 30 Mar 2024 19:27:05 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Sat, 30 Mar 2024 19:27:05 GMT
X-Received-Bytes: 1813
 by: Scott Lurndal - Sat, 30 Mar 2024 19:27 UTC

Muttley@dastardlyhq.com writes:
>On Fri, 29 Mar 2024 17:25:18 -0000 (UTC)
>Kaz Kylheku <643-408-1753@kylheku.com> wrote:
>>On 2024-03-29, Muttley@dastardlyhq.com <Muttley@dastardlyhq.com> wrote:
>>>>Scripting is an activity, a use case, not a language.
>>>
>>> So if I write a program to for example process some files in a directory by
>>> your argument its a script whether I write it in shell, python, C++ or
>>> assembler.
>>
>>I also wrote: "Scripting refers to executing commands which are so high
>>level that they are entire applications or functional blocks within an
>>application."
>
>So if I write:
>
>int main()
>{
> system("ls | wc -l");
> return 0;
>}
>
>Thats a script? No? What if I use popen() or execve() then? Where do you
>draw the line?

Technically, only the 'ls | wc -l' is a script. One that is passed
to the default SHELL.

Re: Command Languages Versus Programming Languages

<20240330131838.723@kylheku.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=7043&group=comp.unix.shell#7043

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 643-408-1753@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Sat, 30 Mar 2024 20:19:25 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <20240330131838.723@kylheku.com>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@dont-email.me>
<uu9lr5$150fp$1@dont-email.me>
Injection-Date: Sat, 30 Mar 2024 20:19:26 +0100 (CET)
Injection-Info: dont-email.me; posting-host="59a90be9cb8ca6b8cdebb54e344432f2";
logging-data="1272352"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX185sPiWUCJAAT9t/rl6DUM0X/r9+2yRy+I="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:YrRyV0cLKZC9xBzO0/1JYhI0xko=
 by: Kaz Kylheku - Sat, 30 Mar 2024 20:19 UTC

On 2024-03-30, David Brown <david.brown@hesbynett.no> wrote:
><https://en.wikipedia.org/wiki/Open_Firmware>
>
> It didn't really take off very well, but certainly people have written
> device drivers in Forth.

Unfortunately, the device tree crap from Open Firmware took off.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Re: Command Languages Versus Programming Languages

<87bk6vquio.fsf@nosuchdomain.example.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=7044&group=comp.unix.shell#7044

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S.Thompson+u@gmail.com (Keith Thompson)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Sat, 30 Mar 2024 14:28:31 -0700
Organization: None to speak of
Lines: 33
Message-ID: <87bk6vquio.fsf@nosuchdomain.example.com>
References: <uu54la$3su5b$6@dont-email.me> <uu8tv5$vk2g$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 30 Mar 2024 21:28:36 +0100 (CET)
Injection-Info: dont-email.me; posting-host="55d3bec1253354bc3d638b21ffa9fc4c";
logging-data="1306049"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/wmmR2/YlvnmHam/MO5Fpr"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:W8vTMCckEvR7Eci2KB8D+y2kbPI=
sha1:+jwSjX0ujXMqFZGmFnkv+qPGWxM=
 by: Keith Thompson - Sat, 30 Mar 2024 21:28 UTC

"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:
> On 2024-03-29 02:14, Lawrence D'Oliveiro wrote:
>> At one time, we distinguished between “scripting” languages and
>> “programming” languages. To begin with, the “scripting” languages were
>> somehow more limited in functionality than full-fledged “programming”
>> languages. Or they were slower, because they were interpreted.
> [...]
>
> The key difference is that a program in a scripting language need not
> to be complete or known in order to be executed.
>
> The limitations and ugliness of scripting languages is determined by
> this requirement, but also easiness of use.

Perl, Python, and Lua are all considered scripting languages, and for
all of them a syntax error at the end of a script will prevent any of it
from being executed. The distinction is that they're not optimized for
interactive use, as shell languages are (though they all can be used
interactively).

If you want to say that Python isn't a scripting language because of
that, I won't argue, but others will.

There are a lot of dividing lines (compiled to machine code vs. compiled
to byte code (on each execution or just once) vs. interpreted (perhaps
with JIT), interactive vs. batch, strong vs. weak typing, static
vs. dynamic typing, etc.). None of them are rigorously defined, and
none of them particularly need to be.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */

Re: Command Languages Versus Programming Languages

<slrnv0h24r.1ctg.naddy@lorvorc.mips.inka.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=7045&group=comp.unix.shell#7045

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!inka.de!mips.inka.de!.POSTED.localhost!not-for-mail
From: naddy@mips.inka.de (Christian Weisgerber)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Sat, 30 Mar 2024 21:48:11 -0000 (UTC)
Message-ID: <slrnv0h24r.1ctg.naddy@lorvorc.mips.inka.de>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<programming-20240329210532@ram.dialup.fu-berlin.de>
<877chkindf.fsf@tudado.org>
<scripting-20240330084331@ram.dialup.fu-berlin.de>
<aHZNN.587348$PuZ9.521405@fx11.iad>
Injection-Date: Sat, 30 Mar 2024 21:48:11 -0000 (UTC)
Injection-Info: lorvorc.mips.inka.de; posting-host="localhost:::1";
logging-data="46001"; mail-complaints-to="usenet@mips.inka.de"
User-Agent: slrn/1.0.3 (FreeBSD)
 by: Christian Weisgerber - Sat, 30 Mar 2024 21:48 UTC

On 2024-03-30, Scott Lurndal <scott@slp53.sl.home> wrote:

> VAX Pascal (1980) was compiled directly to VAX machine code, as was
> the Pascal compiler I wrote in the graduate compiler class.
>
> UCSD Pascal used p-code, and IIRC Borland picked up
> on that.

Borland's Turbo Pascal compiled to machine code.

--
Christian "naddy" Weisgerber naddy@mips.inka.de

Re: Command Languages Versus Programming Languages

<uucfoq$1vpli$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=7046&group=comp.unix.shell#7046

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mailbox@dmitry-kazakov.de (Dmitry A. Kazakov)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Sun, 31 Mar 2024 22:06:50 +0200
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <uucfoq$1vpli$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu8tv5$vk2g$1@dont-email.me>
<87bk6vquio.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 31 Mar 2024 20:06:50 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="e827ffd424e5da186442472d167a12da";
logging-data="2090674"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19GPIe1FLYB7XlSw3O9dqy4waDipHe2wmU="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:O1xCrpTJzODvkYe5w13bJzzBdzY=
Content-Language: en-US
In-Reply-To: <87bk6vquio.fsf@nosuchdomain.example.com>
 by: Dmitry A. Kazakov - Sun, 31 Mar 2024 20:06 UTC

On 2024-03-30 22:28, Keith Thompson wrote:
> "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:
>> On 2024-03-29 02:14, Lawrence D'Oliveiro wrote:
>>> At one time, we distinguished between “scripting” languages and
>>> “programming” languages. To begin with, the “scripting” languages were
>>> somehow more limited in functionality than full-fledged “programming”
>>> languages. Or they were slower, because they were interpreted.
>> [...]
>>
>> The key difference is that a program in a scripting language need not
>> to be complete or known in order to be executed.
>>
>> The limitations and ugliness of scripting languages is determined by
>> this requirement, but also easiness of use.
>
> Perl, Python, and Lua are all considered scripting languages, and for
> all of them a syntax error at the end of a script will prevent any of it
> from being executed. The distinction is that they're not optimized for
> interactive use, as shell languages are (though they all can be used
> interactively).

I was not talking about [syntactically] incorrect incomplete programs.
In a scripting language an incomplete program can be correct and
executable. E.g. I type in bash:

ls

This is only a part of my program. Because then I inspect the output and
type:

rm foo.bar

After that I turn off the computer. My program is complete now.

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

Re: Command Languages Versus Programming Languages

<uuci50$20eve$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=7047&group=comp.unix.shell#7047

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.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: Sun, 31 Mar 2024 20:47:29 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <uuci50$20eve$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu624j$792q$1@dont-email.me>
<uu7a2m$ghfn$4@dont-email.me> <uu7i13$im9b$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 31 Mar 2024 20:47:29 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="4435df457eba9d2c4c85c22366d3d89a";
logging-data="2112494"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19koUNnwzKIU0cqAtmOWNgi"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:XG4+uHbCL49rQMO2HAu7fvpJezc=
 by: Lawrence D'Oliv - Sun, 31 Mar 2024 20:47 UTC

On Sat, 30 Mar 2024 00:14:42 +0100, Janis Papanagnou wrote:

> So what is 'for i in a ; do ... ; done' then in your world?

ldo@theon:~> for i in a b c; do echo i; done
i
i
i

Like I said, in a shell language, you have the assumption that “everything
is literal text until indicated otherwise”.

Re: Command Languages Versus Programming Languages

<uudrcl$2cs2i$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=7048&group=comp.unix.shell#7048

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.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, 1 Apr 2024 08:31:17 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <uudrcl$2cs2i$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<wwv34s92rn0.fsf@LkoBDZeT.terraraq.uk> <uu6akq$9dc6$1@dont-email.me>
<20240329095607.314@kylheku.com> <uu6t4v$dob8$1@dont-email.me>
<20240329102026.442@kylheku.com> <uu8oq1$udf8$1@dont-email.me>
<20240330110335.775@kylheku.com>
Injection-Date: Mon, 01 Apr 2024 08:31:18 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="9637a353974343ad91e9a40c3e22173d";
logging-data="2519122"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX198tN8xkRALEddbe//oNBFy"
Cancel-Lock: sha1:DMAQFdFEoOSupSrWnez/UNxiy3A=
 by: Muttley@dastardlyhq.com - Mon, 1 Apr 2024 08:31 UTC

On Sat, 30 Mar 2024 18:10:36 -0000 (UTC)
Kaz Kylheku <643-408-1753@kylheku.com> wrote:
>On 2024-03-30, Muttley@dastardlyhq.com <Muttley@dastardlyhq.com> wrote:
>>>I also wrote: "Scripting refers to executing commands which are so high
>>>level that they are entire applications or functional blocks within an
>>>application."
>>
>> So if I write:
>>
>> int main()
>> {
>> system("ls | wc -l");
>> return 0;
>> }
>>
>> Thats a script?
>
>The "ls | wc -l" part is a script, passed off for execution to a
>language that mainly supports scripting.

So its not a script.

>Note the non-scripting features here like "int main",
>which doesn't /do/ anything, and typically the need to compile
>and link this in order to run it.

There may be plenty of surrounding code that does do something.

>> No? What if I use popen() or execve() then? Where do you
>> draw the line?
>
>If you use popen and execve, you're using more systems programming
>functional blocks that are not scripting commands.

They both call high level commands so is it scripting or programming?

>> I'm not being obtuse. There is no hard dividing line between scripts and
>
>Right now you're doubling down on obtusity, by my estimate.

Perhaps you don't understand what being obtuse actually means.

Re: Command Languages Versus Programming Languages

<uudrfg$2cskm$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=7049&group=comp.unix.shell#7049

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.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, 1 Apr 2024 08:32:48 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <uudrfg$2cskm$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@dont-email.me>
<20240329101248.556@kylheku.com> <uu6t9h$dq4d$1@dont-email.me>
<20240329104716.777@kylheku.com> <uu8p02$uebm$1@dont-email.me>
<20240330112105.553@kylheku.com>
Injection-Date: Mon, 01 Apr 2024 08:32:48 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="9637a353974343ad91e9a40c3e22173d";
logging-data="2519702"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX191QDblw6eFXJwkfoixesYI"
Cancel-Lock: sha1:3xS9wCt3Lhq0ErZW8hSvHX/riHA=
 by: Muttley@dastardlyhq.com - Mon, 1 Apr 2024 08:32 UTC

On Sat, 30 Mar 2024 18:46:50 -0000 (UTC)
Kaz Kylheku <643-408-1753@kylheku.com> wrote:
>(defun get-network-interface-list ()
> (open-shared-library "iphlpapi.dll")
> (let ((blk-size 65536) ;; crude!
> (get-adapters-info (foreign-symbol-address "GetAdaptersInfo")))
> (if get-adapters-info
> (%stack-block ((blk blk-size))
> (rlet ((len-inout #>ULONG blk-size))
> (if (zerop (ff-call get-adapters-info :address blk
> :address len-inout
> #>DWORD))
> (loop for ptr = blk then (pref ptr #>IP_ADAPTER_INFO.Next)
> until (%null-ptr-p ptr)
> collecting
> (let ((alen (pref ptr #>IP_ADAPTER_INFO.AddressLength))
> (addr (pref ptr #>IP_ADAPTER_INFO.Address))
> (aname (pref ptr #>IP_ADAPTER_INFO.AdapterName))
> (descr (pref ptr #>IP_ADAPTER_INFO.Description))
> (iplist (pref ptr #>IP_ADAPTER_INFO.IpAddressList))
>
> (type (pref ptr #>IP_ADAPTER_INFO.Type)))
> (list type
> (loop for i below alen
> collecting (%get-unsigned-byte addr i)
> into mac-bytes
> finally
> (return (mac-bytes-to-string mac-bytes)))
>
> (get-ip-address-list iplist)
> (%get-cstring aname)
> (%get-cstring descr))))))))))

Ugh. No wonder the language fell out of fashion. Looks like some kind of
hacked up Basic.

Re: Command Languages Versus Programming Languages

<87r0fp8lab.fsf@tudado.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=7050&group=comp.unix.shell#7050

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jfairchild@tudado.org (Johanne Fairchild)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Mon, 01 Apr 2024 06:49:48 -0300
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <87r0fp8lab.fsf@tudado.org>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@dont-email.me>
<20240329101248.556@kylheku.com> <uu6t9h$dq4d$1@dont-email.me>
<20240329104716.777@kylheku.com> <uu8p02$uebm$1@dont-email.me>
<20240330112105.553@kylheku.com> <uudrfg$2cskm$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Mon, 01 Apr 2024 09:49:52 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f12c9af20a7139ea1a19e1c363087776";
logging-data="2549644"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+8/iNQp09umVasqHzsQWpCSkSyvatQV8A="
Cancel-Lock: sha1:1Y3Kqf6Krwfa/FhI+Bw76FIsOPU=
sha1:JllaTosGiTda5jRjzmWfXRKHqZs=
 by: Johanne Fairchild - Mon, 1 Apr 2024 09:49 UTC

Muttley@dastardlyhq.com writes:

> On Sat, 30 Mar 2024 18:46:50 -0000 (UTC)
> Kaz Kylheku <643-408-1753@kylheku.com> wrote:
>>(defun get-network-interface-list ()
>> (open-shared-library "iphlpapi.dll")
>> (let ((blk-size 65536) ;; crude!
>> (get-adapters-info (foreign-symbol-address "GetAdaptersInfo")))
>> (if get-adapters-info
>> (%stack-block ((blk blk-size))
>> (rlet ((len-inout #>ULONG blk-size))
>> (if (zerop (ff-call get-adapters-info :address blk
>> :address len-inout
>> #>DWORD))
>> (loop for ptr = blk then (pref ptr #>IP_ADAPTER_INFO.Next)
>> until (%null-ptr-p ptr)
>> collecting
>> (let ((alen (pref ptr #>IP_ADAPTER_INFO.AddressLength))
>> (addr (pref ptr #>IP_ADAPTER_INFO.Address))
>> (aname (pref ptr #>IP_ADAPTER_INFO.AdapterName))
>> (descr (pref ptr #>IP_ADAPTER_INFO.Description))
>> (iplist (pref ptr #>IP_ADAPTER_INFO.IpAddressList))
>>
>> (type (pref ptr #>IP_ADAPTER_INFO.Type)))
>> (list type
>> (loop for i below alen
>> collecting (%get-unsigned-byte addr i)
>> into mac-bytes
>> finally
>> (return (mac-bytes-to-string mac-bytes)))
>>
>> (get-ip-address-list iplist)
>> (%get-cstring aname)
>> (%get-cstring descr))))))))))
>
> Ugh. No wonder the language fell out of fashion. Looks like some kind of
> hacked up Basic.

Fashion and intelligence have never been very good friends.

Re: Command Languages Versus Programming Languages

<types-20240401151149@ram.dialup.fu-berlin.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=7051&group=comp.unix.shell#7051

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: ram@zedat.fu-berlin.de (Stefan Ram)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: 1 Apr 2024 14:16:33 GMT
Organization: Stefan Ram
Lines: 24
Expires: 1 Feb 2025 11:59:58 GMT
Message-ID: <types-20240401151149@ram.dialup.fu-berlin.de>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de su0jAnwaLN7kVdzXVisnPAImmVD4YYO1waZebPAFWTIrwD
Cancel-Lock: sha1:wWZlvRimNPR7Ve6dl09rkIYDoDc= sha256:3cNDpmkC3ABdjAV4E85RKTv4d2DY5JJou5yWOu7hFeo=
X-Copyright: (C) Copyright 2024 Stefan Ram. All rights reserved.
Distribution through any means other than regular usenet
channels is forbidden. It is forbidden to publish this
article in the Web, to change URIs of this article into links,
and to transfer the body without this notice, but quotations
of parts in other Usenet posts are allowed.
X-No-Archive: Yes
Archive: no
X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some
services to mirror the article in the web. But the article may
be kept on a Usenet archive server with only NNTP access.
X-No-Html: yes
Content-Language: en-US
 by: Stefan Ram - Mon, 1 Apr 2024 14:16 UTC

Johanne Fairchild <jfairchild@tudado.org> wrote or quoted:
>A scripting language is a programming language made for a hypothetical
>machine, not too different from a programming language made for a real
>machine, one made of hardware.

I think of the type system:

In a non-scripting programming language, the types often are
based on hardware, like "16 bit integer", and typing is often
handled in a static and rather strict way. Higher types, like
strings whose size can change at run time, are often missing.

Scripting languages are often less strictly typed, some rely entirely
on strings which are interpreted as integers if necessary. Often
one has no control over the internal represention of data, so one
cannot access a library using the ABI or write a device driver in a
scripting language. Explicit type conversions are rarely required.

Also, resource handling:

Scripting languages handle the memory for you. In a scripting
language, you cannot call "malloc" to obtain the obligation to
free this piece of memory exactly once in the future. They are
garbage collected.

Re: Command Languages Versus Programming Languages

<uuehdj$2hshe$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=7052&group=comp.unix.shell#7052

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.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, 1 Apr 2024 14:47:15 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <uuehdj$2hshe$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@dont-email.me>
<20240329101248.556@kylheku.com> <uu6t9h$dq4d$1@dont-email.me>
<20240329104716.777@kylheku.com> <uu8p02$uebm$1@dont-email.me>
<20240330112105.553@kylheku.com> <uudrfg$2cskm$1@dont-email.me>
<87r0fp8lab.fsf@tudado.org>
Injection-Date: Mon, 01 Apr 2024 14:47:17 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="9637a353974343ad91e9a40c3e22173d";
logging-data="2683438"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Qz0SW9nZVBjlzKEZn/2NC"
Cancel-Lock: sha1:XwAt2VycON1avoymq2pu7idJNYQ=
 by: Muttley@dastardlyhq.com - Mon, 1 Apr 2024 14:47 UTC

On Mon, 01 Apr 2024 06:49:48 -0300
Johanne Fairchild <jfairchild@tudado.org> wrote:
>Muttley@dastardlyhq.com writes:
>
>> On Sat, 30 Mar 2024 18:46:50 -0000 (UTC)
>> Kaz Kylheku <643-408-1753@kylheku.com> wrote:
>>>(defun get-network-interface-list ()
>>> (open-shared-library "iphlpapi.dll")
>>> (let ((blk-size 65536) ;; crude!
>>> (get-adapters-info (foreign-symbol-address "GetAdaptersInfo")))
>>> (if get-adapters-info
>>> (%stack-block ((blk blk-size))
>>> (rlet ((len-inout #>ULONG blk-size))
>>> (if (zerop (ff-call get-adapters-info :address blk
>>> :address len-inout
>>> #>DWORD))
>>> (loop for ptr = blk then (pref ptr #>IP_ADAPTER_INFO.Next)
>>> until (%null-ptr-p ptr)
>>> collecting
>>> (let ((alen (pref ptr #>IP_ADAPTER_INFO.AddressLength))
>
>>> (addr (pref ptr #>IP_ADAPTER_INFO.Address))
>>> (aname (pref ptr #>IP_ADAPTER_INFO.AdapterName))
>>> (descr (pref ptr #>IP_ADAPTER_INFO.Description))
>>> (iplist (pref ptr
>#>IP_ADAPTER_INFO.IpAddressList))
>>>
>>> (type (pref ptr #>IP_ADAPTER_INFO.Type)))
>>> (list type
>>> (loop for i below alen
>>> collecting (%get-unsigned-byte addr i)
>>> into mac-bytes
>>> finally
>>> (return (mac-bytes-to-string
>mac-bytes)))
>>>
>>> (get-ip-address-list iplist)
>>> (%get-cstring aname)
>>> (%get-cstring descr))))))))))
>>
>> Ugh. No wonder the language fell out of fashion. Looks like some kind of
>> hacked up Basic.
>
>Fashion and intelligence have never been very good friends.

Readability of the flow of control matters. God knows whats going on with
all those nested statements.

Re: Command Languages Versus Programming Languages

<87r0fpdsnw.fsf@eder.anydns.info>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=7053&group=comp.unix.shell#7053

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Followup: poster
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: a_eder_muc@web.de (Andreas Eder)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Followup-To: poster
Date: Mon, 01 Apr 2024 17:11:31 +0200
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <87r0fpdsnw.fsf@eder.anydns.info>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@dont-email.me>
<20240329101248.556@kylheku.com> <uu6t9h$dq4d$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 01 Apr 2024 15:25:02 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a60460f898b5538b69c3e7fc2be17fae";
logging-data="2700745"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Jg+WTao7iiuCYwmBz3YHr"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:Ziy6X280vmhTajYskNAJUbV1Iks=
sha1:bVueS0s2NuFPKs2VLSHxMWHhkZY=
 by: Andreas Eder - Mon, 1 Apr 2024 15:11 UTC

On Fr 29 Mär 2024 at 17:20, Muttley@dastardlyhq.com wrote:

> On Fri, 29 Mar 2024 17:13:47 -0000 (UTC)
> Kaz Kylheku <643-408-1753@kylheku.com> wrote:
>>On 2024-03-29, Muttley@dastardlyhq.com <Muttley@dastardlyhq.com> wrote:
>>> On Fri, 29 Mar 2024 08:44:54 -0700
>>> John Ames <commodorejohn@gmail.com> wrote:
>>>>On Fri, 29 Mar 2024 09:55:33 -0000 (UTC)
>>>>Muttley@dastardlyhq.com wrote:
>>>>
>>>>> My rule of thimb is that a scripting language is one whereby the
>>>>> source code can be run immediately by the interpreter, eg perl,
>>>>> python, regardless of what happens internally. A full fledged
>>>>> programming language is one that requires a compile/debug/link step
>>>>> first with the compiler and runtime (if required) being seperate. eg
>>>>> Java, C
>>>>
>>>>By *that* logic, even Lisp and Forth don't count as "full-fledged
>>>>programming languages" o_O Johanne's definition of a "scripting
>>>
>>> As a counter point, good luck writing a device driver in lisp.
>>
>>The Lisp machines had operating systems and device drivers written in
>>Lisp, interrupt-driven and all. Where do you perceive the difficulty?
>
> Were the mucky bits actually written in Lisp or was Lisp simply calling some
> routines written in assembler? In the same sense that Python doesn't actually
> "do" AI, its way too slow, the AI but is done in libraries written in C++ that
> Python simply calls.

It was Lisp all the way down. Even the machine langauge was quite lispy
simply because the processor was a lisp chip.
Go read about it - there is lots of info about it on the net and if you
want, you can even run the lisp machines (several implementations) on an
emulator.

'Andreas
--
ceterum censeo redmondinem esse delendam

Re: Command Languages Versus Programming Languages

<20240401111552.00006ddc@gmail.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=7054&group=comp.unix.shell#7054

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: commodorejohn@gmail.com (John Ames)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Mon, 1 Apr 2024 11:15:52 -0700
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <20240401111552.00006ddc@gmail.com>
References: <uu54la$3su5b$6@dont-email.me>
<87edbtz43p.fsf@tudado.org>
<types-20240401151149@ram.dialup.fu-berlin.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 01 Apr 2024 18:15:55 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="6e54db6547ba0cd3cfb65d52cc115a0b";
logging-data="2740188"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19jwYNQ0/dJ2pKcPUevrJUZ9BYVqspbZ2M="
Cancel-Lock: sha1:VeZb9MLS83OW2vCwLr7VT4vVP4Y=
X-Newsreader: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-w64-mingw32)
 by: John Ames - Mon, 1 Apr 2024 18:15 UTC

On 1 Apr 2024 14:16:33 GMT
ram@zedat.fu-berlin.de (Stefan Ram) wrote:

> In a non-scripting programming language, the types often are
> based on hardware, like "16 bit integer", and typing is often
> handled in a static and rather strict way. Higher types, like
> strings whose size can change at run time, are often missing.

Notwithstanding the fuzziness granted by the use of "often" here, this
doesn't seem like a terribly accurate assessment. Lots of compiled/
"non-scripting" languages - *however* you define that - have dynamic
strings; even C++ provides that as part of the standard library
(admittedly, not as a basic language construct, but that's C for you -
*every* data structure is essentially pointers in a trenchcoat.) AFAIK
it's much rarer to *lack* that capability; C does, for aforementioned
reasons (although you can certainly roll your own,) O.G. Pascal did (as
a hideous misfeature,) probably a few other current systems languages...
but not many spring to mind.

It's also not terribly true that "non-scripting" languages are pre-
dominantly statically-typed. It's more common, certainly, but there are
still a number of compiled applications languages with some kind of
dynamic support. And while the division of number types into floating-
point and integer is very frequently the case, most language standards
don't specify word sizes that strictly (even in C, stdint.h wasn't
introduced until C99 - which lead to headaches of its own, as anyone
who's tried to run old code that makes assumptions about sizeof(int) on
targets that break those assumptions can attest.) Plenty of "non-
scripting" languages include or can be extended with support for
arbitrary bignum types, as well.

> Scripting languages handle the memory for you. In a scripting
> language, you cannot call "malloc" to obtain the obligation to
> free this piece of memory exactly once in the future. They are
> garbage collected.

And while this is pretty true of scripting languages, it doesn't make
for a good point-of-contrast with "non-scripting" languages; *piles* of
them include support for automatic memory management, and some (outside
of the C family) don't even include facilities for doing it "by hand."

Overall, this seems like a very narrow and C-centric view of programming
language design - and while C is definitely *my* language-of-choice for
application development,* let's not pretend it's the absolute be-all
and end-all, as if there *could* be such a thing in a field as vast and
diverse as this!

* (Funnily enough, for a lot of "scripting" type jobs, my go-to is
actually a compiled language - FreeBasic.)

Re: Command Languages Versus Programming Languages

<20240401111844.249@kylheku.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=7055&group=comp.unix.shell#7055

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 643-408-1753@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Mon, 1 Apr 2024 18:25:54 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 69
Message-ID: <20240401111844.249@kylheku.com>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@dont-email.me>
<20240329101248.556@kylheku.com> <uu6t9h$dq4d$1@dont-email.me>
<20240329104716.777@kylheku.com> <uu8p02$uebm$1@dont-email.me>
<20240330112105.553@kylheku.com> <uudrfg$2cskm$1@dont-email.me>
<87r0fp8lab.fsf@tudado.org> <uuehdj$2hshe$1@dont-email.me>
Injection-Date: Mon, 01 Apr 2024 18:25:54 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="464ee9ca5191ced3e9304b3dead768a7";
logging-data="2779645"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+x4YxrutQfla6Ao98trpL+LQknK8mLCIQ="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:YdF2y5cVYFxCmkvoS46fKbZGIUI=
 by: Kaz Kylheku - Mon, 1 Apr 2024 18:25 UTC

On 2024-04-01, Muttley@dastardlyhq.com <Muttley@dastardlyhq.com> wrote:
> On Mon, 01 Apr 2024 06:49:48 -0300
> Johanne Fairchild <jfairchild@tudado.org> wrote:
>>Muttley@dastardlyhq.com writes:
>>
>>> On Sat, 30 Mar 2024 18:46:50 -0000 (UTC)
>>> Kaz Kylheku <643-408-1753@kylheku.com> wrote:
>>>>(defun get-network-interface-list ()
>>>> (open-shared-library "iphlpapi.dll")
>>>> (let ((blk-size 65536) ;; crude!
>>>> (get-adapters-info (foreign-symbol-address "GetAdaptersInfo")))
>>>> (if get-adapters-info
>>>> (%stack-block ((blk blk-size))
>>>> (rlet ((len-inout #>ULONG blk-size))
>>>> (if (zerop (ff-call get-adapters-info :address blk
>>>> :address len-inout
>>>> #>DWORD))
>>>> (loop for ptr = blk then (pref ptr #>IP_ADAPTER_INFO.Next)
>>>> until (%null-ptr-p ptr)
>>>> collecting
>>>> (let ((alen (pref ptr #>IP_ADAPTER_INFO.AddressLength))
>>
>>>> (addr (pref ptr #>IP_ADAPTER_INFO.Address))
>>>> (aname (pref ptr #>IP_ADAPTER_INFO.AdapterName))
>>>> (descr (pref ptr #>IP_ADAPTER_INFO.Description))
>>>> (iplist (pref ptr
>>#>IP_ADAPTER_INFO.IpAddressList))
>>>>
>>>> (type (pref ptr #>IP_ADAPTER_INFO.Type)))
>>>> (list type
>>>> (loop for i below alen
>>>> collecting (%get-unsigned-byte addr i)
>>>> into mac-bytes
>>>> finally
>>>> (return (mac-bytes-to-string
>>mac-bytes)))
>>>>
>>>> (get-ip-address-list iplist)
>>>> (%get-cstring aname)
>>>> (%get-cstring descr))))))))))
>>>
>>> Ugh. No wonder the language fell out of fashion. Looks like some kind of
>>> hacked up Basic.
>>
>>Fashion and intelligence have never been very good friends.
>
> Readability of the flow of control matters. God knows whats going on with
> all those nested statements.

I didn't spend a lot of time on that code in the first place, and have
not looked it in over ten years; yet it's trivially easily readable to me.

Anyway, it's in a high level language, yet following a linked list of
structs obtained from a Win32 function, which the code fetches into
a buffer allocated efficiently on the native stack.

The whole thing is compiled into native code.

CCL's primitives for accessing the C stuff aren't pretty, but they are
helpful. It's nice that it has the parsed information about the struct
offsets, like #>IP_ADAPTER_INFO.AdapterName. I didn't have to define
that anywhere. I remember it was pretty easy to figure the primtiies
out from CCL's reference documentation. Easy to write, easy to read
a decade later.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Re: Command Languages Versus Programming Languages

<h6EON.153422$TSTa.2209@fx47.iad>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=7056&group=comp.unix.shell#7056

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!nntp.terraraq.uk!news1.firedrake.org!fnord.no!uucp.uio.no!npeer.as286.net!npeer-ng0.as286.net!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx47.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Command Languages Versus Programming Languages
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org> <types-20240401151149@ram.dialup.fu-berlin.de> <20240401111552.00006ddc@gmail.com>
Lines: 23
Message-ID: <h6EON.153422$TSTa.2209@fx47.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Mon, 01 Apr 2024 19:42:05 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Mon, 01 Apr 2024 19:42:05 GMT
X-Received-Bytes: 1804
 by: Scott Lurndal - Mon, 1 Apr 2024 19:42 UTC

John Ames <commodorejohn@gmail.com> writes:
>On 1 Apr 2024 14:16:33 GMT
>ram@zedat.fu-berlin.de (Stefan Ram) wrote:

>
>> Scripting languages handle the memory for you. In a scripting
>> language, you cannot call "malloc" to obtain the obligation to
>> free this piece of memory exactly once in the future. They are
>> garbage collected.
>
>And while this is pretty true of scripting languages, it doesn't make
>for a good point-of-contrast with "non-scripting" languages; *piles* of
>them include support for automatic memory management, and some (outside
>of the C family) don't even include facilities for doing it "by hand."

Indeed, and if you use the set (resources) rather than a member
of the set (memory), even scripting languages allocate resources and
must free them. E.g. temporary files, with some garbage collection
(/tmp cleaners).

Why is it important that there be a distinction between "scripting"
and "non-scripting" languages at all?


devel / comp.unix.shell / Command Languages Versus Programming Languages

Pages:12345678910111213
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor