4 ms·
ClojureScript doesn't have all of Clojure's reference types (just atom, I think) nor STM (yet?) so yes, you do lose something. I would also guess that while (fi
by spacemanaki 15y ago
ClojureScript doesn't have all of Clojure's reference types (just atom, I think) nor STM (yet?) so yes, you do lose something. I would also guess that while (fib 36) might be faster, you would see different results for more realistic programs. Gambit Scheme's garbage collector might not be as strong as HotSpot, which I gather is quite good for long running apps. ClojureScript also doesn't have runtime eval, so you lose that too.
For command-line programs, this could be pretty rad, as is ClojureScript on V8. It's also just cool :)
- MatthewPhillips 15y agoI'm already sold on ClojureScript. I can live without runtime eval, so if this is just another compile target I'm in.
- technomancy 15y agoAlso ClojureScript only recently got PersistentVectors; IIUC maps are still copy-on-write.
- takeoutweight 15y agoThe above comments are accurate: clojure-scheme lacks everything that ClojureScript lacks. And clojure-scheme is a month or two behind ClojureScript, so the new structure sharing persistent vectors haven't been ported over yet.