Nchafatso ho GNU Coreutils, e ngotsoe hape ho Rust

Ho hlahisoa ha uutils coreutils 0.0.12 toolkit, moo ho ntseng ho ntlafatsoa analogue ea sephutheloana sa GNU Coreutils, se ngotsoeng bocha ka puo ea Rust. Coreutils e tla le lisebelisoa tse fetang lekholo, ho kenyelletsa mofuta, katse, chmod, chown, chroot, cp, date, dd, echo, hostname, id, ln, le ls. Ka nako e ts'oanang, sephutheloana sa uutils findutils 0.3.0 se ile sa lokolloa ka ts'ebetsong ho Rust ea lisebelisoa tse tsoang ho GNU Findutils set (fumana, fumana, updatedb le xargs).

Lebaka la ho theha morero le ho sebelisa puo ea Rust ke takatso ea ho theha ts'ebetsong e 'ngoe e fapaneng ea Coreutils le Findutils, e khonang ho sebetsa ho Windows, Redox le Fuchsia platforms, har'a tse ling. Phapang e 'ngoe ea bohlokoa lipakeng tsa lisebelisoa ke hore e ajoa tlas'a MIT Permissive License, sebakeng sa laesense ea GPL copyleft.

Hajoale, ts'ebetsong ea lits'ebeletso tsa 88 e se e tlisitsoe ka botlalo le GNU Coreutils. Liphoso tsa motho ka mong li hlokometsoe lits'ebetsong tse 18, ho kenyelletsa cp, dd, date, df, install, ls, more, sort, split, tail le test. Ke sesebelisoa sa stty feela se ntseng se sa sebelisoe. Ha ho feta tlhahlobo ea tlhahlobo ho tsoa morerong oa GNU Coreutils, liteko tse 214 li etsoa ka katleho, empa analogue ea Rust ha e e-so fete liteko tse 313. Ka nako e ts'oanang, matla a nts'etsopele ea morero a eketsehile - li-patches tse 400-470 li eketsoa ka khoeli ho tsoa ho baetsi ba 20-50 ho e-na le 30-60 ho tloha ho baetsi ba 3-8 selemong se fetileng.

Nchafatso ho GNU Coreutils, e ngotsoe hape ho Rust

Har'a likatleho tsa morao-rao, ntlafatso ea ts'ebetso e hlokomeloa - maemong a hajoale, lits'ebeletso tse ngata, joalo ka hlooho le ho itšeha, li phahame haholo ts'ebetsong ho feta likhetho tse tsoang ho GNU Coreutils. Kakaretso ea sehlopha sa liteko e atolositsoe ho tloha ho 55% ho isa ho 75% ea khoutu eohle (80% ke sepheo se lekaneng). Khoutu e fetotsoe ho nolofatsa tlhokomelo, mohlala, ho sebetsana le liphoso ho kopantsoe mananeong a fapaneng, 'me khoutu ea ho sebetsa ka litokelo tsa ho fihlella e kopantsoe ho chgrp le chown. Liphetoho tse ngata li ekelitsoe ho ntlafatsa tšebelisano le GNU Coreutils.

Merero ea bokamoso e kenyelletsa ts'ebetsong ea ts'ebeliso ea stty, mosebetsi o tsoelang pele oa ho ntlafatsa tšebelisano le GNU Coreutils, ho eketsa lisebelisoa ho fokotsa boholo ba lifaele tse sebetsang, hammoho le liteko tse tsoelang pele tsa ho sebelisa lisebelisoa tsa lisebelisoa ho Debian le Ubuntu sebakeng sa GNU Coreutils le GNU. Findutils (e mong oa bahlahisi ba ka sehloohong ba lisebelisoa tse kileng tsa sebetsa morerong oa ho aha Debian GNU/Linux a sebelisa motlalehi oa Clang). Ntle le moo, ho lokisoa ha sephutheloana sa uutils-coreutils bakeng sa macOS, liteko tsa ho nkela GNU Coreutils sebaka ka li-uutils coreutils ho NixOS, sepheo sa ho sebelisa li-uutils coreutils ka mokhoa o ikhethileng kabong ea Apertis, le ho tloaeleha ha lisebelisoa tse behiloeng bakeng sa Redox OS li hlokometsoe.

Source: opennet.ru

Eketsa ka tlhaloso