Fork me on GitHub
#sci
<
2022-07-22
>
souenzzo16:07:44

@borkdude i remember that was possible to control things like "max stack size", "max recur limit", "max list size" in sci. But I can't find docs about it.

borkdude16:07:49

@souenzzo There was something like this very early on but it was removed because of several reasons: performance, but also: once you want this level of control, you usually also want timeout control, etc and SCI can't offers this: the host runtime should be able to do this. I've got something like this working in the #nbb REPL: when you type (range) there it's stuck, but you can press ctrl-c to interrupt the "vm" and then it's back into the REPL. Another very simple way to prevent such a problem is to use print-length.

😕 1
👍 1
borkdude18:07:35

@souenzzo Perhaps you can explain your use case in more detail

devn02:07:37

to be fair, sci could offer this

borkdude06:07:14

Not reliable enough since you then need to patch most of the core function etc