Pyston 2 aiwatar da Python tare da mai tara JIT

Bayan shekaru uku hutu a ci gaba, an buga ƙaddamar da aikin Pyston 2, me na bunkasazuwa aiwatar da aiki mai girma na yaren Python ta amfani da ci gaban aikin LLVM.

Aiwatarwa ya fito waje don amfani da fasahar tattara kayan JIT ta zamani kuma yana da niyyar cimma babban aiki kwatankwacin yarukan tsarin gargajiya kamar C ++.

Lambar daga sigogin da suka gabata by Tsakar Gida an rarraba shi a ƙarƙashin lasisin Apache, amma lambar Pyston 2 bata riga ta samu ba kuma kawai ana shirye-shiryen amfani don Ubuntu 18.04 da 20.04 (fayil mai lambar tare da shi akwai don zazzagewa amma akwai kawai taurin tare da bayanin cewa har yanzu aikin yana rufe).

Buga lambar yana cikin tsare-tsaren masu haɓakawaamma wannan za a yi bayan an gama kirkirar tsarin kasuwanci na sabon kamfanin kuma an yanke shawarar ci gaba da haɓaka Pyston ba tare da tallafin kuɗi na Dropbox ba.

Game da Pyston 2

Ba kamar sigogin da suka gabata ba, Pyston 2 yana da alamar barga kuma ba a matsayin sigar gwaji ba. An yi aiki da yawa don inganta aikin kuma Pyston 2 ya fi sauri sauri fiye da asalin Python 3.8 da kusan 20% lokacin wucewa cikin ɗakin gwajin python-macrobenchmarks.

Ana iya ganin shahararrun ayyukan aiwatarwa a cikin ayyukan aikace-aikacen gidan yanar gizo mai mahimmanci. A cikin gwaje-gwaje daban kamar hargitsi.py da nbody.py, Pyston 2 ya fi Python 3.8 kwatankwacin kashi 2. Kudin amfani da JIT ya ɗan sami ƙaruwar amfani da ƙwaƙwalwar.

Muna matukar farin ciki da sakin Pyston v2, aiwatarwa mai saurin aiki da kuma amfani da harsunan shirye-shiryen Python. Shafin 2 yana da sauri 20% fiye da daidaitaccen Python 3.8 a cikin manyan alamunmu. Mafi mahimmanci, mai yiwuwa ya fi sauri a cikin lambarka. Pyston v2 na iya rage farashin uwar garke, rage laten masu amfani, da haɓaka haɓakar mai haɓaka.

Pyston v2 yana da sauƙin aiwatarwa, don haka idan kuna neman aikin Python mafi kyau, muna ba ku shawara ku ɗauki minti biyar ku gwada Pyston. Yin hakan yana daya daga cikin hanyoyi mafi sauki dan saurin aikin ka.

Dangane da dacewa tare da Python na asali, aikin Pyston an touted azaman mafi dacewa madadin aiwatarwa don CPython, Tunda Pyston katako ne na babban CPython codebase.

Pyston yana goyan bayan duk ayyukan CPython, ciki har da C API don haɓaka haɓakar C. Pyston asali an kirkireshi ne ta Dropbox, wanda a cikin 2017 ya yanke shawarar dakatar da ci gaban cikin gida. A farkon 2020, manyan masu haɓaka Pyston sun kafa kamfanin su, sun sake inganta aikin gaba ɗaya, kuma sun fara aiki a Pyston cikakken lokaci.

Ba a ba da cikakkun bayanai game da kwalliyar Pyston 2 ba, DynASM JIT ne kawai, keɓaɓɓun ɓoye-ɓoye, da kuma abubuwan inganta CPython gabaɗaya. Siffar da ta gabata ta Pyston tayi amfani da hanya guda JIT a lokaci guda, kwatankwacin JIT a cikin injunan JavaScript na zamani.

A cikin JIT, an fassara kalmar Python kuma an fassara ta zuwa matsakaiciyar wakilci LLVM (IR, Matsakaicin wakilci). Bugu da ƙari, an sarrafa wakilcin IR a cikin mai inganta LLVM kuma an ba shi ga injin LLVM JIT don aiwatarwa, wanda ya canza wakilcin IR zuwa lambar inji.

Don samun bayanai game da nau'ikan masu canji don shirye-shirye a cikin yaren Python mai motsi, an yi amfani da dabarun hango hasashen nau'ikan abubuwa, sannan bayani game da zaɓi na daidai lokacin aiwatarwa.

Sabili da haka, Pyston koyaushe yana banbanta aiwatarwa tsakanin rassa biyu: mai sauri, lokacin da aka tabbatar da ƙimar da aka faɗi, da mai jinkiri, wanda ake amfani dashi idan aka sami rashin daidaito.

Za'a iya yin aikin a yanayin da yawa, ba da damar aiwatar da layi iri iri a cikin yaren Python kuma ba shi da makullin mai fassarar duniya (GIL).

Finalmente idan kanaso ka kara sani game dashi, zaku iya bincika cikakkun bayanai a cikin bin hanyar haɗi.


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.