Re: which are the pros and cons between stuartsierra/component and prismatic/graph?

2015-02-06 Thread Eldar Gabdullin
You can have a look at https://github.com/dar-clojure/container and a bit far-fetched example . четверг, 5 февраля 2015 г., 21:52:53 UTC+3 пользователь Juan A. Ruz @tangrammer написал: > > Thanks to all for your good points! > > Sorry for t

Multi-project Set-up

2015-02-26 Thread Eldar Gabdullin
Go to your checked out project and run "lein install" there. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your fi

Re: Opinion on core.async vs callbacks in abstract APIs?

2015-06-01 Thread Eldar Gabdullin
I would implement everything sticking to just callbacks, then create separately requirable core.async version of API if that matters. Ideally this should be a separate lib, but practically, it seems better to just have a separate file. понедельник, 1 июня 2015 г., 22:18:19 UTC+3 пользователь Ch

Re: Opinion on core.async vs callbacks in abstract APIs?

2015-06-01 Thread Eldar Gabdullin
I'd like to add that core.async is quite a big thing, it has lots of parts that could be implemented differently. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new m

Re: Using an atom for a caching map

2014-08-29 Thread Eldar Gabdullin
Something like the following would be fine for me (def cache (atom {})) (defn lookup [cache k] (let [v (get @cache k ::nil)] (if (= v ::nil) (let [v (calc-value k)] (swap! cache assoc k v) v) v))) (let [value (lookup cache k)] ; use value and @cache here )

Re: Using an atom for a caching map

2014-08-30 Thread Eldar Gabdullin
суббота, 30 августа 2014 г., 11:18:51 UTC+4 пользователь Colin Fleming написал: > > True, but only if you don't mind possibly calculating the value more than > once since the update is not atomic. > > > On 30 August 2014 18:31, Eldar Gabdullin > > wrote: >

Re: Using an atom for a caching map

2014-08-30 Thread Eldar Gabdullin
n't mind possibly calculating the value more than >> once since the update is not atomic. >> >> >> On 30 August 2014 18:31, Eldar Gabdullin wrote: >> >>> Something like the following would be fine for me >>> >>> (def cache (atom {}))

Re: Using an atom for a caching map

2014-08-30 Thread Eldar Gabdullin
7;s very interesting to see your solution. > > > On 30 August 2014 19:54, Eldar Gabdullin > > wrote: > >> Snippet you showed before is also not an atomic. If you want strictly to >> avoid recomputations you need something more elaborate. >> May be this >> &

Re: Using an atom for a caching map

2014-08-30 Thread Eldar Gabdullin
be the same whether or not > the value is calculated in the swap! call, right? And if I calculate the > value and then pass the calculated value to swap!, that value will be > thrown away every time the cache contains an existing value for my key. > > > > On 30 August 2014 2

Almost purely functional sortable (demo)

2014-09-03 Thread Eldar Gabdullin
Code - https://github.com/dar-clojure/ui/blob/master/examples/sortable/main.cljs Demo - https://dar-clojure.github.io/ui/files/sortable.html You can feed it 1000 items and it's still alive . What do you think? :) -- You received this m

Re: Almost purely functional sortable (demo)

2014-09-03 Thread Eldar Gabdullin
#x27;t work like > it does on Safari at all. > > Not sure if that is a known issue or not. > > Andy > > > On Wed, Sep 3, 2014 at 11:06 AM, Eldar Gabdullin > wrote: > >> Code - >> https://github.com/dar-clojure/ui/blob/master/examples/sortable/main.clj

Re: Almost purely functional sortable (demo)

2014-09-03 Thread Eldar Gabdullin
state. That's enough to detach all global listeners and do all cleanup... среда, 3 сентября 2014 г., 22:06:56 UTC+4 пользователь Eldar Gabdullin написал: > > Code - > https://github.com/dar-clojure/ui/blob/master/examples/sortable/main.cljs > Demo - https://dar-clojure.github.io/

Re: Almost purely functional sortable (demo)

2014-09-03 Thread Eldar Gabdullin
It turns out lags in FF were due to phantom position animation, turning that off makes it working in FF like in Safary and Chrome. среда, 3 сентября 2014 г., 22:48:43 UTC+4 пользователь Eldar Gabdullin написал: > > Thanks, for reporting. Fixed FF issues, now it's at least useable. &

[ANN] assets - easy and sane way to get ClojureScript app running

2014-09-16 Thread Eldar Gabdullin
Hi, I recently finished hacking on a small project, that helps to build entire web application (with css, images, etc, not just .cljs files), and think it might be useful for others. The suggested workflow is following: 1) Define assets component(s) com/example/app/assets.edn {:dependencies [

Clojurians in Mekkah

2014-09-27 Thread Eldar Gabdullin
Are there clojurians in Mekkah these days? We could meet. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first

I am looking for Clojure job

2014-10-16 Thread Eldar Gabdullin
Hi, I am looking for job. Detailed resume is here . My github username is eldargab (Clojure work is mostly under dar-clojure organization