An riga an saki Go 1.19 kuma waɗannan labaran ne

Kwanan nan An sanar da sakin sabon sigar yaren shirye-shirye «Go 1.19», sigar da ta inganta akan sakin da ya gabata ta hanyar ƙara gyare-gyare daban-daban kuma, sama da duka, gyaran gyare-gyare. Daga cikin sababbin abubuwan da za mu iya haskakawa shine haɓakawa a cikin sarrafa ƙwaƙwalwar ajiya, inganta tsaro, da dai sauransu.

Ga wadanda suka saba zuwa Go, ya kamata ku sani cewa wannan harshe ne na shirye-shirye da aka haɓaka tare da haɗin gwiwar al'umma a matsayin mafita mai mahimmanci wanda ya haɗu da babban aiki na harsashi da aka haɗa tare da fa'ida kamar rubutun rubutu kamar su. Sauƙin rubuta lambar ci gaba da kariyar kwaro.

Jumlar Tafi ta dogara ne akan abubuwan da aka saba na yaren C. tare da wasu aro daga yaren Python. Harshen yana da ƙarfi sosai, amma lambar tana da sauƙin karantawa da fahimta.

An haɗa lambar Go zuwa cikin fayiloli masu aiwatarwa na binary daban wanda ke gudana ta asali, ba tare da amfani da na'ura mai mahimmanci ba (profiling, debugging, da sauran tsarin gyara matsala na lokaci-lokaci an gina su azaman kayan aikin lokaci).

Tafi 1.19 babban labarai

A cikin wannan sabon juzu'in na Go 1.19 da aka gabatar, an nuna cewa an yi aikin don tsaftace tallafi don ayyuka da nau'ikan nau'ikan nau'ikan ƙara a cikin sabon sigar, tare da taimakon wanda mai haɓakawa zai iya bayyanawa da amfani da ayyukan da aka tsara don yin aiki tare da nau'ikan da yawa lokaci ɗaya, ƙari haɓaka aikin wasu shirye-shirye ta amfani da nau'ikan nau'ikan ya karu da kashi 20%.

Wani canji wanda yayi fice daga sabon sigar shine ƙarin tallafi don hanyoyin haɗin gwiwa, jeri, da ma'auni mai sauƙi don ayyana kanun labarai a cikin sharhin daftarin aiki. Gofmt mai amfani yana ba da tsarawa tare da ci-gaba da fasalulluka na sharhi a zuciya tare da takaddun API.

Bayan shi samfurin Go ƙwaƙwalwar da aka bita don daidaitawa tare da C, C++, Java, JavaScript, Rust, da Swift waɗanda ba sa yarda da daidaitattun ƙimar atomic jere. Sabbin nau'ikan kamar atomic.Int64 da atomic.Pointer[T] an gabatar dasu a cikin kunshin daidaitawa/atomic don sauƙaƙa amfani da ƙimar atomic.

A gefe guda, an kuma ambata hakan mai tara shara yanzu yana da ikon ayyana iyakoki masu laushi, waɗanda aka tilasta su ta hanyar iyakance girman tsibi da mayar da ƙwaƙwalwar ajiya zuwa tsarin da ƙarfi, wato, ba a tabbatar da amfani da shi a cikin ƙayyadaddun iyaka a ƙarƙashin kowane yanayi. Iyakoki masu laushi na iya zama da amfani don inganta shirye-shiryen da ke gudana a cikin ƙayyadaddun kwantena na ƙwaƙwalwar ajiya.

An kuma haskaka cewa akan tsarin Unix, ƙarin masu siffanta fayil ana kunna ta atomatik (ƙara iyakar RLIMIT_NOFILE), don haɓaka manyan maganganun canji akan tsarin x86-64 da ARM64, ana amfani da tebur masu tsalle, waɗanda ke ba da damar sarrafa manyan maganganun canji har zuwa 20% cikin sauri.

A kan tsarin riscv64, an aiwatar da muhawarar aiki ta hanyar rajistar CPU, wanda ya ba da damar haɓaka aikin kusan 10%.

Na sauran canje-canje wanda ya fice daga wannan sabon sigar:

  • An aiwatar da haɓaka ayyuka da yawa.
  • Ƙara tallafi don saita girman tari na yau da kullun don rage girman da aka kwafi
  • Ƙara goyan bayan gwaji don mahallin Linux akan tsarin tare da na'urori na Loongson dangane da gine-ginen LoongArch 64-bit (GOARCH= loong64).
  • Canja samfurin ƙwaƙwalwar ajiya bai shafi dacewa da lambar da aka rubuta a baya ba.
  • An ƙara sabon ƙuntatawa na "unix" wanda za'a iya amfani dashi a cikin "go:build" layukan don tace tsarin kamar Unix (aix, android, darwin, dragonfly, freebsd, hurd, illumos, ios, linux, netbsd, openbsd, solaris ).
  • Don inganta tsaro, tsarin os/exec yanzu yana watsi da hanyoyin dangi lokacin da ake faɗaɗa canjin yanayi na PATH (misali, lokacin da aka ƙayyade hanyar fayil ɗin da za a iya aiwatarwa, ba a sake duba kundin adireshi na yanzu ba).

A ƙarshe, idan kuna sha'awar ƙarin koyo game da wannan sabon sakin, zaku iya duba cikakkun bayanai a mahada mai zuwa.


Abubuwan da ke cikin labarin suna bin ka'idodinmu na ka'idojin edita. Don yin rahoton kuskure danna a nan.

Kasance na farko don yin sharhi

Bar tsokaci

Your email address ba za a buga. Bukata filayen suna alama da *

*

*

  1. Mai alhakin bayanan: Miguel Ángel Gatón
  2. Dalilin bayanan: Gudanar da SPAM, gudanar da sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.