Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

If you think the system is working, ask someone who's waiting for a prompt.


devel / comp.lang.misc / Re: 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

Pages:12345678910111213
Re: Command Languages Versus Programming Languages

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

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2262&group=comp.lang.misc#2262

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

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

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

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

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

Re: Command Languages Versus Programming Languages

<20240330110335.775@kylheku.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2263&group=comp.lang.misc#2263

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

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

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

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

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

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

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

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

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

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

Would you say, fifty shades?

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

Re: Command Languages Versus Programming Languages

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

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2264&group=comp.lang.misc#2264

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

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

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

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

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

Re: Command Languages Versus Programming Languages

<20240330112105.553@kylheku.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2265&group=comp.lang.misc#2265

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

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

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

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

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

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

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

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

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

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

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

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

Re: Command Languages Versus Programming Languages

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

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2266&group=comp.lang.misc#2266

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

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

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

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

Re: Command Languages Versus Programming Languages

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

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2267&group=comp.lang.misc#2267

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

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

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

Re: Command Languages Versus Programming Languages

<20240330131838.723@kylheku.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2268&group=comp.lang.misc#2268

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

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

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

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

Re: Command Languages Versus Programming Languages

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

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2269&group=comp.lang.misc#2269

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

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

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

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

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

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

Re: Command Languages Versus Programming Languages

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

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2270&group=comp.lang.misc#2270

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

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

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

Borland's Turbo Pascal compiled to machine code.

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

Re: Command Languages Versus Programming Languages

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

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2271&group=comp.lang.misc#2271

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

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

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

ls

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

rm foo.bar

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

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

Re: Command Languages Versus Programming Languages

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

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2272&group=comp.lang.misc#2272

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

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

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

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

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

Re: Command Languages Versus Programming Languages

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

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2273&group=comp.lang.misc#2273

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

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

So its not a script.

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

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

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

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

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

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

Re: Command Languages Versus Programming Languages

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

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2274&group=comp.lang.misc#2274

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

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

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

Re: Command Languages Versus Programming Languages

<87r0fp8lab.fsf@tudado.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2275&group=comp.lang.misc#2275

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

Muttley@dastardlyhq.com writes:

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

Fashion and intelligence have never been very good friends.

Re: Command Languages Versus Programming Languages

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

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2276&group=comp.lang.misc#2276

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

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

I think of the type system:

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

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

Also, resource handling:

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

Re: Command Languages Versus Programming Languages

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

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2277&group=comp.lang.misc#2277

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

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

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

Re: Command Languages Versus Programming Languages

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

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2278&group=comp.lang.misc#2278

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

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

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

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

'Andreas
--
ceterum censeo redmondinem esse delendam

Re: Command Languages Versus Programming Languages

<20240401111552.00006ddc@gmail.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2279&group=comp.lang.misc#2279

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

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

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

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

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

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

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

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

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

Re: Command Languages Versus Programming Languages

<20240401111844.249@kylheku.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2280&group=comp.lang.misc#2280

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

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

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

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

The whole thing is compiled into native code.

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

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

Re: Command Languages Versus Programming Languages

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

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2281&group=comp.lang.misc#2281

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

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

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

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

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

Re: Command Languages Versus Programming Languages

<20240401132531.00003710@gmail.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2282&group=comp.lang.misc#2282

  copy link   Newsgroups: comp.unix.shell comp.unix.programmer comp.lang.misc
Path: i2pn2.org!i2pn.org!nntp.comgw.net!newsfeed.bofh.team!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: commodorejohn@gmail.com (John Ames)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Command Languages Versus Programming Languages
Date: Mon, 1 Apr 2024 13:25:31 -0700
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <20240401132531.00003710@gmail.com>
References: <uu54la$3su5b$6@dont-email.me>
<87edbtz43p.fsf@tudado.org>
<types-20240401151149@ram.dialup.fu-berlin.de>
<20240401111552.00006ddc@gmail.com>
<h6EON.153422$TSTa.2209@fx47.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 01 Apr 2024 20:25:33 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="6e54db6547ba0cd3cfb65d52cc115a0b";
logging-data="2808884"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/gdOjJWaBfLR1kuF9bJo7+Vu8dkERzKj4="
Cancel-Lock: sha1:ClWSywXDlO/w5wLAOHna5JDgYcE=
X-Newsreader: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-w64-mingw32)
 by: John Ames - Mon, 1 Apr 2024 20:25 UTC

On Mon, 01 Apr 2024 19:42:05 GMT
scott@slp53.sl.home (Scott Lurndal) wrote:

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

Oh, it's an interesting question from a general standpoint, and I think
you could make an argument that it'd be "useful" to someone trying to
determine what the right tool for a given job would be.* The problem
seems to be that *A.* we're arguing from several wildly different
definitions of "scripting language" - is it a matter of problem domain?
Implementation details? Both? Phase of the moon? - and nobody seems to
want to budge on their preferred line, and *B.* even with a given
definition, it's not exactly a firm line.

* (Funny story - when I was a young'un first dabbling with computer
programming, I got the impression that a lot of DOS games were written
in Batch, of all things, because that was how you invoked them, and
spent several confused days poring over the MS documentation trying to
figure out how they could've done it!)

Re: Command Languages Versus Programming Languages

<20240401134457.000067f2@gmail.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2283&group=comp.lang.misc#2283

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

On Mon, 1 Apr 2024 11:15:52 -0700
John Ames <commodorejohn@gmail.com> wrote:

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

And, in fact, C actually does one specific bit of automatic memory
management itself - the stack, which may or may not even *be* a true
hardware stack (depending on the architecture,) and which is handled in
an entirely transparent fashion* by compiler-generated entry/exit code
generated by the compiler for each function.

* (Until you go and pass a pointer to a local variable to some piece of
code that expects it to still be valid later, natch.)

Re: Command Languages Versus Programming Languages

<stack-20240401220727@ram.dialup.fu-berlin.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2284&group=comp.lang.misc#2284

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

John Ames <commodorejohn@gmail.com> wrote or quoted:
>And, in fact, C actually does one specific bit of automatic memory
>management itself - the stack, which may or may not even *be* a true
>hardware stack (depending on the architecture,) and which is handled in
>an entirely transparent fashion* by compiler-generated entry/exit code
>generated by the compiler for each function.

This stack "management" is "limited" in C:

|Unfortunately, the notion of stack overflow is not mentioned
|by the standard or the standard’s rationale at all. This is
|very troublesome, as for most actual implementations stack
|overflow is a real problem.
....
|in a real C implementation, a call like f(10000000) will not
|return 10000000, but instead will crash with a message like
|"segmentation fault". Furthermore, stack overflow does not
|necessarily have to result in a crash with a nice error
|message, but might also overwrite non-stack parts of the
|memory (possibly putting the address of virus code there).
|Stack overflow even can occur without function calls. For
|example, the program int main(void) { int a[10000000]; }
....
"Subtleties of the ANSI/ISO C standard" (2012); Robbert
Krebbers, Freek Wiedijk; Radboud University Nijmegen.

Re: Command Languages Versus Programming Languages

<20240401143042.000056e0@gmail.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2285&group=comp.lang.misc#2285

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

On 1 Apr 2024 21:13:42 GMT
ram@zedat.fu-berlin.de (Stefan Ram) wrote:

> This stack "management" is "limited" in C:

True enough, although as noted that's an implementation issue as much
as it is a limitation of the language spec. (I'm not sure how you could
handle that in a way that's both robust and reasonably C-ish...)

> |Stack overflow even can occur without function calls. For
> |example, the program int main(void) { int a[10000000]; }

But I did have to have a chuckle at this reminder of the days when "try
to allocate < 40 MB on the stack" meant "automatic segfault." A lotta
modern developers should've had to cut their teeth in an environment
like that...!

Re: Command Languages Versus Programming Languages

<uuf9n3$2nlg1$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2286&group=comp.lang.misc#2286

  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: Mon, 1 Apr 2024 21:41:56 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <uuf9n3$2nlg1$1@dont-email.me>
References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me>
<20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@dont-email.me>
<20240329101248.556@kylheku.com> <uu6t9h$dq4d$1@dont-email.me>
<20240329104716.777@kylheku.com> <uu8p02$uebm$1@dont-email.me>
<20240330112105.553@kylheku.com> <uudrfg$2cskm$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 01 Apr 2024 21:41:56 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="445f0d7a61ecd06b6b866cbc6ffe24ee";
logging-data="2872833"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18jZl8DkCyeeEzTsQX0lnpa"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:HJBGWVG71ucuNxFwWBMzn2rhP6c=
 by: Lawrence D'Oliv - Mon, 1 Apr 2024 21:41 UTC

On Mon, 1 Apr 2024 08:32:48 -0000 (UTC), Muttley wrote:

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

The BASIC comparison is just ignorant, but a lot of the ugliness comes
from the traditional “parenthesis pileup” layout. I prefer to write my
LISP code in a different way.

One of the key things about LISP is homoiconicity. That is, the language
explicitly includes an AST representation made out of objects defined in
the language itself. This allows for a robust token-based macro facility,
for example. Contrast this with the fiddliness and fragility of #define in
C and C++, for example.


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

Pages:12345678910111213
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor