Carbon (pian-têng gú-giân)

Wikipedia (chū-iû ê pek-kho-choân-su) beh kā lí kóng...
Carbon (pen-tîng gú-gên)

Carbon teh GitHub tsoo-tsit ê piau-tsì
Gí-giân ka-cho̍k C
Têng-sek-goân Google
Siú-chhù hoat-hêng 2022 nî 7 goe̍h 19 ji̍t;​ 19 kò go̍eh í-chêng​ (2022-07-19)
Ū-lám
pán-pún
0.1 / 2022 nî 7 goe̍h 19 ji̍t;​ 19 kò go̍eh í-chêng​ (2022-07-19)
Lūi-hêng hē-thóng Tsīng-thài hîng-pia̍t [en], bîng-gī hîng-pia̍t [en], pōo-hūn thui-lūn [en]
Si̍t-chok gí-giân C++
OS Khuà pêñ-tâi [en]
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 (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 [en], 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 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áñ [en] (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ái | kái goân-sí-bé]

The 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 | kái goân-sí-bé]

  1. "CppNorth2022 Keynote". 2022-07-21. 2022-07-21 khòaⁿ--ê. 
  2. "Carbon Language: An experimental successor to C++ - Chandler Carruth - CppNorth 2022" (ēng Eng-gí). 
  3. Bradshaw, Kyle (19 July 2022). "Carbon, a new programming language from Google, aims to be C++ successor". 9to5Google (ēng Eng-gí). 
  4. "Difficulties improving C++" (ēng Eng-gí). 2022-07-21. 2022-07-21 khòaⁿ--ê. 
  5. Illidge, Myles (2022-07-21). "Google's Carbon programming language aims to replace C++". MyBroadband (ēng Eng-gí). 2022-07-24 khòaⁿ--ê. 
  6. Jackson, Joab (2022-07-20). "Google Launches Carbon, an Experimental Replacement for C++". The New Stack (ēng Eng-gí). 2022-07-24 khòaⁿ--ê. 
  7. 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ⁿ--ê. 
  8. "carbon-lang/LICENSE". GitHub (ēng Eng-gí). 2020-06-16. 2022-07-24 khòaⁿ--ê. 

Tsham-ua̍t[siu-kái | kái goân-sí-bé]

  • Thong-iōng pian-têng gú-giân [en] (Thong-iōng pen-tîng gú-giân/General-purpose programming language (GPL))
  • D (programming language)
  • Comparison of programming languages
  • Timeline of programming languages

Guā-pōo lên-ket[siu-kái | kái goân-sí-bé]