ULinus Torvalds uthi iRust inokwenzeka ukuba ifike kwiLinux 5.20

Ngexesha leNgqungquthela yeSiseko seLinux evulelekileyo eAustin, eTexas, U-Linus Torvalds ukhankanye ukuba ulindele inkxaso yekhowudi ye-Rust kwi-kernel. yeLinux iza kudityaniswa kungekudala kwaye isiganeko esinjalo sinokwenzeka ngokukhutshwa okulandelayo kweKernel 5.20.

Ezi ndaba zanikwa ukwazi emva kokuba uLinus Torvalds kunye noDirk Hohndel babenotshintshiselwano lwabo lwesiqhelo ngexesha leseshini ye-2022 edition ye-Open Source Summit. ULinus Torvalds emva koko waphawula malunga nokuvela kweprojekthi yeRust yeLinux, ephawula ukuba inokuba ilungele iLinux 5.20.

Oku enkosi kupapasho lwamaxesha apho uMiguel Ojeda ebesebenza khona, inkokeli yeprojekthi ye-Rust ye-Linux, kwaye esele yenze ukuba ikwazi ukuqulunqa uluhlu lwenkqubela phambili yeli nyathelo: inkxaso ye-rust compiler ye-beta, inkxaso yokuvavanya i-ARM kunye ne-RISC-V ye-architectures, i-Rust abstractions entsha, njl.

Ngaloo nto kulindeleke ukuba ikwazi ukunciphisa ubuthathaka obahlukeneyo obuchaphazele i-Linux kernel kwiminyaka engama-20., ekuqikelelwa ukuba malunga ne-15,9% ye-2288 vulnerabilities (amanani asuka kwisichazi-magama esiqhelekileyo soVulnerabilities and Exposure (CVE)) adityaniswe neziphene kulwimi lwe-C.

Iingxaki ezinxulumene nolawulo lwememori ubukhulu becala: ukuphuphuma kwememori ye-buffer, ukungakhululeli ulwabiwo, ukufikelela kwiindawo zememori ezingasebenziyo okanye ezikhululekileyo, njl.

U-Linus Torvalds usanda kuphanda umba onokubakho wokhuseleko kunye noluhlu oludityanisiweyo lwe-kernel oludityanisiweyo lweziqalo zokwenziwa ezibhalwe kwi-ANSI C. Kwakungethuba elungisa lo mba wafumanisa ukuba kwi-C99 i-iterator edluliselwe kuluhlu lwe-macros enqamlezayo kufuneka ibhengezwe kububanzi obungaphandle kwe-loop ngokwayo. .

Kusuka kolu qwalaselo ukuba isigqibo sakhe samva nje sokususa i-Linux kernel ukuya kwi-Modern C (C11) ekuye kwagqitywa ukubekwa emgangathweni kwayo ngo-2011. Ezi ntlobo zezizathu zobugcisa ezinokuthi zithethelele ukuchaswa kolwimi lwe-C ngokuthanda iRust kuphuhliso. i-kernel yexesha elide.

Ezi ndaba ziza ngexesha apho umbono kaLinus Torvalds ngolwimi lweRust utshintshile. Enyanisweni, inkxaso yeRust yophuhliso lwe-Linux kernel iqala ukumila kwaye ibonwa "njengenyathelo elibalulekileyo lokukwazi ukubhala abaqhubi ngolwimi olukhuselekileyo."

Ukusukela ubuncinci kuDisemba ophelileyo, xa isiqwenga songeza inkxaso yeRust njengolwimi lwesibini kwikhowudi yekernel, uluntu lweLinux lulindele olu tshintsho, ngethemba lokuba luya kukhokelela kuzinzo olukhulu kunye nokhuseleko.

Abantu abaninzi bacinga ukuba sisengozini kakhulu, utshilo uTorvalds. Ke xa kufikwa kwiRust, bekuxoxwa ngayo iminyaka eliqela ngoku. Ifikelela kwinqanaba apho kungekudala, siza kuyidibanisa kwi-kernel. Mhlawumbi kukhupho olulandelayo. "

Nangona kunjalo, uTorvalds wakha wagxeka kabukhali ukuphunyezwa komhlwa:

“Phambi kokuba abantu beRust babe nemincili,” watsho umyili kunye nentloko yeLinux kernel. "YINYANI? Ngaba uyazi ukuba ungubani na. Kum, luvavanyo, akunjalo? Sifuna ukuba nokhuseleko lwenkumbulo [kaRust]. Ke kukho izizathu zokwenyani zobuchwephesha zokuba kutheni i-Rust iluluvo olulungileyo kwi-kernel.

“Kodwa kwangaxeshanye, yenye yezo zinto: Sazama i-C++ ngaphezulu kweminyaka engama-25 eyadlulayo kwaye sazama iiveki ezimbini emva koko sayeka ukuzama. Ke kum, iRust yindlela yokuzama into entsha. Kwaye ngethemba, iyasebenza, kwaye abantu bebesebenza kuyo kakhulu, ke ndiyathemba ukuba iyasebenza kuba kungenjalo baya kukhubeka. ”

Kulabo abangaziyo malunga neRust, kufuneka bazi ukuba lulwimi lweprogram, ngokutsho kwabaninzi, likamva leenkqubo zenkqubo endaweni yolwimi lweC. Enyanisweni, iingcali zikholelwa ukuba inikeza iziqinisekiso ezingcono zokhuseleko lwesofthiwe kuneC. ulwimi C/C++ iperi.

Kwi-AWS, umzekelo, bacebisa ukuba ukhethe i-Rust kwiiprojekthi zakho zophuhliso, oku kuthetha ukongeza ukusebenza kakuhle kwamandla kunye nokusebenza kwe-C kwinzuzo yokhuseleko.


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.