Jump to content

Carbon (programming language)

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Utcursch (talk | contribs) at 02:31, 25 July 2022 (link first instance). 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; 2 years ago (2022-07-19)
Preview release
0.1 / 19 July 2022; 2 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

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, as opposed to the ISO process C++ uses.[5][6][7]

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

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. ^ Illidge, Myles (21 July 2022). "Google's Carbon programming language aims to replace C++". MyBroadband. Retrieved 24 July 2022.
  6. ^ Jackson, Joab (20 July 2022). "Google Launches Carbon, an Experimental Replacement for C++". The New Stack. Retrieved 24 July 2022.
  7. ^ Mustafa, Onsa (20 July 2022). "Carbon, A New Programming Language from Google As A C++ Successor". PhoneWorld. Retrieved 24 July 2022.
  8. ^ "carbon-lang/LICENSE". GitHub. 16 June 2020. Retrieved 24 July 2022.