Carbon (プログラミング言語)
Carbonのロゴ | |
登場時期 | 2022年7月19日 (2年前) (2022-07-19) |
---|---|
開発者 | |
評価版リリース | 0.1 / 2022年7月19日 (2年前) (2022-07-19) |
型付け | |
影響を受けた言語 | C++、Go、Rust |
プログラミング言語 | C++ |
プラットフォーム | クロスプラットフォーム |
ライセンス | Apache-2.0 |
ウェブサイト |
|
拡張子 | .carbon |
関連言語 | C言語 |
テンプレートを表示 |
Carbonは、「C++の後継言語」としてGoogleで作成された実験的な汎用プログラミング言語である。この言語は、2022年7月の CppNorth conference で Chandler Carruth によって一般に初めて公開された[1][2][3]。この言語は、C++のいくつかの技術的な負債を修正することを目的としているが[4]、それ以外はC++と同様の機能を提供する。この言語の主な目標は、可読性と「双方向の相互運用性」であるので、Rustのような言語を学ぶ上での壁がない。この言語は、C++が採用しているISOでの標準化過程とは対照的に、GitHubで言語の設計と開発が行われている[5][6][7]。
この言語は、Apache License 2.0の下でフリーかつオープンソースのプロジェクトとして開発されている[8]。
例
Hello, world!
package sample api; fn Main() -> i32 { Print("Hello, world!"); return 0; }
脚注
- ^ “CppNorth2022 Keynote” (英語) (2022年7月21日). 2022年7月21日閲覧。
- ^ “Carbon Language: An experimental successor to C++ - Chandler Carruth - CppNorth 2022” (英語). 2022年7月25日閲覧。
- ^ Bradshaw, Kyle (19 July 2022). “Carbon, a new programming language from Google, aims to be C++ successor”. 9to5Google. https://9to5google.com/2022/07/19/carbon-programming-language-google-cpp/
- ^ “Difficulties improving C++” (英語) (2022年7月21日). 2022年7月21日閲覧。
- ^ Illidge, Myles (2022年7月21日). “Google’s Carbon programming language aims to replace C++”. MyBroadband. https://mybroadband.co.za/news/software/453410-googles-carbon-programming-language-aims-to-replace-c.html 2022年7月24日閲覧。
- ^ Jackson, Joab (2022年7月20日). “Google Launches Carbon, an Experimental Replacement for C++”. The New Stack. https://thenewstack.io/google-launches-carbon-an-experimental-replacement-for-c/ 2022年7月24日閲覧。
- ^ Mustafa, Onsa (2022年7月20日). “Carbon, A New Programming Language from Google As A C++ Successor”. PhoneWorld. https://www.phoneworld.com.pk/carbon-a-new-programming-language-from-google-as-a-c-successor/ 2022年7月24日閲覧。
- ^ “carbon-lang/LICENSE”. GitHub (2020年6月16日). 2022年7月24日閲覧。
外部リンク
- carbon-lang - GitHub
- Carbon at the Compiler Explorer (godbolt)
- 表示
- 編集