Re: Iterate and stack overflow

2012-06-14 Thread vmargioulas
June 2012 23:00:15 UTC+10, Dave Sann wrote: >>> >>> ah...but does for 1 >>> >>> >>> On Thursday, 14 June 2012 22:58:58 UTC+10, Dave Sann wrote: >>>> >>>> It doesn't overflow for me. >>>> >>>> &

Iterate and stack overflow

2012-06-14 Thread vmargioulas
Can someone explain why ... iterating over a sequence cause a stack overflow (first (drop 1000 (iterate (partial map inc) (range 10 -> java.lang.StackOverflowError ...but iterating over a vector works ok? (first (drop 1000 (iterate (comp vec (partial map inc)) (range 10 - > [1000 1001 1002

Re: dosync ref-set and threads coordination problem

2009-06-15 Thread vmargioulas
ds on server load. PS: the flow of information can't be changed because of the fixed communication protocol. On Jun 15, 4:13 pm, sross wrote: > On Jun 14, 12:20 am, vmargioulas wrote: > > > > > In the example below 256 clients threads put a byte (0-255) to server- > > socket

dosync ref-set and threads coordination problem

2009-06-14 Thread vmargioulas
In the example below 256 clients threads put a byte (0-255) to server- socket reference var "items", then connect to server-socket, write the same byte to socket stream and close the connection. The server connections threads reads a byte from the socket stream and remove it from the var "items".