WebAssembly 2.0 yakajairika dhizaini yakaburitswa 

Iyo W3C yakafumurwa Munguva pfupi yapfuura kuburikidza nechinyorwa chinyorwa chechirevo chitsva iyo inomisa kodhi yekugadzirira ye WebAssembly 2.0 uye yakabatana API kugonesa kugadzirwa kwepamusoro-kuita maapplication anotakurika pabrowser nemapuratifomu ehardware.

Kune avo vatsva kuWebAssembly, iwe unofanirwa kuziva izvozvo izvi zvinopa generic middleware, low level uye browser-yakazvimirira, kumhanyisa maapuro akaunganidzwa kubva kumitauro yakasiyana-siyana yekuronga. Nekushandisa JIT yeWebAssembly, unogona kuwana mwero wekuita padhuze nekodhi kodhi.

Pamusoro peWebAssembly

web assembly inogona kushandiswa kuita mabasa epamusoro-soro mubrowser, senge vhidhiyo encoding, odhiyo kugadzirisa, 3D uye magirafu manipulation, kuvandudza kwemutambo, cryptographic mashandiro, uye kuverenga kwemasvomhu, nekuita kodhi yakanyorwa mumitauro yakaunganidzwa seC / C ++.

Pakati pemabasa makuru eWebAssembly ndeyekupihwa kwekutakurika, kufanotaura kwemaitiro uye kuzivikanwa kwekodhi kuuraya pamapuratifomu akasiyana. Munguva pfupi yapfuura, WebAssembly yakakwidziridzwawo sepuratifomu yepasirese yekushandisa yakachengeteka kodhi pane chero zvivakwa, inoshanda sisitimu, uye mudziyo, isina kuganhurirwa kumabhurawuza.

Nezve WebAssembly 2.0 dhizaini

Pachikamu cheshanduko dzakaitwa kubvira WebAssembly ndiyo yakapedzwa zvikumbiro zveWebAssembly 2.0 yakagadziriswa-yakafara SIMD, hukuru hwekurangarira mabasa, mhando dzereferensi, JavaScript BigInt rutsigiro rweWebAssembly i64, rutsigiro rwezvakawanda kudzoka kukosha uye kupinza / kunze kwenyika zvinochinjika. global variables.

Iyo W3C yakaburitsa matatu dhizaini WebAssembly 2.0 zvirevo:

  1. Webhu Assembly Core: inotsanangura yakaderera-level virtual muchina wekumhanyisa yepakati WebAssembly kodhi. Zvishandiso zvine chekuita neWebAssembly zvinouya mu ".wasm" fomati, yakafanana neJava ".class" mafaera, ane static data uye zvikamu zvekodhi kushanda neiyo data.
  2. WebAssembly JavaScript interface: inopa API yekubatanidza neJavaScript. Inokutendera iwe kuti uwane kukosha uye kupfuudza paramita kune WebAssembly mabasa. WebAssembly execution inotevedzera JavaScript yekuchengetedza modhi, uye kudyidzana kwese nemugamuchiri kunoitwa nenzira yakafanana nekushandisa JavaScript kodhi.
  3. Purogiramu inonzi WebAssembly Web: inotsanangura API zvichienderana nePromise mechanism yekukumbira nekuita ".wasm" zviwanikwa. Iyo WebAssembly resource fomati yakagadziridzwa kuti itange kuuraya pasina kumirira kuti faira rinyatso dhawunirodha, izvo zvinovandudza kuterera kwewebhu maapplication.

Misiyano pakati peWebAssembly uye WebAssembly 2.0

Zvakare, zvinofanirwa kucherechedzwa kuti pane zvimwe zvakakosha shanduko muWebAssembly 2.0 zvichienzaniswa neyekutanga vhezheni yechiyero:

  • v128 vector mhando rutsigiro uye ine hukama mirairo yevector iyo inokutendera iwe kuti uite mashandiro pane akawanda manhamba kukosha mune yakafanana (SIMD, imwechete rairo, yakawanda data).
  • Kugona kuunza uye kutumira kunze kwenyika zvinoshanduka zvinoshanduka, iyo inobvumira kusungirirwa kwepasirese kwehunhu senge stack anonongedzera muC++.
  • Mirayiridzo mitsva yekushandura float kuita int, iyo pachinzvimbo chekukanda zvakasarudzika pane zvabuda mafashama, inodzosera iyo shoma kana yepamusoro inogoneka kukosha (inodiwa kuSIMD).
  • Mirayiridzo yekuwedzera chiratidzo chemanhamba (wedzera kudzika kwenhamba uchichengeta chiratidzo uye kukosha).
  • Tsigiro yekudzosa akawanda kukosha nemabhuraki uye mabasa (pamwe nekupfuudza akawanda paramita kumabasa).
  • Ita mabasa eJavaScript BigInt64Array uye BigUint64Array kushandura pakati pemhando yeJavascript BigInt uye WebAssembly inomiririra ye64-bit integers.
  • Tsigiro yemhando dzereferenzi (funcref uye externref) uye zvirevo zvakabatana (sarudza, ref.null, ref.func, uye ref.is_null).
  • memory.copy, memory.fill, memory.init, uye data.drop instructions kukopa data pakati penzvimbo dzendangariro uye kudzima nzvimbo dzekurangarira.
  • Mirayiridzo yekuwana zvakananga uye kugadziriswa kwematafura (tafura.set, table.get, table.size, table.kukura).
  • Kugona kugadzira, kupinza uye kutumira kunze akawanda matafura mune imwe module. Mabasa ekukopa/kuzadza matafura mubatch mode (table.copy, table.init uye elem.drop).

Chekupedzisira, kana iwe uchifarira kuziva zvakawanda nezvazvo, unogona kutarisa ruzivo Mune inotevera chinongedzo.


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