I have a proposal for this library.
I've been working on https://github.com/paf31/purescript-behaviors, mostly to learn FRP concepts, and I think it fits a different niche to this library - signals seems better suited to things like reactive UIs and games, and behaviors seems better for things like modeling continuous functions and simulations. The key difference seems to be whether signals have to be defined at time zero or not.
Anyway, my main lesson from working on behaviors was that it was a good thing to break out the JavaScript from the FFI imports into an actual library. I think it would be good to see more libraries developed in this way - a JS library inspired by functional concepts, with a thin PureScript wrapper to provide types and standard type class instances.
I also think this would be a great way to get more JS developers on board.
What do you think? Would you accept a PR along these lines?
I also think this would be good in the sense that it would force us to think about the denotation of Signal. Right now, there is quite a lot of usage of the constant function to create signals, and I find it difficult to understand the interface.
I have a proposal for this library.
I've been working on https://github.com/paf31/purescript-behaviors, mostly to learn FRP concepts, and I think it fits a different niche to this library -
signalsseems better suited to things like reactive UIs and games, andbehaviorsseems better for things like modeling continuous functions and simulations. The key difference seems to be whether signals have to be defined at time zero or not.Anyway, my main lesson from working on
behaviorswas that it was a good thing to break out the JavaScript from the FFI imports into an actual library. I think it would be good to see more libraries developed in this way - a JS library inspired by functional concepts, with a thin PureScript wrapper to provide types and standard type class instances.I also think this would be a great way to get more JS developers on board.
What do you think? Would you accept a PR along these lines?
I also think this would be good in the sense that it would force us to think about the denotation of
Signal. Right now, there is quite a lot of usage of theconstantfunction to create signals, and I find it difficult to understand the interface.