News for hackers. Stuff that matters.
Re:Ruby 3.2 preview 1 with support for WASM compilation by JohnBooty on Thursday April 07, 2022 @04:50PM (#30950176)
Yeah the implementation they've chosen seems totally perfect to me. Sane global default, easily overridable globally or locally.

No easy way to override it locally when using =~, but I can't imagine too many cases where you would want to use a local timeout anyway.... can just switch away from =~ syntax for those.

This is mostly a denial-of-service mitigation tool, something you'd just want to apply globally to avoid disasters spawned by malformed or malicious input. In practice, it's hard to imagine a use case where you'd really want to be twiddling the knobs on a regexp-by-regexp basis.

There are no comments on this comment yet.