Re: [ANN] 1st public release of thi.ng geometry toolkit (CLJ CLJS)

2014-03-11 Thread Kuba Roth
Hey, Karsten great stuff and congrats! I haven't been following toxic closely for quite some time, sadly but does that mean it's been discontinued completely and you are working in clojure full time? :) What's your impression on working with big code base as above library in clojure vs java?

Penumbra anyone in clojure 1.5.1

2014-01-27 Thread Kuba Roth
Hi there, I'm trying to get Penumbra working with clojure 1.5.1 and was wondering if there is still anyone using that library...? Also I've just discovered a fork of penumbra in the clojars (https://clojars.org/prismofeverything/penumbra/versions/0.6.12) which claims to be compatible with

Re: Penumbra anyone in clojure 1.5.1

2014-01-27 Thread Kuba Roth
ok I think got it working at least black frame shows up. On Monday, January 27, 2014 12:51:45 PM UTC-8, Kuba Roth wrote: Hi there, I'm trying to get Penumbra working with clojure 1.5.1 and was wondering if there is still anyone using that library...? Also I've just discovered a fork

string/replace regex help

2014-01-16 Thread Kuba Roth
Hi, This is more of a regex specific question the clojure, but anyway... I have the a multiline string as follow: (def myText aSTART END ee ff ggg START ii E END ) .. and I need to replace all text between START END 'keywords' blocks.

Re: string/replace regex help

2014-01-16 Thread Kuba Roth
:02 PM, Kuba Roth kuba.r...@gmail.com wrote: Hi, This is more of a regex specific question the clojure, but anyway... I have the a multiline string as follow: (def myText aSTART END ee ff ggg START ii E END ) .. and I need

let bindings in tree-seq funciton

2013-09-05 Thread Kuba Roth
I'm currently working with tree-seq function from clojure.core and there is one thing I'm struggling to understand... Could you please explain why pretty much all of the body of the function sits within 'let binding' and not in the 'let body' where only (walk root) is placed? Has it something

Usung atom in pmap

2013-09-05 Thread Kuba Roth
I have a few doubts how to approach updating values inside pmap and a general question if map is ideal to solve the problem. I'd really appreciate to get a review of the following code. The file-seqC and file-seqB is slightly modified version of file-seq. The plan was to spawn subfolders of the

Re: let bindings in tree-seq funciton

2013-09-05 Thread Kuba Roth
Thanks, very interesting point. It's a shame this is not available in the clojure docs - very useful for newcomers as me. Is it fair to say that let bindings is good/recomended to put all the code and the main body is used primarily for returning results of the function? Cheers, Kuba -- --

Re: send agent inside doseq

2013-08-21 Thread Kuba Roth
...@gmail.comwrote: On Tue, Aug 20, 2013 at 9:31 PM, Kuba Roth kuba.r...@gmail.com wrote: The reason I looked into 'intern' can only be explained by totally lack of experience in Clojure and more general functional programming. Ah, is your background OOP? You'll find the functional world

send agent inside doseq

2013-08-20 Thread Kuba Roth
Hi there, I've got a range of values and I'd like to run agents for each value per thread. For some reason I've got only one agents being updated. Not sure what's wrong here but I suspect must be doing something terrible stupid... Thanks! (doseq [s (range 30 35)] ;(println (format

Re: send agent inside doseq

2013-08-20 Thread Kuba Roth
UTC+1, Kuba Roth wrote: Hi there, I've got a range of values and I'd like to run agents for each value per thread. For some reason I've got only one agents being updated. Not sure what's wrong here but I suspect must be doing something terrible stupid... Thanks

pmap thread oversubscription OSX

2013-05-01 Thread kuba roth
Hi there, I'm currently testing a map/pmap performance and run into weird behavior in Clojure running on a OSX (compered to Linux). Running a 'slow' (processor intensive pmap function on OSX suffers from very poor performance whereas the same function on Linux runs just fine. At the first glance

pmap oversubscription on OSX

2013-05-01 Thread kuba roth
Hi there, I'm a bit nervous, this is my first post here :) I'm currently testing a map/pmap performance and run into weird behavior in Clojure running on a OSX (compered to Linux). Running a 'slow' (processor intensive pmap function on OSX suffers from very poor performance whereas the same

Re: pmap thread oversubscription OSX

2013-05-01 Thread kuba roth
Thanks all for advise and sorry for the double post. Will check this out tonight and get back. Cheers, kuba On Wednesday, May 1, 2013 11:09:05 AM UTC-7, kuba roth wrote: Hi there, I'm currently testing a map/pmap performance and run into weird behavior in Clojure running on a OSX

Re: pmap thread oversubscription OSX

2013-05-01 Thread kuba roth
On OSX (.availableProcessors (Runtime/getRuntime)) returns 2 in my case. I've also run into the following thread: https://groups.google.com/forum/#!topic/clojure/AtA-0LKYe9A There are two other implementations of CPU bound pmap: pmapall and pmap-pool. The latter one (by j-g-faustus) actually

Re: Clojure for Beginners eBook

2013-05-01 Thread kuba roth
I would also add - setting up Eclipse with counterclockwise - native java libs setup (lwjgl) for OpenGL folks. Since I don't have java background this took me a while to figure out and Lein (which is a great tool btw) doesn't provide an intuitive support for this sort of stuff