From gugamilare at gmail.com Wed Aug 11 15:29:38 2010 From: gugamilare at gmail.com (Gustavo) Date: Wed, 11 Aug 2010 12:29:38 -0300 Subject: [elephant-devel] Elephant is working with cffi Message-ID: Hello, everyone, I've got elephant working along with cffi. Both cffi and elephant need to be patched for this to work, the patches for cffi were already made in the cffi mailing list. The patch was made against elephant-unstable. There were some incompatible changes in elephant, but I've separated those using #-elephant-cffi, what makes elephant also work with uffi. The file elephant.asd detects whether the asdf component :uffi is actually :cffi-uffi-compat, in which case the key :elephant-cffi is pushed into *features*, so everything is done automatically. I compiled elephant with :elephant-without-optimize and tested the tutorial (with a :bdb 4.7 database). I'll test without the key :elephant-without-optimize later. I believe this port helps with elephant optimization. For instance, cffi mem-ref is already optimized using implementation specific details (using compiler macros) so I think implementation specific optimizations are not needed anymore. Otherwise it should be possible to do the optimizations in cffi itself. Also cffi does not allocate aliens (my sbcl emits style-warnings complaining about that when using uffi). Gustavo. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: elephant-cffi.patch Type: application/octet-stream Size: 36924 bytes Desc: not available URL: From gugamilare at gmail.com Wed Aug 11 23:00:45 2010 From: gugamilare at gmail.com (Gustavo) Date: Wed, 11 Aug 2010 20:00:45 -0300 Subject: [elephant-devel] Elephant is working with cffi In-Reply-To: References: Message-ID: Hello, again, I've realized that elephant-1.0 is actually newer than elephant-unstable. I made a few more changes and updated the patch to work with elephant-1.0. The configuration was tested without the feature :elephant-without-optimize and all tests from elephant test suite passed. Gustavo. 2010/8/11 Gustavo > Hello, everyone, > > I've got elephant working along with cffi. Both cffi and elephant need to > be patched for this to work, the patches for cffi were already made in the > cffi mailing list. The patch was made against elephant-unstable. There were > some incompatible changes in elephant, but I've separated those using > #-elephant-cffi, what makes elephant also work with uffi. The file > elephant.asd detects whether the asdf component :uffi is actually > :cffi-uffi-compat, in which case the key :elephant-cffi is pushed into > *features*, so everything is done automatically. > > I compiled elephant with :elephant-without-optimize and tested the tutorial > (with a :bdb 4.7 database). I'll test without the key > :elephant-without-optimize later. > > I believe this port helps with elephant optimization. For instance, cffi > mem-ref is already optimized using implementation specific details (using > compiler macros) so I think implementation specific optimizations are not > needed anymore. Otherwise it should be possible to do the optimizations in > cffi itself. Also cffi does not allocate aliens (my sbcl emits > style-warnings complaining about that when using uffi). > > Gustavo. > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: elephant-cffi.patch Type: application/octet-stream Size: 39170 bytes Desc: not available URL: From sky at viridian-project.de Thu Aug 12 05:29:14 2010 From: sky at viridian-project.de (Leslie P. Polzer) Date: Thu, 12 Aug 2010 07:29:14 +0200 (CEST) Subject: [elephant-devel] Elephant is working with cffi In-Reply-To: References: Message-ID: Gustavo wrote: > I've realized that elephant-1.0 is actually newer than elephant-unstable. I > made a few more changes and updated the patch to work with elephant-1.0. We should probably delete elephant-unstable. Ian? > The configuration was tested without the feature :elephant-without-optimize > and all tests from elephant test suite passed. I'm going to review and test; it might take me a couple of days or even weeks. It'd be good to have some more eyes for this one. Thanks for your work, Gustavo! Leslie From eslick at media.mit.edu Thu Aug 12 15:58:50 2010 From: eslick at media.mit.edu (Ian Eslick) Date: Thu, 12 Aug 2010 08:58:50 -0700 Subject: [elephant-devel] Elephant is working with cffi In-Reply-To: References: Message-ID: <3D5D58AB-8177-4A51-A175-CE12B6A20B6B@media.mit.edu> Finally getting switched over to cffi would be fantastic; thanks Gustavo! And thanks Leslie for doing the testing & integration. Yes, we should delete elephant-unstable now. Ian On Aug 11, 2010, at 10:29 PM, Leslie P. Polzer wrote: > > Gustavo wrote: > >> I've realized that elephant-1.0 is actually newer than elephant-unstable. I >> made a few more changes and updated the patch to work with elephant-1.0. > > We should probably delete elephant-unstable. Ian? > > >> The configuration was tested without the feature :elephant-without-optimize >> and all tests from elephant test suite passed. > > I'm going to review and test; it might take me a couple of days or even > weeks. It'd be good to have some more eyes for this one. > > Thanks for your work, Gustavo! > > Leslie > > > _______________________________________________ > elephant-devel site list > elephant-devel at common-lisp.net > http://common-lisp.net/mailman/listinfo/elephant-devel From gugamilare at gmail.com Thu Aug 12 16:36:31 2010 From: gugamilare at gmail.com (Gustavo) Date: Thu, 12 Aug 2010 13:36:31 -0300 Subject: [elephant-devel] Elephant is working with cffi In-Reply-To: References: Message-ID: 2010/8/12 Leslie P. Polzer > > Gustavo wrote: > > > I've realized that elephant-1.0 is actually newer than elephant-unstable. > I > > made a few more changes and updated the patch to work with elephant-1.0. > > We should probably delete elephant-unstable. Ian? > > > > The configuration was tested without the feature > :elephant-without-optimize > > and all tests from elephant test suite passed. > > I'm going to review and test; it might take me a couple of days or even > weeks. It'd be good to have some more eyes for this one. > To test it, you are going to need CFFI's patch as well. The patch is available here: http://common-lisp.net/pipermail/cffi-devel/attachments/20100811/8dc2aa04/attachment-0001.obj If the test fails, please let me know. Gustavo. -------------- next part -------------- An HTML attachment was scrubbed... URL: