Git Product home page Git Product logo

Comments (5)

samaaron avatar samaaron commented on July 24, 2024

Hi Joel,

overtone/at-at is the Clojars (maven) name for the project jar. When you're using the project within your Clojure project, you need to refer to the namepace which is: overtone.at-at. You should find this documented under "Basic Usage" in the Readme: https://github.com/overtone/at-at/blob/master/README.md

Please let me know if I can help any further.

from at-at.

joelkuiper avatar joelkuiper commented on July 24, 2024

You have no idea how stupid I feel now. Thanks! Been at it for too long ;-)

On Thu, Jan 31, 2013 at 11:00 PM, Sam Aaron [email protected]:

Hi Joel,

overtone/at-at is the Clojars (maven) name for the project jar. When
you're using the project within your Clojure project, you need to refer to
the namepace which is: overtone.at-at. You should find this documented
under "Basic Usage" in the Readme:
https://github.com/overtone/at-at/blob/master/README.md

Please let me know if I can help any further.


Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-12968340.

from at-at.

samaaron avatar samaaron commented on July 24, 2024

There's no need to feel stupid - this stuff is hard when you're just getting started. Thanks for playing with at-at!

from at-at.

joelkuiper avatar joelkuiper commented on July 24, 2024

Cool!

Quick question, say I want to deref an atom inside a (every) and do
some manipulations on it (swap out some values for example), that
should still be thread-safe right?

Something like

(def at-pool (mk-pool))
(def sessions (atom {}))
(defn purge-expired [sessions](doall %28map #%28%28log/debug %28val %%29%29%29 sessions%29))

(every 1000 #(purge-expired @sessions) at-pool)

On Thu, Jan 31, 2013 at 11:04 PM, Sam Aaron [email protected] wrote:

There's no need to feel stupid - this stuff is hard when you're just getting started. Thanks for playing with at-at!


Reply to this email directly or view it on GitHub.

from at-at.

samaaron avatar samaaron commented on July 24, 2024

If you deref an atom and then swap! it with a fn that uses the dereffed value, then that is never threadsafe. However, simply swap!ing atoms is always threadsafe.

from at-at.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.