Open fridis opened 10 months ago
A variant of these effects could be not the imitation of resources but tracking the amount of resources used and give a summary after execution.
In the same vein as halts
: koka has a diverge effect. Apparently code may not diverge unless it uses this effect.
https://github.com/koka-lang/koka/blob/ce2178d945338edd5a4584b7c89e320816f16a18/doc/spec/tour.kk.md?plain=1#L570
It might make sense to use effects to control resource usage of code, e.g., we could have effects like
sched_setaffinity
)