Re: PersistentHashMaps coming to ClojureScript

2012-04-21 Thread David Nolen
With some minor alterations it should be just as fast as the Java implementation. David On Fri, Apr 20, 2012 at 7:35 PM, Casper Clausen wrote: > Excellent! Any idea how this implementation would compare performance > wise to the java implementation if imported to Clojure? > > On Apr 20, 8:36 pm

Re: PersistentHashMaps coming to ClojureScript

2012-04-21 Thread Casper Clausen
Excellent! Any idea how this implementation would compare performance wise to the java implementation if imported to Clojure? On Apr 20, 8:36 pm, Michał Marczyk wrote: > It's pure ClojureScript. Hopefully a step towards CinC, yes. :-) > > Sincerely, > Michał > > On 20 April 2012 20:32, Brent Mill

Re: PersistentHashMaps coming to ClojureScript

2012-04-20 Thread Baishampayan Ghose
The data-structures are written in ClojureScript. Check the source and witness the beauty :-) Sent from phone, please excuse brevity. On Apr 21, 2012 12:02 AM, "Brent Millare" wrote: > Quick question, so does this mean we have clojure's persistent data > structures implemented in clojurescript

Re: PersistentHashMaps coming to ClojureScript

2012-04-20 Thread Michał Marczyk
It's pure ClojureScript. Hopefully a step towards CinC, yes. :-) Sincerely, Michał On 20 April 2012 20:32, Brent Millare wrote: > Quick question, so does this mean we have clojure's persistent data > structures implemented in clojurescript or js? This would mean we are one > more step closer to

Re: PersistentHashMaps coming to ClojureScript

2012-04-20 Thread David Nolen
On Fri, Apr 20, 2012 at 2:32 PM, Brent Millare wrote: > Quick question, so does this mean we have clojure's persistent data > structures implemented in clojurescript or js? This would mean we are one > more step closer to C-in-C right? The persistent data structures are implemented in ClojureScr

Re: PersistentHashMaps coming to ClojureScript

2012-04-20 Thread Brent Millare
Quick question, so does this mean we have clojure's persistent data structures implemented in clojurescript or js? This would mean we are one more step closer to C-in-C right? On Friday, April 20, 2012 1:38:17 PM UTC-4, Michał Marczyk wrote: > > Since the latest PHM patch has now been merged to

Re: PersistentHashMaps coming to ClojureScript

2012-04-20 Thread David Nolen
Excellent work! On Fri, Apr 20, 2012 at 1:38 PM, Michał Marczyk wrote: > Since the latest PHM patch has now been merged to master (thanks, > David!), I wanted to take this opportunity to note that porting all > that Java code (including the transient support for PHM -- a working > version of whic

Re: PersistentHashMaps coming to ClojureScript

2012-04-20 Thread Michał Marczyk
Since the latest PHM patch has now been merged to master (thanks, David!), I wanted to take this opportunity to note that porting all that Java code (including the transient support for PHM -- a working version of which is available for testing in its own ticket [1] -- and now the PersistentTreeMap

Re: PersistentHashMaps coming to ClojureScript

2012-04-16 Thread kovas boguta
Thanks Michal Marczyk! This is a really important addition. On Mon, Apr 16, 2012 at 2:15 PM, David Nolen wrote: > Thanks to Michal Marczyk we're closing in on PersistentHashMaps: > > http://jsperf.com/cljs-persistent-hash-map-tiny-assoc > http://jsperf.com/cljs-persistent-hash-map-large-assoc >

PersistentHashMaps coming to ClojureScript

2012-04-16 Thread David Nolen
Thanks to Michal Marczyk we're closing in on PersistentHashMaps: http://jsperf.com/cljs-persistent-hash-map-tiny-assoc http://jsperf.com/cljs-persistent-hash-map-large-assoc http://jsperf.com/cljs-persistent-hash-map-access Performance is looking pretty good and, as usual, very stellar on V8. Da