Collected sources and patterns will appear here. Add from search, explore, or the patterns library.
Tuple<VMState, FuelBudget> -> Either<Tuple<VMState, FuelBudget>, OutOfFuelTrap>
Decrement a configured execution budget based on instruction weights during virtual machine execution, triggering a trap if the budget is exhausted.
Problem it solves
Untrusted user code can execute infinite loops or run excessively long, starving host resources.
Consumes
Emits
The real projects this mechanism was found in. Attribution is the point — this is how the best teams actually do it.