Hi Rich,

Zero footprint ?
If you ever approach that goal I suggest a name change like ClojureRTA (Clojure 
Running on Thin Air:))

Luc P.

On Tue, 2 Aug 2011 20:25:43 -0400
Rich Hickey <richhic...@gmail.com> wrote:

> That said, it is our intention to look at minimizing the base
> footprint as far as we can, but that's not top priority at the
> moment. It is unlikely we can get all the way to zero, but I hope we
> can do better. Until then, we won't compare favorably on very small
> programs. But the fact is the core lib doubled in size without
> significantly increasing our base, so whole-program optimization is
> definitely working for us.
> 
> Rich
> 
> On Aug 2, 2011, at 8:15 PM, Luc Prefontaine wrote:
> 
> > 28k after gclosure compilation is not insane considering that
> > cljs.core is above 350K. ClojureScript needs some runtime code
> > afterall and that at some point cannot get compressed/slashed away
> > endlessly. ClojureScript will take some footprint but the gclosure
> > compiler does a great job here to slice away stuff that's not
> > needed.
> > 
> > You cannot really compare a straight simple js implementation with
> > it's ClojureScript equivalent. These are totally different beasts.
> > 
> > The gain will be more obvious with more complex apps running in the
> > browser. Look in the example folder for the twitterbuzz. It's
> > nearly 700 lines. Not sure you would like to code that directly in
> > JavaScript:) (I would not)
> > 
> > Luc P.
> > 
> > On Tue, 2 Aug 2011 11:21:08 +0300
> > Sergey Didenko <sergey.dide...@gmail.com> wrote:
> > 
> >> Yes, after compiling this example and its raw Google Closure
> >> equivalent:
> >> 
> >> (ns bgcolor
> >>  (:require [goog.fx.dom :as fx-dom]))
> >> 
> >> (defn ^:export animate [elem start end]
> >>  (let [
> >>        anim (fx-dom/BgColorTransform. elem start end 2000)]
> >>    (.play anim ())))
> >> 
> >> 
> >> After compilation through the Google compiler ?
> >>> 
> >>> 
> >> 
> > 
> > 
> > 
> > -- 
> > Luc P.
> > 
> > ================
> > The rabid Muppet
> > 
> > -- 
> > You received this message because you are subscribed to the Google
> > Groups "Clojure" group.
> > To post to this group, send email to clojure@googlegroups.com
> > Note that posts from new members are moderated - please be patient
> > with your first post. To unsubscribe from this group, send email to
> > clojure+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/clojure?hl=en
> 



-- 
Luc P.

================
The rabid Muppet

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to