Carbon (pian-têng gú-giân)
Carbon (pen-tîng gú-gên) (ing-gú: Carbon (programming language); Carbon (tîng-sik gú-giân); carbon-lang) sī tsi̍t-tsiòng sı̽t-giām-sìng ê thong-iōng pen-tîng gú-giân , Carbon iû Google tshòng-kèn, tsò-uî "C++ ê hiō-kè gí-gên". Carbon sī-iû Carruth Chandler tī 2022-nî 7-gue̍h ê CppNorth huē-gī siōng thâu-pái hiòng kong-tsiòng tén-sī Carbon tsit-khuán gí-gên.[1][2][3]
Carbon teh GitHub tsoo-tsit ê piau-tsì | |
Gí-giân ka-cho̍k | C |
---|---|
Têng-sek-goân | |
Siú-chhù hoat-hêng | 2022 nî 7 goe̍h 19 ji̍t |
Ū-lám pán-pún |
0.1
/ 2022 nî 7 goe̍h 19 ji̍t |
Lūi-hêng hē-thóng | Tsīng-thài hîng-pia̍t , bîng-gī hîng-pia̍t , pōo-hūn thui-lūn |
Si̍t-chok gí-giân | C++ |
OS | Khuà pêñ-tâi |
Bûn-kiāⁿ khok-tián-miâ |
.carbon |
Bāng-chām | https://github.com/carbon-language/carbon-lang |
Khé-hoat gí-giân | |
C++, Rust (pian-tîng gí-giân) |
Carbon gí-giân i-ê tsong-tsí sī teh siu-ho̽k C++[4] tíng-kuân ê kui-ê bing-hia khuat-tiám, m̄-kù mā thê-kiong luī-sū ê kong-lîng-tsı̽p. Carbon ê bo̽k-piau tsi-it sī kah hēn-iú ê C++ tāi-bé tsìn-hîng siang-hiòng ê tshau-tsok kong-lîng. Carbon gí-gên tio̽h-beh teh GitHub tíng-kuân set-kè hām khai-huat, iáu-m̄-koh m̄-sī ū-jî C++ sú-iōng ISO liû-tîng ê hong-sik.[5][6][7]
Carbon gí-gên sī teh Apache siú-kuân tiâu-khuáñ (tē-2 pán) tsi-hā tsò-uî bén-huì hām khai-guân hāng-bo̽k lâi khai-huat ê nńg-thé.[8]
Huān-lē
siu-káiThe following shows how a "Hello, World!" program is written in Carbon:
package Sample api;
fn Main() -> i32 {
var s: auto = "Hello, world!";
Print(s);
return 0;
}
The following is the exact same "Hello, World!" program written in C++:
#include <iostream>
int main() {
auto s = "Hello, World!";
std::cout << s;
return 0;
}
Tsù-kái
siu-kái- ↑ "CppNorth2022 Keynote". 2022-07-21. 2022-07-21 khòaⁿ--ê.
- ↑ "Carbon Language: An experimental successor to C++ - Chandler Carruth - CppNorth 2022" (ēng Eng-gí).
- ↑ Bradshaw, Kyle (19 July 2022). "Carbon, a new programming language from Google, aims to be C++ successor". 9to5Google (ēng Eng-gí).
- ↑ "Difficulties improving C++" (ēng Eng-gí). 2022-07-21. 2022-07-21 khòaⁿ--ê.
- ↑ Illidge, Myles (2022-07-21). "Google's Carbon programming language aims to replace C++". MyBroadband (ēng Eng-gí). 2022-07-24 khòaⁿ--ê.
- ↑ Jackson, Joab (2022-07-20). "Google Launches Carbon, an Experimental Replacement for C++". The New Stack (ēng Eng-gí). 2022-07-24 khòaⁿ--ê.
- ↑ Mustafa, Onsa (2022-07-20). "Carbon, A New Programming Language from Google As A C++ Successor". PhoneWorld (ēng Eng-gí). 2022-07-24 khòaⁿ--ê.
- ↑ "carbon-lang/LICENSE". GitHub (ēng Eng-gí). 2020-06-16. 2022-07-24 khòaⁿ--ê.
Tsham-ua̍t
siu-kái- Thong-iōng pian-têng gú-giân (Thong-iōng pen-tîng gú-giân/General-purpose programming language (GPL))