Re: What concurrency models to document?

2012-08-01 Thread Christian Sperandio
Hi, I don't like the term auto-concurrency because auto-concurrency doesn't exist. The immutability make easier the concurrency programming because you don't have to manage the shared data but, you always have the synchronising management and write specific code for concurrency (using pmap, futu

Re: swap! and atom behavior

2012-08-01 Thread Meikel Brandmeyer (kotarak)
Hi, Am Mittwoch, 1. August 2012 14:21:22 UTC+2 schrieb Vinay D.E: > > Just curious, but if I chained a large number of such lazy constructs, > isn't there danger of a big unpredictable spike in CPU / Memory if > something deeply nested is accessed ? > You may run into a stackoverflow, though. T

screencast interest / topics

2012-08-01 Thread Nelson Morris
I'm planning to make some screencasts for clojure and some of its libraries. I'd like to get a general feel for the level of interest and what topics are desired. I've made a brief survey at bit.ly/N2vBKk and I appreciate any responses from people that are interested. Thanks, Nelson Morris --

What concurrency models to document?

2012-08-01 Thread Brian Marick
I'm writing a book on /Functional Programming for the Object-Oriented Programmer/. It uses Clojure as the teaching language. Since one of the things that attracts programmers to FP is the hope that ordinary mortals can write multicore programs, I want to have a chapt

Re: (let [a 0] (eval 'a)))

2012-08-01 Thread Lee Spector
Pretty weird. I can replicate your error but can't explain it. I guess there's an interaction between eval and the way that the reader knows about namespaces, with the creation of a new namespace during a call to eval not making it available later in the same call... I'm not at all clear about

Re: swap! and atom behavior

2012-08-01 Thread Sean Corfield
On Wed, Aug 1, 2012 at 5:21 AM, Vinay D.E wrote: > Just curious, but if I chained a large number of such lazy constructs, isn't > there danger of a big unpredictable spike in CPU / Memory if something > deeply nested is accessed ? Not really any more than if evaluation were eager and it was all c

Re: (let [a 0] (eval 'a)))

2012-08-01 Thread Andrew Cheng
Thanks Evan and Lee Lee's approach works in my code except for one interesting wrinkle. The item that I pass in ('a' in the example) can only really be used if a particular library is loaded. So what I'm doing now is taking the code string from the user -- user-string-- and wrapping it like t

Re: swap! and atom behavior

2012-08-01 Thread Meikel Brandmeyer (kotarak)
Hi, Am Mittwoch, 1. August 2012 14:21:22 UTC+2 schrieb Vinay D.E: > > > Just curious, but if I chained a large number of such lazy constructs, > isn't there danger of a big unpredictable spike in CPU / Memory if > something deeply nested is accessed ? > Is there someplace where this is discussed

Re: atom / swap! question

2012-08-01 Thread Vinay D.E
Thanks for your replies Marshal & Jim. I had not understood the 'laziness' concept correctly and was expecting it to behave differently. I thought that this post had somehow disappeared and I started another one on the same topic. Sorry about that. --Vinay On Tuesday, 31 July 2012 18:17:00 U

Re: swap! and atom behavior

2012-08-01 Thread Joop Kiefte
Just pay attention that when using later elements you don't need the earlier elements, and you should be fine. (IIRC) 2012/8/1 Vinay D.E : > Thanks Sean & Carlo for the detailed comments! > The gap in my understanding was exactly *how* lazy 'lazy evaluation' is, so > the evaluation of 'i' is defer

Re: swap! and atom behavior

2012-08-01 Thread Vinay D.E
Thanks Sean & Carlo for the detailed comments! The gap in my understanding was exactly *how* lazy 'lazy evaluation' is, so the evaluation of 'i' is deferred until it is totally unavoidable. Just curious, but if I chained a large number of such lazy constructs, isn't there danger of a big unpredi

Re: Experiences developing a crowdfunding site for open source projects in Clojure (from a Python background)

2012-08-01 Thread Maik Schünemann
I very recently set up emacs on windows for work with clojure. (finally using clojure at work :)) Nowadays it is not difficult to install ist just get emacs and set the home variable of your system where you want to put your .emacs and .emacs.d. then downloading clojure mode and installing slime li

Re: Experiences developing a crowdfunding site for open source projects in Clojure (from a Python background)

2012-08-01 Thread Ivan Koblik
Hi Aaron, Thank you for such an interesting post. You wrote that you could not setup Emacs on Windows. I decided to show you an easy way to do it. 1. Download vanilla Emacs from here: http://ftp.gnu.org/pub/gnu/emacs/windows/ Latest version at the moment is here: http://ftp.gnu.org/pub/gnu/emac