Isaac Sukin

Results 38 comments of Isaac Sukin

Yeah... the pretty printing could definitely be better. Part of the problem is that the hoops BigConsole has to jump through to be functional make it kind of awkward to...

Reasonable request I suppose. If I was going to do this I'd want to have the compile step output in both UMD and ES6 Module format.

> Hello, the documentation says that it can be used in Node.js with require('mainloop') > But when I tested, it simply isn't possible because of the use of "window', which...

> In terms of the one the library provides, would there be any advantage to scheduling the timeout to use `performance`? if that is available? I don't understand the question....

The short answer is no, there wouldn't be a meaningful difference. The long answer is that the differences are: - `performance.now()` is slower in microbenchmarks in some browsers but it...

Yeah, I did that intentionally because having more than one main loop running per thread makes it easy to make mistakes when multiple loops touch shared state. It's called a...

> I would be interested in hearing more about any use cases where making MainLoop instantiable would make the library more convenient to use. In the absence of feedback on...

@bigsweater Thanks for the detail. This is the kind of thing I was looking for. I think animating two separate canvases independently is potentially a good use case for having...

I also thought of another use case: libraries that want to use MainLoop whose users might also use MainLoop. Users would be likely to overwrite the handlers that the library...

Thanks for the feedback. I agree it's important that this library remain slim. Maybe it makes sense to add an optional "callback manager" to the repo that can manage multiple...