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

ClojureScript port? #4

Open
roman01la opened this issue Feb 6, 2017 · 1 comment
Open

ClojureScript port? #4

roman01la opened this issue Feb 6, 2017 · 1 comment

Comments

@roman01la
Copy link

Is it possible to port this to ClojureScript? I'd really love to have an alternative to DataScript in the browser.

@gixxi
Copy link
Owner

gixxi commented Feb 8, 2017

Hi there,

thanks for getting back on me. cljs does not support https://github.com/clojure/clojurescript/wiki/Differences-from-Clojure STM due to the lack for a multithreaded environment. We could port this to cljs but we need to define what A(tomic) and (I)solated means in the context of javascript since data updates need to be evicted to a server that might be used by several clients concurrently. So each transaction commit needs to be flushed to a remote machine which implies a synchron i/o that (1) might fail for functional/non-function reasons and (2) takes time. If (1) and (2) are acceptable than we can port this to cljs. The aspect of transaction composition (clj's dosync) can be mimicked in cljs. So yes this could be done. I will decide within the next two weeks, whether I will start doing the migration.

thx
Christian

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

No branches or pull requests

2 participants