From krzysdrewniak at gmail.com Fri Jun 11 02:30:19 2010 From: krzysdrewniak at gmail.com (Krzysztof Drewniak) Date: Thu, 10 Jun 2010 21:30:19 -0500 Subject: [cl-prevalence-devel] Patch for serialization of arbitrary data Message-ID: <1276223419.9933.1.camel@krzys-desktop.home> This patch allows the xml serialization to serialize anything not explicitly covered by the code (some implementations can print functions etc.). Also, the 3.5 download is broken and I'd look si;;y telling my users pull the latest development code of cl-prevalence. -- X-Real-Email-With-Antispam: krzysdrewniak at gmail dot com pgp key on keyserver.ubuntu.com and maybe some other place too -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: From sky at viridian-project.de Fri Jun 11 09:59:03 2010 From: sky at viridian-project.de (Leslie P. Polzer) Date: Fri, 11 Jun 2010 11:59:03 +0200 (CEST) Subject: [cl-prevalence-devel] Patch for serialization of arbitrary data In-Reply-To: <1276223419.9933.1.camel@krzys-desktop.home> References: <1276223419.9933.1.camel@krzys-desktop.home> Message-ID: Krzysztof Drewniak wrote: > Also, the 3.5 download is broken and I'd look si;;y telling my > users pull the latest development code of cl-prevalence. Hmm, what exactly is broken with this download? Leslie From sky at viridian-project.de Fri Jun 11 09:47:30 2010 From: sky at viridian-project.de (Leslie P. Polzer) Date: Fri, 11 Jun 2010 11:47:30 +0200 (CEST) Subject: [cl-prevalence-devel] Patch for serialization of arbitrary data In-Reply-To: <1276223419.9933.1.camel@krzys-desktop.home> References: <1276223419.9933.1.camel@krzys-desktop.home> Message-ID: Krzysztof Drewniak wrote: > This patch allows the xml serialization to serialize anything not > explicitly covered by the code (some implementations can print functions > etc.). What patch? > Also, the 3.5 download is broken and I'd look si;;y telling my > users pull the latest development code of cl-prevalence. Thanks, I'm going to check this. Leslie From krzysdrewniak at gmail.com Fri Jun 11 11:22:57 2010 From: krzysdrewniak at gmail.com (Krzysztof Drewniak) Date: Fri, 11 Jun 2010 06:22:57 -0500 Subject: [cl-prevalence-devel] 2D arrays Message-ID: <1276255377.2978.6.camel@krzys-desktop.home> Is there any major problems with getting 2D arrays (sequences of sequences) serialized? (I'm working on a game and trying to find a serialization libraryt that does what I need) Krzysztof Drewniak -- X-Real-Email-With-Antispam: krzysdrewniak at gmail dot com pgp key on keyserver.ubuntu.com and maybe some other place too -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: From krzysdrewniak at gmail.com Fri Jun 11 10:59:01 2010 From: krzysdrewniak at gmail.com (Krzysztof Drewniak) Date: Fri, 11 Jun 2010 05:59:01 -0500 Subject: [cl-prevalence-devel] Patch for serialization of arbitrary data In-Reply-To: References: <1276223419.9933.1.camel@krzys-desktop.home> Message-ID: <1276253941.2978.3.camel@krzys-desktop.home> On Fri, 2010-06-11 at 11:47 +0200, Leslie P. Polzer wrote: > Krzysztof Drewniak wrote: > > This patch allows the xml serialization to serialize anything not > > explicitly covered by the code (some implementations can print functions > > etc.). > > What patch? > Sorry, I went brain-dead last night and forgot to attach the thing. > > > Also, the 3.5 download is broken and I'd look si;;y telling my > > users pull the latest development code of cl-prevalence. > > Thanks, I'm going to check this. > Leslie > > Also, it might be a good idea to have a DEPENDENCIES section on the website to make lusers' lives easier. Krzysztof Drewniak -- X-Real-Email-With-Antispam: krzysdrewniak at gmail dot com pgp key on keyserver.ubuntu.com and maybe some other place too -------------- next part -------------- A non-text attachment was scrubbed... Name: arbitrary.patch Type: text/x-patch Size: 935 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: From krzysdrewniak at gmail.com Fri Jun 11 18:10:42 2010 From: krzysdrewniak at gmail.com (Krzysztof Drewniak) Date: Fri, 11 Jun 2010 13:10:42 -0500 Subject: [cl-prevalence-devel] 2D arrays In-Reply-To: <1276255377.2978.6.camel@krzys-desktop.home> References: <1276255377.2978.6.camel@krzys-desktop.home> Message-ID: <1276279842.3181.2.camel@krzys-desktop.home> On Fri, 2010-06-11 at 06:23 -0500, Krzysztof Drewniak wrote: > Is there any major problems with getting 2D arrays (sequences of > sequences) serialized? (I'm working on a game and trying to find a > serialization libraryt that does what I need) > > Krzysztof Drewniak I don't know enough about the workings of s-serialization, but these two functions might prove useful (thinking: serialize return value of array->vector, and upon deserialization, pass the list to vector->array) (defun array->vector (array) (let ((dims (array-dimensions array))) (list dims (make-array (array-total-size array) :displaced-to array)))) (defun vector->array (vector) (let ((dims (first vector)) (vector (second vector))) (make-array dims :displaced-to vector))) Thank you for the library, Krzysztof -- X-Real-Email-With-Antispam: krzysdrewniak at gmail dot com pgp key on keyserver.ubuntu.com and maybe some other place too -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: