From sky at viridian-project.de Sun Aug 2 19:19:05 2009 From: sky at viridian-project.de (Leslie P. Polzer) Date: Sun, 2 Aug 2009 21:19:05 +0200 (CEST) Subject: [cl-prevalence-devel] News In-Reply-To: References: <9adbd8a38decbe578532381e66291abc@imap.core.gen.tr> <487d728222c910124fe9deb1ffce4aa1.squirrel@mail.stardawn.org> Message-ID: <7fd1fe66bb7e2e679263bd6af443a1aa.squirrel@mail.stardawn.org> evrim.ulu at core.gen.tr wrote: > It is very unfortunate that the site does not work in your browser. > I am willing to see the error. Can you rephrase that sentence? I didn't get it. >> How does WITH-TRANSACTION work? >> > > It serializes the closure the body as a closure along with its > environment. Ah, that's nice. How do you implement closure serialization? In particular, how do you capture the environment and restore environments shared by multiple closures? > PS: Could you add my email addrss to devel list, > i'm continuatiosly getting bounces from list admin. Sorry, I don't have access to the list admin interface. Please subscribe yourself (and set yourself on holiday mode if you don't want to receive mail). Cheers, Leslie -- http://www.linkedin.com/in/polzer From me at swizard.info Fri Aug 28 17:21:02 2009 From: me at swizard.info (Alexey Voznyuk) Date: Fri, 28 Aug 2009 21:21:02 +0400 Subject: [cl-prevalence-devel] [patch] serialize-sexp-internal bug: serializing object with no slots Message-ID: <4A9811FE.5030509@swizard.info> Hello! I didn't get if the cl-prevalence project is still alive but maybe someone will need this patch: --- serialization.lisp.orig 2009-08-28 21:04:00.624489057 +0400 +++ serialization.lisp 2009-08-28 21:16:44.758777912 +0400 @@ -475,6 +475,7 @@ (write-string " . " stream) (serialize-sexp-internal (slot-value object slot) stream serialization-state) - (write-string ")" stream)))) - (write-string " ) )" stream))))) + (write-string ")" stream))) + (princ " )" stream)) + (write-string " )" stream))))) ;;; Deserialize CLOS instances and Lisp primitives from the XML representation From sky at viridian-project.de Sat Aug 29 15:41:39 2009 From: sky at viridian-project.de (Leslie P. Polzer) Date: Sat, 29 Aug 2009 17:41:39 +0200 (CEST) Subject: [cl-prevalence-devel] [patch] serialize-sexp-internal bug: serializing object with no slots In-Reply-To: <4A9811FE.5030509@swizard.info> References: <4A9811FE.5030509@swizard.info> Message-ID: Alexey Voznyuk wrote: > I didn't get if the cl-prevalence project is still alive Yes, it is. > but maybe someone will need this patch: What's the problem with the original code? Thanks! Leslie -- http://www.linkedin.com/in/polzer From me at swizard.info Sat Aug 29 17:00:36 2009 From: me at swizard.info (Alexey Voznyuk) Date: Sat, 29 Aug 2009 21:00:36 +0400 Subject: [cl-prevalence-devel] [patch] serialize-sexp-internal bug: serializing object with no slots In-Reply-To: References: <4A9811FE.5030509@swizard.info> Message-ID: <4A995EB4.5010304@swizard.info> Leslie P. Polzer wrote: > Alexey Voznyuk wrote: > [snip] >> ut maybe someone will need this patch: >> > > What's the problem with the original code? > Serializing a standard object with no slots defined caused extra ")" added at the end. For example, (defclass foo () ()). Invocation of (s-serialization::serialize-sexp-internal (make-instance 'foo) *standard-output* (s-serialization::make-serialization-state)) results something like (OBJECT 1 :CLASS COMMON-LISP-USER::FOO ) ) into the stream (notice the mismatched closing round bracket). The patch should fix that issue. > Thanks! > > Leslie > > From sky at viridian-project.de Sat Aug 29 17:11:16 2009 From: sky at viridian-project.de (Leslie P. Polzer) Date: Sat, 29 Aug 2009 19:11:16 +0200 (CEST) Subject: [cl-prevalence-devel] [patch] serialize-sexp-internal bug: serializing object with no slots In-Reply-To: <4A995EB4.5010304@swizard.info> References: <4A9811FE.5030509@swizard.info> <4A995EB4.5010304@swizard.info> Message-ID: <531a2966c74b092bd9561ee683018bbc.squirrel@mail.stardawn.org> Alexey Voznyuk wrote: > Serializing a standard object with no slots defined caused extra ")" > added at the end. Ah, thanks. I'm going to test and apply your patch within 1-2 weeks. Leslie -- http://www.linkedin.com/in/polzer From me at swizard.info Sat Aug 29 19:19:26 2009 From: me at swizard.info (swizard) Date: Sat, 29 Aug 2009 23:19:26 +0400 Subject: [cl-prevalence-devel] [patch] serialize-sexp-internal bug: serializing object with no slots In-Reply-To: <531a2966c74b092bd9561ee683018bbc.squirrel@mail.stardawn.org> References: <4A9811FE.5030509@swizard.info> <4A995EB4.5010304@swizard.info> <531a2966c74b092bd9561ee683018bbc.squirrel@mail.stardawn.org> Message-ID: <4A997F3E.2020807@swizard.info> Leslie P. Polzer wrote: > Alexey Voznyuk wrote: > > >> Serializing a standard object with no slots defined caused extra ")" >> added at the end. >> > > Ah, thanks. I'm going to test and apply your patch within 1-2 weeks. > Ok, thank you. I got my cl-prevalence version from http://common-lisp.net/project/cl-prevalence/. So I better switch to the http://bitbucket.org/skypher/cl-prevalence/ repository now, right? > Leslie > > From me at swizard.info Sat Aug 29 22:05:04 2009 From: me at swizard.info (Alexey Voznyuk) Date: Sun, 30 Aug 2009 02:05:04 +0400 Subject: [cl-prevalence-devel] [patch] backup method for guarded-prevalence-system In-Reply-To: <531a2966c74b092bd9561ee683018bbc.squirrel@mail.stardawn.org> References: <4A9811FE.5030509@swizard.info> <4A995EB4.5010304@swizard.info> <531a2966c74b092bd9561ee683018bbc.squirrel@mail.stardawn.org> Message-ID: <4A99A610.7070504@swizard.info> Leslie P. Polzer wrote: > Alexey Voznyuk wrote: >> Serializing a standard object with no slots defined caused extra ")" >> added at the end. >> > > Ah, thanks. I'm going to test and apply your patch within 1-2 weeks. > > Leslie > Please check also the following patch for (defmethod backup ((system guarded-prevalence-system) &key directory) It simply doesn't work causing an error, the patch should fix it: --- prevalence.lisp.orig 2009-08-30 02:00:42.000000000 +0400 +++ prevalence.lisp 2009-08-30 02:00:48.000000000 +0400 @@ -311,5 +311,5 @@ "Do a backup on a system controlled by a guard" (funcall (get-guard system) - #'(lambda () (call-next-method system directory)))) + #'(lambda () (call-next-method system :directory directory)))) (defmethod restore ((system guarded-prevalence-system)) From sky at viridian-project.de Sun Aug 30 06:54:39 2009 From: sky at viridian-project.de (Leslie P. Polzer) Date: Sun, 30 Aug 2009 08:54:39 +0200 (CEST) Subject: [cl-prevalence-devel] [patch] serialize-sexp-internal bug: serializing object with no slots In-Reply-To: <4A997F3E.2020807@swizard.info> References: <4A9811FE.5030509@swizard.info> <4A995EB4.5010304@swizard.info> <531a2966c74b092bd9561ee683018bbc.squirrel@mail.stardawn.org> <4A997F3E.2020807@swizard.info> Message-ID: <7714f9a0e080f8721c98db51c0af99f7.squirrel@mail.stardawn.org> swizard wrote: > I got my cl-prevalence version from > http://common-lisp.net/project/cl-prevalence/. So I better switch to the > http://bitbucket.org/skypher/cl-prevalence/ repository now, right? Yes. I'm not sure yet what to do with the CVS repo, but I'll probably remove it from the page and let it phase out in favor of the Mercurial one. If you have any more fixes please keep them coming and they will be part of the next release. Leslie -- http://www.linkedin.com/in/polzer From me at swizard.info Mon Aug 31 01:02:50 2009 From: me at swizard.info (Alexey Voznyuk) Date: Mon, 31 Aug 2009 05:02:50 +0400 Subject: [cl-prevalence-devel] [patch] serialize-sexp-internal bug: serializing object with no slots In-Reply-To: <7714f9a0e080f8721c98db51c0af99f7.squirrel@mail.stardawn.org> References: <4A9811FE.5030509@swizard.info> <4A995EB4.5010304@swizard.info> <531a2966c74b092bd9561ee683018bbc.squirrel@mail.stardawn.org> <4A997F3E.2020807@swizard.info> <7714f9a0e080f8721c98db51c0af99f7.squirrel@mail.stardawn.org> Message-ID: <4A9B213A.9070403@swizard.info> Leslie P. Polzer wrote: > swizard wrote: >> I got my cl-prevalence version from >> http://common-lisp.net/project/cl-prevalence/. So I better switch to the >> http://bitbucket.org/skypher/cl-prevalence/ repository now, right? >> > > Yes. I'm not sure yet what to do with the CVS repo, but I'll probably > remove it from the page and let it phase out in favor of the Mercurial > one. > > If you have any more fixes please keep them coming and they will be part > of the next release. > I'm trying to integrate cl-prevalence in my current project, so I'm just fixing bugs I've encountered during my experiment. I will provide you patches if I find any more. > Leslie > >