Rust yeLinux inobatanidzwa zviri pamutemo muLinux 6.1

Rust vatyairi paLinux

Mutemo we Rust yeLinux yakabatanidzwa mune huru Linux 6.1 Git muti Muvhuro wapfuura uye iyi nyowani yekutanga 12 mutsara kodhi inongopa yakakosha zvivakwa uye kubatanidzwa, nepo ramangwana rekudhonza zvikumbiro zvichawedzera mamwe subsystem abstractions, akasiyana madhiraivha akanyorwa muRust, nezvimwe.

Linux kernel kuunganidzwa neRust rutsigiro ichiri sarudzo, sezvo chirongwa che "Rust for Linux" chiri kutora rimwe danho rakakura, asi vamwe vanogadzira vachiri kuita sekunge vasina chokwadi nezvekuunza mutauro weRust muLinux kernel.

Mune meseji kunharaunda yekernel Torvalds akati:

"muti une hwaro hwazvino, asi uri palinux-inotevera kwegore nehafu. Yakagadziridzwa zvichienderana nemhinduro kubva kuKernel Maintenance Summit.

Miguel ndiye muchengeti mukuru uye ndinobatsira pazvinenge zvichidiwa. Hurongwa hwedu ndehwekuti muti uyu uchinje kune yakajairika tsika yekusachinja mabhesi kana iyi yekutanga kutenderera kwezvivakwa kwapera. Zviri mukati ndiyo hushoma hwakakwana hwekubvumira Rust kodhi kuti ibatanidzwe mu kernel, iine akawanda mainterface (uye vatyairi: NVMe, 9p, GPU M1) munzira."

Sechiyeuchidzo, chirongwa "Rust yeLinux" ine chinangwa chekuunza mutauro mutsva wechirongwa mu kernel. Rust ine kiyi pfuma inoita kuti inakidze kufunga seyechipiri kernel mutauro: inova nechokwadi chekuti hapana maitiro asina kutsanangurwa anoitika. Izvi zvinosanganisira zvikanganiso zvekusashandisa mushure-yemahara, kaviri mahara, mijaho yedata, nezvimwe.

Neizvi, anenge mushure memakore makumi matatu nerimwe, mutauro wechipiri uchagamuchirwa mukuvandudza kernel. Hurukuro dzinoenderana dzinotenderedza mukana wekubvisa C uchifarira mutauro weRust.

Rust rutsigiro rwave palinux-rinotevera kwegore nehafu, uye irori pfupi hariite ruramisiro kune huwandu hwevanhu vakapa kune ese Linux kernel side uye Rust kumusoro kwerukova kutsigira zvinodiwa nekernel. .

Kutenda kuvanhu 173 ava, nevamwe vakawanda, vakabatanidzwa munzira dzakasiyana-siyana

Torvalds akazivisa mukati meKernel yetsamba zvinyorwa, izvo tsigiro yekutanga yeRust yeLinux iri munzvimbo dzinenge 4 uye izvo zvinosanganisira:

  • kernel internals (kallsyms kuwedzera kweRust zviratidzo, % pA fomati);
  • Kbuild framework (Rust kuvaka mitemo uye zvinyorwa zvinotsigira)
  • Rust core zvinyorwa uye samples.

Torvalds munguva pfupi yapfuura akaongorora nyaya ingangove yekuchengeteka nekernel's linked list speculative execution primitives yakanyorwa mu ANSI C. Paaive achigadzirisa nyaya iyi paakaona kuti 'muC99, iterator yakapfuura kune traversal macro list inofanira kuziviswa mune imwe nzvimbo kunze kwe loop pachayo.

Kubva pane izvi zvakaonekwa kuti sarudzo yake ichangoburwa yekuvandudza Linux kernel kuC11, iyo yakagadziriswa yakapedzwa muna 2011. Aya ndiwo marudzi ezvikonzero zveunyanzvi zvinogona kururamisa kusiya mutauro weC nekuda kweRust kwenguva refu, mu. kuwedzera kune yekutanga temu yekuvandudza.

Rutsigiro rwe Rust yeLinux kernel budiriro inoenderera uye inoonekwa se "danho rakakosha kukwanisa kunyora zvidzori mumutauro wakachengeteka zvikuru.” Mutauro weRust, wakagadzirwa neMozilla Research, ndiyo mhando yemutauro wepurogiramu inoshandiswa nevaya vanonyora kodhi yezvinyorwa zvekutanga / zvekubuda (BIOS), vatariri vebhoti, masisitimu anoshanda, zvichingodaro. iva nechido

Maererano nedzimwe nyanzvi dzinocherechedza, inguva yemberi yezvirongwa zvehurongwa panzvimbo yemutauro weC. Kutaura zvazviri, nyanzvi dzinofunga kuti inopa zviri nani zvivimbiso zvekuchengetedza software kupfuura C / C ++ pair. Semuyenzaniso, kune mutungamiri wepasi rose mu cloud computing AWS, zvinotsanangurwa kuti kusarudza Rust yemapurojekiti ako ekusimudzira zvinoreva kuwedzera simba rekuita uye kuita kweC kune mukana wekuchengetedza.

Finalmente kana iwe uchifarira kuziva zvakawanda nezvazvo, unogona kutarisa mazita etsamba mu inotevera chinongedzo.


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

Mhinduro, siya zvako

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

  1.   Edward Avila akadaro

    Mashoko akanaka sei. Chinhu chakaonekwa chichiuya. Kunyanya sezvo ngura iri kuwana simba rakawanda. Ini pachangu, kuronga muRust kunondinakidza uye munguva pfupi ndichave nyanzvi muRust.