Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Memories of you remind me of you. -- Karl Lehenbauer


devel / comp.unix.programmer / Re: on Perl

SubjectAuthor
* Command Languages Versus Programming LanguagesLawrence D'Oliveiro
+- Re: Command Languages Versus Programming Languagescandycanearter07
+* 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: 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 LanguagesLawrence D'Oliveiro
| || |   |   ||   |  |  |  |     `- Re: Command Languages Versus Programming LanguagesKaz Kylheku
| || |   |   ||   |  |  |  `- Re: Command Languages Versus Programming LanguagesKaz Kylheku
| || |   |   ||   |  |  +* Re: Command Languages Versus Programming LanguagesKaz Kylheku
| || |   |   ||   |  |  |`* Re: Command Languages Versus Programming LanguagesDavid Brown
| || |   |   ||   |  |  | `- Re: Command Languages Versus Programming LanguagesMuttley
| || |   |   ||   |  |  +- Re: Command Languages Versus Programming Languagescandycanearter07
| || |   |   ||   |  |  `* Re: Command Languages Versus Programming LanguagesMuttley
| || |   |   ||   |  |   +* Re: Command Languages Versus Programming LanguagesAlan Bawden
| || |   |   ||   |  |   |`* Re: Command Languages Versus Programming LanguagesMuttley
| || |   |   ||   |  |   | `* Re: Command Languages Versus Programming LanguagesDavid Brown
| || |   |   ||   |  |   |  `* Re: Command Languages Versus Programming LanguagesMuttley
| || |   |   ||   |  |   |   +* Words to the wise (Was: Command Languages Versus Programming Languages)Kenny McCormack
| || |   |   ||   |  |   |   |`- Re: Words to the wise (Was: Command Languages Versus Programming Languages)Muttley
| || |   |   ||   |  |   |   `* Re: Command Languages Versus Programming LanguagesKaz Kylheku
| || |   |   ||   |  |   |    +* Phrases that should be banned on Usenet (Was: Command Languages Versus ProgrammiKenny McCormack
| || |   |   ||   |  |   |    |`* Re: Phrases that should be banned on Usenet (Was: Command Languages Versus ProgrJanis Papanagnou
| || |   |   ||   |  |   |    | +- Re: Phrases that should be banned on Usenet (Was: Command Languages Versus ProgrD
| || |   |   ||   |  |   |    | `* Re: Phrases that should be banned on Usenet (Was: Command Languages Versus Progrcandycanearter07
| || |   |   ||   |  |   |    |  `* Re: Phrases that should be banned on Usenet (Was: Command Languages Versus ProgrJanis Papanagnou
| || |   |   ||   |  |   |    |   +- Re: Phrases that should be banned on Usenet (Was: Command Languages Versus Progrcandycanearter07
| || |   |   ||   |  |   |    |   `* Re: Phrases that should be banned on Usenet (Was: Command Languages Versus ProgrLawrence D'Oliveiro
| || |   |   ||   |  |   |    `* Re: Command Languages Versus Programming LanguagesMuttley
| || |   |   ||   |  |   +- [meta] 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 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 LanguagesLawrence D'Oliveiro
+* Re: Command Languages Versus Programming LanguagesDmitry A. Kazakov
`- Re: Command Languages Versus Programming LanguagesAndreas Kempe

Pages:12345678910111213
Re: Command Languages Versus Programming Languages

<uu7i13$im9b$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11545&group=comp.unix.programmer#11545

  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_pa...@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 00:14:42 +0100
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <uu7i13$im9b$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu624j$792q$1@dont-email.me>
<uu7a2m$ghfn$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 29 Mar 2024 23:14:43 +0100 (CET)
Injection-Info: dont-email.me; posting-host="02f497fd69a92926f68b34c365cc7433";
logging-data="612651"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+O7cYCSTaeieoxzAxO1M56"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:3IqRX4ZTazVruV9GbDQ38+l+aAY=
In-Reply-To: <uu7a2m$ghfn$4@dont-email.me>
X-Enigmail-Draft-Status: N1110
 by: Janis Papanagnou - Fri, 29 Mar 2024 23:14 UTC

On 29.03.2024 21:59, Lawrence D'Oliveiro wrote:
> On Fri, 29 Mar 2024 10:37:22 +0100, Janis Papanagnou wrote:
>
>> Program text is initially text.[*] During parsing (either in
>> an interpreted or in a compiled language) you split the text
>> in tokens.
>
> And then, how do you interpret the tokens?

In an interpreter the tokens are interpreted, in a compiler
they are subject to the parsing. (But you know that I'm sure.)

What I was saying is that there's initially literal program text
that is transformed to tokens in the lexical analysis, and then
further processed.

It was a reply on your original statement which was:
>>> In a shell language, everything you type is assumed to be a
>>> literal string, unless you use special substitution sequences.

> In a shell language, you have
> the assumption that “everything is literal text until indicated
> otherwise”;

Who is that "you"? (Not me, for sure.) And where did you get that
from?

> in a programming language, you have the assumption that
> “everything is a program construct until indicated otherwise”.

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

This is one of many basic shell constructs that I use in shell
programming (not "shell scripting") regularly.

Janis

Re: Command Languages Versus Programming Languages

<uu7i18$ima2$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11546&group=comp.unix.programmer#11546

  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_pa...@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 00:14:48 +0100
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <uu7i18$ima2$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> <op.2lerzhxda3w0dxdave@hodgins.homeip.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 29 Mar 2024 23:14:49 +0100 (CET)
Injection-Info: dont-email.me; posting-host="02f497fd69a92926f68b34c365cc7433";
logging-data="612674"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18GvbUHkOLZ8h2O1P6ZlNL0"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:eBXO4kEgmm0YyErWy4woqiemsfY=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <op.2lerzhxda3w0dxdave@hodgins.homeip.net>
 by: Janis Papanagnou - Fri, 29 Mar 2024 23:14 UTC

On 29.03.2024 19:51, David W. Hodgins wrote:
> The distinctions between script and programming languages made sense when
> they were first introduced. [...]

I abandoned the term "shell script" as soon as I got aware that
writing a reliable piece of software with "scripts" follows the
same engineering techniques and requires the same quality means
as non-"scripts". (Occasionally I still use the term informally
though I don't see any formal, technical, or practical necessity
for any such distinction between Command and Programming Language
as far as _programming_ is concerned.)

Janis

Re: Command Languages Versus Programming Languages

<uu7jqi$j256$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11547&group=comp.unix.programmer#11547

  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_pa...@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 00:45:21 +0100
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <uu7jqi$j256$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: 7bit
Injection-Date: Fri, 29 Mar 2024 23:45:23 +0100 (CET)
Injection-Info: dont-email.me; posting-host="02f497fd69a92926f68b34c365cc7433";
logging-data="624806"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18tAlkR+kKQvNLS0EGFP0e0"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:Uklkj4EBzBttsxm36zAe3/P1nX4=
In-Reply-To: <uu7i13$im9b$1@dont-email.me>
 by: Janis Papanagnou - Fri, 29 Mar 2024 23:45 UTC

On 30.03.2024 00:14, Janis Papanagnou wrote:
> On 29.03.2024 21:59, Lawrence D'Oliveiro wrote:
>> On Fri, 29 Mar 2024 10:37:22 +0100, Janis Papanagnou wrote:
>>
>>> Program text is initially text.[*] During parsing (either in
>>> an interpreted or in a compiled language) you split the text
>>> in tokens.
>>
>> And then, how do you interpret the tokens?
>
> In an interpreter the tokens are interpreted, in a compiler
> they are subject to the parsing. [...]

Just noticed that this may be misleading. Of course the shell
does also a syntax analysis step and report syntax errors. So
don't get me wrong here.

Janis

Re: Command Languages Versus Programming Languages

<uu7k56$ipoh$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11548&group=comp.unix.programmer#11548

  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: Fri, 29 Mar 2024 23:51:02 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <uu7k56$ipoh$2@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: Fri, 29 Mar 2024 23:51:03 +0100 (CET)
Injection-Info: dont-email.me; posting-host="00aae38d006fb1a7163adabdc79fe7a3";
logging-data="616209"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18P2j/0p7hMmM6DztQLS0ds"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:/ZAZhv/pBqnxmpZxxwMgtdG08bk=
 by: Lawrence D'Oliv - Fri, 29 Mar 2024 23:51 UTC

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

> What I was saying is that there's initially literal program text
> that is transformed to tokens in the lexical analysis, and then
> further processed.

In a shell language, that is “further processed” as literal text, except
for any instances of substitution markers.

>> in a programming language, you have the assumption that
>> “everything is a program construct until indicated otherwise”.
>
> So what is 'for i in a ; do ... ; done' then in your world?

“for” is just the name of a command, like any other. In POSIX, this one
happens to be built into the shell; it might not in other shells.

Re: Command Languages Versus Programming Languages

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

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11549&group=comp.unix.programmer#11549

  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....@gmail.com (Keith Thompson)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 29 Mar 2024 17:01:45 -0700
Organization: None to speak of
Lines: 58
Message-ID: <87il14si3a.fsf@nosuchdomain.example.com>
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
Injection-Date: Sat, 30 Mar 2024 00:01:53 +0100 (CET)
Injection-Info: dont-email.me; posting-host="55d3bec1253354bc3d638b21ffa9fc4c";
logging-data="632026"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19v99dZlGOR0pAbfyrM6/uD"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:ELJvvEtxoCl8vW7hG7EwMO0PVGo=
sha1:eJoecgRWJSgO8Y/1UWmjS0XkkXM=
 by: Keith Thompson - Sat, 30 Mar 2024 00:01 UTC

Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
> On 29.03.2024 21:59, Lawrence D'Oliveiro wrote:
>> On Fri, 29 Mar 2024 10:37:22 +0100, Janis Papanagnou wrote:
>>
>>> Program text is initially text.[*] During parsing (either in
>>> an interpreted or in a compiled language) you split the text
>>> in tokens.
>>
>> And then, how do you interpret the tokens?
>
> In an interpreter the tokens are interpreted, in a compiler
> they are subject to the parsing. (But you know that I'm sure.)

Are you suggesting that interpreters don't parse their input? No doubt
there are interpreters that handle tokens one at a time, but shells
typically don't work that way.

There are a lot of different ways to distinguish between languages like
sh/ksh/bash that are normally interpreted and languages like C that are
normally compiled to machine code:

- Is the language primarily designed for interactive command-line use?
- Is the language normally compiled to machine code?
- Is the language compiled by some kind of byte code that is then
interpreted? Is that byte code *sometimes* translated to machine
code?
- Is foo treated by default as a string or as an identifier?
(Treating it as a string is convenient for interactive use.)
- Does a syntax error on line 10 prevent lines 1-9 from being executed?

I don't think *any* of these distinctions are fundamental.

For example, a Perl or Python program/script is parsed and "compiled"
into some in-memory form before execution begins. A syntax error
prevents the entire script from being executed. In Bourne-line shells,
a syntax error won't be detected until execution reaches that line.
(Things like Perl's BEGIN and eval can complicate things.)

Shells also have to parse their input, though it's done a bit
differently. Typically the entire script isn't parsed as a unit.

[...]

> So what is 'for i in a ; do ... ; done' then in your world?
>
> This is one of many basic shell constructs that I use in shell
> programming (not "shell scripting") regularly.

I use it both in shell scripting/programming and interactively.

And the entire construct needs to be processed before the shell can
begin to execute it. Misspelling "done" prevents the whole thing from
running.

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

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

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11550&group=comp.unix.programmer#11550

  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....@gmail.com (Keith Thompson)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 29 Mar 2024 17:03:05 -0700
Organization: None to speak of
Lines: 24
Message-ID: <87edbssi12.fsf@nosuchdomain.example.com>
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>
<uu7jqi$j256$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Sat, 30 Mar 2024 00:03:08 +0100 (CET)
Injection-Info: dont-email.me; posting-host="55d3bec1253354bc3d638b21ffa9fc4c";
logging-data="632026"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19jqzrpE9u3q4wXPPX1MS2S"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:hVQG07ZwQaW3TpKjJT6GVU+WDLg=
sha1:6jFBbZ0z7nI7Xm5aJ+6YOAJLZvk=
 by: Keith Thompson - Sat, 30 Mar 2024 00:03 UTC

Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
> On 30.03.2024 00:14, Janis Papanagnou wrote:
>> On 29.03.2024 21:59, Lawrence D'Oliveiro wrote:
>>> On Fri, 29 Mar 2024 10:37:22 +0100, Janis Papanagnou wrote:
>>>
>>>> Program text is initially text.[*] During parsing (either in
>>>> an interpreted or in a compiled language) you split the text
>>>> in tokens.
>>>
>>> And then, how do you interpret the tokens?
>>
>> In an interpreter the tokens are interpreted, in a compiler
>> they are subject to the parsing. [...]
>
> Just noticed that this may be misleading. Of course the shell
> does also a syntax analysis step and report syntax errors. So
> don't get me wrong here.

I did indeed get you wrong here (see my other followup).

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

<uu7l2b$ja9j$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11551&group=comp.unix.programmer#11551

  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_pa...@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 01:06:35 +0100
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <uu7l2b$ja9j$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>
<uu7jqi$j256$1@dont-email.me> <87edbssi12.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 30 Mar 2024 00:06:35 +0100 (CET)
Injection-Info: dont-email.me; posting-host="418ea03501592812aea779be653a8f3d";
logging-data="633139"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19T4oh2qsp1IKAbwOrLvF+n"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:nrF0FBd3rTMNAHZb51LIdFChmBk=
In-Reply-To: <87edbssi12.fsf@nosuchdomain.example.com>
 by: Janis Papanagnou - Sat, 30 Mar 2024 00:06 UTC

On 30.03.2024 01:03, Keith Thompson wrote:
>>
>> Just noticed that this may be misleading. Of course the shell
>> does also a syntax analysis step and report syntax errors. So
>> don't get me wrong here.
>
> I did indeed get you wrong here (see my other followup).

Sorry for the inconvenience!

Janis

Re: Command Languages Versus Programming Languages

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

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11552&group=comp.unix.programmer#11552

  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....@gmail.com (Keith Thompson)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 29 Mar 2024 17:08:35 -0700
Organization: None to speak of
Lines: 31
Message-ID: <87a5mgshrw.fsf@nosuchdomain.example.com>
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>
<uu7k56$ipoh$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 30 Mar 2024 00:08:37 +0100 (CET)
Injection-Info: dont-email.me; posting-host="55d3bec1253354bc3d638b21ffa9fc4c";
logging-data="632026"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/IYfFWW6JCKdiEj+iW2S57"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:1FXMFLIaw71D/6AMnx0XZZPFLYA=
sha1:YeRNsDZkVEzwFZBJQv4BDequZg4=
 by: Keith Thompson - Sat, 30 Mar 2024 00:08 UTC

Lawrence D'Oliveiro <ldo@nz.invalid> writes:
> On Sat, 30 Mar 2024 00:14:42 +0100, Janis Papanagnou wrote:
>> What I was saying is that there's initially literal program text
>> that is transformed to tokens in the lexical analysis, and then
>> further processed.
>
> In a shell language, that is “further processed” as literal text, except
> for any instances of substitution markers.
>
>>> in a programming language, you have the assumption that
>>> “everything is a program construct until indicated otherwise”.
>>
>> So what is 'for i in a ; do ... ; done' then in your world?
>
> “for” is just the name of a command, like any other. In POSIX, this one
> happens to be built into the shell; it might not in other shells.

"for" is not just a command. It's a keyword, part of the shell language
syntax.

By contrast, "echo" is a command that may be built into the shell or
not, and behaves similarly either way. There's no way to implement
"for" as an external command.

(Very early UNIX shells had "goto" as an external command. The
implementation was convoluted.)

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

<877chkindf.fsf@tudado.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11553&group=comp.unix.programmer#11553

  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: jfairch...@tudado.org (Johanne Fairchild)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 29 Mar 2024 21:17:48 -0300
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <877chkindf.fsf@tudado.org>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<programming-20240329210532@ram.dialup.fu-berlin.de>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Sat, 30 Mar 2024 00:17:52 +0100 (CET)
Injection-Info: dont-email.me; posting-host="56ed8621e771f517f00aea024ac10a4f";
logging-data="637250"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+JF9TwGWC9f0CVuns+OUZy/CJL9B9zsiA="
Cancel-Lock: sha1:wO9z7ikAn0Y4A7+VuaVWyConcCc=
sha1:pZ+aILyjvkNgraKkvfC7/UXKBPc=
 by: Johanne Fairchild - Sat, 30 Mar 2024 00:17 UTC

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.

Re: Command Languages Versus Programming Languages

<87wmpkh8im.fsf@tudado.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11554&group=comp.unix.programmer#11554

  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: jfairch...@tudado.org (Johanne Fairchild)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 29 Mar 2024 21:24:01 -0300
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <87wmpkh8im.fsf@tudado.org>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<uu7ahh$ghfn$5@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 30 Mar 2024 00:24:05 +0100 (CET)
Injection-Info: dont-email.me; posting-host="56ed8621e771f517f00aea024ac10a4f";
logging-data="637250"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18N5sTa4EyCK6Q6G6kK2wwIQ8GdO+V31wA="
Cancel-Lock: sha1:h3AYmmOiiPfYNlA7jLhwoyjuR/g=
sha1:VegSXN99GuRn2LN/PzWh9Np/sEE=
 by: Johanne Fairchild - Sat, 30 Mar 2024 00:24 UTC

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

> On Fri, 29 Mar 2024 08:09:46 -0300, Johanne Fairchild wrote:
>
>> Consider looking at a shell language like a domain-specific programming
>> language. A shell is a programming language made specifically for
>> running programs. ... (Of course, the idea evolves and you want to
>> glue programs, do variable substitution et cetera.)
>
> That’s the thing. The design for a “language made specifically for running
> programs” always seems to start with the assumption that what the user
> types is to be passed as literal text, unless special markers are present
> to indicate that they want to “glue programs, do variable substitution et
> cetera”. Notice your use of the term “variable substitution”, which is
> characteristic of a shell language: in a programming language, you don’t
> call it “substitution”, you call it “evaluation”.

That's right. Substitution is evaluation; a specific form of.

>> You seem to find trouble with using a programming language in a REPL.
>
> I find REPLs annoying and inconvenient. If I want to do “scratchpad”
> programming, I do it in a Jupyter notebook.

That's something to think about. Your perception is wildly different
from a lot of people who have thought and think very deeply about the
whole craft.

Consider your Lisp writing, which violates the culture of Lisp writing.
Of course you should keep your independence, but maybe there are good
reasons why the culture is as it is---not all culture is fashion.

Re: Command Languages Versus Programming Languages

<uu7mfu$jjrf$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11555&group=comp.unix.programmer#11555

  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_pa...@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 01:30:53 +0100
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <uu7mfu$jjrf$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>
<uu7k56$ipoh$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 30 Mar 2024 00:30:54 +0100 (CET)
Injection-Info: dont-email.me; posting-host="9301be072578b3acc2822cf983a7e9b0";
logging-data="642927"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+/N1oiGgLGR2oD9NIwSMjE"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:T820Vwr4RTWjDj5ysAXbjaw+fWo=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <uu7k56$ipoh$2@dont-email.me>
 by: Janis Papanagnou - Sat, 30 Mar 2024 00:30 UTC

On 30.03.2024 00:51, Lawrence D'Oliveiro wrote:
> 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?
>
> “for” is just the name of a command, like any other. In POSIX, this one
> happens to be built into the shell; it might not in other shells.

'for' is a "reserved word" and part of a "compound command". It's
part of the _shell syntax_! - You get syntax errors like

$ for ; do : ; done
ksh: syntax error: `;' unexpected

And, specifically, "i in a" are *not* arguments of a 'for' command
but also part of the control construct syntax.

But, okay, I see where you're coming from.

Besides the naming, keep in mind that there's a semantical differences
between a "command", a "built-in command", and "shell construct". An
example where you can observe operational differences is:
'/bin/test' and '/bin/['
'test' and '['
'[['
where (for example) the latter does not need quoting.

$ x="Hello world" ; [[ $x == "Hello world" ]] ; echo $?
0
$ x="Hello world" ; [ $x == "Hello world" ] ; echo $?
ksh: [: world: unknown operator
2
$ x="Hello world" ; [ "$x" == "Hello world" ] ; echo $?
0

The distinction is important since there's operational differences
associated with these forms. The same holds for other control constructs
("built-in compound commands"), like 'case', or even simple assignments.

Janis

Re: Command Languages Versus Programming Languages

<uu7nig$jpe8$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11556&group=comp.unix.programmer#11556

  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_pa...@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 01:49:20 +0100
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <uu7nig$jpe8$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>
<87il14si3a.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 30 Mar 2024 00:49:21 +0100 (CET)
Injection-Info: dont-email.me; posting-host="9301be072578b3acc2822cf983a7e9b0";
logging-data="648648"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19J+0er+wS3dRTjr1PiD/qu"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:y5SpuC9LUyFLIrgkhIx7nu0hgEg=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <87il14si3a.fsf@nosuchdomain.example.com>
 by: Janis Papanagnou - Sat, 30 Mar 2024 00:49 UTC

On 30.03.2024 01:01, Keith Thompson wrote:
> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
>> So what is 'for i in a ; do ... ; done' then in your world?
>>
>> This is one of many basic shell constructs that I use in shell
>> programming (not "shell scripting") regularly.
>
> I use it both in shell scripting/programming and interactively.

So do I. (To me there's no significant difference. Only that larger
projects I do not start to develop in interactive mode, of course.)

> And the entire construct needs to be processed before the shell can
> begin to execute it. Misspelling "done" prevents the whole thing from
> running.

Indeed.

From the other posters statements I got the impression that he may
think that control constructs is what makes the difference (between
scripting and programming, or, command interpreters and programming
languages; still not sure what he thinks). In a later post I read
it as if the naming of e.g. 'for' as a "command" leads to his view.
Anyway.

I can see a point where people use for interactive use other shells
than for programming; like tcsh (interactively) and bash (programming),
because of the powerful features tcsh supports. Since the increase of
interactive features supported by the shells that are typically used
for programming I prefer to have the same shell with same syntax and
features for both, and to be able to pass code from one application
context to the other.

Janis

Re: Command Languages Versus Programming Languages

<871q7ssfdr.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11557&group=comp.unix.programmer#11557

  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....@gmail.com (Keith Thompson)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 29 Mar 2024 18:00:16 -0700
Organization: None to speak of
Lines: 26
Message-ID: <871q7ssfdr.fsf@nosuchdomain.example.com>
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>
<87il14si3a.fsf@nosuchdomain.example.com>
<uu7nig$jpe8$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Sat, 30 Mar 2024 01:00:19 +0100 (CET)
Injection-Info: dont-email.me; posting-host="55d3bec1253354bc3d638b21ffa9fc4c";
logging-data="647597"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19wNnLHJ6snM6UoUaiKKEZ7"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:R3UWW45dnGZD/4U1+5Ea6Mf4mHY=
sha1:9Tn1n8QUWgYEmpxoYbJcOtrZbIQ=
 by: Keith Thompson - Sat, 30 Mar 2024 01:00 UTC

Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
[...]
> I can see a point where people use for interactive use other shells
> than for programming; like tcsh (interactively) and bash (programming),
> because of the powerful features tcsh supports. Since the increase of
> interactive features supported by the shells that are typically used
> for programming I prefer to have the same shell with same syntax and
> features for both, and to be able to pass code from one application
> context to the other.

Indeed. I spent several years using tcsh interactively (because it had
a few interactive features that I found convenient) and bash for writing
scripts (previously I had actually written *gasp* csh and tcsh scripts).
Eventually I found that using a single shell for both was easier, and
that bash's interactive features are about as good as tcsh's. (And I
can write complex nested commands on one line, something I probably
wouldn't have attempted in [t]csh even if it were possible.) I haven't
looked back.

zsh has some nice features, but I haven't learned it well enough to
consider switching.

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

<uu7os3$k1e9$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11558&group=comp.unix.programmer#11558

  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: Sat, 30 Mar 2024 01:11:31 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <uu7os3$k1e9$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org>
<uu7ahh$ghfn$5@dont-email.me> <87wmpkh8im.fsf@tudado.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 30 Mar 2024 01:11:32 +0100 (CET)
Injection-Info: dont-email.me; posting-host="00aae38d006fb1a7163adabdc79fe7a3";
logging-data="656841"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18xWmpw+rdZO3x6clrpoUUo"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:y7HXkHsxno9s6ZCWlJFgP6NVBdg=
 by: Lawrence D'Oliv - Sat, 30 Mar 2024 01:11 UTC

On Fri, 29 Mar 2024 21:24:01 -0300, Johanne Fairchild wrote:

> Consider your Lisp writing, which violates the culture of Lisp writing.
> Of course you should keep your independence, but maybe there are good
> reasons why the culture is as it is---not all culture is fashion.

Let me know what they are. The only reasons I have seen offered so far are
basically just “that’s the way it’s always been done”.

Re: Command Languages Versus Programming Languages

<uu7ot5$k1e9$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11559&group=comp.unix.programmer#11559

  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: Sat, 30 Mar 2024 01:12:05 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <uu7ot5$k1e9$2@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>
<uu7k56$ipoh$2@dont-email.me> <87a5mgshrw.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 30 Mar 2024 01:12:05 +0100 (CET)
Injection-Info: dont-email.me; posting-host="00aae38d006fb1a7163adabdc79fe7a3";
logging-data="656841"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19hdLkJYuKZtCfn5bhXvX/W"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:CQ/8cbiZJOZ5dwaVjiQma7AujjA=
 by: Lawrence D'Oliv - Sat, 30 Mar 2024 01:12 UTC

On Fri, 29 Mar 2024 17:08:35 -0700, Keith Thompson wrote:

> "for" is not just a command. It's a keyword, part of the shell language
> syntax.

Remember, that’s only true of POSIX shells.

Re: Command Languages Versus Programming Languages

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

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11560&group=comp.unix.programmer#11560

  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....@gmail.com (Keith Thompson)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 29 Mar 2024 18:15:05 -0700
Organization: None to speak of
Lines: 15
Message-ID: <87wmpkr04m.fsf@nosuchdomain.example.com>
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>
<uu7k56$ipoh$2@dont-email.me>
<87a5mgshrw.fsf@nosuchdomain.example.com>
<uu7ot5$k1e9$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 30 Mar 2024 01:15:07 +0100 (CET)
Injection-Info: dont-email.me; posting-host="55d3bec1253354bc3d638b21ffa9fc4c";
logging-data="647597"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19fRU2rcZ6vVNbjARnDdk0d"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:4L+qiYcTqc9p2IzdThGv3fvsy/I=
sha1:vKh01fDEhxy1Wv7wvRr4iey9Ojw=
 by: Keith Thompson - Sat, 30 Mar 2024 01:15 UTC

Lawrence D'Oliveiro <ldo@nz.invalid> writes:
> On Fri, 29 Mar 2024 17:08:35 -0700, Keith Thompson wrote:
>
>> "for" is not just a command. It's a keyword, part of the shell language
>> syntax.
>
> Remember, that’s only true of POSIX shells.

It may well be true of some non-POSIX shells as well (not that it
matters).

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

<uu7p3g$k1e9$3@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11561&group=comp.unix.programmer#11561

  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: Sat, 30 Mar 2024 01:15:29 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <uu7p3g$k1e9$3@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>
<uu7k56$ipoh$2@dont-email.me> <uu7mfu$jjrf$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 01:15:29 +0100 (CET)
Injection-Info: dont-email.me; posting-host="00aae38d006fb1a7163adabdc79fe7a3";
logging-data="656841"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19kQDgh4YVhDgHb2XmqQc96"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:1DhvZNzt3eE9S4UJPbMgRFsDF1s=
 by: Lawrence D'Oliv - Sat, 30 Mar 2024 01:15 UTC

On Sat, 30 Mar 2024 01:30:53 +0100, Janis Papanagnou wrote:

> Besides the naming, keep in mind that there's a semantical differences
> between a "command", a "built-in command", and "shell construct". An
> example where you can observe operational differences is:
> '/bin/test' and '/bin/['
> 'test' and '['
> '[['
> where (for example) the latter does not need quoting.

I know that there are places in POSIX shells where the usual rules for
interpretation of special-substitution markers are altered or suspended.
But those situations are always delimited in some special way (distinctive
syntactic constructs or reserved words). Throughout the entire rest of the
language, the principles I have described still apply.

Re: Command Languages Versus Programming Languages

<9OJNN.124125$SyNd.65468@fx33.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11562&group=comp.unix.programmer#11562

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!news.swapon.de!news.mixmin.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!193.141.40.65.MISMATCH!npeer.as286.net!npeer-ng0.as286.net!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx33.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@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> <uu624j$792q$1@dont-email.me> <uu7a2m$ghfn$4@dont-email.me> <uu7i13$im9b$1@dont-email.me> <uu7k56$ipoh$2@dont-email.me> <87a5mgshrw.fsf@nosuchdomain.example.com> <uu7ot5$k1e9$2@dont-email.me>
Lines: 16
Message-ID: <9OJNN.124125$SyNd.65468@fx33.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Sat, 30 Mar 2024 01:21:09 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Sat, 30 Mar 2024 01:21:09 GMT
X-Received-Bytes: 1462
 by: Scott Lurndal - Sat, 30 Mar 2024 01:21 UTC

Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>On Fri, 29 Mar 2024 17:08:35 -0700, Keith Thompson wrote:
>
>> "for" is not just a command. It's a keyword, part of the shell language
>> syntax.
>
>Remember, that’s only true of POSIX shells

Not necessarily. Bash is not a POSIX shell. It can be,
but without special configuration it is not POSIX.

ksh is as close as one might get to a true POSIX shell,
but even ksh has extensions.

But nitpicking aside, the context of the discussion that
you responded to was about clearly POSIX-like shells.

Re: Command Languages Versus Programming Languages

<op.2le18gdja3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11563&group=comp.unix.programmer#11563

  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: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 29 Mar 2024 18:32:30 -0400
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <op.2le18gdja3w0dxdave@hodgins.homeip.net>
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> <op.2lerzhxda3w0dxdave@hodgins.homeip.net>
<87r0fsq14n.fsf@tudado.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 30 Mar 2024 01:28:17 +0100 (CET)
Injection-Info: dont-email.me; posting-host="653b9fe0a4065bdd89d0304484dcda61";
logging-data="664182"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+OE/rpiG08ptj3dMz9DuwoIl3ne+VEKCk="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:g/EClLG8+xsb+nBOm9NMSREbdm8=
 by: David W. Hodgins - Fri, 29 Mar 2024 22:32 UTC

On Fri, 29 Mar 2024 15:38:48 -0400, Johanne Fairchild <jfairchild@tudado.org> wrote:
> "David W. Hodgins" <dwhodgins@nomail.afraid.org> writes:
>
> [...]
>
>> The terminology will continue to be used, but the distinction does not
>> matter, except from a speed of processing difference.
>
> Just to share that I, personally, don't use the distinction. For
> instance, I say that
>
> "the answer is %.2f\n"
>
> is a program that builds a string given its usual context. I say that
>
> awk '1; { print "" }'
>
> is a program to double-space a file. I haven't said ``script'' in
> years.

I still refer to text files, intended to be run through an interpreter such
as bash, as scripts, while things like c text files that must be compiled to
an object file and then linked to be executable as programs.

Regards, Dave Hodgins

Re: Command Languages Versus Programming Languages

<scripting-20240330084331@ram.dialup.fu-berlin.de>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11564&group=comp.unix.programmer#11564

  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: 30 Mar 2024 07:47:14 GMT
Organization: Stefan Ram
Lines: 59
Expires: 1 Feb 2025 11:59:58 GMT
Message-ID: <scripting-20240330084331@ram.dialup.fu-berlin.de>
References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org> <programming-20240329210532@ram.dialup.fu-berlin.de> <877chkindf.fsf@tudado.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de HAhnKYvLCTB6r+10pPf7xgckX9mIMa85yCOgrce+yMT04u
Cancel-Lock: sha1:uNMxRvLU6Nbb3C9CPYC3+YT59wY= sha256:NGNdqCHZFbKW3S5nr5Yl1rl+1hh0nOzyiUb/7AuSsCc=
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
Accept-Language: de-DE-1901, en-US, it, fr-FR
 by: Stefan Ram - Sat, 30 Mar 2024 07:47 UTC

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.

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

In any case, we can write a small batch file "execute" which
can be called for source code in any programming language and
will execute it:

execute Main.pas
execute Main.java
execute Main.py
execute main.c
execute main.cpp
execute main.bas
execute main.bat
....

They all will print "Hello World". Whether the execution happens
via translation to machine code or via interpretation by another
program or by a mixture of both is just an implementation
detail of "execute", that usually will not matter much for the
programmer. And often for the same language, one is free to
either compile it to machine language or interpret it via another
program.

Some language, like LISP or Python, have "eval": These languages
still can be compiled, but they require an interpreter at run-
time. Java often is executed by interpretation first, but when
the "Hotspot" interpreter sees that some code is executed often,
it will then decide /at run-time/ to compile it into actual
machine code! (And there are Python implementations that run
on the JVM.)

How can such implementation details matter for the question whether
a language is called a programming language or a scripting language,
when the programmer often does not even need to know about them?

Yes, there also are C interpreters IIRC, but they are rare.

Re: Command Languages Versus Programming Languages

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

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11565&group=comp.unix.programmer#11565

  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: Mutt...@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: Mutt...@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.novabbs.com/devel/article-flat.php?id=11566&group=comp.unix.programmer#11566

  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: Mutt...@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: Mutt...@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.novabbs.com/devel/article-flat.php?id=11567&group=comp.unix.programmer#11567

  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_pa...@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.novabbs.com/devel/article-flat.php?id=11568&group=comp.unix.programmer#11568

  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_pa...@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.novabbs.com/devel/article-flat.php?id=11569&group=comp.unix.programmer#11569

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


devel / comp.unix.programmer / Re: on Perl

Pages:12345678910111213
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor