Re:Ruby 3.2 preview 1 with support for WASM compilation
by MaxLeiter on Thursday April 07, 2022 @04:40PM
(#30950068)
is this not the halting problem? You can guarantee a certain depth isnt reached but you cant guarantee a recursion will unwind or anything like that
[ Parent
| on HN ]
Re:Ruby 3.2 preview 1 with support for WASM compilation
by johncolanduoni on Friday April 08, 2022 @12:31AM
(#30953342)
No, because we’re not trying to find out if the computation will ever halt with unbounded time. It just determines if it will halt after a certain number of steps, which you can always determine by executing that number of steps and bailing out.