I wrote a macro for Javascript that expands “tasks” into async state machines that communicate using channels (i.e. CSP). I want to talk about the specific options for error management implemented in the task macro.
When I asked myself “what would I do if JS was really a scheme?”. The answer was clear - I’d just write a macro to produce a state machine given async code and get on with life.
I present to you cspjs, a compiler that transforms async “tasks” to state machines that can be run in ES5 as well - i.e. in any browser.
Your new post is loading...