Uses 9620K of libraries. Click here for Pure Java version (158L/2K/5K).
!752 !1003153 // magic.jar import net.luaos.tb.tb12.Sandbox; import net.luaos.tb.common.LuaTimeOutSandbox; import net.luaos.tb.remote.ServerConnection; static S luaCode = "return 5+5"; p { print("Code:\n" + indent(luaCode) + "\n"); Sandbox sandbox = new Sandbox(ServerConnection.aServerConnection()); LuaTimeOutSandbox.defaultTimeout = 10; // set to 1 to cause timeout LuaTimeOutSandbox.ResultWithStats results = sandbox.callLuaWithStats(luaCode, "test"); print("Instruction count: " + results.instructions); print("Lua result: " + results.result); }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003154 |
Snippet name: | Test Lua(J) in JavaX |
Eternal ID of this version: | #1003154/1 |
Text MD5: | 4dc62cfe12bdff8aed92c2f4cbb9625a |
Transpilation MD5: | d51f616234568c6f1ba6224464cda2ab |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-05-15 21:10:59 |
Source code size: | 581 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 599 / 698 |
Referenced in: | #1003155 - quickLua #1003157 - Test quickLua |