Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

You will live a long, healthy, happy life and make bags of money.


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

SubjectAuthor
* Re: Command Languages Versus Programming LanguagesBozo User
`* Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro
 `* Re: Command Languages Versus Programming Languagesusuario
  `- Re: Command Languages Versus Programming LanguagesLawrence D'Oliveiro

1
Subject: Re: Command Languages Versus Programming Languages
From: Bozo User
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Mon, 30 Sep 2024 20:04 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: anthk@disroot.org (Bozo User)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Mon, 30 Sep 2024 20:04:53 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 70
Message-ID: <vdf095$2c9hb$6@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: Mon, 30 Sep 2024 22:04:54 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a34d6f5221beabc0a05e77e5b08e5f7d";
logging-data="2500139"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX180/UMO/gdkXDlppFYbNkaa"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:SVNTZ4U/UujfsIHlJ2sGGJCLalc=
View all headers

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

Check Emacs' eshell where you can mix pseudo-sh code with Elisp

Subject: Re: Command Languages Versus Programming Languages
From: Lawrence D'Oliv
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Mon, 30 Sep 2024 20:59 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Mon, 30 Sep 2024 20:59:16 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 5
Message-ID: <vdf3f4$2cn51$2@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <vdf095$2c9hb$6@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 30 Sep 2024 22:59:17 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a1a02b051aaecb67c07f3c0a04f3a680";
logging-data="2514081"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Omh47ovMNORCkswZH4dli"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:gxiFQBNASTQTGXPasCAxN+jpgLo=
View all headers

On Mon, 30 Sep 2024 20:04:53 -0000 (UTC), Bozo User wrote:

> Check Emacs' eshell where you can mix pseudo-sh code with Elisp

Can you give examples that either support or refute my claim?

Subject: Re: Command Languages Versus Programming Languages
From: usuario
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Tue, 1 Oct 2024 20:41 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: anthk@disroot.org (usuario)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Tue, 1 Oct 2024 20:41:11 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <vdhmp7$2sc22$2@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <vdf095$2c9hb$6@dont-email.me>
<vdf3f4$2cn51$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 01 Oct 2024 22:41:11 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="6a14c9de7a5757eec5a1ca641c874bd8";
logging-data="3027010"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+FSB7eBmBP7gAljMEJkiVw"
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
Cancel-Lock: sha1:R/TsADVZ4TMKQVv1/7r2sATbfnU=
View all headers

El Mon, 30 Sep 2024 20:59:16 -0000 (UTC), Lawrence D'Oliveiro escribió:

> On Mon, 30 Sep 2024 20:04:53 -0000 (UTC), Bozo User wrote:
>
>> Check Emacs' eshell where you can mix pseudo-sh code with Elisp
>
> Can you give examples that either support or refute my claim?

With eshell you can do sh like commands and put elisp (literal lisp code)
inside a loop:

https://howardism.org/Technical/Emacs/eshell-why.html

Subject: Re: Command Languages Versus Programming Languages
From: Lawrence D'Oliv
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Tue, 1 Oct 2024 22:22 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Tue, 1 Oct 2024 22:22:42 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <vdhsni$2t1fi$12@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <vdf095$2c9hb$6@dont-email.me>
<vdf3f4$2cn51$2@dont-email.me> <vdhmp7$2sc22$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 02 Oct 2024 00:22:42 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="0dd655ef60256d70eb97de61356a90a9";
logging-data="3048946"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+2S8r4sSSV2VWz4ZzgSCVy"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:Cx4o5+7QNdNJxMwUmSgMpUSEjFo=
View all headers

On Tue, 1 Oct 2024 20:41:11 -0000 (UTC), usuario wrote:

> With eshell you can do sh like commands and put elisp (literal lisp
> code) inside a loop:
>
> https://howardism.org/Technical/Emacs/eshell-why.html

You have to put quotes around literal strings. That still makes it a
“programming language”, not a “command language” (according to my original
definition).

1

rocksolid light 0.9.8
clearnet tor