- Scripting language
A scripting language, script language, or extension language is a programming language that allows control of one or more applications. "Scripts" are distinct from the core code of the application, as they are usually written in a different language and are often created or at least modified by the end-user. Scripts are often interpreted from source code or bytecode, whereas the application is typically first compiled to native machine code.
- 1 History
- 2 Types of scripting languages
- 3 Market analysis
- 4 See also
- 5 References
- 6 External links
The first interactive shells were developed in the 1960s to enable remote operation of the first time-sharing systems, and these used shell scripts, which controlled running computer programs within a computer program, the shell.
Languages such as Tcl and Lua were specifically designed as general purpose scripting languages that could be embedded in any application. Other languages such as Visual Basic for Applications (VBA) provided strong integration with the automation facilities of an underlying system. Embedding of such general purpose scripting languages instead of developing a new language for each application also had obvious benefits, relieving the application developer of the need to code a language translator from scratch and allowing the user to apply skills learned elsewhere.
Types of scripting languages
Job control languages and shells
A major class of scripting languages has grown out of the automation of job control, which relates to starting and controlling the behavior of system programs. (In this sense, one might think of shells as being descendants of IBM's JCL, or Job Control Language, which was used for exactly this purpose.) Many of these languages' interpreters double as command-line interpreters such as the Unix shell or the MS-DOS
COMMAND.COM. Others, such as AppleScript offer the use of English-like commands to build scripts. This combined with Mac OS X's Cocoa frameworks allows user to build entire applications using AppleScript & Cocoa objects.
With the advent of graphical user interfaces a specialized kind of scripting language emerged for controlling a computer. These languages interact with the same graphic windows, menus, buttons, and so on that a system generates. They do this by simulating the actions of a human user. These languages are typically used to automate user actions or configure a standard state. Such languages are also called "macros" when control is through simulated key presses or mouse clicks.
These languages could in principle be used to control any application running on a GUI-based computer; but, in practice, the support for such languages typically depends on the application and operating system. There are a few exceptions to this limitation. Some GUI scripting languages are based on recognizing graphical objects from their display screen pixels. These GUI scripting languages do not depend on support from the operating system or application.
Many large application programs include an idiomatic scripting language tailored to the needs of the application user. Likewise, many computer game systems use a custom scripting language to express the programmed actions of non-player characters and the game environment. Languages of this sort are designed for a single application; and, while they may superficially resemble a specific general-purpose language (e.g. QuakeC, modeled after C), they have custom features that distinguish them. Emacs Lisp, while a fully formed and capable dialect of Lisp, contains many special features that make it most useful for extending the editing functions of Emacs. An application-specific scripting language can be viewed as a domain-specific programming language specialized to a single application.
Text processing languages
The processing of text-based records is one of the oldest uses of scripting languages. Scripts written for the Unix tools AWK, sed, and grep automate tasks that involve text-based configuration and log files. Of high importance here is the regular expression, a language developed for the formal description of the lexical structure of text, and used by all of these tools.
Perl was originally designed to overcome limitations of these tools and has grown to be one of the most widespread general purpose languages.
General-purpose dynamic languages
Some languages, such as Perl, began as scripting languages but were developed into programming languages suitable for broader purposes. Other similar languages – frequently interpreted, memory-managed, or dynamic – have been described as "scripting languages" for these similarities, even if they are more commonly used for applications programming. They are usually not called "scripting languages" by their own users.
Other complex and task-oriented applications may incorporate and expose an embedded programming language to allow their users more control and give them more functionality than can be available through a user interface, no matter how sophisticated. For example, Autodesk Maya 3D authoring tools embed the MEL scripting language, or Blender which has Python to fill this role.
Some other types of applications that need faster feature addition or tweak-and-run cycles (e.g. game engines) also use an embedded language. During the development, this allows them to prototype features faster and tweak more freely, without the need for the user to have intimate knowledge of the inner workings of the application or to rebuild it after each tweak (which can take a significant amount of time.) The scripting languages used for this purpose range from the more common and more famous Lua and Python to lesser-known ones such as AngelScript and Squirrel.
- Architecture description language
- Build automation
- Domain-specific language
- Glue code
- Interpreted language
- Interpreter directive
- List of programming languages
- Macro and preprocessor languages
- Ousterhout's dichotomy
- Programming in the large and programming in the small
- Shebang (Unix)
- Shell (computing)
- System programming
- Web template languages
- ^ IEEE Computer, 2008, In praise of scripting, Ronald Loui author
- ^ Brown, Vicki. ""Scripting Languages"". http://www.mactech.com/articles/mactech/Vol.15/15.09/ScriptingLanguages/index.html. Retrieved 2009-07-22.
- ^ Sheppard, Doug (2000-10-16). "Beginner's Introduction to Perl". dev.perl.org. http://www.perl.com/pub/2000/10/begperl1.html. Retrieved 2011-01-08.
- Patterns for Scripted Applications
- A study of the Script-Oriented Programming (SOP) suitability of selected languages — from The Scriptometer
- A Slightly Skeptical View on Scripting Languages by Dr. Nikolai Bezroukov
- Rob van der Woude's Scripting Pages — Administrative scripting related information (includes examples)
- Are Scripting Languages Any Good? A Validation of Perl, Python, Rexx, and Tcl against C, C++, and Java (PDF) — 2003 study
- Use of VBScript in QTP automation
- Scripting on the Java platform — JavaWorld
- "Programming is Hard - Let's Go Scripting" by Larry Wall - Perl.com transcript of his State of the Onion speech.
Wikimedia Foundation. 2010.
Look at other dictionaries:
scripting language — noun (computing) A high level programming language that uses an interpreter (qv) to execute programs • • • Main Entry: ↑script … Useful english dictionary
Scripting Language — [engl.], Script Sprache … Universal-Lexikon
scripting language — noun A computer language designed to be used as part of a larger application. Its a great application, but the scripting language is cheesy … Wiktionary
scripting language — language which instructs a computer on how to perform a particular procedure, language which tells a computer how to connect to another computer … English contemporary dictionary
mIRC scripting language — Paradigm(s) Event driven programming, Procedural programming Appeared in 1995 (1995) Designed by Khaled Mardam Bey Developer Khaled Mardam Bey … Wikipedia
Linden Scripting Language — (или LSL) скриптовый язык программирования, используемый при создании контента резидентами виртуального мира Second Life, созданного компанией Linden Lab. С помощью LSL скриптов можно управлять поведением объектов виртуального мира.… … Википедия
MIRC scripting language — The mIRC scripting language is the scripting language embedded in mIRC, a popular IRC client for Windows.Primary uses*Channel and personal protection against any types of attacks (flooding, spamming, CTCP floods, etc) *Dialog windows can be… … Wikipedia
JAWS Scripting Language — is a proprietary programming language that facilitates the interoperability of the JAWS for Windows screen reading program with practically any application–both proprietary and off the shelf. The JAWS Scripting Language, or JSL is a compiled… … Wikipedia
Linden Scripting Language — Linden Scripting Language, or LSL, is the programming language used by residents of Second Life , a virtual world by Linden Lab. [ http://wiki.secondlife.com/wiki/Help:Getting started with LSL#What is LSL.3F] LSL scripts can control the behavior… … Wikipedia