static S smartBotEval_noTimeout(S expression) { time2 { fS main = smartBotEval_prelude() + evalJava_prep(expression, "calc", "ai_spec_init();\n"); print("--\n" + main + "\n--"); final new Var o; final new Var<Throwable> error; S printed = hijackPrint_tee(r { try { o.set(evalJava_myProgramID_main(main)); } catch print e { error.set(e); } }); smartBot_savePrintLog(expression, printed); } if (error.has()) throw rethrow(error!); S s = sfuOrText(o!); ret "[" + lastTiming() + " ms]" + (containsNewLine(trim(s)) ? "\n\n" + s : " " + s); }
Began life as a copy of #1011990
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: | #1012129 |
Snippet name: | smartBotEval_noTimeout |
Eternal ID of this version: | #1012129/7 |
Text MD5: | 9fc2248eaf17b71306883a88f41c5020 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-12 23:54:13 |
Source code size: | 626 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 486 / 532 |
Version history: | 6 change(s) |
Referenced in: | [show references] |