I-Carbon, ulimi lohlelo oluhlose ukufaka esikhundleni se-C++

Zimbalwa izinsuku ezedlule isisebenzi se-Google sidaluliwe owakha ulimi olusha lokuhlela olubizwa ngokuthi "Amalahle", que ibekwe njengendawo yokuhlola yokumiselela i-C++, ukwandisa lolu limi nokuqeda ukushiyeka okukhona.

Ngokusho kwesethulo sikaCarruth, ulimi lwathuthukiswa ukuze lukwazi ukudala isofthiwe lapho ukusebenza kubaluleke khona. Baphinde bafuna ukuvumela abathuthukisi ukuthi basebenzise idizayini yesimanje yolimi lokuhlela ngokusebenzisa i-Carbon.

Ezinye zezinto ezigqanyiswe njengezigqamile zeCarbon uma ziqhathaniswa ne-C++, ngokwesibonelo, lula syntax kanye API ukungenisa. Ngokuka-Carruth, lolu limi olusha lokuhlola kufanele lusebenzisane kabili ne-C++, okusho ukuthi amaphrojekthi kufanele akwazi ukufuduka esuka kolunye ulimi aye kolunye ngaphandle kobunzima obuningi.

Ngaphezu kwalokho, kuwumgomo wokuthuthukisa ulimi ngokuqhubekayo ngendlela evulekile ku-inthanethi, lapho noma ubani ofuna ukufaka isandla ngekhodi yomthombo. Iphrojekthi itholakala esidlangalaleni ku-Github futhi ivulekele donsa izicelo. 

Ulimi lusekela ukuphatheka kwe-C++ okuyisisekelo, ingahlanganisa nekhodi ekhona ye-C++, futhi inikeze amathuluzi okwenza kube lula ukuthuthwa kwamaphrojekthi akhona ngokuhumusha ngokuzenzakalelayo imitapo yolwazi ye-C++ ibe ikhodi ye-Carbon.

Isibonelo, ungaphinda ubhale ilabhulali ethile ku-Carbon futhi uyisebenzise kuphrojekthi ekhona ye-C++. I-Carbon compiler ibhalwe kusetshenziswa i-LLVM ne-Clang builds.

Ezicini eziyinhloko zeCarbon, okulandelayo kugqame:

  • Ukusebenza kwekhodi yomphumela kuqhathaniswa ne-C++, kuyilapho kugcinwa amandla okufinyelela amakheli asezingeni eliphansi kanye nedatha yezinga elincane.
  • Ukuphatheka ngekhodi ekhona ye-C++, okuhlanganisa ifa lekilasi nezifanekiso.
  • Ukuhlanganiswa okusheshayo nekhono lokuhlanganisa nezinhlelo zokwakha ezikhona ze-C++.
  • Yenza kube lula ukufuduka phakathi kwezinguqulo ezahlukene zeCarbon.
  • Ihlinzeka ngamathuluzi avikela inkumbulo avikela ezingozini ezibangelwa ukubhekana nendawo yenkumbulo ngemva kokuba ikhululiwe, izikhombi eziyinull zokususa, kanye nokuchichima kwebhafa.

Yebo sine-Rust njengenye indlela ehlongozwayo ku-C no-C++, kodwa lokhu akulona ulimi olunwetshiwe ngempela, ulimi olugcwele ngokugcwele, ake siqale futhi. Ikhabhoni izama ukufana nokugqwala kuyilapho isahambisana nezwe le-C++, Yebo, ekhasini layo le-Github lithi:

  • Ukufanisa ukusebenza kwe-C++ kusetshenziswa i-LLVM, enokufinyelela kwezinga eliphansi kumabhithi namakheli
  • Sebenzisana nekhodi yakho ekhona ye-C++, ukusuka efeni kuya kuzifanekiso
  • Izakhiwo ezisheshayo, ezikalayo ezisebenza nezinhlelo zakho zokwakha ezikhona ze-C++

Ikhabhoni kuthiwa iyadingeka ngoba ukuthuthukiswa okwandayo kwe-C++ akusenakwenzeka ngenxa yomthwalo ongokomlando ongeke ukwazi ukuwususa. Ngokwami, ngingadlulela phambili futhi ngiphakamise ukuthi "ukuthuthukiswa" okwandayo ku-C++ kuyingxenye yesizathu solimi olukhulu kangaka ekusebenzeni.

“Kuhlale kunezilimi ezintsha ezizama ukuba ngabalandeli be-C++. Ngiyakwamukela ukuhlolwa ngezilimi zokuhlela nezitayela zokuhlela, kodwa angifuni ukuvusa impikiswano. Kulula ukugxeka izilimi ezimisiwe (siyazazi izinkinga zazo), kodwa ngokuvamile kunzima ukunikeza ezinye izindlela ngaphandle kokudala izinkinga ezintsha ngokuphelele emithethweni yolimi, emitapo yolwazi, nasekuphathweni. Ikhabhoni yintsha kakhulu futhi ayicaciswanga kancane kangangokuthi angikwazi ngempela ukubeka amazwana ochwepheshe anenjongo,” kusho umsunguli we-C++ u-Bjarne Stroustrup ku-imeyili.

Ngenkathi i-Carbon iqale njengephrojekthi yangaphakathi ye-Google, ithimba labathuthukisi ekugcineni lifuna ukunciphisa iminikelo evela ku-Google, noma enye inkampani ngayinye, ibe ngaphansi kuka-50% ekupheleni konyaka. Ekugcineni, bafuna ukunikeza iphrojekthi kusisekelo sesofthiwe esizimele, lapho ukuthuthukiswa kwayo kuzokwenziwa amavolontiya.

Okokugcina uma unentshisekelo yokwazi kabanzi ngakho kufanele wazi ukuthi ukuthuthukiswa kwephrojekthi kusatshalaliswa ngaphansi kwelayisensi ye-Apache 2.0 futhi ungabonisana nabo Kulesi sixhumanisi esilandelayo.


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Yiba ngowokuqala ukuphawula

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe.

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.