Carbon (programming language)

This is an old revision of this page, as edited by MooseBoys (talk | contribs) at 18:00, 25 July 2022 (Corrected misleading comparison to ISO standardization process. A project's change approval process, the venue for its discussion, and the publication of its specification are all orthogonal. In fact, the ISOCPP working group uses github to distribute and solicit feedback on the working draft for the latest revisions to the C++ standard.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Carbon is an experimental general-purpose programming language created at Google to be a "C++ successor language". It was first presented to the public by Chandler Carruth at the CppNorth conference in July of 2022.[1][2][3] The language intends to fix several perceived shortcomings of C++[4] but otherwise provide a similar feature set. The main goals of language are readability and "bi-directional interoperability" so there will not be a language barrier like Rust had. The language will be designed and developed on GitHub. Similar to the the ISO process used by C++, changes to the language will be decided by community consensus.[5][6][7][8]

Carbon
FamilyC
DeveloperGoogle
First appeared19 July 2022; 3 years ago (2022-07-19)
Preview release
0.1 / 19 July 2022; 3 years ago (2022-07-19)
Typing disciplineStatic, nominative, partially inferred
Implementation languageC++
OSCross-platform
Filename extensions.carbon
Websitehttps://github.com/carbon-language/carbon-lang
Influenced by
C++, Rust

The language is developed as a free and open source project under the Apache License (version 2).[9]

Examples

Hello, world!

package sample api;    
fn Main() -> i32 {
    Print("Hello, world!");
    return 0;
}

References

  1. ^ "CppNorth2022 Keynote". 21 July 2022. Retrieved 21 July 2022.
  2. ^ "Carbon Language: An experimental successor to C++ - Chandler Carruth - CppNorth 2022".
  3. ^ Bradshaw, Kyle (19 July 2022). "Carbon, a new programming language from Google, aims to be C++ successor". 9to5Google.
  4. ^ "Difficulties improving C++". 21 July 2022. Retrieved 21 July 2022.
  5. ^ "carbon-lang evolution and governance". GitHub. 23 July 2022. Retrieved 25 July 2022.
  6. ^ Illidge, Myles (21 July 2022). "Google's Carbon programming language aims to replace C++". MyBroadband. Retrieved 24 July 2022.
  7. ^ Jackson, Joab (20 July 2022). "Google Launches Carbon, an Experimental Replacement for C++". The New Stack. Retrieved 24 July 2022.
  8. ^ Mustafa, Onsa (20 July 2022). "Carbon, A New Programming Language from Google As A C++ Successor". PhoneWorld. Retrieved 24 July 2022.
  9. ^ "carbon-lang/LICENSE". GitHub. 16 June 2020. Retrieved 24 July 2022.