Skip to content

Question: break out JS lib? #18

Description

@paf31

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions