It's also possible to implement a functional effect system in under 30 lines of JavaScript: https://lackofimagination.org/2025/11/managing-side-effects-...