Sujet : Re: Command Languages Versus Programming Languages
De : 643-408-1753 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.unix.shell comp.unix.programmer comp.lang.miscDate : 29. Mar 2024, 18:58:41
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240329104716.777@kylheku.com>
References : 1 2 3 4 5 6
User-Agent : slrn/pre1.0.4-9 (Linux)
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/txrCygnal: Cygwin Native Application Library: http://kylheku.com/cygnalMastodon: @Kazinator@mstdn.ca