Dart 2.15 inosvika nemapoka ari ega, kuvandudzwa kwekumhanya uye nezvimwe

Google munguva pfupi yapfuura yakaburitsa kuvhurwa kweiyo shanduro itsva yemutauro wepurogiramu Dart 2.15, inoenderera mberi nekuvandudzwa kwebazi rakagadziridzwa zvakanyanya reDart 2 uye izvo zvinosiyana neshanduro yepakutanga yemutauro weDart nekushandiswa kweakasimba static typing (mhando dzinogona kududzirwa otomatiki, saka kutsanangura mhando hakudiwi, asi dhizaini yekutaipa haichashandiswi uye inotanga kuverengerwa, rudzi rwunopihwa kune chinja uye ipapo cheki yemhando yakasimba inoiswa).

Muiyi vhezheni itsva, kuvandudzwa kwakasiyana kwakaitwa uye pamusoro pezvese kuunzwa kwezvimwe zvinhu zvitsva zvakaita semapoka ari ega uyezve mhinduro kune kumwe kusagadzikana kwakaonekwa.

Main nyowani maficha eDart 2.15

Mune iyi vhezheni itsva yeDart 2.15 maturusi anopihwa kukurumidza parallel execution yemabasa ane controller kuparadzaniswa.

kunze kwaizvozvo mu-multi-core systems, nguva yekumhanya Dart, nekusingaperi, inomhanyisa kodhi yekushandisa paCPU core uye inoshandisa mamwe macores kuita system mabasa senge asynchronous I / O, kunyora kune mafaera, kana kufonera network.

Chimwe chitsva chinounzwa naDart 2.15 ipfungwa nyowani, mapoka ari oga, (mapoka akazvimirira) kubvumira kugoverana kwekugoverana kune zvakasiyana-siyana zvemukati data zvimiro vari voga vari veboka rimwe chete, iyo inogona kuderedza zvakanyanya pamusoro pepamusoro paunenge uchitaurirana nevamiririri muboka. Semuyenzaniso, kutanga kumwe kuzviparadzanisa nevamwe padziva riripo rinokurumidza ka100 uye kunoda ka10 kusvika ka100 kashoma kurangarira pane kutanga kuparadzaniswa, kubvisa kudiwa kwekutanga zvirongwa zvedata.

Kunyangwe chokwadi chekuti mumabhuroko ari ega muboka, kugovaniswa kuwana zvinhu zvinochinjika kuchiri kurambidzwa, mapoka anoshandisa yakagovaniswa dynamic memory, ichimhanyisa zvakanyanya kutamiswa kwezvinhu kubva kune imwe bhuroko kuenda kune imwe pasina kudikanwa kwekushandisa-inokura-makopi mashandiro.

Mune vhezheni itsva, inobvumirwawo kupfuudza mhedzisiro yebasa remutongi kana Isolate.exit () inonzi kupfuudza data kune iyo huru yekuzviparadzanisa block pasina kuita makopi mashandiro. Uye zvakare, optimization yemeseji yekufambisa meseji yakaitwa: madiki uye epakati mameseji ave kugadziriswa kanenge kasere nekukurumidza. Izvo zvinhu zvinogona kupfuudzwa pakati pezvitsaurwa uchishandisa iyo SendPort.send () kufona zvinosanganisira akasiyana marudzi emabasa, kuvharwa, uye mateki anoteedzera.

Mune zvishandiso zvekugadzira zvinongedzo kumabasa ega ega mune zvimwe zvinhu, zvirambidzo pakugadzira zvinongedzo zvakadaro zvakabviswa mune kodhi yemuvaki, iyo inogona kubatsira pakugadzira raibhurari yakavakirwa interfaces Flutter.

Raibhurari dart: musimboti wakavandudza enum rutsigiro, semuenzaniso, unokwanisa ikozvino kugadzira kukosha kwetambo kubva kune yega yega kukosha kwekuverenga uchishandisa ".name" nzira, wana values ​​nezita, kana match value pairs.

Izvo zvakare zvakasimbiswa izvo a pointer compression tekiniki yaitwaque inobvumira kushandisa yakawedzera compact inomiririra yeanongedza munzvimbo dze64-bit kana iyo 32-bit kero nzvimbo yakakwana yekutaura (hapana kupfuura 4 GB yendangariro inoshandiswa). Miedzo yakaratidza kuti optimization yakadaro inoderedza saizi yemurwi neinosvika 10%. MuFlutter SDK, iyo modhi nyowani yatove yakagoneswa kuAroid nekukasira uye yakarongwa kuigonesa iOS mukuburitswa kunotevera.

Zvakare zvinocherechedzwa kuti pub.dev repository ikozvino ine kugona kukanzura vhezheni yakatodhindwa wepasuru, semuenzaniso, kana paine njodzi tsikidzi kana kusasimba.

Of the dzimwe shanduko izvo zvinomira pachena:

  • Kuwedzera dziviriro kubva panjodzi (CVE-2021-22567) kunokonzerwa nekushandiswa kweiyo Unicode mavara anoshandura kurongeka kwekuratidzira mukodhi.
  • Yakagadzirisa kusagadzikana (CVE-2021-22568) iyo inogona kutevedzera mumwe mushandisi wepub.dev painoburitsa mapakeji kune yechitatu-bato server inogamuchira oauth2 yekuwana tokens kubva pub.dev.
  • Iyo Dart SDK inosanganisira maturusi ekugadzirisa uye ongororo yekuita (DevTools), iyo yakambounzwa mune imwe pasuru.
  • Zvishandiso zvakawedzerwa kune "dart pub" kuraira uye pub.dev package repositori yekutevera netsaona kuburitswa kweruzivo rwakadzama, semuenzaniso kusiya zvitupa zvekuenderera mberi kwekubatanidza masisitimu uye makore mukati mepakeji.
  • Kana kuvuza kwakadaro kwawanikwa, murairo we "dart pub publish" unomira nemhosho meseji. Pakaitika alarm yenhema, zvinokwanisika kusvetuka cheki kuburikidza nerunyoro ruchena.

mabviro: https://medium.com/


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

Iva wekutanga kutaura

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