Carbon (programming language)
Family | C |
---|---|
Developer | |
First appeared | 19 July 2022 |
Preview release | 0.1
/ 19 July 2022 |
Typing discipline | Static, nominative, partially inferred |
Implementation language | C++ |
OS | Cross-platform |
Filename extensions | .carbon , .co2 |
Website | https://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
- ^ "CppNorth2022 Keynote". 21 July 2022. Retrieved 21 July 2022.
- ^ "Carbon Language: An experimental successor to C++ - Chandler Carruth - CppNorth 2022".
- ^ Bradshaw, Kyle (19 July 2022). "Carbon, a new programming language from Google, aims to be C++ successor". 9to5Google.
- ^ "Difficulties improving C++". 21 July 2022. Retrieved 21 July 2022.
- ^ "carbon-lang evolution and governance". GitHub. 23 July 2022. Retrieved 25 July 2022.
- ^ Illidge, Myles (21 July 2022). "Google's Carbon programming language aims to replace C++". MyBroadband. Retrieved 24 July 2022.
- ^ Jackson, Joab (20 July 2022). "Google Launches Carbon, an Experimental Replacement for C++". The New Stack. Retrieved 24 July 2022.
- ^ Mustafa, Onsa (20 July 2022). "Carbon, A New Programming Language from Google As A C++ Successor". PhoneWorld. Retrieved 24 July 2022.
- ^ "carbon-lang/LICENSE". GitHub. 16 June 2020. Retrieved 24 July 2022.
External links
- Carbon at the Compiler Explorer (godbolt)
- Carbon Language: An experimental successor to C++ - Chandler Carruth - CppNorth 2022 on YouTube
This article needs additional or more specific categories. (July 2022) |