David Nolen <dnolen.li...@gmail.com> writes:

> On Mon, Oct 11, 2010 at 10:02 AM, Steve Purcell <st...@sanityinc.com>
> wrote:
>
>     Well, taking a brief look over your code, it seems like the main
>     difference is that scriptjure is macro-based, so all the code
>     generation
>     gets done at compile-time.
>     
>
> js-gen generates js at compile time. 


Indeed - my embarrassing mistake, for which I apologise! A more thorough
reading of the code would have shown up the one key macro that ties it
all together.


>     That makes scriptjure faster, but at the expense of needing an
>     unquote
>     form - "(clj ...)" - to splice clojure expressions into the
>     javascript source
>     sexps.
>
>
> I haven't found this to be true at all. Scriptjure in my tests is
> quite a bit slower because it doesn't emit the final generated code at
> compile time, but an intermediate form that permits splicing. 
> I look forward to the cross-pollinations of ideas between these two
> endeavors :)


Indeed. Thanks for taking the time to correct me! Now time for me to
actually play with js-gen in earnest...

-Steve

-- 
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