Jump to content

Carbon (programming language)

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 93.138.156.61 (talk) at 20:22, 26 July 2022 (→‎External links: +YT video). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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

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 the 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 ISO process used by C++, changes to the language will be decided by community consensus.[5][6][7][8]

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.

External links