Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #38543
| Date | 2013-02-09 16:53 -0700 |
|---|---|
| From | Michael Torrie <torriem@gmail.com> |
| Subject | Re: Is Python programming language? |
| References | <1360328631.24677.YahooMailClassic@web125203.mail.ne1.yahoo.com> <mailman.1500.1360329332.2939.python-list@python.org> <kf3edb$1ar$1@reader1.panix.com> <6lmdh8t7osnvjj5v5vnrav8q5anum6ln3q@4ax.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1564.1360454007.2939.python-list@python.org> (permalink) |
On 02/09/2013 04:26 PM, Tim Roberts wrote: > Most people would call bash a "scripting language", but it is also clearly > a programming language. It has syntax, variables and expressions. I > suspect it is Turing-complete, although I haven't seen a proof of that. > > I would assert that scripting languages are a proper subset of programming > languages, not a separate category. I'm pretty sure Bash is turing complete. I know it's been shown that sed is turing complete, and awk probably is too! If I recall, the way to show a language is turing complete is to implement a turing machine in it. I'm pretty sure bash could handle that, though maybe with help from a standard set of unix tools one always finds used in conjunction with the shell. Here's one implementation: https://github.com/thulsadum/bash-turing-machine/blob/master/turing.sh I would say that "scripting language" isn't a definition of a type of language, but rather a description of how a language is put to use in a particular case. For example, when embedded in a game, lua is used as a scripting language to automate and extend the game in certain ways, by exposing game objects to the lua engine and allowing interpreted lua code to manipulate (script) them. Javascript is the same thing in other programs. But whether you call javascript a scripting language in firefox, or something much more (as it's actualy required for firefox to function at all), is a matter of personal preference really. I've seen python embedded in apps to act as a scripting language before. I've also seen full-blown apps written in python. So yes, the distinction, as made by the original poster, isn't really necessary.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Is Python programming language? Stephane Wirtel <stephane@wirtel.be> - 2013-02-08 14:15 +0100
Re: Is Python programming language? Grant Edwards <invalid@invalid.invalid> - 2013-02-08 17:59 +0000
Re: Is Python programming language? Tim Roberts <timr@probo.com> - 2013-02-09 15:26 -0800
Re: Is Python programming language? Michael Torrie <torriem@gmail.com> - 2013-02-09 16:53 -0700
Re: Is Python programming language? Terry Reedy <tjreedy@udel.edu> - 2013-02-09 21:40 -0500
Re: Is Python programming language? Terry Reedy <tjreedy@udel.edu> - 2013-02-09 21:47 -0500
Re: Is Python programming language? Michael Torrie <torriem@gmail.com> - 2013-02-09 19:55 -0700
Re: Is Python programming language? Dan Stromberg <drsalists@gmail.com> - 2013-02-11 15:46 -0800
csiph-web