On Nov 17, 4:34 am, Rich Hickey <[EMAIL PROTECTED]> wrote:
> On Nov 16, 9:47 pm, "Stuart Sierra" <[EMAIL PROTECTED]>
> wrote:
>
> > Hi Rich, and all,
>
> > I took a stab at writing a static compiler class, i.e. a main() that
> > just compiles all the .clj files on the command line and saves the
> > .class files. Patch attached.
>
> > It almost works. The only thing that seems to be missing is creating
> > the class for the namespace itself, like "clojure/core.class". Not
> > sure what needs to be added to make that work.
>
> Interesting.
>
> I think you've hooked in at the wrong point - better to grab the
> clojure.core/compile var and call that. You should also keep the unit
> of compilation the lib, not files.
>
> Since it only requires main, might I suggest you write this in Clojure
> instead?
>
> Rich
This would be a much welcome addition because as someone who is
writing small desktop apps with clojure it would be great if the
startup time could be reduced and I'm guessing it would help a bunch
to not have to wait for all the code to compile from text every time?
/Markus
--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---