Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Forty two.


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

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
Command Languages Versus Programming Languages

<uu54la$3su5b$6@dont-email.me>

  copy mid

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

  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: Command Languages Versus Programming Languages
Date: Fri, 29 Mar 2024 01:14:18 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 67
Message-ID: <uu54la$3su5b$6@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 29 Mar 2024 01:14:18 +0100 (CET)
Injection-Info: dont-email.me; posting-host="521a9234fa531f5fbb354bce794424cb";
logging-data="4094123"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+wuxgWwoUuDVN33Y1JVSxc"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:MSokK6OP74NrPK8bKB7buVrkbuU=
 by: Lawrence D'Oliv - Fri, 29 Mar 2024 01:14 UTC

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.

Then languages like Perl and Java came along: both were compiled to a
bytecode, a sort of pseudo-machine-language, which was interpreted by
software, not CPU hardware. Were they “scripting” or “programming”
languages? Some might have classed Perl as a “scripting” language to
begin with, but given it is must as powerful as Java, then why
shouldn’t Java also be considered a “scripting” rather than
“programming” language? And before these two, there was UCSD Pascal,
which was probably the pioneer of this compile-to-bytecode idea.

So that terminology for distinguishing between classes of programming
languages became largely obsolete.

But there is one distinction that I think is still relevant, and that
is the one between shell/command languages and programming languages.

In a shell language, everything you type is assumed to be a literal
string, unless you use special substitution sequences. E.g. in a POSIX
shell:

ls -l thingy

“give me information about the file/directory named ‘thingy’”, vs.

ls -l $thingy

“give me information about the files/directories whose names are in
the value of the variable ‘thingy’”.

Whereas in a programming language, everything is assumed to be a
language construct, and every unadorned name is assumed to reference
some value/object, so you need quote marks to demarcate literal
strings, e.g. in Python:

os.listdir(thingy)

“return a list of the contents of the directory whose name is in the
variable ‘thingy’”, vs.

os.listdir("thingy")

“return a list of the contents of the directory named ‘thingy’”.

This difference in design has to do with their typical usage: most of
the use of a shell/command language is in typing a single command at a
time, for immediate execution. Whereas a programming language is
typically used to construct sequences consisting of multiple lines of
code before they are executed.

This difference is also why attempts to use programming languages as
though they were shell/command languages, entering and executing a
single line of code at a time, tend to end up being more trouble than
they are worth.

Conversely, using shell/command languages as programming languages, by
collecting multiple lines of code into shell scripts, does work, but
only up to a point. The concept of variable substitution via string
substitution tends to lead to trouble when trying to do more advanced
data manipulations.

So, in short, while there is some overlap in their applicable usage
areas, they are still very much oriented to different application
scenarios.

Re: Command Languages Versus Programming Languages

<uu5bek$2kpd$4@dont-email.me>

  copy mid

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

  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: candycan...@candycanearter07.nomail.afraid (candycanearter07)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 29 Mar 2024 03:10:12 -0000 (UTC)
Organization: the-candyden-of-code
Lines: 73
Message-ID: <uu5bek$2kpd$4@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 29 Mar 2024 03:10:12 +0100 (CET)
Injection-Info: dont-email.me; posting-host="1e4a211725c727bf98243888c49bfdfe";
logging-data="86829"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/hUn9kTzBiVabUPwBB1J/9WeATKnN0sopmO0sDxd3oLg=="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:zopaEeOiTzalMPQGPMkBp6TDZhY=
X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]%
b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx
`~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e
ZrQsWJ >|l^I_[pbsIqwoz.WGA]<D
 by: candycanearter07 - Fri, 29 Mar 2024 03:10 UTC

Lawrence D'Oliveiro <ldo@nz.invalid> wrote at 01:14 this Friday (GMT):
> 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.
>
> Then languages like Perl and Java came along: both were compiled to a
> bytecode, a sort of pseudo-machine-language, which was interpreted by
> software, not CPU hardware. Were they “scripting” or “programming”
> languages? Some might have classed Perl as a “scripting” language to
> begin with, but given it is must as powerful as Java, then why
> shouldn’t Java also be considered a “scripting” rather than
> “programming” language? And before these two, there was UCSD Pascal,
> which was probably the pioneer of this compile-to-bytecode idea.
>
> So that terminology for distinguishing between classes of programming
> languages became largely obsolete.
>
> But there is one distinction that I think is still relevant, and that
> is the one between shell/command languages and programming languages.
>
> In a shell language, everything you type is assumed to be a literal
> string, unless you use special substitution sequences. E.g. in a POSIX
> shell:
>
> ls -l thingy
>
> “give me information about the file/directory named ‘thingy’”, vs.
>
> ls -l $thingy
>
> “give me information about the files/directories whose names are in
> the value of the variable ‘thingy’”.
>
> Whereas in a programming language, everything is assumed to be a
> language construct, and every unadorned name is assumed to reference
> some value/object, so you need quote marks to demarcate literal
> strings, e.g. in Python:
>
> os.listdir(thingy)
>
> “return a list of the contents of the directory whose name is in the
> variable ‘thingy’”, vs.
>
> os.listdir("thingy")
>
> “return a list of the contents of the directory named ‘thingy’”.
>
> This difference in design has to do with their typical usage: most of
> the use of a shell/command language is in typing a single command at a
> time, for immediate execution. Whereas a programming language is
> typically used to construct sequences consisting of multiple lines of
> code before they are executed.
>
> This difference is also why attempts to use programming languages as
> though they were shell/command languages, entering and executing a
> single line of code at a time, tend to end up being more trouble than
> they are worth.
>
> Conversely, using shell/command languages as programming languages, by
> collecting multiple lines of code into shell scripts, does work, but
> only up to a point. The concept of variable substitution via string
> substitution tends to lead to trouble when trying to do more advanced
> data manipulations.
>
> So, in short, while there is some overlap in their applicable usage
> areas, they are still very much oriented to different application
> scenarios.

Interesting, I never thought of it like that.
--
user <candycane> is generated from /dev/urandom

Re: Command Languages Versus Programming Languages

<uu636l$7haj$1@dont-email.me>

  copy mid

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

  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: Fri, 29 Mar 2024 09:55:33 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <uu636l$7haj$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me>
Injection-Date: Fri, 29 Mar 2024 09:55:33 +0100 (CET)
Injection-Info: dont-email.me; posting-host="819a80ab35c5e03f501d453cfd800714";
logging-data="247123"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/MvBiOHDdNcuhaODgbmzhg"
Cancel-Lock: sha1:/1JdPG/7JqAWDUy/nPMZ2SCkAE8=
 by: Mutt...@dastardlyhq.com - Fri, 29 Mar 2024 09:55 UTC

On Fri, 29 Mar 2024 01:14:18 -0000 (UTC)
Lawrence D'Oliveiro <ldo@nz.invalid> 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.
>
>Then languages like Perl and Java came along: both were compiled to a
>bytecode, a sort of pseudo-machine-language, which was interpreted by
>software, not CPU hardware. Were they “scripting” or “programming”
>languages? Some might have classed Perl as a “scripting” language to

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

Re: Command Languages Versus Programming Languages

<87edbtz43p.fsf@tudado.org>

  copy mid

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

  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 08:09:46 -0300
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <87edbtz43p.fsf@tudado.org>
References: <uu54la$3su5b$6@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 29 Mar 2024 11:09:59 +0100 (CET)
Injection-Info: dont-email.me; posting-host="f666225367230cb092212f4ff55a99ef";
logging-data="283827"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/TdgDIGtkX2CWID0bp6kGDFOFA18pysQk="
Cancel-Lock: sha1:jbAVam99TnRjWlxiYd7DGa5WxGk=
sha1:twoJ/+1/bmrAs5GmCvekGBtBDKs=
 by: Johanne Fairchild - Fri, 29 Mar 2024 11:09 UTC

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

> At one time, we distinguished between “scripting” languages and
> “programming” languages. [...] But there is one distinction that I
> think is still relevant, and that is the one between shell/command
> languages and programming languages.

[...]

Consider looking at a shell language like a domain-specific programming
language. A shell is a programming language made specifically for
running programs. When you write a shell line, you're specifying the
arguments of execve(2). In other words, a shell is a programming
language made to prepare the memory to be consumed by the system in a
specific way---execve(2). (Of course, the idea evolves and you want to
glue programs, do variable substitution et cetera.)

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.

You seem to find trouble with using a programming language in a REPL.
It seems to contradict be the overall feeling of so many people who
understand a lot about programming---who made all of these things
actually work (and fun).

Re: Command Languages Versus Programming Languages

<l6nlssF3jbqU1@mid.individual.net>

  copy mid

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

  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!individual.net!not-for-mail
From: jos...@invalid.invalid (Josef Möllers)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 29 Mar 2024 12:10:20 +0100
Lines: 24
Message-ID: <l6nlssF3jbqU1@mid.individual.net>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net NEv/LbR9SzYEKKKmD7ObbAO4lwHu5D+DyiOYZPWFvqmtlKoT2n
Cancel-Lock: sha1:bjYwTSUIUr/8CdnX9BBHscpI89s= sha256:q+SrjdT55L4eQZpsvKIWlbbwAihD09dBFKz6JsicXSY=
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <uu636l$7haj$1@dont-email.me>
 by: Josef Möllers - Fri, 29 Mar 2024 11:10 UTC

On 29.03.24 10:55, Muttley@dastardlyhq.com wrote:
> On Fri, 29 Mar 2024 01:14:18 -0000 (UTC)
> Lawrence D'Oliveiro <ldo@nz.invalid> 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.
>>
>> Then languages like Perl and Java came along: both were compiled to a
>> bytecode, a sort of pseudo-machine-language, which was interpreted by
>> software, not CPU hardware. Were they “scripting” or “programming”
>> languages? Some might have classed Perl as a “scripting” language to
>
> 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

I second that.

My 2€cts,
Josef

Re: Command Languages Versus Programming Languages

<wwv34s92rn0.fsf@LkoBDZeT.terraraq.uk>

  copy mid

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

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!usenet.goja.nl.eu.org!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.org.uk!not-for-mail
From: inva...@invalid.invalid (Richard Kettlewell)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 29 Mar 2024 11:40:03 +0000
Organization: terraraq NNTP server
Message-ID: <wwv34s92rn0.fsf@LkoBDZeT.terraraq.uk>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: innmantic.terraraq.uk; posting-host="tunnel.sfere.anjou.terraraq.org.uk:172.17.207.6";
logging-data="92807"; mail-complaints-to="usenet@innmantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:3atoBjT0UX/PeP+JKkcEZSUwFJE=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
 by: Richard Kettlewell - Fri, 29 Mar 2024 11:40 UTC

Muttley@dastardlyhq.com writes:
> 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

C can be a scripting language by that rule:

$ cat t.c
#!/usr/bin/tcc -run
#include <stdio.h>

int main(void) {
return printf("Hello, world\n");
}
$ ./t.c
Hello, world

--
https://www.greenend.org.uk/rjk/

Re: Command Languages Versus Programming Languages

<uu6akq$9dc6$1@dont-email.me>

  copy mid

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

  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: Fri, 29 Mar 2024 12:02:34 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <uu6akq$9dc6$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me> <wwv34s92rn0.fsf@LkoBDZeT.terraraq.uk>
Injection-Date: Fri, 29 Mar 2024 12:02:35 +0100 (CET)
Injection-Info: dont-email.me; posting-host="819a80ab35c5e03f501d453cfd800714";
logging-data="308614"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Xn14Wer8GEwVcp/oVWDVY"
Cancel-Lock: sha1:yIleOAbV6Axmt56vFB/kVt+19ig=
 by: Mutt...@dastardlyhq.com - Fri, 29 Mar 2024 12:02 UTC

On Fri, 29 Mar 2024 11:40:03 +0000
Richard Kettlewell <invalid@invalid.invalid> wrote:
>Muttley@dastardlyhq.com writes:
>> 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
>
>C can be a scripting language by that rule:

No definition is perfect in this case, its all shades of grey.

Re: Command Languages Versus Programming Languages

<uu6d8b$a06e$1@dont-email.me>

  copy mid

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

  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.br...@hesbynett.no (David Brown)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 29 Mar 2024 13:47:07 +0100
Organization: A noiseless patient Spider
Lines: 137
Message-ID: <uu6d8b$a06e$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: Fri, 29 Mar 2024 12:47:08 +0100 (CET)
Injection-Info: dont-email.me; posting-host="528a481da3bf32c95b1c8190e81e5c9b";
logging-data="327886"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18zuqp1kBEN1wx5v9LZhjUU841oXOgzILs="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:prAgMd1xDTnECn4A0K3BXNXsAWE=
In-Reply-To: <uu54la$3su5b$6@dont-email.me>
Content-Language: en-GB
 by: David Brown - Fri, 29 Mar 2024 12:47 UTC

On 29/03/2024 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.

I don't think there has ever been a clear distinction.

A "script" is usually small and often written for a particular task on a
particular system, while a "program" might be bigger and more generic,
runnable on multiple systems by multiple people. But there is no
dividing point in the type of code, and plenty of overlap - even though
the difference is often clear ("This is a script for making backups of
my servers - it uses the rsync program to do the bulk of the work").

Similarly, there are not "scripting languages" and "programming
languages". There are languages that are more suitable for script work,
and languages that are more suitable for programming work, and languages
that are suitable for both.

Then there are "interpreted" languages and "compiled" languages. As you
say, this is not a binary distinction - there are shades between this,
especially with byte compiling. Some languages, such as Python, are
used like interpreted language (you "run" the source code) but are
byte-compiled on the fly. Some, like Java, are used like compiled
languages but generate byte code that is interpreted. Others use some
byte-compiled code along with JIT machine code to blur the lines even more.

It is fair to say that "scripts" are usually written in interpreted
languages (or languages designed to look like they interpreted, by
compiling or byte-compiling on the fly). "Programs" can be written in
interpreted or compiled languages - there is no consensus.

>
> Then languages like Perl and Java came along: both were compiled to a
> bytecode, a sort of pseudo-machine-language, which was interpreted by
> software, not CPU hardware. Were they “scripting” or “programming”
> languages? Some might have classed Perl as a “scripting” language to
> begin with, but given it is must as powerful as Java, then why
> shouldn’t Java also be considered a “scripting” rather than
> “programming” language? And before these two, there was UCSD Pascal,
> which was probably the pioneer of this compile-to-bytecode idea.
>

Such classification is just wrong, IMHO. You can write scripts in Perl,
and you can write programs in Perl. "APL" is invariably (AFAIK)
interpreted, and it is for programming rather than scripting - the
acronym stands for "A Programming Language".

And of course there are many computer languages whose prime purpose is
other tasks, even though they can be used for programming - TeX and
Postscript are examples.

> So that terminology for distinguishing between classes of programming
> languages became largely obsolete.

I am not at all convinced it was ever relevant to distinguish between
"scripting languages" and "programming languages". It was useful to
distinguish between "interpreted" and "compiled" languages, and the
overlap and blurring has increased there.

>
> But there is one distinction that I think is still relevant, and that
> is the one between shell/command languages and programming languages.
>
> In a shell language, everything you type is assumed to be a literal
> string, unless you use special substitution sequences. E.g. in a POSIX
> shell:
>
> ls -l thingy
>
> “give me information about the file/directory named ‘thingy’”, vs.
>
> ls -l $thingy
>
> “give me information about the files/directories whose names are in
> the value of the variable ‘thingy’”.
>
> Whereas in a programming language, everything is assumed to be a
> language construct, and every unadorned name is assumed to reference
> some value/object, so you need quote marks to demarcate literal
> strings, e.g. in Python:
>
> os.listdir(thingy)
>
> “return a list of the contents of the directory whose name is in the
> variable ‘thingy’”, vs.
>
> os.listdir("thingy")
>
> “return a list of the contents of the directory named ‘thingy’”.
>
> This difference in design has to do with their typical usage: most of
> the use of a shell/command language is in typing a single command at a
> time, for immediate execution. Whereas a programming language is
> typically used to construct sequences consisting of multiple lines of
> code before they are executed.

That is arguably a useful distinction in the style of programming
languages, and this difference makes the language more or less suited to
particular tasks (such as typical short scripts).

Again, however, there are exceptions that mean a clear binary
distinction is not possible. Knuth did a lot of work on "literary
programming", where documentation and source is combined along with
executable code, and used such languages and tools for programs like TeX
and Metafont. ("Linux from Scratch" is another example.)

TCL is a language that might be considered half-way between your
categories here.

>
> This difference is also why attempts to use programming languages as
> though they were shell/command languages, entering and executing a
> single line of code at a time, tend to end up being more trouble than
> they are worth.
>
> Conversely, using shell/command languages as programming languages, by
> collecting multiple lines of code into shell scripts, does work, but
> only up to a point. The concept of variable substitution via string
> substitution tends to lead to trouble when trying to do more advanced
> data manipulations.
>
> So, in short, while there is some overlap in their applicable usage
> areas, they are still very much oriented to different application
> scenarios.

<https://en.wikipedia.org/wiki/List_of_programming_languages_by_type>
gives something like 40 categories of programming languages, of which
"scripting languages" is one type. I think any attempt at dividing up
programming languages will either be so full of grey areas as to be
almost useless, or have so many categories that it is almost useless.
The best you can do is pick some characteristics of languages, or some
typical use-cases of languages, and ask if any given language fits there.

Re: Command Languages Versus Programming Languages

<20240329084454.0000090f@gmail.com>

  copy mid

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

  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: commodor...@gmail.com (John Ames)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 29 Mar 2024 08:44:54 -0700
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <20240329084454.0000090f@gmail.com>
References: <uu54la$3su5b$6@dont-email.me>
<uu636l$7haj$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 29 Mar 2024 15:44:57 +0100 (CET)
Injection-Info: dont-email.me; posting-host="a9a4a954baf8cbd22a769ce40ee610b5";
logging-data="397598"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19lH4o/thc+g5nZHzzt1dAeN5Zb7skoivY="
Cancel-Lock: sha1:w7X9bMaHa3SDjZDACYjt4+PFEcw=
X-Newsreader: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-w64-mingw32)
 by: John Ames - Fri, 29 Mar 2024 15:44 UTC

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
language" as a DSL designed for directing the actions of the operating
system makes much more sense, IMHO.

Re: Command Languages Versus Programming Languages

<uu6om5$cmv8$1@dont-email.me>

  copy mid

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

  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: Fri, 29 Mar 2024 16:02:13 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <uu6om5$cmv8$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me>
<uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com>
Injection-Date: Fri, 29 Mar 2024 16:02:14 +0100 (CET)
Injection-Info: dont-email.me; posting-host="819a80ab35c5e03f501d453cfd800714";
logging-data="416744"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+UcchZUpieY68WawFqw+NF"
Cancel-Lock: sha1:DGJW2eAcrqDDWAby8/v/RzJspog=
 by: Mutt...@dastardlyhq.com - Fri, 29 Mar 2024 16:02 UTC

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.

Re: Command Languages Versus Programming Languages

<20240329091001.0000421b@gmail.com>

  copy mid

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

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: commodor...@gmail.com (John Ames)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 29 Mar 2024 09:10:01 -0700
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <20240329091001.0000421b@gmail.com>
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=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 29 Mar 2024 16:10:04 +0100 (CET)
Injection-Info: dont-email.me; posting-host="a9a4a954baf8cbd22a769ce40ee610b5";
logging-data="397598"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18lxmIBrY4y01KaOfPdchiRFwUfPkTXAe4="
Cancel-Lock: sha1:tqdazGO6HO0nBHKBIQAqOqO/Cd8=
X-Newsreader: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-w64-mingw32)
 by: John Ames - Fri, 29 Mar 2024 16:10 UTC

On Fri, 29 Mar 2024 16:02:13 -0000 (UTC)
Muttley@dastardlyhq.com wrote:

> On Fri, 29 Mar 2024 08:44:54 -0700
> John Ames <commodorejohn@gmail.com> wrote:
> >
> >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.

Well, suffice to say that Forth is bare-metal enough to serve as the
foundation for OpenFirmware systems... ;P

Re: Command Languages Versus Programming Languages

<20240329095607.314@kylheku.com>

  copy mid

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

  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-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 29 Mar 2024 17:09:56 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 49
Message-ID: <20240329095607.314@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>
Injection-Date: Fri, 29 Mar 2024 17:09:57 +0100 (CET)
Injection-Info: dont-email.me; posting-host="72aa73b25261e98b4b2ab1e9e611ffcd";
logging-data="446775"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/r11jz+VrdUlFQ0S/37skM9jHOBLNrAI="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:ssPC0Q5j85jXch/lmwfL+6DlL5g=
 by: Kaz Kylheku - Fri, 29 Mar 2024 17:09 UTC

On 2024-03-29, Muttley@dastardlyhq.com <Muttley@dastardlyhq.com> wrote:
> On Fri, 29 Mar 2024 11:40:03 +0000
> Richard Kettlewell <invalid@invalid.invalid> wrote:
>>Muttley@dastardlyhq.com writes:
>>> 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
>>
>>C can be a scripting language by that rule:
>
> No definition is perfect in this case, its all shades of grey.

Yes, a definition can be close to perfet here:

Scripting is an activity, a use case, not a language.

Scripting refers to executing commands which are so high level that they
are entire applications or functional blocks within an application.
Scripting automates applications or groups of applications.

A language can /support/ scripting (and other paradigms).

If a language only supports scripting well, and nothing else, then it's
a scripting language. That's exactly the same as that a language can be
functional, or multi-paradigm with support for functional programming.

Scripting tend to have the attribute that they would never be used (and
possibly could not be used) to write the functional building blocks
which their commands execute. It's possible for an application to be
written in a language in which it is scripted, but then that's almost
certainly not a scripting language.

Yes, an aspect of scripting is that scripts are taken as-is, in the
representation in which they are written. Or at least, can be. If there
is a compiling step, it is either optional, or hidden by the
implementation. The requirement for some ahead-of-time compilation
ritual to prepare the script for execution by translating it to a
different file in a different format is anti-scripting, in a sense.

The ordinary meaning of the word "script" refers to a dialog followed by
an actor, in the same form in which it was written. The programming
word was almost certainly coined in reference to that.

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

<20240329101015.61@kylheku.com>

  copy mid

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

  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-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 29 Mar 2024 17:12:40 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <20240329101015.61@kylheku.com>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com>
Injection-Date: Fri, 29 Mar 2024 17:12:40 +0100 (CET)
Injection-Info: dont-email.me; posting-host="72aa73b25261e98b4b2ab1e9e611ffcd";
logging-data="446775"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18jahDYkCwLnmMHEblYtgV8yPclTGid1XQ="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:z1ojK5KCafRGZ6gg0IHXnYEodHQ=
 by: Kaz Kylheku - Fri, 29 Mar 2024 17:12 UTC

On 2024-03-29, 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
> language" as a DSL designed for directing the actions of the operating
> system makes much more sense, IMHO.

Common Lisp requires the implementation to be able to read
and execute printed expressions, without having them placed into
a file that must be translated to a compiled file.

The most prominent CL implementations compile every form before
executing it, even at the interactive prompt. It's invisible to the
user.

Scripting doesn't mean that the commands cannot be transparently
translated into antoher language before being executed.

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

<20240329101248.556@kylheku.com>

  copy mid

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

  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-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 29 Mar 2024 17:13:47 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <20240329101248.556@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>
Injection-Date: Fri, 29 Mar 2024 17:13:47 +0100 (CET)
Injection-Info: dont-email.me; posting-host="72aa73b25261e98b4b2ab1e9e611ffcd";
logging-data="446775"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18teV6qqExCrbcK97c9r4x38gVqx8PrtJk="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:lci1JxheyeWANFc/dWtxFYTMX3A=
 by: Kaz Kylheku - Fri, 29 Mar 2024 17:13 UTC

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?

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

<uu6t4v$dob8$1@dont-email.me>

  copy mid

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

  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: Fri, 29 Mar 2024 17:18:23 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <uu6t4v$dob8$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>
Injection-Date: Fri, 29 Mar 2024 17:18:23 +0100 (CET)
Injection-Info: dont-email.me; posting-host="819a80ab35c5e03f501d453cfd800714";
logging-data="450920"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18x2gJXTXnK5WqbXLMeMkgd"
Cancel-Lock: sha1:8EqC4eAGnZTz27ECuXsD27pQ1DE=
 by: Mutt...@dastardlyhq.com - Fri, 29 Mar 2024 17:18 UTC

On Fri, 29 Mar 2024 17:09:56 -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 11:40:03 +0000
>> Richard Kettlewell <invalid@invalid.invalid> wrote:
>>>Muttley@dastardlyhq.com writes:
>>>> 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
>>>
>>>C can be a scripting language by that rule:
>>
>> No definition is perfect in this case, its all shades of grey.
>
>Yes, a definition can be close to perfet here:

Define perfect. Yours isn't.

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

Umm, no, try again.

Re: Command Languages Versus Programming Languages

<uu6t9h$dq4d$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!newsfeed.bofh.team!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: Fri, 29 Mar 2024 17:20:49 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <uu6t9h$dq4d$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>
Injection-Date: Fri, 29 Mar 2024 17:20:49 +0100 (CET)
Injection-Info: dont-email.me; posting-host="819a80ab35c5e03f501d453cfd800714";
logging-data="452749"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19L+1lCOzmvd3rupIku63CH"
Cancel-Lock: sha1:N6/Tl1TXBRVViwXfBeOf8aj7DxE=
 by: Mutt...@dastardlyhq.com - Fri, 29 Mar 2024 17:20 UTC

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.

Re: Command Languages Versus Programming Languages

<20240329102026.442@kylheku.com>

  copy mid

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

  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-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 29 Mar 2024 17:25:18 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <20240329102026.442@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>
Injection-Date: Fri, 29 Mar 2024 17:25:18 +0100 (CET)
Injection-Info: dont-email.me; posting-host="72aa73b25261e98b4b2ab1e9e611ffcd";
logging-data="451006"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19awJ78xVHmRJNSme6zXf1a01JJ67Bq1RA="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:2ut57Xj+ELunrBfJaNS6OYc7sdA=
 by: Kaz Kylheku - Fri, 29 Mar 2024 17:25 UTC

On 2024-03-29, Muttley@dastardlyhq.com <Muttley@dastardlyhq.com> wrote:
> On Fri, 29 Mar 2024 17:09:56 -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 11:40:03 +0000
>>> Richard Kettlewell <invalid@invalid.invalid> wrote:
>>>>Muttley@dastardlyhq.com writes:
>>>>> 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
>>>>
>>>>C can be a scripting language by that rule:
>>>
>>> No definition is perfect in this case, its all shades of grey.
>>
>>Yes, a definition can be close to perfet here:
>
> Define perfect. Yours isn't.
>
>>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."

If you write the program in assembler, are the instructions
"commands which are so high level that they are entire applications
or functional blocks within an application?"

In the assembly language program, mulitiple instructions, irrelevant
to the file processing task, are required just to correctly set up a
function call with parameters and return from it.

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

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

<20240329104716.777@kylheku.com>

  copy mid

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

  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-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 29 Mar 2024 17:58:41 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <20240329104716.777@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>
Injection-Date: Fri, 29 Mar 2024 17:58:41 +0100 (CET)
Injection-Info: dont-email.me; posting-host="72aa73b25261e98b4b2ab1e9e611ffcd";
logging-data="469266"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX188Ahr0aFBXZLRFmPTEdfB7B0gvdqRDWKI="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:08jh5AcqgizQlEx4wvK06u7KlN4=
 by: Kaz Kylheku - Fri, 29 Mar 2024 17:58 UTC

On 2024-03-29, Muttley@dastardlyhq.com <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?

Sorry, could you demarcate where exactly the goalposts are? Which mucky
bits?

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
the machine state in an interrupt handler without some instruction that
is of no use in general code generation, not to mention detailed access
to all the working registers that are not normally manipulated from the
HLL.

Yes, the mucky bits of communicating with the device, like passing
frames to and from an ethernet card, would be written in Lisp.

Assembly routines in Lisps, though not Lisp, can at least be written
in Lisp notation and assembled within Lisp.

In machine-compiled Lisps, there is the possibility of inline code,
like in C or other languages.

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

<slrnv0e14j.d8t.naddy@lorvorc.mips.inka.de>

  copy mid

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

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!news.szaf.org!inka.de!mips.inka.de!.POSTED.localhost!not-for-mail
From: nad...@mips.inka.de (Christian Weisgerber)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Fri, 29 Mar 2024 18:12:35 -0000 (UTC)
Message-ID: <slrnv0e14j.d8t.naddy@lorvorc.mips.inka.de>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@dont-email.me>
Injection-Date: Fri, 29 Mar 2024 18:12:35 -0000 (UTC)
Injection-Info: lorvorc.mips.inka.de; posting-host="localhost:::1";
logging-data="13598"; mail-complaints-to="usenet@mips.inka.de"
User-Agent: slrn/1.0.3 (FreeBSD)
 by: Christian Weisgerber - Fri, 29 Mar 2024 18:12 UTC

On 2024-03-29, Muttley@dastardlyhq.com <Muttley@dastardlyhq.com> wrote:

> As a counter point, good luck writing a device driver in lisp.

Mmh--anybody know whether that was done for Lisp machines?

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

Re: Command Languages Versus Programming Languages

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

  copy mid

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

  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 14:51:07 -0400
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <op.2lerzhxda3w0dxdave@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>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 29 Mar 2024 18:57:53 +0100 (CET)
Injection-Info: dont-email.me; posting-host="25c57f461bc1f4f03e87c7a034b7a372";
logging-data="496849"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+y0m8RwLns6FBR7myrrHjxoLn0PaEWRuE="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:SVydx49NRzl323YwFjXTfpHPSLI=
 by: David W. Hodgins - Fri, 29 Mar 2024 18:51 UTC

The distinctions between script and programming languages made sense when
they were first introduced. Later, the ability to compile scripts followed
by the things like java bytecode, and then the use of microcode in to make
"machine language" act like a script have made the distinction murky to
the point of effectively being useless at the technical level.

From the user's point of view, text files the are executed by passing them
to an interpreter are best called scripts, and anything that goes through
some sort of compilation to a binary file that then gets executed are best
called programs.

The terminology will continue to be used, but the distinction does not matter,
except from a speed of processing difference.

Regards, Dave Hodgins

Re: Command Languages Versus Programming Languages

<87r0fsq14n.fsf@tudado.org>

  copy mid

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

  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 16:38:48 -0300
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <87r0fsq14n.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>
<op.2lerzhxda3w0dxdave@hodgins.homeip.net>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Fri, 29 Mar 2024 19:38:52 +0100 (CET)
Injection-Info: dont-email.me; posting-host="f666225367230cb092212f4ff55a99ef";
logging-data="511336"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/QtwEmm6a8gWDCRVKwgF9v2bmxnUJz/Ao="
Cancel-Lock: sha1:GM/i1mDkdtFRXRL2LuGTYmizQ+c=
sha1:ikoP/dQfXza6JNYno2Q5MPzkRBM=
 by: Johanne Fairchild - Fri, 29 Mar 2024 19:38 UTC

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

Re: Command Languages Versus Programming Languages

<programming-20240329210532@ram.dialup.fu-berlin.de>

  copy mid

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

  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: 29 Mar 2024 20:07:29 GMT
Organization: Stefan Ram
Lines: 9
Expires: 1 Feb 2025 11:59:58 GMT
Message-ID: <programming-20240329210532@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 rPuk7pvy5GkfAPxz4YwNLAqt8LH4By3XHk6AMmdqIxmRK/
Cancel-Lock: sha1:JRilNnSIgHMoJ7fx1tSZomKP54U= sha256:tPUOwwYDcRUZ8qdinTLENpmZSFdcsm//L3tx/EXZ/Og=
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 - Fri, 29 Mar 2024 20:07 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.

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!

Re: Command Languages Versus Programming Languages

<uu78p4$ghfn$1@dont-email.me>

  copy mid

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

  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 20:36:52 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <uu78p4$ghfn$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu6d8b$a06e$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 20:36:53 +0100 (CET)
Injection-Info: dont-email.me; posting-host="521a9234fa531f5fbb354bce794424cb";
logging-data="542199"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/aO9CVEohUpIPp3/tqZSgU"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:LjlaSICuAvPXjvv+QyYuPEActbg=
 by: Lawrence D'Oliv - Fri, 29 Mar 2024 20:36 UTC

On Fri, 29 Mar 2024 13:47:07 +0100, David Brown wrote:

> TCL is a language that might be considered half-way between your
> categories here.

TCL is definitely an interesting in-between case. In my limited use, I
recall it was awkward with data structures, just like shell languages. So
maybe that puts it more on the shell side than the programming side.

Re: Command Languages Versus Programming Languages

<uu7a2m$ghfn$4@dont-email.me>

  copy mid

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

  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 20:59:02 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <uu7a2m$ghfn$4@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu624j$792q$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 20:59:02 +0100 (CET)
Injection-Info: dont-email.me; posting-host="521a9234fa531f5fbb354bce794424cb";
logging-data="542199"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX191KA93ChvxJOOxksN3+nwY"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:mWqzYHIbl17++xWQ1i0gh/LHGr0=
 by: Lawrence D'Oliv - Fri, 29 Mar 2024 20:59 UTC

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 a shell language, you have
the assumption that “everything is literal text until indicated
otherwise”; in a programming language, you have the assumption that
“everything is a program construct until indicated otherwise”.

Re: Command Languages Versus Programming Languages

<uu7ahh$ghfn$5@dont-email.me>

  copy mid

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

  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 21:06:58 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <uu7ahh$ghfn$5@dont-email.me>
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
Injection-Date: Fri, 29 Mar 2024 21:06:58 +0100 (CET)
Injection-Info: dont-email.me; posting-host="521a9234fa531f5fbb354bce794424cb";
logging-data="542199"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6+uDEQkpNcPafGJrmQuUs"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:n3iy9Q1aQEXy7qYWyxla00tOjKs=
 by: Lawrence D'Oliv - Fri, 29 Mar 2024 21:06 UTC

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

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

In our CS classes we learned to think about “abstract machines”, and
forget the distinction between “software” and “hardware”. Instead, we
build layers of abstract machines, one on top of the other, getting more
and more specialized towards the particular class of problems we want to
solve at any particular time.

Command languages are just another such “abstract machine”, and the
scripts we write in them are another layer on top.

The layering only stops when you get to a GUI; they can’t be used to build
any further “machines” on top.

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

Pages:12345678910111213
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor