Re: Atomic reloads and snapshots of namespaces

2009-11-28 Thread Meikel Brandmeyer
Hi, Am 28.11.2009 um 01:48 schrieb André Thieme: I don‘t know if this makes sense and what problems may arise, and even if such a proposal sounds nice in theory it may be too hard to develop, for now. Maybe something like this: (defn receive-request [req] (let [snapshot {#'fun-a fun-a

Re: Atomic reloads and snapshots of namespaces

2009-11-28 Thread Christophe Grand
Hi, On Sat, Nov 28, 2009 at 1:48 AM, André Thieme wrote: > Some users may be in a session that can go for minutes or hours or > even > days. In such a case we may be interested that as long this session > exists > this users requests will always be handled with the old set of > functions. > To a

Re: Atomic reloads and snapshots of namespaces

2009-11-27 Thread John Harrop
On Fri, Nov 27, 2009 at 7:48 PM, André Thieme wrote: > Let‘s say we have the functions A, B, C, D, E, F and G. > A is calling B, B is calling C, C is calling D, and so on. > Now a request R1 comes in, function A is called and this chain > continues to, > say, E. > Now a reload happens. Some functi

Re: Atomic reloads and snapshots of namespaces

2009-11-27 Thread André Thieme
On 27 Nov., 04:33, pmf wrote: > On Nov 26, 7:39 pm, Richard Newman wrote: > > > "Re consistency: I seem to recall Pascal Costanza working on   > > activation of layers, so you can swap a whole set of stuff across your   > > program. He spoke about it at ILC2009, but I'm not sure I've found the  

Re: Atomic reloads and snapshots of namespaces

2009-11-26 Thread pmf
On Nov 26, 7:39 pm, Richard Newman wrote: > "Re consistency: I seem to recall Pascal Costanza working on   > activation of layers, so you can swap a whole set of stuff across your   > program. He spoke about it at ILC2009, but I'm not sure I've found the   > right paper. Common Lisp-specific, thou

Re: Atomic reloads and snapshots of namespaces

2009-11-26 Thread Richard Newman
> 2) And even if we can manage point 1) there is still the problem > with atomicity. Or not? > I imagine a chain of n functions. Callers or callees may expect > different args. I would like to update the whole namespace as > one unit. Maybe this already works in Clojure? There was a discussion on

Re: Atomic reloads and snapshots of namespaces

2009-11-26 Thread Anniepoo
I would appreciate, in a similar vein, an amplification of the "Use with caution" advice in the api docs for remove-ns. I'd like to use remove-ns but am reluctant to architect a system around a function marked 'use with caution' (remove-ns sym) Removes the namespace named by the symbol. Use with

Atomic reloads and snapshots of namespaces

2009-11-26 Thread André Thieme
My web application needs updates from time to time. When this happens I often have to stop the server and shut down the JVM. Then the old (current) directories can be replaced by the new ones, and I restart the server. It's okay when there are several copies of the server running behind a load bal