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

Add support for atoms #45

Open
austinzheng opened this issue Mar 27, 2015 · 3 comments
Open

Add support for atoms #45

austinzheng opened this issue Mar 27, 2015 · 3 comments
Assignees

Comments

@austinzheng
Copy link
Owner

Add support for atoms. To quote the ClojureScript documentation: "Clojure's model of values, state, identity, and time is valuable even in single-threaded environments." However, atoms should be built in a way that proper concurrency support can easily be added if it ever comes to this project.

@terhechte
Copy link

I've experimented with implementing Clojure's Agents in pure Swift. It sorta works, but due to the differences between Value Types and Reference Types, using them is not as smooth as using them in Clojure. However, the gist of my work might be useful within Lambatron to implement Atoms and Agents (i.e. the GCD stuff). I thought I'd share this here.
https://github.com/terhechte/Cederic

Btw. awesome project.

@austinzheng
Copy link
Owner Author

Nice! I'll check it out. Thanks.

Unfortunately the project is broken with Swift 1.2, and my computer is in the shop so I haven't been able to debug it. The project hasn't died; I'll be porting it to Swift 2 as soon as my machine returns.

@terhechte
Copy link

I'm not even sure how well the cederic code fits, I just thought I'd share it. I've also seen implementations of Clojure's Persistent Data Structures in Swift somewhere, which would probably help, too. Cheers!

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

No branches or pull requests

2 participants