ClojureScript gets PersistentVectors

2012-03-29 Thread David Nolen
Thanks to Laszlo Török, ClojureScript now has PersistentVectors, https://github.com/clojure/clojurescript/commit/e615f4cd326e7c608050272c64c4dfaff9a34689 . They are based on the Java implementations found in Clojure. I'm happy to say they thoroughly trounce the old copy-on-write Vectors:

Re: ClojureScript gets PersistentVectors

2012-03-29 Thread Evan Mezeske
This is excellent. Big thanks to Laszlo! I've been working on a Raphaël-based interactive GUI app in ClojureScript that maintains a big vector of elements, and had just recently started to run into what seemed to be the performance limits of the copy-on-write approach. I'm very optimistic

Re: ClojureScript gets PersistentVectors

2012-03-29 Thread László Török
It has been a great learning experience on both Clojure internals and the Clojurescript side. One thing to note, that the handwritten JS (which also a straight port of the java version and not optimized by the closure compiler) still outperforms the Clojurescript version consistently by at least a