Soni L.
                                            Soni L.
                                        
                                    That's fine. We'll make you use it. :)
with a compiler :p
same difference tbh. let it trap, either because of external time constraints or otherwise.
our particular use-case for this is https://github.com/MightyPirates/OpenComputers but as long as we can trap on time limits it's fine.
or just a port of hexchat inside minecraft tbh :v anyway, this is off-topic
because we're not the compiler. we're the VM. and malicious wasm is a thing.
what if it's done by using a watchdog thread, or even a hardware watchdog, and interrupting the wasm thread/CPU?
It has 4 threads (number may vary between computers) but it uses cooperative multitasking, and Lua debug hooks to stop misbehaving/uncooperating computers.
Oh also, wasmtime has call and loop hooks, for this reason.