Ada (programming language)

term

programming

Kept in this browser · My desk

The language the United States Department of Defense created in the 1970s as a department-wide standard, released in 1980 and standardized in 1983 as Ada 83.

A 1983 policy mandated its use in the department; the current standard, ISO/IEC 8652:2023 (ISO is the International Organization for Standardization, IEC the International Electrotechnical Commission), was published in May 2023. The Ada Reference Manual credits the design team led by Jean D. Ichbiah, working to the Steelman requirements of June 1978; the name taken from Ada Lovelace is reported in secondary sources.

What it is. Ada is the programming language the United States Department of Defense (DoD) created in the 1970s as a single standard for its software, released in 1980 and standardized in 1983 as Ada 83, and still maintained as an international standard. It was built for large, long-lived and reliable systems: packages to separate interface from implementation, strong typing, generics, tasks for concurrency, exceptions and run-time checks.

The requirements came first. Ada is unusual in that its requirements were written and reviewed before the language existed. The Steelman document of June 1978, Department of Defense Requirements for High Order Computer Programming Languages, explains in its preface that "The Department of Defense Common High Order Language program was established in 1975 with the goal of establishing a single high order computer programming language appropriate for DoD embedded computer systems", that a High Order Language Working Group (HOLWG) was formed to state the requirements and evaluate existing languages, and that DoD Directive 5000.29 required new defence systems to be programmed in an approved, centrally controlled high order language. David A. Wheeler's Steelman On-Line lists the series of drafts: Strawman (April 1975), Woodenman (13 August 1975, by David A. Fisher of the Institute for Defense Analyses), Tinman (January 1976), Ironman (January 1977), Revised Ironman (July 1977) and Steelman (June 1978). The Ada Reference Manual dates the program's start to 1974, the Steelman preface to 1975.

The design. The Ada Reference Manual's acknowledgements for the Ada 83 edition record that the language "was designed in accordance with the final (1978) form of these requirements, embodied in the Steelman specification", and that "The Ada design team was led by Jean D. Ichbiah" and included Bernd Krieg-Brueckner, Brian Wichmann, Henry Ledgard, Jean-Claude Heliard, Jean-Loup Gailly, Jean-Raymond Abrial, John Barnes, Mike Woodger, Olivier Roubine, Paul Hilfinger and Robert Firth. A formal definition using denotational semantics was developed in parallel and influenced the language. The name honours Ada Lovelace.

Standards. A 1983 policy mandated Ada's use in the department, and it is still maintained as an International Organization for Standardization (ISO) standard: the Reference Manual records editions for Ada 95, Ada 2005 and Ada 2012 (corrected in 2016 as ISO/IEC 8652:2012/COR.1:2016, IEC being the International Electrotechnical Commission), and the current Ada 2022 was published as ISO/IEC 8652:2023 in May 2023. The 2022 edition adds, among other things, a Jorvik profile for hard real-time applications.

SPARK. The most active part of the Ada world today is SPARK, which AdaCore describes as "a dialect of Ada that removes Ada features leading to undefined behavior and extends Ada's support for formal specification". Its tools try to prove, statically, that run-time errors such as out-of-bounds array accesses, division by zero, arithmetic overflow and null dereferences "will never occur", so that the corresponding checks can be removed safely; they also prove memory safety through an ownership model and check user-written contracts. AdaCore publishes a case study of NVIDIA adopting SPARK for security-critical software, a vendor's account.

Where it shows up. Ada and SPARK are used where failure is expensive: AdaCore lists avionics, automotive, defence, medical, rail, security and space among its industries, and the language's run-time checks and strong typing are designed for code that must run for decades.

What goes wrong. Ada's safety comes from its checks, so code that suppresses them for speed without proving them unnecessary gives up the protection; SPARK exists to make that removal safe. The language was also burdened by its early compilers' cost and by the mandate, which made it look imposed rather than chosen. Its strictness is the reason it is chosen now.

Neighbours. Ada belongs with Pascal among the block-structured descendants of ALGOL, is named after Ada Lovelace, sits beside other ISO-standardized languages in the history of the programming language, and is the main example of a language designed from written requirements. Brazilian practice says Ada.

Also known as: ada 83, ada 2022, mil-std-1815

Sources

← Back to A Back to the glossary