QuickJS - isingaremerike injini yeJavaScript yakagadzirwa neiye muvambi weQEMU neFFmpeg

JavaScript

French masvomhu nyanzvi Fabrice Bellard, uyo akatanga iyo QEMU uye FFmpeg mapurojekiti uye zvakare akagadzira yakakurumidza fomula yekuverenga iyo Pi nhamba uye akagadzira iyo BPG mufananidzo fomati.

Fabrice Bellard ndiye inonyanya kuzivikanwa semutungamiriri anovandudza weQEMU (emulator inoteedzera akasiyana maumbirwo ehurdware) uye Tiny C Compiler (tcc), diki kwazvo asi yakazara C compiler, yakatanga kunyorwa kuhwina "International Obfuscated C Code Contest".

Zvino munguva pfupi yapfuura akagovana kuruzhinji vhezheni yekutanga yebasa rake idzva iri muJavaScript uye iri injini nyowani inonzi JavaScript QuickJS.

Nezve JavaScript QuickJS

Iyo QuickJS JavaScript injini iri compact uye yakagadzirirwa kuiswa mune mamwe masisitimu. Iyo kodhi yeprojekiti Izvo zvakanyorwa muC uye zvakagoverwa pasi peMIT rezinesi. Zvakare inowanika injini yekuvaka yakarongedzwa muWebAssembly uchishandisa Emscripten uye yakakodzera kumhanya mumabhurawuza.

Iyo JavaScript yekumisikidza Iyo inotsigira iyo ES2019 kududzirwa, kusanganisira ma module, asynchronous jenareta, uye proxies.

Mune iyo QuickJS JavaScript injini sarudzo isiri-yakajairwa masvomhu ekuwedzera eJavaScript anotsigirwa, senge BigInt neBigFloat mhando, pamwe nekuwandisa kweanoshanda.

Nekuita, QuickJS inonyanya kukunda anowanikwa akafananaSemuenzaniso, pabhenji-v8 bvunzo, injini yeXS iri 35% kumberi, DukTape yakapetwa zvakapetwa kaviri, JerryScript katatu uye MuJS kanomwe.

Kuwedzera kuraibhurari yekumisikidza injini mukushandisa, chirongwa ichi chinopawo muturikiri we qjs, iyo inogona kushandiswa kumhanyisa JavaScript kodhi kubva kumutsara wekuraira.

Uyewo, iyo qjsc compiler inowanikwa uye inokwanisa kuburitsa inogoneka mafaera ayo anogona kumhanya zvakasiyana uye kuti izvi hazvidi kutsamira kwekunze.

Yeakanyanya maficha eiyo QuickJS JavaScript injini pfungwa dzinotevera dzinobuda pachena:

  • Yakakwana uye yakapusa kubatanidzwa mune mamwe mapurojekiti. Iyo kodhi inosanganisira chete maC mafaera asingade ekunze kutsamira pakuvaka. Chikumbiro chakareruka chakatorwa chinotora anenge 190 Kb
  • Kukwirira kwepamusoro uye kukurumidza kutanga nguva. Kupfuura makumi mashanu makumi mashanu ezviuru ECMAScript bvunzo yekuenderana inotora anosvika zana masekondi kana uchimhanyisa yakajairika desktop pane kernel. Runtime yekutanga inotora isingasvike mazana matatu emamayikosi
  • Inenge izere rutsigiro rweiyo ES2019 kududzirwa uye kutsigirwa kuzere kwe "B" kunyorera, iyo inotsanangura izvo zvikamu zvekuenderana neyekare webhu kunyorera
  • Pedzisa ndima yemiedzo yese yeECMAScript Test Suite
  • Tsigiro yekunyora kodhi yeJavascript mumafaira anogona kuitwa pasina kutsamira kwekunze
  • Iyo inounganidza marara inovimba nereferensi kuverenga pasina cyclical kuchenesa, ichibvumidza inofungidzirwa maitiro uye kudzikisira ndangariro kushandiswa
  • Seti yekuwedzeredzwa kwemasvomhu kuverenga mune mutauro weJavaScript
  • Shell yekushandisa kodhi mumirairo yemutsetse modhi, iyo inotsigira mamiriro ekodhi kuratidza
  • Compact yakajairwa raibhurari pamusoro peC raibhurari

Kuwedzera kune izvi, Kune rimwe divi, chirongwa ichi chiri kuvandudzawo matatu maC maraibhurari mapato ane hukama anobatanidzwa mu QuickJS uye anokodzera kushandiswa kwemunhu oga:

  1. freegexp: raibhurari diki uye inokurumidza regex inoenderana neyakajairwa JavaScript JavaScript
  2. libunicode: diki diki Unicode raibhurari inotsigira kesi kutendeuka, Unicode yakajairwa, Unicode script zvikumbiro, Unicode general chikamu mibvunzo, uye ese Unicode binary zvivakwa
  3. libbf: Iri zvakare raibhurari diki iyo inoshandisa IEEE 754 inoyerera poindi mashandiro uye transcendental mabasa ane chaiyo kutenderera. Iyo inochengetwa seyakasiyana chirongwa.

Ungawana sei SavaScript QuickJS?

Kudhanilodha kodhi yekodhi yekubatanidza kunogona kuitwa kubva chinotevera chinongedzo. Mushure mekumisikidzwa, Makefile inopihwa kuumbiridza injini paLinux kana Mac OS / X.

Mune imwechete yekubatanidza iwe unogona kubvunza iyo QuickJS zvinyorwa kuti uwane rumwe ruzivo. Inopawo ruzivo rwechiratidzo chinoratidza mashandiro eWatchJS neGoogle's V8 injini uye fananidzo pakati payo nezvimwe zvishandiso muchikamu chimwe chete.


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. Raida minda anozivikanwa ne *

*

*

  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