-
Notifications
You must be signed in to change notification settings - Fork 147
Context-awareness #62
Comments
Great idea ! Was wondering about how to solve that corner case too
…On Fri, 22 Jun 2018, 02:45 Christine Dodrill, ***@***.***> wrote:
It would be interesting to provide context <https://godoc.org/context>-awareness
to the exec.VM type. This would check the context Done every so often
during execution, and if it is done then a new "took too long" error would
be returned to the callee. This would make it possible for users to submit
arbitrary untrusted webassembly code for a backend server to run and return
the results without as much fear of users submitting code that blocks
infinitely.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#62>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATuCwqZsL6YWjlbZHjV5Q8M24PGZkSKxks5t_D4OgaJpZM4Uy-j9>
.
|
apologies for the belated answer. yes, having a now, the also interesting thing would be to decide until what "depth" we want to weave it through:
|
This would be beyond overkill and would be super performance impactful.
Probably check here too.
I was thinking every |
I agree, I was just being facetious :)
every |
How about every 65536 instructions? That constant is already used as the size of a memory page and it's a very nice, even number. |
SGTM |
It would be interesting to provide context-awareness to the
exec.VM
type. This would check the context Done every so often during execution, and if it is done then a new "took too long" error would be returned to the callee. This would make it possible for users to submit arbitrary untrusted webassembly code for a backend server to run and return the results without as much fear of users submitting code that blocks infinitely.The text was updated successfully, but these errors were encountered: