--
You received this message because you are subscribed to the Google Groups "Jsonnet" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jsonnet+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jsonnet/ac84f86f-3691-af88-e3ad-2cad7ae5135f%40firma.seznam.cz.
Thanks for the feedback.
You are right that time is not the only resource one might want to limit. In our specific case, we ourselves are the "user" who supplies the code to evaluate, so tracking just the wall time seemed enough of a sandbox.
There is no problem as such with a subprocess, the main reason to
use the in-process interpreter is the convenience of the
implementation in Go. We don't use imports in this case, so I
can't even claim that we could benefit from caching between
runs... :)
I guess the risk of introducing the subtle bugs plus the
limitation of only tracking time is not worth trying to get the PR
merged (possibly with more work and/or documenting the caveats).
What do you think?
Cheers.
Rudo.