sclass ExecFreshRealEval { S code; double timeout = 60.0; IF1 safetyCheck; IF0 enter = dm_tempEnter(); bool showStackTraces; swappable void postMessage(S output) { print(output); } run { temp callF(enter); dm_refreshTranspiler(); IF0 f = -> { temp callF(enter); try answer safetyCheck?.get(code); ret print("eval result > ", str(dm_javaEval(code)); }; S output = showStackTraces ? evalWithTimeout_text_showStackTrace(timeout, f) : evalWithTimeout_text(timeout, f); postMessage(output); } }