Clojurescript: persistent data structures?

2012-03-05 Thread László Török
Hi, I may not be fully up to speed with the latest developments re. Clojurescript, so please bear with me. I was wondering, what are the impediments of implementing persistent data structures in Clojurescript similar to those Clojure already has? (and getting rid of the current copy-on-write

Re: Clojurescript: persistent data structures?

2012-03-05 Thread David Nolen
On Mon, Mar 5, 2012 at 10:55 AM, László Török ltoro...@gmail.com wrote: Hi, I may not be fully up to speed with the latest developments re. Clojurescript, so please bear with me. I was wondering, what are the impediments of implementing persistent data structures in Clojurescript similar

Re: Clojurescript: persistent data structures?

2012-03-05 Thread László Török
David, Was it a straight port of the jvm implementation? Is there any gist, blog post of your findings? Thx L sent from my mobile device On Mar 5, 2012 5:05 PM, David Nolen dnolen.li...@gmail.com wrote: On Mon, Mar 5, 2012 at 10:55 AM, László Török ltoro...@gmail.com wrote: Hi, I may not

Re: Clojurescript: persistent data structures?

2012-03-05 Thread David Nolen
Straight port of the Java code: https://github.com/swannodette/persistent-vector/blob/master/persistent-vector.js Some quick performance notes: 10-25X longer to build than JS Array (could be improved w/ transients) 5-6X slower to access than JS Array But of course versus copy-on-write there's