IsiLuau, uhlobo lokukhangela uhlobo lolwimi lwesiLua luba ngumthombo ovulekileyo

Mva nje kukhutshwa ingxelo yokuqala ezizimeleyo kulwimi lwenkqubo luau, eqhubeka nokuphuhliswa kweLua kwaye iphinda ihambelane neenguqulelo zangaphambili zeLua 5.1.

Ulwimi lwesiLuau lu yenzelwe ikakhulu ukushumeka iinjini zokubhala kwizicelo kwaye ijolise ekufezekiseni ukusebenza okuphezulu kunye nokusetyenziswa kobutyebi obuphantsi. Ikhowudi yeprojekthi ibhalwe kwi-C ++ kwaye ivuliwe phantsi kwelayisenisi ye-MIT.

I-Luau yandisa i-Lua ngobuchule bokukhangela uhlobo kunye nolwakhiwo oluthile Ulungelelwaniso olutsha olunjengomtya woqobo. Ulwimi luyahambelana neenguqulelo zangaphambili zeLua 5.1 kwaye ngokuyinxenye neenguqulelo ezintsha. I-Lua Runtime API iyaxhaswa, ivumela uLuau ukuba asetyenziswe kunye neekhowudi esele zikhona kunye namakhonkco.

Ukusukela namhlanje, uLuau ayiseyonxalenye engenakuhlukaniswa yeqonga leRoblox; lulwimi oluzimeleyo oluvulelekileyo.

Ixesha lokusetyenziswa kolwimi lusekwe kwikhowudi yexesha lokusebenza ye-Lua 5.1 ehlaziyiweyo, kodwa itoliki ibhalwe ngokutsha ngokupheleleyo. Uphuhliso lubandakanye iindlela ezintsha zokuphucula ezenze ukuba kube lula ukuphumeza ukusebenza okuphezulu xa kuthelekiswa neLua.

Xa iRoblox yadalwa kwiminyaka eyi-15 eyadlulayo, sakhetha isiLua njengolwimi lwenkqubo. I-Lua yayincinci, ikhawuleza, kulula ukuyidibanisa nokufunda, kwaye yavula amathuba amakhulu kubaphuhlisi bethu.

Uninzi lweRoblox lwakhiwe eLua, kubandakanywa amakhulu amawaka emigca yekhowudi ephuhliswe ngaphakathi enika amandla isicelo seRoblox kunye neRoblox Studio kude kube namhlanje, kunye nezigidi zamava ezenziwe ngabaphuhlisi. Kuninzi lwabo, yayilulwimi lokuqala locwangciso abalufundayo.

Iprojekthi yaphuhliswa nguRoblox kwaye isetyenziswa kwikhowudi yeqonga lomdlalo kunye nezicelo zesiko kule nkampani, kuquka nomshicileli weRoblox Studio. Ekuqaleni, iLuau yaphuhliswa emva kweengcango ezivaliweyo, kodwa ekugqibeleni kwagqitywa ukuba idluliselwe kwicandelo leeprojekthi ezivulekileyo zophuhliso oluhlangeneyo kunye nokuthatha inxaxheba koluntu.

Iinkalo eziphambili:

  • Inkqubo yohlobo olulandelelanayo, ethatha indawo ephakathi phakathi kokubhala okuguquguqukayo kunye nokuzinzileyo. I-Luau ivumela ukubhala okumileyo njengoko kufuneka ngokucacisa ulwazi lohlobo ngokusebenzisa izichasiselo ezikhethekileyo.
  • I iintlobo eyakhelwe-ngaphakathi "Nayiphi na", "nil", "boolean", "inombolo", "umtya" kunye "nomsonto". Ngexesha elifanayo, ukukwazi ukusebenzisa ukuchwetheza okuguquguqukayo ngaphandle kokuchaza ngokucacileyo uhlobo lwezinto eziguquguqukayo kunye nemisebenzi nayo igcinwe.
  • Inkxaso yeentambo zoqobo (njengakuLua 5.3)
  • Inkxaso yentetho ethi "qhubeka", ngaphezu kwegama elingundoqo elikhoyo elithi "ikhefu", ukutsiba kwi-iteration entsha ye-loop.
  • Inkxaso yabaqhubi bezabelo ezihlanganisiweyo
  • Inkxaso yokusetyenziswa kwe iibhloko ezinemiqathango "Ukuba-ke-enye" ​​ngendlela yeentetho ezibuyisela ixabiso elibalwe ngexesha lokwenziwa kwebhloko. Ungakhankanya inani elingenasizathu leengxelo zezinyeif kwibhloko.
  • Ubukho bemowudi yebhokisi yesanti ekuvumela ukuba usebenzise ikhowudi engathenjwa. Lo msebenzi ungasetyenziselwa ukulungelelanisa ikhowudi yakho kunye nekhowudi ebhalwe ngomnye umphuhlisi, umzekelo amathala eencwadi angaphandle angenakuqinisekiswa, ukuba aqhube ecaleni.
  • Umda wethala leencwadi elisemgangathweni apho imisebenzi enokudala iingxaki zokhuseleko isusiwe. Umzekelo, amathala eencwadi "io" (ufikelelo kwiifayile kunye neenkqubo zokuqalisa), "ipackage" (ufikelelo kwiifayile kunye neemodyuli zokulayisha), "os" (imisebenzi yokufikelela kwiifayile kunye nokutshintsha okuguquguqukayo kwemekobume kususiwe), "Debug" (ukungakhuselekanga). ukuphatha imemori), "dofile" kunye ne "loadfile" (ufikelelo kwinkqubo yefayile).
  • Ukubonelela ngezixhobo zokuhlalutya ikhowudi ye-static, ukufumanisa impazamo (i-Linter) kunye nokuqinisekisa ukusetyenziswa kweentlobo.
  • Umhlaziyi, Itoliki yebytecode kunye nokusebenza okuphezulu komqokeleli wobunikazi.
  • U-Luau akaxhasi ukuhlanganiswa kwe-JIT okwangoku, kodwa kuyaphikiswana ukuba itoliki yesiLuau ithelekiseka kwintsebenzo yeLuaJIT kwezinye iimeko.

Gqibela ukuba unomdla wokwazi okungakumbi ngayo, ungajonga iinkcukacha Kule khonkco ilandelayo.


Umxholo wenqaku uyabambelela kwimigaqo yethu imigaqo yokuziphatha yokuhlela. Ukuxela impazamo cofa apha.

Yiba ngowokuqala ukuphawula

Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa.

*

*

  1. Uxanduva lwedatha: UMiguel Ángel Gatón
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.