Jump to content

Carbon (programming language): Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Correction:Kotlin was made by Jetbrains, not Google. However Google did endorse Kotlin as a preferred language for Android development (well after the language creation) Source: 1. https://kotlinlang.org/ 2. https://github.com/JetBrains/kotlin/blob/master/license/COPYRIGHT_HEADER.txt
Tags: Mobile edit Mobile web edit
Osalbahr (talk | contribs)
Added link
Line 20: Line 20:
}}
}}


'''Carbon''', or Carbon-Lang, is an experimental, [[general-purpose programming language]] created to be a "[[C++]] successor". The project is open-source and was started by [[Google]], following in the footsteps of previous Google-made programming languages: [[Go (programming language)|Go]], [[Dart (programming language)|Dart]], and [[AngularJS]]. Google engineer Chandler Carruth first introduced Carbon at the CppNorth conference in [[Toronto]] in July of 2022.<ref name="cppnorthkeynote-sched" /><ref name="cppnorthkeynote-video" /><ref name="cppnorthkeynote-9to5google" />
'''Carbon''', or Carbon-Lang, is an experimental, [[general-purpose programming language]] created to be a "[[C++]] successor". The project is [[Open-source software|open-source]] and was started by [[Google]], following in the footsteps of previous Google-made programming languages: [[Go (programming language)|Go]], [[Dart (programming language)|Dart]], and [[AngularJS]]. Google engineer Chandler Carruth first introduced Carbon at the CppNorth conference in [[Toronto]] in July of 2022.<ref name="cppnorthkeynote-sched" /><ref name="cppnorthkeynote-video" /><ref name="cppnorthkeynote-9to5google" />


The language intends to fix several perceived shortcomings of C++<ref name="difficulties improving cpp" /> but otherwise provides a similar feature set.
The language intends to fix several perceived shortcomings of C++<ref name="difficulties improving cpp" /> but otherwise provides a similar feature set.

Revision as of 06:34, 9 August 2022

Carbon
Logo on Carbon's GitHub organization
Logo on Carbon's GitHub organization
FamilyC
Designed byGoogle
Typing disciplineStatic, nominative, partially inferred
Implementation languageC++
LicenseApache-2.0
Filename extensions.carbon
Websitegithub.com/carbon-language/carbon-lang
Influenced by
C++, Rust

Carbon, or Carbon-Lang, is an experimental, general-purpose programming language created to be a "C++ successor". The project is open-source and was started by Google, following in the footsteps of previous Google-made programming languages: Go, Dart, and AngularJS. Google engineer Chandler Carruth first introduced Carbon at the CppNorth conference in Toronto in July of 2022.[1][2][3]

The language intends to fix several perceived shortcomings of C++[4] but otherwise provides a similar feature set. The main goals of the language are readability and "bi-directional interoperability", as opposed to using a new language like Rust (which, while being based off of C++, is not compatible with C++ programs). Changes to the language will be decided by the Carbon leads.[5][6][7][8]

Carbon's documents, design, implementation, and related tools are hosted on GitHub under the Apache-2.0 license with LLVM Exception.[9]

The following shows how a "Hello, World!" program is written in Carbon:

package Sample api;    

fn Main() -> i32 {
    Print("Hello, World!");
    return 0;
}

See also

References

  1. ^ "Scheduled events for Tuesday, July 19, 09:00 - 10:30". CppNorth, The Canadian C++ Conference, July 17-20, 2022. CppNorth. Retrieved 21 July 2022 – via Sched.com.
  2. ^ "Carbon Language: An experimental successor to C++ - Chandler Carruth - CppNorth 2022". CppNorth. 22 July 2022 – via YouTube.
  3. ^ Bradshaw, Kyle (19 July 2022). "Carbon, a new programming language from Google, aims to be C++ successor". 9to5Google.
  4. ^ "Difficulties improving C++". carbon-language/carbon-lang repo. Google. 21 July 2022 – via GitHub.
  5. ^ Carruth, Chandler; Ross-Perkins, Jon; Riley, Matthew; Hummert, Sidney (23 July 2022). "Evolution and governance". carbon-language/carbon-lang repo. Google – via GitHub.
  6. ^ Illidge, Myles (21 July 2022). "Google's Carbon programming language aims to replace C++". MyBroadband.
  7. ^ Jackson, Joab (20 July 2022). "Google Launches Carbon, an Experimental Replacement for C++". The New Stack.
  8. ^ Mustafa, Onsa (20 July 2022). "Carbon, A New Programming Language from Google As A C++ Successor". PhoneWorld.
  9. ^ "carbon-lang/LICENSE". GitHub. 16 June 2020. Retrieved 24 July 2022.