Out of interest, did any library come out of this?

On Thursday, 15 January 2009 06:46:52 UTC+11, Laurent PETIT wrote:
>
> OK thank you both Chris & Mike for your answer. 
>
> What I've done for the moment is similar to what Mike did: at any 
> place where there is a chance for something to change namespaces, I 
> reload a new snapshot (and I throw the old). 
>
> Registering watchers for Vars seems very interesting, I'll 
> investigate. 
>
> Registering watchers for ns would be great too. 
>
> But there still may be  a case or two uncovered, even when we will be 
> able to register watchers on ns : when new ns are created. Then we 
> need so kind of watcher on the vector holding all the ns ... ? 
>
> If this vector is implemented as a Var, it is maybe already possible 
> to do this, even if it is undocumented ? 
>
> Cheers, 
>
> -- 
> Laurent 
>
> On Jan 14, 5:55 pm, MikeM <michael.messini...@invista.com> wrote: 
> > There's no event mechanism to monitor namespace changes. I accomplish 
> > this by taking a snapshot before and after any possible namespace- 
> > changing execution, using ns-map. Not as efficient as an event 
> > callback, but I haven't had any performance issues (map lookups are 
> > plenty fast for me). 
> > 
> > You can register a watcher for a Var to get notification of a root 
> > binding change using add-watcher - note that the clojure.org doc for 
> > add-watcher has not been updated to match the Var watcher revision.

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to