On Sep 2, 2008, at 7:32 PM, Rich Hickey wrote:
>> I suggest adding (:load-resources ...) as a supported reference
>> argument for 'ns.
>
> I wonder. It seems in many cases the loaded resources will need
> definitions made by the parent/loadee, in which case you'd want to
> load them at the end of
On Sep 1, 11:42 pm, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote:
> On Aug 30, 2008, at 11:23 AM, Rich Hickey wrote:
>
> > Yup, coincidence, please use as documented. Tools, for instance,
> > might analyze ns forms looking for :use etc and not find them.
>
> I suggest adding (:load-resources .
> > For regular tasks of the sort you describe, especially things like
> > sending out regular emails, backing up systems, and other maintenance
> > tasks, you may want to consider using cron on a unix machine instead.
>
> Yup, lots of CRON-style functionality already exists, so no reason to
> inv
I think there's a problem with the new clojure/ns and gen-and-save-
class.
Suppose you define:
(clojure/ns com.example
(:use clojure.contrib.pred))
(defn MyClass-close [this]
(println "Hello, World!"))
And you generate a .class file with:
(gen-and-save-class
> For regular tasks of the sort you describe, especially things like
> sending out regular emails, backing up systems, and other maintenance
> tasks, you may want to consider using cron on a unix machine instead.
Yup, lots of CRON-style functionality already exists, so no reason to
invent your ow
On Tue, Sep 2, 2008 at 11:06 AM, Josh Daghlian <[EMAIL PROTECTED]> wrote:
>
> For regular tasks of the sort you describe, especially things like
> sending out regular emails, backing up systems, and other maintenance
> tasks, you may want to consider using cron on a unix machine instead.
I'll se
For regular tasks of the sort you describe, especially things like
sending out regular emails, backing up systems, and other maintenance
tasks, you may want to consider using cron on a unix machine instead.
Cron is a super old (read, highly configurable and well-understood)
piece of software (or f
The following code creates a timer that runs after a delay of three
seconds.
(import '(java.util TimerTask Timer))
(let [task (proxy [TimerTask] []
(run [] (println "Running")))]
(. (new Timer) (schedule task (long 3000
I'll let someone else comment on the concurrency issues.