Announcement

Collapse
No announcement yet.

Design and implementation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Design and implementation

    Programming languages share properties with natural languages related to their purpose as vehicles for communication, having a syntactic form separate from its semantics, and showing language families of related languages branching one from another. But as artificial constructs, they also differ in fundamental ways from languages that have evolved through usage. A significant difference is that a programming language can be fully described and studied in its entirety, since it has a precise and finite definition. By contrast, natural languages have changing meanings given by their users in different communities. While constructed languages are also artificial languages designed from the ground up with a specific purpose, they lack the precise and complete semantic definition that a programming language has.

    Many programming languages have been designed from scratch, altered to meet new needs, and combined with other languages. Many have eventually fallen into disuse. Although there have been attempts to design one "universal" programming language that serves all purposes, all of them have failed to be generally accepted as filling this role. The need for diverse programming languages arises from the diversity of contexts in which languages are used:

    Programs range from tiny scripts written by individual hobbyists to huge systems written by hundreds of programmers.
    Programmers range in expertise from novices who need simplicity above all else, to experts who may be comfortable with considerable complexity.
    Programs must balance speed, size, and simplicity on systems ranging from microcontrollers to supercomputers.
    Programs may be written once and not change for generations, or they may undergo continual modification.
    Programmers may simply differ in their tastes: they may be accustomed to discussing problems and expressing them in a particular language.

    One common trend in the development of programming languages has been to add more ability to solve problems using a higher level of abstraction. The earliest programming languages were tied very closely to the underlying hardware of the computer. As new programming languages have developed, features have been added that let programmers express ideas that are more remote from simple translation into underlying hardware instructions. Because programmers are less tied to the complexity of the computer, their programs can do more computing with less effort from the programmer. This lets them write more functionality per time unit.

    Natural language programming has been proposed as a way to eliminate the need for a specialized language for programming. However, this goal remains distant and its benefits are open to debate. Edsger W. Dijkstra took the position that the use of a formal language is essential to prevent the introduction of meaningless constructs, and dismissed natural language programming as "foolish". Alan Perlis was similarly dismissive of the idea.[53] Hybrid approaches have been taken in Structured English and SQL.

    A language's designers and users must construct a number of artifacts that govern and enable the practice of programming. The most important of these artifacts are the language specification and implementation.
Working...
X