“…The work presented in this paper is mainly inspired by recent research on effect inference [6,10,11,23,24], efficient implementation of first-class continuations [2,8,22,1], monads and modular interpreters [30,12,29,13], typed intermediate languages [7,26,20,17,16,3], and foreign function call interface [9,18]. In the following, we briefly explain the relationship of these work with our resource-based approach.…”