Ousterhout's dichotomy: Difference between revisions
m →History: Replace |id= with |message-id= in {{cite newsgroup}} before migration to Module:Citation/CS1; |
m →History: fixed CS1 errors: dates to meet MOS:DATEFORMAT (also General fixes) using AWB (10518) |
||
Line 20: | Line 20: | ||
==History== |
==History== |
||
The dichotomy was fully set out in {{Harvtxt|Ousterhout|1998}}, though Ousterhout had drawn this distinction since at least the design of Tcl (1988), and had stated it publicly at various times. An early episode was the "[http://www.vanderburg.org/OldPages/Tcl/war/ The Tcl War]" of late September and October 1994, where [[Richard Stallman]] posted an article critical of Tcl, entitled "Why you should not use Tcl",<ref>{{cite newsgroup |title=Why you should not use Tcl |author=Richard Stallman (rms@gnu.ai.mit.edu) |date=Fri, 23 Sep 94 19:14:52 -0400 |newsgroup=comp.lang.tcl |message-id= |url=http://www.vanderburg.org/OldPages/Tcl/war/0000.html |accessdate=September 1, 2013}}</ref> to which Ousterhout replied with an articulation of his dichotomy:<ref>{{cite newsgroup |title=Re: Why you should not use Tcl |author=John Ousterhout (ouster@tcl.eng.sun.com) |date=26 Sep 1994 18:13:27 GMT |newsgroup=comp.lang.tcl |message-id= |url=http://www.vanderburg.org/OldPages/Tcl/war/0009.html |accessdate=September 1, 2013}}</ref> |
The dichotomy was fully set out in {{Harvtxt|Ousterhout|1998}}, though Ousterhout had drawn this distinction since at least the design of Tcl (1988), and had stated it publicly at various times. An early episode was the "[http://www.vanderburg.org/OldPages/Tcl/war/ The Tcl War]" of late September and October 1994, where [[Richard Stallman]] posted an article critical of Tcl, entitled "Why you should not use Tcl",<ref>{{cite newsgroup |title=Why you should not use Tcl |author=Richard Stallman (rms@gnu.ai.mit.edu) |date=Fri, 23 Sep 94 19:14:52 -0400 |newsgroup=comp.lang.tcl |message-id= |url=http://www.vanderburg.org/OldPages/Tcl/war/0000.html |accessdate=September 1, 2013}}</ref> to which Ousterhout replied with an articulation of his dichotomy:<ref>{{cite newsgroup |title=Re: Why you should not use Tcl |author=John Ousterhout (ouster@tcl.eng.sun.com) |date=26 Sep 1994 <!-- 18:13:27 GMT --> |newsgroup=comp.lang.tcl |message-id= |url=http://www.vanderburg.org/OldPages/Tcl/war/0009.html |accessdate=September 1, 2013}}</ref> |
||
{{quotation| |
{{quotation| |
||
I think that Stallman's objections to Tcl may stem largely from one aspect of Tcl's design that he either doesn't understand or doesn't agree with. This is the proposition that you should use *two* languages for a large software system: one, such as C or C++, for manipulating the complex internal data structures where performance is key, and another, such as Tcl, for writing small-ish scripts that tie together the C pieces and are used for extensions.}} |
I think that Stallman's objections to Tcl may stem largely from one aspect of Tcl's design that he either doesn't understand or doesn't agree with. This is the proposition that you should use *two* languages for a large software system: one, such as C or C++, for manipulating the complex internal data structures where performance is key, and another, such as Tcl, for writing small-ish scripts that tie together the C pieces and are used for extensions.}} |
Revision as of 19:05, 19 December 2014
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these messages)
|
Ousterhout's dichotomy is computer scientist John Ousterhout's claim[1] that high-level programming languages tend to fall into two groups, each with distinct properties and uses: system programming languages and scripting languages – compare programming in the large and programming in the small. This distinction underlies the design of his language Tcl.
System programming languages (or applications languages) usually have the following properties:
- They are typed statically
- They support creating complex data structures
- Programs in them are compiled into machine code
- Programs in them are meant to operate largely independently of other programs
System programming languages tend to be used for components and applications with large amounts of internal functionality such as operating systems, database servers, and Web browsers. These applications typically employ complex algorithms and data structures and require high performance. Prototypical examples of system programming languages include C and Modula-2.
By contrast, scripting languages (or glue languages) tend to have the following properties:
- They are typed dynamically
- They have little or no provision for complex data structures
- Programs in them (scripts) are interpreted
Scripting languages tend to be used for applications where most of the functionality comes from other programs (often implemented in system programming languages); the scripts are used to glue together other programs or add additional layers of functionality on top of existing programs. Ousterhout claims that scripts tend to be short and are often written by less sophisticated programmers, so execution efficiency is less important than simplicity and ease of interaction with other programs. Common applications for scripting include Web page generation, report generation, graphical user interfaces, and system administration. Prototypical examples of scripting languages include AppleScript, C shell, DOS batch files, and Tcl.
History
The dichotomy was fully set out in Ousterhout (1998) , though Ousterhout had drawn this distinction since at least the design of Tcl (1988), and had stated it publicly at various times. An early episode was the "The Tcl War" of late September and October 1994, where Richard Stallman posted an article critical of Tcl, entitled "Why you should not use Tcl",[2] to which Ousterhout replied with an articulation of his dichotomy:[3]
I think that Stallman's objections to Tcl may stem largely from one aspect of Tcl's design that he either doesn't understand or doesn't agree with. This is the proposition that you should use *two* languages for a large software system: one, such as C or C++, for manipulating the complex internal data structures where performance is key, and another, such as Tcl, for writing small-ish scripts that tie together the C pieces and are used for extensions.
Criticism
Many [who?] believe that the dichotomy is highly arbitrary, and refer to it as Ousterhout's fallacy or Ousterhout's false dichotomy.[citation needed] While strong-versus-weak typing, data structure complexity, and independent versus stand-alone might be said to be unrelated features, the usual critique of Ousterhout's dichotomy is of its distinction of compiling versus interpreting, since neither semantics nor syntax depend significantly on whether code is compiled into machine-language, interpreted, tokenized, or byte-compiled at the start of each run, or any mix of these. Many languages fall between being interpreted or compiled (e.g. Lisp, Forth, UCSD Pascal, Perl, and Java). This makes compiling versus interpreting a dubious parameter in a taxonomy of programming languages.
References
- This article is based on material taken from the Free On-line Dictionary of Computing prior to 1 November 2008 and incorporated under the "relicensing" terms of the GFDL, version 1.3 or later.
- ^ Ousterhout, John (March 1998). "Scripting: Higher Level Programming for the 21st Century". IEEE Computer magazine. Retrieved 2011-10-09.
- ^ Richard Stallman (rms@gnu.ai.mit.edu) (Fri, 23 Sep 94 19:14:52 -0400). "Why you should not use Tcl". Newsgroup: comp.lang.tcl. Retrieved September 1, 2013.
{{cite newsgroup}}
: Check date values in:|date=
(help) - ^ John Ousterhout (ouster@tcl.eng.sun.com) (26 Sep 1994). "Re: Why you should not use Tcl". Newsgroup: comp.lang.tcl. Retrieved September 1, 2013.
Further reading
- Kumar, Deepak (September 2010). "Reflections: language wars and false dichotomies". ACM Inroads. 1 (3).
- Grover, Andy. "Become a better programmer by bridging Ousterhout's Dichotomy". Open Source Bridge.
{{cite journal}}
: External link in
(help)|journal=
External links
- Ousterhout's dichotomy at the Tcl wiki