Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Is there a useful distinction between "programming" and "scripting" languages?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 51 - 65 of 65 - Collapse all  -  Translate all to Translated (View all originals) < Older 
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Pascal Costanza  
View profile  
 More options Sep 19 2002, 7:12 pm
Newsgroups: comp.lang.lisp
From: Pascal Costanza <costa...@web.de>
Date: Fri, 20 Sep 2002 01:12:38 +0200
Local: Thurs, Sep 19 2002 7:12 pm
Subject: Re: Is there a useful distinction between "programming" and "scripting" languages?

Duane Rettig wrote:
> Pascal Costanza <costa...@web.de> writes:
>>I rather see it like this. Mainstream programming languages tend to do
>>two things: (a) They involve some kind of static type system and other
>>ways to deliberately restrict their expressive power, in order to make
>>them "safer", more "reliable" and "more efficient". (b) They are
>>inclined to be used for creating components, i.e. more or less
>>monolotihic building blocks.

> I'd prefer not to call them Mainstream languages, but to fit the
> distinction closer to their description: compile/link/load/go
> languages.

Oh yes, sure - sorry for that. I meant "language that get lots of
publicity these days", or something along these lines. They happen to be
c/l/l/g languages.

>>In order to do some kind of reality check: How well is Common Lisp
>>suited for component-oriented software?

[...]

Yes, that's an impressive list of features!

Erann Gat wrote:

 > In article <ey3y9a1w29s....@cley.com>, Tim Bradshaw <t...@cley.com> wrote:
[...]

 >>I think that there isn't, and that the distinction is actually
 >>harmful.
 >
 > FWIW, this would also be my answer to this question.
 >
 > It's interesting how many people answered a different question from the
 > one I actually asked.  The question many people are answering in this
 > thread is: "Is there a distinction between scrtiping languages and
 > programming languages (and if so what is it)?"  But the question I posed
 > was "Is there a USEFUL distinction?"  I think it's pretty clear that
there
 > *are* distinctions (if nothing else, the fact that people make the
 > distinction is itself a distinction).  But whether any of the
distinctions
 > have practical utility is an entirely different question, one to which I
 > join Tim in answering with a resounding "NO!".

Well, I still like the discussion, even though we are answering the
wrong questions. ;-)

I have an idea: Perhaps it's better not to talk about whether there is a
useful _distinction_ between scripting languages and "ordinary"
languages. In fact, scripting languages are a useful _addition_ to
"ordinary" languages, if these ordinary languages happen to be c/l/l/g
languages. Obviously, programmers need the kind of flexibility the
additional features provide. The discussion (and the distinction) is
useless in the context of Lisp because Lisp provides these features
right away.

Again, perhaps this is going in the wrong direction. Today, I have asked
a colleague of mine who hasn't (yet ;) adopted the Lisp mindset how he
would define the term scripting languages. He said that the
distinguishing feature is that a script is actually a text file. So for
example, he would regard DOS batch files as scripts, and therefore the
DOS command set as a scripting language.

Pascal


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Duane Rettig  
View profile  
 More options Sep 19 2002, 8:01 pm
Newsgroups: comp.lang.lisp
From: Duane Rettig <du...@franz.com>
Date: Fri, 20 Sep 2002 00:00:06 GMT
Local: Thurs, Sep 19 2002 8:00 pm
Subject: Re: Is there a useful distinction between "programming" and "scripting" languages?

I'm not sure what you mean by "separate".  A nice aspect of Lisp
is that it can be invoked once and several different applications
loaded and run (including scripts) within the one process, or it
can house individual applications , each in different Lisp invocations.

If you really are running cron specifically, then the script might
be a Lisp invocation that talks to other Lisps through an IPC or
by some other means, or else the script might start up and then
load the other Lisp application(s) into the same process, or perhaps
the Lisp is already started, and the cron job simply alerts the script
to run via an interrupt, IPC call, or by any other means you choose.

Another way to run it is to take a Lisp-is-the-operating-system
approach; the Lisp always stays running, and an application that is
equivalent to cron (only written in Lisp) invokes the script, which
in turn runs each application (still within the same lisp invocation).

--
Duane Rettig    du...@franz.com    Franz Inc.  http://www.franz.com/
555 12th St., Suite 1450               http://www.555citycenter.com/
Oakland, Ca. 94607        Phone: (510) 452-2000; Fax: (510) 452-0182  


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe Schaefer  
View profile  
 More options Sep 19 2002, 9:20 pm
Newsgroups: comp.lang.lisp
From: Joe Schaefer <joe+use...@sunstarsys.com>
Date: 19 Sep 2002 21:22:04 -0400
Local: Thurs, Sep 19 2002 9:22 pm
Subject: Re: Is there a useful distinction between "programming" and "scripting" languages?

Duane Rettig <du...@franz.com> writes:
> Joe Schaefer <joe+use...@sunstarsys.com> writes:

[...]

> > What should I do if I wanted to run such a progn as a nightly cron
> > job?  Can I still keep the "script" separate from the "application"?

> I'm not sure what you mean by "separate".  

The script and the application often follow separate, uncoordinated
development tracks.  I don't want to dump the script and the
application into a single executable file just to run the script.
I also don't want to write a shell script in order to run the
lisp script.

I picked cron arbitrarily, but in retrospect that was a poor
example. Something like

  0 1 * * * /path/to/cmu/lisp -load /my/script.lisp -eval \(quit\)

will do what (I think) I want.

Nevertheless, I'm sure you've answered the question that I should
have asked.  Now I just have to figure out what that question is :-)

Thanks again.

--
Joe Schaefer


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frank A. Adrian  
View profile  
 More options Sep 20 2002, 12:03 am
Newsgroups: comp.lang.lisp
From: "Frank A. Adrian" <fadr...@ancar.org>
Date: Thu, 19 Sep 2002 21:03:10 -0700
Local: Fri, Sep 20 2002 12:03 am
Subject: Re: Is there a useful distinction between "programming" and "scripting" languages?

Michael Sullivan wrote:
> I think there's a distinction

Of course there is.  I use a scripting language when I script and a
programming language when I program.  Although since I never script, but
always program, it doesn't matter, anyway...

faa


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vassil Nikolov  
View profile  
 More options Sep 20 2002, 3:26 am
Newsgroups: comp.lang.lisp
From: vnikolo...@poboxes.com (Vassil Nikolov)
Date: 20 Sep 2002 00:26:10 -0700
Local: Fri, Sep 20 2002 3:26 am
Subject: Re: Is there a useful distinction between "programming" and "scripting" languages?

g...@jpl.nasa.gov (Erann Gat) wrote in message <news:gat-1609021326320001@k-137-79-50-101.jpl.nasa.gov>...
> The argument about whether HTML is or isn't a "programming" language
> reminded me of something I've been wondering about for a while: is there a
> useful distinction to be made between "programming" and "scripting"
> languages?  My personal opinon is that there is not, but I'd like to know
> what others think.

Interesting that no one has mentioned REXX in this thread.^1  I
believe that for a reasonable meaning of `scripting,' which is
different from the meaning of `programming,' REXX represents the
ultimate in scripting.  It has a reasonably complete set of
language constructs *and* the primitives of whatever environment
the REXX program is running in.  (If it is the `shell' (CMS), then
all operating system commands are available; if it is the editor
(XEDIT), then all editor commands, and so on.  In fact, it is also
possible to switch the environment during execution.)  If I call
writing in REXX `programming,' that would be for a different
meaning of programming than (say) writing in C, which kind of
represents the ultimate in non-scripting.
_________
^1 AppleScript was mentioned indeed, but REXX predates it
   significantly, and is in my opinion more powerful

It's hard to place a simple and unambiguous label on Common Lisp
from the above point of view.  It is a true and sophisticated
programming language, and at the same time it is easy to imagine it
used in the same way as REXX in a multitude of co-existing
environments (in fact, wasn't it used like that in Lisp machines?).
On the other hand, I cannot see C (or any Algol-like language) in
REXX's role at all.  But maybe Common Lisp is the exception to the
rule, as another poster suggested.

By the way, the mainframe world offers another, older example: JCL
is a scripting language but not a programming language, isn't it?
(Please note that this is quite independent of the question if it
is an awful language or not...)

I guess the simplest (and grossly simplified) rule of thumb I can
think of is: if, even for the simplest executable unit in the
language, some sort of enclosing syntactical delimiters are
mandatory (like ``begin'' and ``end''), then it is a non-scripting
language; if merely concatenating simple expressions/statements in
the language produces an executable unit, then it can qualify as a
scripting language.  In other words, my intuitive understanding of
the distinction is based at least to some extent on the syntax,
specifically the minimum amount of syntax that makes a valid
program or script.

    *    *    *

More philosophically speaking, and in a different line of thought,
I believe that scripting is one step off programming in the
direction towards planning.  What I have in mind is that the main
difference between a plan and a program (or at least one of the
main differences) is that a program is to be executed by a machine
while a plan is to be executed by an intelligent entity.  (A plan
is always underspecified and does not provide courses of action for
almost all of the infinitely many abnormal situations that may
occur, yet its execution is expected to succeed where machine
execution of a program would `produce undefined results.')  Or to
borrow the example quoted by Kaz Kylheku for a simple illustration,

  for f in *.foo; do
    base=`basename $f .foo`
    mv $f $base.bar
  done

has more the scripting nature, while

  for f in *.foo ; do
    base="$(basename -- "$f" .foo)"
    mv -- "$f" "$base.bar"
  done

has more the programming nature, as the former is less burdened
with provisions against undefined results (with the advantage of
making the essence of what is being done more conspicuous), at the
expense of requring more intelligence by the user to avoid applying
it to a situation where it may fail, or to watch for failure and
possibly take corrective action.

---Vassil.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Duane Rettig  
View profile  
 More options Sep 20 2002, 4:00 am
Newsgroups: comp.lang.lisp
From: Duane Rettig <du...@franz.com>
Date: Fri, 20 Sep 2002 08:00:01 GMT
Local: Fri, Sep 20 2002 4:00 am
Subject: Re: Is there a useful distinction between "programming" and "scripting" languages?

You could always separate your applications into fasl files.  Then,
when they are needed, just load them in.  The script could be in a source
file, but it's also easy enough to compile as well.  This is part of
the problem Lispers have of separating scripting and programming
languages; we have all of it in one language!

> I picked cron arbitrarily, but in retrospect that was a poor
> example. Something like

>   0 1 * * * /path/to/cmu/lisp -load /my/script.lisp -eval \(quit\)

> will do what (I think) I want.

Yes.  It depends on how heavyweight your lisp is (i.e. how much memory
it takes and how long it takes to start).  That used to be a problem,
but I don't think it is anymore - most lisps start in small fractions
of a second.

> Nevertheless, I'm sure you've answered the question that I should
> have asked.  Now I just have to figure out what that question is :-)
> Thanks again.

You're welcome.

--
Duane Rettig    du...@franz.com    Franz Inc.  http://www.franz.com/
555 12th St., Suite 1450               http://www.555citycenter.com/
Oakland, Ca. 94607        Phone: (510) 452-2000; Fax: (510) 452-0182  


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erik Naggum  
View profile  
 More options Sep 20 2002, 4:17 am
Newsgroups: comp.lang.lisp
From: Erik Naggum <e...@naggum.no>
Date: 20 Sep 2002 08:17:43 +0000
Local: Fri, Sep 20 2002 4:17 am
Subject: Re: Is there a useful distinction between "programming" and "scripting" languages?
* Erann Gat
| It's interesting how many people answered a different question from the one
| I actually asked.  The question many people are answering in this thread is:
| "Is there a distinction between scrtiping languages and programming
| languages (and if so what is it)?"  But the question I posed was "Is there a
| USEFUL distinction?"

  I believe most people would want to know what the distinctions are before
  they judge them useful or not.  A priori usefulness tend not to exist, so
  the obvious answer to the question is "no" /before/ one does careful study.

--
Erik Naggum, Oslo, Norway

Act from reason, and failure makes you rethink and study harder.
Act from faith, and failure makes you blame someone and push harder.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe Marshall  
View profile  
 More options Sep 20 2002, 9:13 am
Newsgroups: comp.lang.lisp
From: Joe Marshall <j...@ccs.neu.edu>
Date: 20 Sep 2002 09:13:07 -0400
Local: Fri, Sep 20 2002 9:13 am
Subject: Re: Is there a useful distinction between "programming" and "scripting" languages?

So a script is a program written by an amateur?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erik Naggum  
View profile  
 More options Sep 20 2002, 2:15 pm
Newsgroups: comp.lang.lisp
From: Erik Naggum <e...@naggum.no>
Date: 20 Sep 2002 18:15:08 +0000
Local: Fri, Sep 20 2002 2:15 pm
Subject: Re: Is there a useful distinction between "programming" and "scripting" languages?
* Joe Marshall <j...@ccs.neu.edu>
| So a script is a program written by an amateur?

  Would it not be called just a "gram" then?

--
Erik Naggum, Oslo, Norway

Act from reason, and failure makes you rethink and study harder.
Act from faith, and failure makes you blame someone and push harder.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Browne  
View profile  
 More options Sep 20 2002, 2:59 pm
Newsgroups: comp.lang.lisp
From: Christopher Browne <cbbro...@acm.org>
Date: 20 Sep 2002 18:59:04 GMT
Local: Fri, Sep 20 2002 2:59 pm
Subject: Re: Is there a useful distinction between "programming" and "scripting" languages?
After takin a swig o' grog, Erik Naggum <e...@naggum.no> belched out...:

> * Joe Marshall <j...@ccs.neu.edu>
> | So a script is a program written by an amateur?

>   Would it not be called just a "gram" then?

If you get a thousand of them, that's called a "kilogram."
--
(reverse (concatenate 'string "moc.enworbbc@" "sirhc"))
http://cbbrowne.com/info/languages.html
"I'm sure that nobody here would dream of  misusing the Arpanet.  It's
as unthinkable as fornication, or smoking pot."  -- RMS

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lieven Marchand  
View profile  
 More options Sep 20 2002, 4:52 pm
Newsgroups: comp.lang.lisp
From: Lieven Marchand <m...@wyrd.be>
Date: 20 Sep 2002 19:01:57 +0200
Local: Fri, Sep 20 2002 1:01 pm
Subject: Re: Is there a useful distinction between "programming" and "scripting" languages?

vnikolo...@poboxes.com (Vassil Nikolov) writes:
> Interesting that no one has mentioned REXX in this thread.^1  I
> believe that for a reasonable meaning of `scripting,' which is
> different from the meaning of `programming,' REXX represents the
> ultimate in scripting.  It has a reasonably complete set of
> language constructs *and* the primitives of whatever environment
> the REXX program is running in.  (If it is the `shell' (CMS), then
> all operating system commands are available; if it is the editor
> (XEDIT), then all editor commands, and so on.  In fact, it is also
> possible to switch the environment during execution.)  If I call
> writing in REXX `programming,' that would be for a different
> meaning of programming than (say) writing in C, which kind of
> represents the ultimate in non-scripting.

Now that's a blast from the past. In fact, in VM/CMS your application
could define its own environment and then load in REXX scripts that
used this environment.

ObCL: it's 'procedure ... expose' parameter passing gives you the same
choice between lexical and dynamic scope as CL.

--
Hai koe, zei de stier,
Kom mee met mij in de wei,
Dan zijn we tweezaam.
Lieven Marchand <m...@wyrd.be>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vassil Nikolov  
View profile  
 More options Sep 22 2002, 1:55 am
Newsgroups: comp.lang.lisp
From: vnikolo...@poboxes.com (Vassil Nikolov)
Date: 21 Sep 2002 22:55:03 -0700
Local: Sun, Sep 22 2002 1:55 am
Subject: Re: Is there a useful distinction between "programming" and "scripting" languages?

I would say a script is lighter than a program.  And I have seen
programs written by amateurs (or alleged professionals) that were
pretty heavy, only in the wrong way...

---Vassil.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vassil Nikolov  
View profile  
 More options Sep 22 2002, 2:00 am
Newsgroups: comp.lang.lisp
From: vnikolo...@poboxes.com (Vassil Nikolov)
Date: 21 Sep 2002 23:00:01 -0700
Local: Sun, Sep 22 2002 2:00 am
Subject: Re: Is there a useful distinction between "programming" and "scripting" languages?

Erik Naggum <e...@naggum.no> wrote in message <news:3241534508231613@naggum.no>...
> * Joe Marshall <j...@ccs.neu.edu>
> | So a script is a program written by an amateur?

>   Would it not be called just a "gram" then?

An erogram (rather than an amagram), maybe?

(Not to be confused with errorgram...)

---Vassil.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe Marshall  
View profile  
 More options Sep 23 2002, 12:18 pm
Newsgroups: comp.lang.lisp
From: Joe Marshall <j...@ccs.neu.edu>
Date: 23 Sep 2002 12:18:47 -0400
Local: Mon, Sep 23 2002 12:18 pm
Subject: Re: Is there a useful distinction between "programming" and "scripting" languages?

Between the two examples above, I'm not sure I see a difference in
`weight', only a difference in rigor.  The first program is very
sloppy with regard to quoting while the second is not.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Julian Fondren  
View profile  
 More options Sep 26 2002, 12:23 pm
Newsgroups: comp.lang.lisp
From: cleverjul...@hotmail.com (Julian Fondren)
Date: 26 Sep 2002 09:23:52 -0700
Local: Thurs, Sep 26 2002 12:23 pm
Subject: Re: Is there a useful distinction between "programming" and "scripting" languages?
ozan s yigit <o...@blue.cs.yorku.ca> wrote in message <news:vi4wupjjpei.fsf@blue.cs.yorku.ca>...

> Kaz Kylheku [on his shell experiences] :

> > That's basically the culture from which Perl emerged...

> assessing a culture by a mailing list and a few flames is surely not
> very helpful.

What makes you think he did that?  My first edition "Learning Perl" has
an intro by Larry Wall that supports the assertion you quote.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages < Older 
« Back to Discussions « Newer topic     Older topic »