Umhlwa weLinux ubandakanya izixhasi ezininzi zokuxhasa

Ngexesha leenyanga zokugqibela Abaphuhlisi beLinux bebexambulisana amathuba okuba vumela ukusetyenziswa kolwimi lweRust ukubhala abaqhubi besixhobo esitsha bekernel.

Kunyaka ophelileyo, abaphuhlisi be-Linux kernel kubonakala ngathi bafikelele kwisivumelwano ngalo mba, Abaxhasi be-Rust bacaphule umsebenzi obonisa ukuba malunga nesibini kwisithathu somngcipheko we-kernel owabelwe ii-CVEs kwi-Android kunye no-Ubuntu zihambelana nemiba yokhuseleko lwememori.

Ukulandela le ngxelo, uLinus Torvalds, injineli yesoftware, umdali okhokelayo, kunye nomphuhlisi weLinux kernel, uthe kudliwanondlebe ukuba iingxoxo ngesihloko ziya kubaluleka kakhulu kunesithuba eside sikaGoogle ngolwimi.

Xa ebuzwa malunga nesiphakamiso sokusebenzisa i-Rust, wabonisa ukuba, "Isisombululo apha silula: sebenzisa nje i-C ++ endaweni ye-Rust."

Emveni kwalonto ngoMatshi, inkxaso yokuqala yasungulwae evumele ukuba abaqhubi be-Rust babekwe kwi-Linux-Okulandelayo umthi ukuze bavavanywe ngakumbi phambi kokuba baqukwe kwi-kernel engundoqo.

Kanye emva kwayo kukho "isicelo sezimvo" siphinde sakhutshwa kuluhlu lokuposa lwe-kernel malunga nembono yekhowudi yeRust yeLinux kernel.

UMiguel OjedaUmphuhlisi we-Linux kernel uqalise iSicelo sezimvo (RFC) kuluhlu lokuposa lwe-kernel ye-Linux.

Uluhlu lokuposa luchaza iinkolelo zabaphuhlisi ababandakanyekayo ekongezeni ikhowudi ye-Rust kwi-kernel, izibonelelo ezinjengokhuseleko lwememori oluphuculweyo, kunye nokunye.

“Abanye benu baye baqaphela kwiiveki nakwiinyanga zamva nje ukuba kuzanywa ngokunzulu ukuzisa ulwimi lwesibini kwi-kernel. Ekugqibeleni silapho, kunye ne-RFC eyongeza inkxaso ye-Rust kwi-Linux kernel, ”utshilo uMiguel Ojeja. “Siyazi ukuba kukho iindleko ezinkulu kunye nemingcipheko ebandakanyekayo ekuziseni ulwimi olutsha kwi-kernel,” wongeze watsho.

Umhlwa weQela leProjekthi yeLinux isusiwe kwi Rust beta compiler ukuya ekusebenziseni ukhupho oluzinzileyo, ifuduka qho xa kukhutshwa inguqulelo entsha.

“Sithanda ukubulela uRust ngokusebenzisana nathi kwezi ndlela zokhetho ukuze ukhozo lukwazi ukuzisebenzisa,” utshilo uMiguel.

Xa uhlaziya umqokeleli, iqela ikwazile ukususa ezinye iifitsha ezingazinzanga kuluhlu: const_fn_transmute, const_panic, const_unreachable_unchecked, core_panic, kwaye try_reserve.

Ukongeza koku, kugxininiswe ukuba ezinye iinketho zokumodyuli zongeziwe ngaphezulu ukwaba ukuvala imisebenzi engeyomfuneko: no_rc kunye no_sync.

Phezulu, ukwenzela ukuba imeko yokusetyenziswa kwe-kernel ixhaswe kakuhle, okanye ngokuchanekileyo "umxube" weenketho ezifunwa yi-kernel, i-Upstream core yongeze no_fp_fmt_parse.

Kwelinye icala, iRust yenza uthotho loxilongo olongezelelweyo lwe-Rust kunye neClippy compiler. Omnye umahluko ukusuka ku-C kukuba ukuxilongwa kwe-Rust kulula ukukhubaza kwikhowudi, engqongqo kwimeko jikelele.

Kwakhona ama-abstractions kunye nohlaziyo lwabaqhubi luphunyeziwe. Iqela longeze izithintelo zokutshixa umlambo, ukufowunelwa kolawulo lwamandla, i-io memory (readX / bhalaX), ii-irq chips kunye nabaphathi bemijelo abakwinqanaba eliphezulu, iichips zegpio (kubandakanya ii-irq chips), iiperipherals, i-amba peripherals, kunye nabaqhubi.

Inkxaso ye isilawuli siphuculwe ngesiseko sebhasi esizimeleyo, Izinto ezishenxiswayo, izimumu ezishenxiswayo, i-bit iterators esebenzayo, ukuxilongwa ngcono koloyiko, kunye nezisongelo zesalathiso ezilula. Ukongeza, iphucule kwaye yenza lula izinto zeRef (ehambelanayo ne-refcount_t) kwaye yatshintsha zonke iimeko zeRust.

Kwaye umqhubi omtsha wezixhobo ze-gpio PL061 uphunyeziwe kwaye wathunyelwa njenge-RFC patch.

Okokugqibela kufanele ukuba kuqatshelwe ukuba Inkxaso yomhlwa isajongwa njengovavanyo. Nangona kunjalo, inkxaso ilungile ngokwaneleyo kangangokuba abaphuhlisi be-kernel bayaqala ukusebenza kwi Rust abstractions yokubhala subsystems kunye nabalawuli kunye nezinye iimodyuli. Uthotho lwangoku lusanda kufika kwi-Linux-ilandelayo, ke ukubaleka kokuqala kuya kwenzeka kule veki.

Umthombo: https://lkml.org/lkml


Umxholo wenqaku uyabambelela kwimigaqo yethu imigaqo yokuziphatha yokuhlela. Ukuxela impazamo cofa apha.

Yiba ngowokuqala ukuphawula

Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa.

*

*

  1. Uxanduva lwedatha: UMiguel Ángel Gatón
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.