Drew DeWalt o hlahisitse puo ea mananeo a Hare system

Drew DeVault, mongoli oa Sway user environment, Aerc email client, le SourceHut tšebelisano-'moho sethaleng sa nts'etsopele, o ile a senola puo ea lenaneo la Hare eo eena le sehlopha sa hae ba 'nileng ba sebetsa ho eona ka lilemo tse peli le halofo tse fetileng. Hare e hlalosoa e le puo ea mananeo a tšoanang le C empa e bonolo ho feta C. Har'a melao-motheo ea bohlokoa ea moralo oa Hare, ho tsepamisitsoe maikutlo holim'a ho nolofatsa le ho tšepa ka ho feletseng liketsong tsa moetsi oa lenaneo (etsa hantle se bontšitsoeng, ntle le boithaopo le boitšoaro bo hlakileng), ka lisebelisoa tse thusang bakeng sa ho khetholla liphoso le mathata a tloaelehileng, ho phatlalatsoa.

Khoutu ea mohloli oa compiler le toolchain e na le laesense tlas'a GPLv3, 'me khoutu e tloaelehileng ea laeborari e na le laesense tlas'a MPL (Mozilla Public License). Tokollo ea pele ea sechaba e phatlalalitse tšehetso bakeng sa litsamaiso tse sebetsang. Linux le FreeBSD ho li-platform tsa x86_64, aarch64, le riscv64, hammoho le ts'ebetsong e ikemetseng bakeng sa ts'ebetso ea tšepe e se nang tšepe. Merero e kenyelletsa tšehetso bakeng sa litsamaiso tsa ts'ebetso tsa NetBSD, OpenBSD, Illumos, Haiku, le Plan 9 le li-platform tsa ppc64le, i686, le arm32.

Puo e sebelisa tsamaiso ea memori ea letsoho le mokhoa oa mofuta o tsitsitseng, oo ho oona phapang e 'ngoe le e' ngoe e lokelang ho abeloa ka ho hlaka mofuta o itseng. Ho kenyelelitsoe nako e fokolang ea ho sebetsa ho tsamaisa kopo. Puo e ntlafalitsoe bakeng sa mesebetsi ea boemo bo tlase joalo ka ho nts'etsapele lits'ebetso tsa ts'ebetso, li-compilers, lits'ebetso tsa marang-rang, le lisebelisoa tsa sistimi tse hlokang ts'ebetso e phahameng le taolo e felletseng ea ts'ebetso.

Laeborari e tloaelehileng ea mesebetsi e lokiselitsoe bahlahisi, e fanang ka phihlello ea li-interfaces tsa sistimi e sebetsang, li-algorithms tse tloaelehileng, le ts'ebetsong ea liprothokholo le lifomate. Laeborari e akaretsa libaka tse joalo ka I/O, ho qhekella ha lifaele, mantsoe a tloaelehileng, ho patala, marang-rang, nako le ts'ebetso ea letsatsi, phihlello ea li-primitives tsa Unix (tse kang poll, fnmatch, le glob), parsing, le ho hlahloba mofuta. Ka thoko, ho fanoa ka litlamo ho fihlella likarolo tsa OpenGL, SDL2, le libui.

Mehlala ea merero e ngotsoeng ka puo ea Hare e kenyelletsa microkernel ea Helios, mookameli oa phasewete oa Himitsu, sistimi ea ho latela mahlaseli a letsatsi, lenaneo la ho encryption ea lebokose, daemon ea btqd bittorrent, e hlophisitsoeng (tsamaiso e kang ea cron), borashe ba meno (moreki le seva (bakeng sa protocol ea menoana). Merero ea nakong e tlang e kenyelletsa ho tsitsisa litlhaloso tsa puo le laeborari e tloaelehileng, ho kenya tšebetsong tšehetso bakeng sa li-platform le meralo e sieo, le ho eketsa mesebetsi ea laeborari ho tšehetsa TLS 1.2 le 1.3.

Hare code mohlala: sebelisa crypto::sha256; sebelisa encoding::hex; sebelisa fmt; sebelisa hash; useio; sebelisa os; export fn main() void = {consst hash = sha256::sha256(); const file = os::open("main.ha")!; deferio :: koala(faele); io :: kopi (& hash, faele); let sum: [sha256::SIZE]u8 = [0…]; hash :: kakaretso (& hash, kakaretso); hex::encode(os::stdout, kakaretso)!; fmt::println()!; const litumeliso = [ "Lumela, lefats'e!", "¡Hola Mundo!", "Γειά σου Κόσμε!", "Lumela lefatšeng!", "こんにちは世界!", ]; bakeng sa (tlohela ke = 0z; ke < len(litumeliso); i += 1) {fmt::println(litumeliso[i])!; }; let x: *int = alloc(42); fmt::printfln("x: {}", x)!; fmt::printfln("*x: {}", *x)!; mahala(x); const file = os::open(os::args[1])!; deferio:: koala(file)!; tlohela buffer: *[65535]u8 = alloc([0…]); defer mahala (buffer); const n = io :: bala(faele, buffer)! joalo ka boholo; io::ngola(os::stdout, buffer[..n])!; }; fn mofuta(lintho: []int) lefeela = {… }; @test fn sort() lefeela = {tlohela lintho = [5, 4, 3, 2, 1]; hlopha (lintho); bakeng sa (tlohela ke = 1z; i < len(lintho); i += 1) {assert(lintho[i - 1] <= lintho[i], "lenane ha lea hlophisoa"); }; };

Source: opennet.ru

Reka sebaka se tšepahalang sa libaka tse nang le ts'ireletso ea DDoS, li-server tsa VPS VDS 🔥 Reka sebaka se tšepahalang sa ho amohela webosaete ka tšireletso ea DDoS, li-server tsa VPS VDS | ProHoster