Talk:Programming language
This is the talk page for discussing improvements to the Programming language article. This is not a forum for general discussion of the article's subject. |
Article policies
|
Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
Archives: 1, 2, 3, 4, 5, 6, 7, 8 |
![]() | Programming language was one of the Engineering and technology good articles, but it has been removed from the list. There are suggestions below for improving the article to meet the good article criteria. Once these issues have been addressed, the article can be renominated. Editors may also seek a reassessment of the decision if they believe there was a mistake. | |||||||||||||||||||||
|
![]() | This ![]() It is of interest to the following WikiProjects: | |||||||||||||||||||||||||||
|
A summary of this article appears in Language. |
![]() | The contents of the Dialect (computing) page were merged into Programming language on 7 February 2018. For the contribution history and old versions of the redirected page, please see its history; for the discussion at that location, see its talk page. |
Article scope too limited: assuming machines and computers
editCurrently this article assumes that programming language is a phenomenon exclusive to machines in general, and computers in particular.
This assumption seems inappropriate, given that there is at least one widely-recognized counterexample: biological programming languages:
See e.g.
edit- http://news.mit.edu/2016/programming-language-living-cells-bacteria-0331
- http://reliawire.com/biological-programming-language/
dr.ef.tymac (talk) 18:13, 29 April 2017 (UTC)
- Did you read more about it?
- Programming biological systems is a metaphor.
- The work you cite is not as recent as you think, it is part of an area called Synthetic Biology.
- Synthetic biology tries to apply real engineering principles to genetic engineering.
- Biological systems, however, are complex systems. They can not be programmed them in the same sense that computers are, because you can not program emergent properties just designing a DNA chain. Not even composing known biological pathways isolated and standardized as Biobricks, as synthetic biology works.
- There are however other computing forms, like quantum computing, there is an ongoing research on it. Even a DNA computing, which encodes problems in DNA chains and place them to evolve in a thermo-cycler for PCR and device a way to isolate the chain with the answer. — Preceding unsigned comment added by 201.124.211.115 (talk) 05:10, 11 June 2017 (UTC)
This article is a total mess!
editIt repeats many common places, many of them wrong!, but repeated again, and again, in many programming courses given in basic education based on outdated information. Also many "complete idiot's guide", "learn in N days" or "for dummies" like those in the photo with tech books, repeat again and again.
Many people know some programming language and write code. That does not make then an authority in the subject. However many of them feel they are.
This article seems written from notes taken in basic programming courses.
Has discussions like: How many angels can be in the tip of a needle? — Preceding unsigned comment added by 201.124.211.115 (talk) 05:53, 11 June 2017 (UTC)
yep too much information unrelated to the core subject and which does not help understanding. this needs to moved to relevant topics.
For example, the paragraph in FLOW-MATIC adds nothing to understanding what a computer language is and should be in the topic on Flow-matic, not programming.
there are also too many competing ideas, such as the definition of a programming language that just confuse things. My view is that Wikipedia should focus on commonly accepted facts and theories rather than pet issues insered by Academics to try and give exposure to very minority theories. it is a to help understanding, not a weapon in obscure Academic debates and personal obsessions. 60.241.211.27 (talk) 12:07, 28 July 2021 (UTC)
- What a pedantic message. Kwiky (talk) 19:04, 19 September 2023 (UTC)
Defining the term "programming language" properly
editWikipedia currently says a "programming language" is "a formal language that specifies a set of instructions that can be used to produce various kinds of output" which is true-ish, but vague. The phrase "various kinds of output" hints at the relevant characteristic, but still doesn't pin it down. Dictionary.com defines a "programming language" as "a high-level language used to write computer programs, as COBOL or BASIC, or, sometimes, an assembly language." This gibberish dances around it for a moment... but it makes no difference whether it is the highest-level symbolic meta-language or lowest-level machine code. An alternate Dictionary.com definition starts getting closer, "a simple language system designed to facilitate the writing of computer programs" but simplicity has nothing to do with it either and this definition still doesn't capture the essence. The important nugget here is the specification of decision making. A "computer language" is any predefined set of symbols and syntax that allows people to communicate with a computer system. But a "programming language" is a language among the broader set of computer languages that specifically enables a person to specify decision-making rules. CPUs make logical (true/false) decisions. The specification of a logical decision-making process is where the rubber meets the road. As example, HTML is a computer language, but not a programming language. If I want my computer's clock to display upside down, but only on Tuesdays, I can't use HTML to accomplish that. Get it? (HTML is really just a data markup language used to specify the metadata and the semantic structure of a Web document.)
Shall I take a crack at rewriting the first paragraph on the "programming language" page and I'll let you all have a look? I won't spend too much time on it unless the community wants me to, so let me know what you think. — Preceding unsigned comment added by Dlampton (talk • contribs) 00:39, 8 January 2018 (UTC)
Broken refs
edit@Squoop: you used some ref names that don't exist in the Abstractions section. Could you please fill those in? -- Fyrael (talk) 21:58, 10 October 2022 (UTC)
- @Fyrael Fixed :D Squoop (talk) 00:19, 11 October 2022 (UTC)
"Semantics" is singular
editA recent edit by Sumanbalayar corrected if computational semantics is defined
to if a computational semantics is defined
, but it was reverted by Girth Summit. Using "semantics" as singular is standard in the field, for example:
- Pierce, Benjamin (2002). Types and Programming Languages. p. 111. ISBN 0-262-16209-1.
We first define the terms, then define a semantics showing how they behave, then give a type system that rejects some terms whose behaviors we don't like.
I favor Sumanbalayar's version of this sentence. Freoh (talk) 16:20, 5 January 2023 (UTC)
- Fine to reinstate it if you like; it looked like a well-meaning but incorrect tweak to me, but you seem to know what you're talking about. Girth Summit (blether) 16:51, 5 January 2023 (UTC)
- Done. Freoh (talk) 17:01, 5 January 2023 (UTC)
- Don't know if you noticed, but there were quite a few other tweaks I reverted in that edit - feel free to review them and reinstate if you think I erred. Girth Summit (blether) 17:33, 5 January 2023 (UTC)
- Done. Freoh (talk) 17:01, 5 January 2023 (UTC)
Standard examples
editIt would be helpful if there were a small set of "standard" tasks and all pages on programming languages showed how to do them all (e.g., compute prime numbers, compute the squares of the numbers 1 to 10, print "Hello, world!"). Where should I suggest this? LachlanA (talk) 01:00, 21 January 2023 (UTC)
Proprietary section needs better citations
editOracle asserting something shouldn't be taken a evidence, needs better sources. FallingPineapple (talk) 02:05, 7 June 2023 (UTC)
Needs article-wide cleanup?
editI think this article needs a thorough cleanup.
- The entire article is needlessly verbose.
- A lot of the content is irrelevant or covered in other articles.
- Lots of the information is unsourced and could be original research.
I feel like the article as a whole fails to provide accurate and useful information about programming languages.
I tried to improve the introduction but I'm sure my improvements still have issues...
Could a cleanup tag/tags be added? I'm not an experienced Wikipedian so I'm not sure what needs to be done. Squoop (talk) 01:19, 28 October 2023 (UTC)
- Your concerns are valid ... but not actionable. Need more detail on what you think is needlessly verbose, irrelevant and unsourced. Stevebroshar (talk) 12:54, 10 May 2024 (UTC)
Source code example's usage of method
editThe source code example https://en.wikipedia.org/wiki/Programming_language#/media/File:C_Hello_World_Program.png mentions that sayHello is a function and in between brackets 'method'. This is not a method, a method is associated with an object/class, C has no classes. 2A02:8389:2200:9F90:B5B9:15B4:D8AA:5901 (talk) 09:54, 5 December 2023 (UTC)
Edit request
editThis edit request by an editor with a conflict of interest has now been answered. |
- Change the "Taxonomies" section title to "Classification"
- Replace the contents of the "Classification" section, after the further reading link, with:
Extended content
|
---|
Programming languages are often placed into four main categories: imperative, functional, logic, and object oriented.[1]
Although markup languages are not programming languages, some have extensions that support limited programming. Additionally, there are special-purpose languages that are not easily compared to other programming languages.[5] References
|
- Add to further reading the following source:
Sebesta, Robert W. (2012). Concepts of Programming Languages (10 ed.). Addison-Wesley. ISBN 978-0-13-139531-2.
- Reason: a lot of the current text of that section is unsourced, original research, or fails verification. Buidhe paid (talk) 15:17, 13 January 2024 (UTC)
- @Buidhe paid @Buidhe I'm personally fine with the changes above, I think going ahead and making these changes are fine, however, I'd like you to comply with PAID and disclose your employer/client/affiliationn on your user page for future reference :) Sohom (talk) 16:18, 13 January 2024 (UTC)
- Sohom Thanks, now done. Buidhe paid (talk) 02:29, 14 January 2024 (UTC)
- Already done Shadow311 (talk) 16:03, 18 January 2024 (UTC)
Please add the following text at the end of the "elements" section:
Extended content
|
---|
ConcurrencyeditIn computing, multiple instructions can be executed simultaneously. Many programming languages support instruction-level and subprogram-level concurrency.[1] By the twenty-first century, additional processing power on computers was increasingly coming from the use of additional processors, which requires programmers to design software that makes use of multiple processors simultaneously to achieve improved performance.[2] Interpreted languages such as Python and Ruby do not support the concurrent use of multiple processors.[3] Other programming languages do support managing data shared between different threads by controlling the order of execution of key instructions via the use of semaphores, controlling access to shared data via monitor, or enabling message passing between threads.[4] References
|
Buidhe paid (talk) 17:48, 23 January 2024 (UTC)
- Done Both. Sohom (talk) 18:06, 23 January 2024 (UTC)
This edit request by an editor with a conflict of interest has now been answered. |
Please add the following text just before the "Concurrency" section:
Extended content
|
---|
Exception handlingeditMany programming languages include exception handlers, a section of code triggered by runtime errors that can deal with them in two main ways:[1]
Some programming languages support dedicating a block of code to run regardless of whether an exception occurs before the code is reached; this is called finalization.[2] There is a tradeoff between increased ability to handle exceptions and reduced performance.[3] For example, even though array index errors are common[4] C does not check them for performance reasons.[3] Although programmers can write code to catch user-defined exceptions, this can clutter a program. Standard libraries in some languages, such as C, use their return values to indicate an exception.[5] Some languages and their compilers have the option of turning on and off error handling capability, either temporarily or permanently.[6] References
|
Thanks Buidhe paid (talk) 19:27, 23 January 2024 (UTC)
- Done, Sohom (talk) 08:40, 24 January 2024 (UTC)
Edit request 2
editThis edit request by an editor with a conflict of interest has now been answered. |
Please change the content of the "Type system" section, after the hatnote, to:
Extended content
|
---|
A data type is a set of allowable values and operations that can be performed on these values.[1] Each programming language's type system defines which data types exist, the type of an expression, and how type equivalence and type compatibility function in the language.[2] According to type theory, a language is fully typed if the specification of every operation defines types of data to which the operation is applicable.[3] In contrast, an untyped language, such as most assembly languages, allows any operation to be performed on any data, generally sequences of bits of various lengths.[3] In practice, while few languages are fully typed, most offer a degree of typing.[3] Because different types (such as integers and floats) represent values differently, unexpected results will occur if one type is used when another is expected. Type checking will flag this error, usually at compile time (runtime type checking is more costly).[4] With strong typing, type errors can always be detected unless variables are explicitly cast to a different type. Weak typing occurs when languages allow implicit casting—for example, to enable operations between variables of different types without the programmer making an explicit type conversion. The more cases in which this type coercion is allowed, the fewer type errors can be detected.[5] Commonly supported typeseditEarly programming languages often supported only built-in, numeric types such as the integer (signed and unsigned) and floating point (to support operations on real numbers that are not integers). Most programming languages support multiple sizes of floats (often called float and double) and integers depending on the size and precision required by the programmer. Storing an integer in a type that is too small to represent it leads to integer overflow. The most common way of representing negative numbers with signed types is twos complement, although ones complement is also used. [6] Other common types include boolean—which is either true or false—and character—traditionally one byte, sufficient to represent all ASCII characters.[7] Arrays are a data type whose elements, in many languages, must consist of a single type of fixed length. Other languages define arrays as references to data stored elsewhere and support elements of varying types.[8] Depending on the programming language, sequences of multiple characters, called strings, may be supported as arrays of characters or their own primitive type.[9] Strings may be of fixed or variable length, which enables greater flexibility at the cost of increased storage space and more complexity.[10] Other data types that may be supported include lists,[11] associative (unordered) arrays accessed via keys,[12] records in which data is mapped to names in an ordered structure,[13] and tuples—similar to records but without names for data fields.[14] Pointers store memory addresses, typically referencing locations on the heap where other data is stored.[15] The simplest user-defined type is an ordinal type whose values can be mapped onto the set of positive integers.[16] Since the mid-1980s, most programming languages also support abstract data types, in which the representation of the data and operations are hidden from the user, who can only access an interface.[17] The benefits of data abstraction can include increased reliability, reduced complexity, less potential for name collision, and allowing the underlying data structure to be changed without the client needing to alter its code.[18] Static and dynamic typingeditIn static typing, all expressions have their types determined before a program executes, typically at compile-time.[3] Most widely used, statically typed programming languages require the types of variables to be specified explicitly. In some languages, types are implicit; one form of this is when the compiler can infer types based on context. The downside of implicit typing is the potential for errors to go undetected.[19] Complete type inference has traditionally been associated with functional languages such as Haskell and ML.[20] With dynamic typing, the type is not attached to the variable but only the value encoded in it. A single variable can be reused for a value of a different type. Although this provides more flexibility to the programmer, it is at the cost of lower reliability and less ability for the programming language to check for errors.[21] Some languages allow variables of a union type to which any type of value can be assigned, in an exception to their usual static typing rules.[22] References
|
- I'm a bit worried about the whole article becoming a summarization of this book. This is a really good starting point, but I think we should try to work in other material. Snowmanonahoe (talk · contribs · typos) 13:20, 18 April 2024 (UTC)
Edit request 3
editThis edit request by an editor with a conflict of interest has now been answered. |
Also, please add the following sentence to the end of the "proprietary languages" section: "Open source programming languages are particularly helpful for open science applications, enhancing the capacity for replication and code sharing."[1]
References
- ^ Abdelaziz, Abdullah I.; Hanson, Kent A.; Gaber, Charles E.; Lee, Todd A. (2023). "Optimizing large real‐world data analysis with parquet files in R: A step‐by‐step tutorial". Pharmacoepidemiology and Drug Safety. doi:10.1002/pds.5728.
Thanks Buidhe paid (talk) 02:23, 25 January 2024 (UTC)
Edit request 4
editPart of an edit requested by an editor with a conflict of interest has been implemented. |
Please:
- Remove the unsourced section titled "Standard library and run-time system". I checked several textbooks on PL, including Sebesta 2012, Programming Languages: Principles and Paradigms, and Practical Foundations for Programming Languages. They either don't mention standard libraries at all or barely mention them, without enough content to source a stand-alone section. Instead, I mention standard libraries in the new version of the "Design and implementation" section.
- Replace the current content of the "Design and implementation" section, after the hatnote, with the following ("specification" subsection is unchanged):
Extended content
|
---|
One of the most important influences on programming language design has been computer architecture. Imperative languages, the most commonly used type, were designed to perform well on von Neumann architecture, the most common computer architecture.[1] In von Neumann architecture, the memory stores both data and instructions, while the CPU that performs instructions on data is separate, and data must be piped back and forth to the CPU. The central elements in these languages are variables, assignment, and iteration, which is more efficient than recursion on these machines.[2] Many programming languages have been designed from scratch, altered to meet new needs, and combined with other languages. Many have eventually fallen into disuse.[citation needed] The birth of programming languages in the 1950s was stimulated by the desire to make a universal programming language suitable for all machines and uses, avoiding the need to write code for different computers.[3] By the early 1960s, the idea of a universal language was rejected due to the differing requirements of the variety of purposes for which code was written.[4] TradeoffseditDesirable qualities of programming languages include readability, writability, and reliability.[5] These features can reduce the cost of training programmers in a language, the amount of time needed to write and maintain programs in the language, the cost of compiling the code, and increase runtime performance.[6]
Programming language design often involves tradeoffs.[16] For example, features to improve reliability typically come at the cost of performance.[17] Increased expressivity due to a large number of operators makes writing code easier but comes at the cost of readability.[17] 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.[18] Alan Perlis was similarly dismissive of the idea.[19] SpecificationeditThe specification of a programming language is an artifact that the language users and the implementors can use to agree upon whether a piece of source code is a valid program in that language, and if so what its behavior shall be. A programming language specification can take several forms, including the following:
ImplementationeditAn implementation of a programming language is the conversion of a program into machine code that can be executed by the hardware. The machine code then can be executed with the help of the operating system.[23] The most common form of interpretation in production code is by a compiler, which translates the source code via an intermediate-level language into machine code, known as an executable. Once the program is compiled, it will run more quickly than with other implementation methods.[24] Some compilers are able to provide further optimization to reduce memory or computation usage when the executable runs, but increasing compilation time.[25] Another implementation method is to run the program with an interpreter, which translates each line of software into machine code just before it executes. Although it can make debugging easier, the downside of interpretation is that it runs 10 to 100 times slower than a compiled executable.[26] Hybrid interpretation methods provide some of the benefits of compilation and some of the benefits of interpretation via partial compilation. One form this takes is just-in-time compilation, in which the software is compiled ahead of time into an intermediate language, and then into machine code immediately before execution.[27] References
|
Please add the following source to the "further reading" section:
- Nofre, David; Priestley, Mark; Alberts, Gerard (2014). "When Technology Became Language: The Origins of the Linguistic Conception of Computer Programming, 1950–1960". Technology and Culture. 55 (1): 40–75. ISSN 0040-165X.
Thank you Buidhe paid (talk) 04:37, 27 January 2024 (UTC)
- Question: This is a big lift. Can you show the before and after text, or explain why the changes are being made? STEMinfo (talk) 05:12, 5 April 2024 (UTC)
- STEMinfo the sections this edit is replacing are currently in the article. They have been completely rewritten in my version with very little of the original text/sourcing remaining.
- You can see that the "Standard library" is currently unsourced. As I explain above I was able to confirm that a section on this topic was UNDUE.
- The current "design and implementation" section is partly cited but many of the sources are not ideal—such as lecture notes, which may not be considered RS, and a book from 1982, which is certainly outdated. Large parts are entirely unsourced
- My version of the draft removes content that is poorly or not sourced and replaces it with a new version that is supported by reliable sources and does a better job balancing the coverage of different topics in overviews of the subject.
- Does this answer your question? Buidhe paid (talk) 06:53, 5 April 2024 (UTC)
- Thanks for the info. I'll have to take a closer look. STEMinfo (talk) 17:44, 5 April 2024 (UTC)
- @Buidhe paid: I replaced the Implementation section, and as you pointed out, the Specifications section is unchanged. I've read up about the standard library, and I'm not seeing how it helps readers to remove the section. It's clearly an element of every programming language, which you can tell just by doing a simple phrase search with quotes for "standard library". I'm reluctant to remove it. Feel free to discuss further. I'm still reviewing your opening text and the tradeoffs section. STEMinfo (talk) 20:49, 12 April 2024 (UTC)
- @Buidhe paid: I'm not convinced that your version is enough of an improvement to remove the information about natural languages and the reasons for having diverse programming languages, unsourced or not. You also removed the segue to the specification and implementation sections, and accidentally introduced a typo that changes the meaning.
- @Buidhe paid: I replaced the Implementation section, and as you pointed out, the Specifications section is unchanged. I've read up about the standard library, and I'm not seeing how it helps readers to remove the section. It's clearly an element of every programming language, which you can tell just by doing a simple phrase search with quotes for "standard library". I'm reluctant to remove it. Feel free to discuss further. I'm still reviewing your opening text and the tradeoffs section. STEMinfo (talk) 20:49, 12 April 2024 (UTC)
- Thanks for the info. I'll have to take a closer look. STEMinfo (talk) 17:44, 5 April 2024 (UTC)
- STEMinfo the sections this edit is replacing are currently in the article. They have been completely rewritten in my version with very little of the original text/sourcing remaining.
− | [[Edsger W. Dijkstra]] took the position that the use of a formal language is essential to prevent the introduction of meaningless | + | [[Edsger W. Dijkstra]] took the position that the use of a formal language is essential to prevent the introduction of meaningless constructs. [[Alan Perlis]] was similarly dismissive of the idea. |
- I'm going to leave this open but I think you can propose changes while also preserving more of the existing content. 68.5.3.227 (talk) 22:02, 12 April 2024 (UTC)
- Agreed. Marked partially answered. STEMinfo (talk) 22:20, 12 April 2024 (UTC)
The issue with UNDUE hasn't been resolved, because due weight is based on coverage in reliable sources about "programming languages" in general. Many languages do have a standard library, but that fact by itself doesn't mean that it's DUE to cover them extensively in this high-level overview. "Natural language programming" never took off the ground, and the content about it is also UNDUE. (relevant discussion) Buidhe paid (talk) 02:20, 13 April 2024 (UTC)
- If every programming language has a standard library, why is it bad to have a standard library section? STEMinfo (talk) 01:22, 14 April 2024 (UTC)
References
- ^ Dijkstra, Edsger W. On the foolishness of "natural language programming." Archived 20 January 2008 at the Wayback Machine EWD667.
- ^ Perlis, Alan (September 1982). "Epigrams on Programming". SIGPLAN Notices Vol. 17, No. 9. pp. 7–13. Archived from the original on 17 January 1999.
- ^ Dijkstra, Edsger W. On the foolishness of "natural language programming." Archived 20 January 2008 at the Wayback Machine EWD667.
- ^ Perlis, Alan (September 1982). "Epigrams on Programming". SIGPLAN Notices Vol. 17, No. 9. pp. 7–13. Archived from the original on 17 January 1999.
Edit request 5
editThis edit request by an editor with a conflict of interest has now been answered. |
Please change the content of the article lead (beginning below "use dmy dates" template) to:
Extended content
|
---|
A programming language is a system of notation for writing computer programs.[1] Programming languages are described in terms of their syntax (form) and semantics (meaning), usually defined by a formal language. Most languages have a type system consisting of different data types (such as integers and strings) and catch type errors where one type is given where another is expected. Many support user-defined types including abstract data types, often used for object-oriented programming. Implementation in the form of a compiler or interpreter allows programs to be translated into machine code and executed. Computer architecture has strongly influenced the design of programming languages, with the most common type (imperative languages—which implement operations in a specified order) developed to perform well on the popular von Neumann architecture. While early programming languages were closely tied to the hardware, over time, they have developed more abstraction to hide implementation details for greater simplicity. Thousands of programming languages—often classified as imperative, functional, logic, or object-oriented—have been developed for a wide variety of uses. Many aspects of programming language design involve tradeoffs—for example, exception handling reduces errors at a performance cost—such that efforts to develop a universal programming language have failed. Programming language theory is the subfield of computer science that studies the design, implementation, analysis, characterization, and classification of programming languages. References
|
Thanks Buidhe paid (talk) 08:57, 27 January 2024 (UTC)
- Done. Thanks for improving the lead. ― novov (t c) 05:01, 5 March 2024 (UTC)
Edit request 6
editThis edit request by an editor with a conflict of interest has now been answered. |
Please replace the content of the "History" section, after the hatnote, with:
Extended content
|
---|
Early developmentseditThe first programmable computers were invented at the end of the 1940s, and with them, the first programming languages.[1] The earliest computers were programmed in first-generation programming languages (1GLs), machine language (simple instructions that could be directly executed by the processor). This code was very difficult to debug and was not portable between different computer systems.[2] In order to improve the ease of programming, assembly languages (or second-generation programming languages—2GLs) were invented, diverging from the machine language to make programs easier to understand for humans, although they did not increase portability.[3] Initially, hardware resources were scare and expensive, while human resources were cheaper. Therefore, cumbersome languages that were time-consuming to use, but were closer to the hardware for higher efficiency were favored.[4] The introduction of high-level programming languages (third-generation programming languages—3GLs)—revolutionized programming. These languages abstracted away the details of the hardware, instead being designed to express algorithms that could be understood more easily by humans. For example, arithmetic expressions could now be written in symbolic notation and later translated into machine code that the hardware could execute.[3] In 1957, Fortran (FORmula TRANslation) was invented. Often considered the first compiled high-level programming language,[3][5] Fortran has remained in use into the twenty-first century.[6] 1960s and 1970seditAround 1960, the first mainframes—general purpose computers—were developed, although they could only be operated by professionals and the cost was extreme. The data and instructions were input by punch cards, meaning that no input could be added while the program was running. The languages developed at this time therefore are designed for minimal interaction.[8] After the invention of the microprocessor, computers in the 1970s became dramatically cheaper.[9] New computers also allowed more user interaction, which was supported by newer programming languages.[10] Lisp, implemented in 1958, was the first functional programming language. Unlike Fortran, it supports recursion and conditional expressions,[11] and it also introduced dynamic memory management on a heap and automatic garbage collection.[12] For the next decades, Lisp dominated artificial intelligence applications.[13] In 1978, another functional language, ML, introduced inferred types and polymorphic parameters.[10][14] After ALGOL (ALGOrithmic Language) was released in 1958 and 1960,[15] it became the standard in computing literature for describing algorithms. Although its commercial success was limited, most popular imperative languages—including C, Pascal, Ada, C++, Java, and C#—are directly or indirectly descended from ALGOL 60.[16][6] Among its innovations adopted by later programming languages included greater portability and the first use of context-free, BNF grammar.[17] Simula, the first language to support object-oriented programming (including subtypes, dynamic dispatch, and inheritance), also descends from ALGOL and achieved commercial success.[18] C, another ALGOL descendant, has sustained popularity into the twenty-first century. C allows access to lower-level machine operations more than other contemporary languages. Its power and efficiency, generated in part with flexible pointer operations, comes at the cost of making it more difficult to write correct code.[10] Prolog, designed in 1972, was the first logic programming language, communicating with a computer using formal logic notation.[19][20] With logic programming, the programmer specifies a desired result and allows the interpreter to decide how to achieve it.[21][20] 1980s to presenteditDuring the 1980s, the invention of the personal computer transformed the roles for which programming languages were used.[22] New languages introduced in the 1980s included C++, a superset of C that can compile C programs but also supports classes and inheritance.[23] Ada and other new languages introduced support for concurrency.[24] The Japanese government invested heavily into the so-called fifth-generation languages that added support for concurrency to logic programming constructs, but these languages were outperformed by other concurrency-supporting languages.[25][26] Due to the rapid growth of the Internet and the World Wide Web in the 1990s, new programming languages were introduced to support Web pages and networking.[27] Java, based on C++ and designed for increased portability across systems and security, enjoyed large-scale success because these features are essential for many Internet applications.[28][29] Another development was that of dynamically typed scripting languages—Python, JavaScript, PHP, and Ruby—designed to quickly produce small programs that coordinate existing applications. Due to their integration with HTML, they have also been used for building web pages hosted on servers.[30][31] During the 2000s, there was a slowdown in the development of new programming languages that achieved widespread popularity.[32] One innovation was service-oriented programming, designed to exploit distributed systems whose components are connected by a network. Services are similar to objects in object-oriented programming, but run on a separate process.[33] C# and F# cross-pollinated ideas between imperative and functional programming.[34] After 2010, several new languages—Rust, Go, and Swift—competed for the performance-critical software for which C had historically been used.[35] References
|
Also, add the following source to the "further reading" section:
- Gabbrielli, Maurizio; Martini, Simone (2023). Programming Languages: Principles and Paradigms (2nd ed.). Springer. ISBN 978-3-031-34144-1.
Reasons: add references, improve summary style, remove unsourced text, fix some MOS:CURRENT issues Buidhe paid (talk) 20:08, 28 January 2024 (UTC)
- Done, thank you Cinematic Poetry Buidhe paid (talk) 15:06, 6 February 2024 (UTC)
Wiki Education assignment: IFS213-Hacking and Open Source Culture
editThis article was the subject of a Wiki Education Foundation-supported course assignment, between 30 January 2024 and 10 May 2024. Further details are available on the course page. Student editor(s): SirRiles (article contribs). Peer reviewers: ApolloMartin.
— Assignment last updated by KAN2035117 (talk) 22:51, 3 April 2024 (UTC)
Wiki99 summary
editSummary of changes as a result of the Wiki99 project (before, after, diff):
- Rewrite much of the article from reliable sources, fixing some of the unsourced content issues
- Condense history section per WP:SUMMARYSTYLE, as the details are already covered in another article
- Add information about some programming language issues, such as tradeoffs between different desirable qualities that are mutually exclusive
Further possibilities for improvement:
- Rewrite the parts of the article that I did not get to, such as the semantics and syntax sections, according to coverage in reliable sources
- Get the article to good article status