Ada programming language

Ada is a structured, statically typed programming language designed by Jean Ichbiah of CII Honeywell Bull in the 1970s. It is positioned to address much the same tasks as C or C++, but with the type-safety of a language like Java. (Some cite Ada as an influence on Java.) Ada was named after Ada, Lady Lovelace, often credited as the first computer programmer.

Contents

Features

Ada was originally targeted at embedded and real-time systems, and is still commonly used for those purposes. The Ada 95 revision, designed by S. Tucker Taft of Intermetrics between 1992 and 1995, improved support for systems, numerical, and financial programming.

Notable features of Ada include strong typing, modularity mechanisms (packages), run-time checking, parallel processing (tasks), exception handling, and generics. Ada 95 added support for object-oriented programming, including dynamic dispatch.

Ada supports run-time checks in order to protect against access to unallocated memory, buffer overflow errors, off by one errors, array access errors, and other avoidable bugs. These checks can be disabled in the interest of efficiency, but can often be compiled efficiently. It also includes facilities to help program verification. For these reasons, it is very widely used in critical systems like avionics, weapons and spacecraft.

It also supports a large number of compile-time checks to help avoid bugs that would not be detectable until run-time in some other languages or would require explicit checks to be added to the source code.

Ada's dynamic memory management is safe and high-level, like Java and unlike C. The specification does not require any particular implementation. Though the semantics of the language allow automatic garbage collection of inaccessible objects, most implementations do not support it. Ada does support a limited form of region-based storage management. Invalid accesses can always be detected at run time (unless of course the check is turned off) and sometimes at compile time.

The Ada language definition is unusual among International Organization for Standardization standards in that it is free content. One result of this is that the standard document (known as the Reference Manual or RM) is the usual reference Ada programmers resort to for technical details, in the same way as a particular standard textbook serves other programming languages.

History

In the 1970s, the US Department of Defense (DoD) was concerned by the number of different programming languages being used for its projects, many of which were obsolete or hardware-dependent, and none of which supported safe modular programming. In 1975 the Higher Order Language Working Group (HOLWG) was formed with the intent of reducing this number by finding or creating a programming language generally suitable for the department's requirements; the result was Ada. The total number of high-level programming languages in use for such projects fell from over 450 in 1983 to 37 by 1996.

Template:Wikisourcepar The working group created a series of language requirements documents—the Strawman, Woodenman, Tinman, Ironman and Steelman documents. Many existing languages were formally reviewed, but the team concluded in 1977 that no existing language met the specifications.

Requests for proposals for a new programming language were issued and four contractors were hired to develop their proposals under the names of Red (Intermetrics led by Benjamin Brosgol), Green (CII Honeywell Bull, led by Jean Ichbiah), Blue (SofTech, led by John Goodenough), and Yellow (SRI International, led by Jay Spitzen ). In April 1978, after public scrutiny, the Red and Green proposals passed to the next phase. In May of 1979, the Green proposal, designed by Jean Ichbiah at CII Honeywell Bull, was chosen and given the name Ada—after Augusta Ada, Countess of Lovelace. This proposal was influenced by the programming language LIS that Ichbiah and his group had developed in the 1970s. The Military Standard reference manual was approved on December 10, 1980 (Ada Lovelace's birthday).

Missing image
AdaLovelace1.jpg
Augusta Ada King, Countess of Lovelace.
The US Department of Defense required the use of Ada (the Ada mandate) for every software project where new code was more than 30% of result, though exceptions to this rule were often granted. This requirement was effectively removed in 1997, as the DoD began to embrace COTS technology. Similar requirements existed in other North Atlantic Treaty Organisation countries.

The language became an ANSI standard in 1983 (ANSI/MIL-STD 1815 (http://archive.adaic.com/standards/83lrm/html/Welcome.html)1815 is Ada Lovelace's birthyear), and an ISO standard in 1987 (ISO-8652:1987). This version of the language is commonly known as Ada 83, from the date of its adoption by ANSI.

Ada 95, the joint ISO/ANSI standard (ISO-8652:1995 (http://www.adaic.org/standards/95lrm/html/RM-TTL.html)) is the latest standard for Ada. It was accepted in February 1995 (making Ada 95 the first ISO standard object-oriented programming language). To help with the standard revision and future acceptance, the US Air Force funded the development of the GNAT Compiler. Nowadays the GNAT Compiler is part of the GNU Compiler Collection.

Work continues on improving and updating the technical content of the Ada programming language. A Technical Corrigendum to Ada 95 was published in October 2001. Presently, more work is being done to produce an Addendum to Ada 95 expected in late 2005 or early 2006.

"Hello, world!" in Ada

A common example of a language's syntax is the Hello world program. There are shortcuts available for Ada.Text_IO.Put_Line, needing less typing, however they are not used here for better understanding. For a detailed explanation see wikibooks:Programming:Ada:Basic.

with Ada.Text_IO; 

procedure Hello is
begin
   Ada.Text_IO.Put_Line("Hello, world!");
end Hello;

The Ariane 5 failure

A commonly encountered myth blames the loss of a European Space Agency Ariane 5 rocket on a bug in an Ada program or on disabling Ada's runtime checks. For the Ariane 4 it had been proven that those runtime checks weren't needed. Although range checks and appropriate exception handlers on all type conversions might have trapped the problem, the problem itself was a design decision to reuse a part and its software from the Ariane 4 rocket without adequate analysis of its suitability or tests on Ariane 5 data.

See also: Ariane 5 Flight 501

See also

Online tutorials

Ada has always been a very open language, and there are many online tutorials available. The following sites have link collections to Ada tutorials

Organizations

Compilers

Tools

Related programming languages

  • SPARK - High integrity language based on an Ada subset
  • VHDL

Related topics

References

International Standards

Books

Template:Wikibookspar

External links

Template:Major programming languages smallbg:Ada cs:Ada da:Ada (programmeringssprog) de:Ada (Programmiersprache) es:Lenguaje de programacin Ada fr:Ada (langage) gl:ADA he:Ada it:Ada nl:Programmeertaal Ada ja:Ada pl:Ada (informatyka) ru:Ада (язык программирования) sv:Ada (programsprk) zh:Ada

Navigation

  • Art and Cultures
    • Art (https://academickids.com/encyclopedia/index.php/Art)
    • Architecture (https://academickids.com/encyclopedia/index.php/Architecture)
    • Cultures (https://www.academickids.com/encyclopedia/index.php/Cultures)
    • Music (https://www.academickids.com/encyclopedia/index.php/Music)
    • Musical Instruments (http://academickids.com/encyclopedia/index.php/List_of_musical_instruments)
  • Biographies (http://www.academickids.com/encyclopedia/index.php/Biographies)
  • Clipart (http://www.academickids.com/encyclopedia/index.php/Clipart)
  • Geography (http://www.academickids.com/encyclopedia/index.php/Geography)
    • Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
    • Maps (http://www.academickids.com/encyclopedia/index.php/Maps)
    • Flags (http://www.academickids.com/encyclopedia/index.php/Flags)
    • Continents (http://www.academickids.com/encyclopedia/index.php/Continents)
  • History (http://www.academickids.com/encyclopedia/index.php/History)
    • Ancient Civilizations (http://www.academickids.com/encyclopedia/index.php/Ancient_Civilizations)
    • Industrial Revolution (http://www.academickids.com/encyclopedia/index.php/Industrial_Revolution)
    • Middle Ages (http://www.academickids.com/encyclopedia/index.php/Middle_Ages)
    • Prehistory (http://www.academickids.com/encyclopedia/index.php/Prehistory)
    • Renaissance (http://www.academickids.com/encyclopedia/index.php/Renaissance)
    • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
    • United States (http://www.academickids.com/encyclopedia/index.php/United_States)
    • Wars (http://www.academickids.com/encyclopedia/index.php/Wars)
    • World History (http://www.academickids.com/encyclopedia/index.php/History_of_the_world)
  • Human Body (http://www.academickids.com/encyclopedia/index.php/Human_Body)
  • Mathematics (http://www.academickids.com/encyclopedia/index.php/Mathematics)
  • Reference (http://www.academickids.com/encyclopedia/index.php/Reference)
  • Science (http://www.academickids.com/encyclopedia/index.php/Science)
    • Animals (http://www.academickids.com/encyclopedia/index.php/Animals)
    • Aviation (http://www.academickids.com/encyclopedia/index.php/Aviation)
    • Dinosaurs (http://www.academickids.com/encyclopedia/index.php/Dinosaurs)
    • Earth (http://www.academickids.com/encyclopedia/index.php/Earth)
    • Inventions (http://www.academickids.com/encyclopedia/index.php/Inventions)
    • Physical Science (http://www.academickids.com/encyclopedia/index.php/Physical_Science)
    • Plants (http://www.academickids.com/encyclopedia/index.php/Plants)
    • Scientists (http://www.academickids.com/encyclopedia/index.php/Scientists)
  • Social Studies (http://www.academickids.com/encyclopedia/index.php/Social_Studies)
    • Anthropology (http://www.academickids.com/encyclopedia/index.php/Anthropology)
    • Economics (http://www.academickids.com/encyclopedia/index.php/Economics)
    • Government (http://www.academickids.com/encyclopedia/index.php/Government)
    • Religion (http://www.academickids.com/encyclopedia/index.php/Religion)
    • Holidays (http://www.academickids.com/encyclopedia/index.php/Holidays)
  • Space and Astronomy
    • Solar System (http://www.academickids.com/encyclopedia/index.php/Solar_System)
    • Planets (http://www.academickids.com/encyclopedia/index.php/Planets)
  • Sports (http://www.academickids.com/encyclopedia/index.php/Sports)
  • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
  • Weather (http://www.academickids.com/encyclopedia/index.php/Weather)
  • US States (http://www.academickids.com/encyclopedia/index.php/US_States)

Information

  • Home Page (http://academickids.com/encyclopedia/index.php)
  • Contact Us (http://www.academickids.com/encyclopedia/index.php/Contactus)

  • Clip Art (http://classroomclipart.com)
Toolbox
Personal tools