CrosRoad95 Posted January 18, 2021 Share Posted January 18, 2021 Few days ago i started discussion about javascript in mta, for more details checkout https://github.com/multitheftauto/mtasa-blue/discussions/2008 I'm waiting for opinions, suggestions, and everything what can help, here, on at github I already made working "hello world" example 3 Link to comment
Simple0x47 Posted January 22, 2021 Share Posted January 22, 2021 I'd rather see Python or C# implemented, as alternative scripting, before JS. 3 Link to comment
Scripting Moderators xLive Posted February 6, 2021 Scripting Moderators Share Posted February 6, 2021 On 22/01/2021 at 05:24, Simple0x47 said: I'd rather see Python or C# implemented, as alternative scripting, before JS. Link to comment
Haxardous Posted February 11, 2021 Share Posted February 11, 2021 afaik v8 (MTA JS implementation that CrosRoad95 working on) isn't working as Slipe (NanoBob's C# "translator") - Slipe: C# (csharp.lua) > Lua > C++ - V8: JS > C++ On 06/02/2021 at 17:16, xLive said: 1 Link to comment
CrosRoad95 Posted February 12, 2021 Author Share Posted February 12, 2021 Some benchmark: Javascript ( with some debug informations ), two times slower than c++ Lua ( requires debughook to do not get terminated due infinity loop protection ) Js is faster in this case because "add" function was called simillar each time, calling same function with different arguments ( mostly different types ) may cause performance to degradate ( Jitted functions get deoptimized ) 2 Link to comment
NanoBob Posted February 19, 2021 Share Posted February 19, 2021 On 11/02/2021 at 19:30, Haxardous said: afaik v8 (MTA JS implementation that CrosRoad95 working on) isn't working as Slipe (NanoBob's C# "translator") - Slipe: C# (csharp.lua) > Lua > C++ - V8: JS > C++ That is true, the current Slipe (which we call "Slipe Lua") translates the C# code to Lua before running it. But this still gives you plenty of benefits. We are however also working on a way to run native C# code on an MTA Server, which we are doing by creating the MTA server itself from scratch. 2 Link to comment
CrosRoad95 Posted April 2, 2021 Author Share Posted April 2, 2021 https://github.com/multitheftauto/mtasa-blue/pull/2169 draft pull request created 2 Link to comment
The_GTA Posted July 22, 2021 Share Posted July 22, 2021 Language competition sounds great. Hopefully we will attract more developers that are just interested in a comfy sandbox development environment this way! JavaScript after all is very popular, and C# is powerful. In order to make integration of JavaScript and C# worth it please consider carefully suggesting our great and capable MTA client to game enthusiasts across game dev forums. Link to comment
CrosRoad95 Posted October 21, 2021 Author Share Posted October 21, 2021 i found github action for v8 compilation, so one problem solved https://github.com/CrosRoad95/v8-builder/runs/3966953233?check_suite_focus=true now i copy artifacts to mta, and we are in home Link to comment
ERAGON007 Posted October 29, 2021 Share Posted October 29, 2021 I'm waiting this feature soon too :), i hope mta team accept your PR Link to comment
Recommended Posts