Post #2553677
2025-11-11 18:15 UTC
Replies (2)
-
@esoterra@hachyderm.io 2025-11-11 18:26
@bjorn3@hachyderm.io @sunfish@hachyderm.io maybe this kind of thing should require help from the runtime though so you know your RNG sources aren't getting messed up or intercepted in basic composition scenarios.
-
@sunfish@hachyderm.io 2025-11-11 19:13
@bjorn3@hachyderm.io There's a lot here that I don't have time to fully explore; here are a few quick thoughts: Debuggers are special. Debuggers can observe things that the spec says "can't" be observed. They can mutate "immutable" things. And they can break API contracts. Debuggers will have flexibility, even if the spec doesn't explicitly say so. Regular virtualization means changing what imports/exports are linked to. But there are a number of things users want to do that can't be done through linking: you can't catch traps, you can't impose CPU/memory/etc. quotas, and so on. So maybe there will need to be some additional mechanism, and this something might also be a place a builtin random facility could be controlled.