Iyo yechigumi vhezheni yeRust yeLinux inosvika, yakagadzirira kuiswa muLinux 6.1

Rust vatyairi paLinux

Rust ikozvino yakagadzirira kujoina C semutauro unoshanda wekushandisa paLinux

Masvondo mashoma apfuura takagovana pano pablog nhau nezve kusimbiswa kwakaitwa panguva yeOpen Source Summit Europe, naLinus Torvalds yakaziviswa kuti, kudzivisa matambudziko asingatarisirwi, suye ichasanganisira zvigamba kutsigira kuvandudzwa kweRust mutyairi muLinux 6.1 kernel, iyo inotarisirwa kuburitswa muna Zvita.

Chikonzero chekutaura ndechekuti Miguel Ojeda, munyori weiyo Rust-for-Linux chirongwa, akazivisa nguva pfupi yadarika kuvhurwa kwe chirevo chegumi chezvikamu yebudiriro Ngura mudziyo vatyairi yeLinux kernel vanogadzira kufunga.

Saka nekudaro iyi ndiyo yegumi neimwe vhezheni yezvigamba, uchifunga nezve yekutanga yakaburitswa vhezheni (hapana vhezheni nhamba). Linus Torvalds yakabvumidza kuisirwa kweRust rutsigiro muLinux 6.1 kernel, ichivharira matambudziko asingatarisirwe.

Rust vatyairi paLinux
Nyaya inoenderana:
Torvalds akazivisa kuti Rust ichagamuchirwa muLinux 6.1

Zvakakosha kutaura kuti budiriro yacho inotsigirwa neGoogle neISRG (Internet Security Research Group), inova muvambi weRet Encrypt project uye inosimudzira HTTPS nekuvandudzwa kwetekinoroji yekuwedzera kuchengetedzwa kweInternet.

Vamwe yemabhenefiti ekuwana Rust rutsigiro mu kernel vari kuita kuti zvive nyore kunyora ma controller yemidziyo yakachengeteka nekuderedza mikana yekukanganisa kwendangariro uye kurudzira vagadziri vatsva kuti vapinde mu kernel.

"Ngura ndechimwe chezvinhu zvandinofunga kuti zvichaunza huso hutsva ... tave kuchembera nekuchena," Linus akadaro.

Zvinyorwa zvekusunungurwa zve Linux 6.0 Ipa Yekuvandudza pane Rust Project Progress yeLinux: kune boka rinoshanda rakabatana, mutyairi wekutanga weNVMe kuchengetedza midhiya yakagadziridzwa nemutauro iwoyo iripo, pamwe nemutyairi weserver inoitirwa 9P network protocol.

Kutora mukana wekutaura nezve kernel vhezheni 6.1 Linus akazivisawo kuti vhezheni 6.1 yekernel ichavandudza zvimwe zvevakuru zvikamu uye kernel zvakakosha, senge printk () basa.

Nezve ichi chikumbiro chitsva cheRust patches, pamwe neyazvino vhezheni yezvigamba, vhezheni yegumi inobviswa pasi kusvika padiki, yakakwana kuvaka iri nyore kernel module yakanyorwa muRust.

Kusiyana neshanduro yapfuura zvinoderedzwa kuita zvigadziriso zvidiki, kutsiva saizi ye ARRAY_SIZE mu kallsyms.c uye kutakura zvigamba ku kernel v6.0-rc7.

Rutsigiro rwengura runofanira kuramba ruchionekwa seyekuyedza. Zvakadaro,
Tsigiro yakanaka zvekuti vanogadzira kernel vanogona kutanga kushanda pairi.

Iyo diki chigamba, iyo yakaderedzwa kubva ku40 mitsara yekodhi kusvika gumi nenhatu mitsara yekodhi, inotarisirwa, ita kuti zvive nyore kutora Rust rutsigiro mukati mepakati. Mushure mekupa rutsigiro rudiki, zvakarongwa kuwedzera zvishoma nezvishoma mashandiro aripo, kutakura dzimwe shanduko kubva kubazi reRust-for-Linux.

Idzo shanduko dzakarongwa dzinoita kuti zvikwanise kushandisa Rust semutauro wechipiri wekugadzira vatyairi uye kernel module. Rutsigiro rutsigiro runounzwa sechisarudzo chisingagoneswe nekusarudzika uye hachikonzeri kuti Rust ibatanidzwe pakati pezvinodiwa kuvaka zvinoenderana nekernel.

Kushandisa Rust kugadzira madhiraivha kuchakubvumidza kuti ugadzire madhiraivha ari nani uye akachengeteka nekuedza kushoma, pasina matambudziko sekuwana nzvimbo yendangariro mushure mekuisunungura, dereference null pointers, uye buffer mafashama.

Kubata ndangariro kwakachengeteka kunopihwa muRust panguva yekubatanidza nekutarisa mareferensi, kuteedzera muridzi wechinhu, uye chinhu hupenyu hwese (chiyero), pamwe nekuongorora kurongeka kwekuwana ndangariro panguva yekuitwa kwekodhi.

ngura futi inopa huwandu hwekudzivirira kufashukira, inoda kusungirirwa kwekutanga kwemhando dzakasiyana usati washandiswa, inobata zvirinani zvikanganiso muraibhurari yakajairwa, inosimbisa pfungwa yezvisingachinjiki uye mareferensi nekukasira, inopa yakasimba static typing kuderedza zvikanganiso zvine musoro.

Finalmente kana iwe uchifarira kuziva zvakawanda nezvazvo nezve chinyorwa, unogona kutarisa mazita ekutumira pane iyo nyaya, Mune inotevera chinongedzo.


Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Iva wekutanga kutaura

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa.

*

*

  1. Inotarisira data: AB Internet Networks 2008 SL
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako