Hacker News new | ask | show | jobs
by 7373737373 4 hours ago
There exist Wasm interpreters capable of limiting the number of instructions executed.
1 comments

Many can, even if they have JITs, e.g. Wasmtime. Failing that, it's not that hard to add bytecode instrumentation that will count instructions and terminate early. Some execution platforms that utilize Wasm just inject bytecode instrumentation into guest programs before sending them to the Wasm engine. It's relatively easy to do and not that much overhead.