Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next version #23

Open
jimsparkman opened this issue Sep 24, 2015 · 8 comments
Open

Next version #23

jimsparkman opened this issue Sep 24, 2015 · 8 comments
Labels

Comments

@jimsparkman
Copy link
Owner

I've rewritten the underlying foundation to remove the dependency on riotjs observable, and it's honestly more generic pub/sub and hopefully a bit easier to understand. I'm hesitant to push this out because people may be relying on the existing API. Anyone with strong opinions?

@a-moses
Copy link

a-moses commented Oct 4, 2015

Hello @jimsparkman
First of all it is sound very good ! be optimist :)

I'm suggest you just publish the "Next version" on different branch (like your maser and gh-pages) with Alfa or Beta version label.

very important to add a good documentation and example .

after plays with the next version more users could tell what they thinking about more recently

Thank You !

@avanslaars
Copy link

I think tagging it and being sure to call out the differences between versions with a strong warning would be safe. That being said, with the more generic application that comes without the Riot dependency, have you considered that maybe this could be seen as a new library with a forked repo, new name, etc. whatever you decide, I'm looking forward to seeing the new version.

@duongphuhiep
Copy link

so you will make this pub/sub generic? please show some codes as @a-moses suggestion

@jimsparkman
Copy link
Owner Author

I'll intro this in a new branch and post back here when I've got some samples together. Thanks much.

@a-moses
Copy link

a-moses commented Oct 9, 2015

👍

@jimsparkman

@r4j4h
Copy link
Contributor

r4j4h commented Oct 14, 2015

All that said, I am excited to see it when finished! :) 👍

@jimsparkman
Copy link
Owner Author

I pushed a WIP to a dev branch.

I backpedalled from an initial approach, and turned towards an alternative multi-threaded solution. The API won't be that different in the end, the only difference in the demo was how the store is written. I didn't touch the riot.js view logic.

Stores are automatically launched in separate threads, which encapsulates them from direct access. Also allows for computation off the main UI thread.

This forces a flux-like pattern: user input -> view triggers event -> store(s) do work -> store(s) trigger event -> view updates

@sandrokeil
Copy link

This forces a flux-like pattern: user input -> view triggers event -> store(s) do work -> store(s) trigger event -> view updates

@jimsparkman I like this approach. Any news on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants