From francesco.petrogalli at gmail.com Wed Jul 1 14:16:02 2009 From: francesco.petrogalli at gmail.com (Francesco Petrogalli) Date: Wed, 1 Jul 2009 16:16:02 +0200 Subject: [Gardeners] sbcl In-Reply-To: <4A41B05C.8020802@mailworks.org> References: <926ea96e0906191148v5cc88e0bgb19f913ee605b595@mail.gmail.com> <4A41B05C.8020802@mailworks.org> Message-ID: <926ea96e0907010716u7dee4b14u78b68d86b05f7f14@mail.gmail.com> Hi, sorry for the long wait for my answer, but I've been very busy. I'll try to be more exhaustive about my problem. My question is very simple: why is sbcl slower on a four core cpu (Intel Core duo quad) than on an old machine like my Intel pentium (single core). I mean, my program runs on a single thread, but shouldn't be the single thread of the quad core cpu faster than the single thread of the single core cpu, being the latter at a lower frequency of the quad core? The fact is that the difference in speed is not of few seconds, but of 10 seconds versus the 2 minutes of the quad core.... The program is very simple, it uses only a small amount of memory. It takes an image in PGM format (200x200 pixels) and finds the edges of the objects in the image using an algorithm based on fuzzy logic. The percentage of CPU used on the single core CPU is 100% (for 10 seconds) and 25% on the quad core (this is as I expected... a single thread on a quad core cpu takes 1/4 of the CPU...) Well, that's all, I hope I've been more clear this time. (sorry for my bad english) Below you find some news about my sbcl version. Bye franZ >> CL-USER(7): (LISP-IMPLEMENTATION-VERSION) >> >> "1.0.29.11.debian" I use Lenny, my version is "1.0.18.debian" >> CL-USER(8): (not (not (member :SB-THREAD *features*))) >> >> T same result, like yours -- Linux Registered User: #414858 P Funking Band http://www.perugiafunkingband.it http://www.myspace.com/perugiafunkingband From alessiostalla at gmail.com Wed Jul 1 15:11:00 2009 From: alessiostalla at gmail.com (Alessio Stalla) Date: Wed, 1 Jul 2009 17:11:00 +0200 Subject: [Gardeners] sbcl In-Reply-To: <926ea96e0907010716u7dee4b14u78b68d86b05f7f14@mail.gmail.com> References: <926ea96e0906191148v5cc88e0bgb19f913ee605b595@mail.gmail.com> <4A41B05C.8020802@mailworks.org> <926ea96e0907010716u7dee4b14u78b68d86b05f7f14@mail.gmail.com> Message-ID: <835c01920907010811n1731beaarcac07e08d511454c@mail.gmail.com> On Wed, Jul 1, 2009 at 4:16 PM, Francesco Petrogalli wrote: > Hi, sorry for the long wait for my answer, but I've been very busy. > > I'll try to be more exhaustive about my problem. My question is very > simple: why is sbcl slower on a four core cpu (Intel Core duo quad) > than on an old machine like my Intel pentium (single core). > > I mean, my program runs on a single thread, but shouldn't be the > single thread of the quad core cpu faster than the single thread of > the single core cpu, being the latter at a lower frequency of the quad > core? > > The fact is that the difference in speed is not of few seconds, but of > 10 seconds versus the 2 minutes of the quad core.... > > The program is very simple, it uses only a small amount of memory. It > takes an image in PGM format (200x200 pixels) and finds the edges of > the objects in the image using ?an algorithm based on fuzzy logic. The > percentage of CPU used on the single core CPU is 100% (for 10 seconds) > and 25% on the quad core (this is as I expected... a single thread on > a quad core cpu takes 1/4 of the CPU...) Sorry, maybe I've already asked this to you and then forgotten about it, but: are both your processors 64-bit? Couldn't it be the case that on the newer one you're using sbcl compiled for 32-bit i386, and that runs in emulated 32-bit mode on a 64-bit processor, while on the older machine it runs natively as 32-bit? Given that you're manipulating arrays, and probably iterating over them many times, the difference between emulated and native 32-bit might be important. I'm just speculating because I'm pretty much ignorant about processor architectures. > Well, that's all, I hope I've been more clear this time. (sorry for my > bad english) > > Below you find some news about my sbcl version. > > Bye > > franZ > >>> CL-USER(7): (LISP-IMPLEMENTATION-VERSION) >>> >>> "1.0.29.11.debian" > > I use Lenny, my version is "1.0.18.debian" > >>> CL-USER(8): (not (not (member :SB-THREAD *features*))) >>> >>> T > > same result, like yours What does uname -a return on each machine? Bye, Alessio From francesco.petrogalli at gmail.com Wed Jul 1 15:24:50 2009 From: francesco.petrogalli at gmail.com (Francesco Petrogalli) Date: Wed, 1 Jul 2009 17:24:50 +0200 Subject: [Gardeners] sbcl In-Reply-To: <835c01920907010811n1731beaarcac07e08d511454c@mail.gmail.com> References: <926ea96e0906191148v5cc88e0bgb19f913ee605b595@mail.gmail.com> <4A41B05C.8020802@mailworks.org> <926ea96e0907010716u7dee4b14u78b68d86b05f7f14@mail.gmail.com> <835c01920907010811n1731beaarcac07e08d511454c@mail.gmail.com> Message-ID: <926ea96e0907010824m12724590s471632fe8dcfaf1f@mail.gmail.com> > Sorry, maybe I've already asked this to you and then forgotten about > it, but: are both your processors 64-bit? Couldn't it be the case that > on the newer one you're using sbcl compiled for 32-bit i386, and that > runs in emulated 32-bit mode on a 64-bit processor, while on the older > machine it runs natively as 32-bit? Given that you're manipulating > arrays, and probably iterating over them many times, the difference > between emulated and native 32-bit might be important. I'm just > speculating because I'm pretty much ignorant about processor > architectures. On the quad core machine I have a AMD64 port of Debian Lenny, while on the old pentium I have the i386 version.... -- Linux Registered User: #414858 P Funking Band http://www.perugiafunkingband.it http://www.myspace.com/perugiafunkingband From ariva at ufl.edu Mon Jul 6 15:27:45 2009 From: ariva at ufl.edu (Alberto Riva) Date: Mon, 06 Jul 2009 11:27:45 -0400 Subject: [Gardeners] lisp FAQ status In-Reply-To: <87ljwjndro.fsf@gmail.com> References: <87ljwjndro.fsf@gmail.com> Message-ID: Just curious: is this project still active? The last update I see dates back to last November... Thanks, Alberto Pedro Kr?ger wrote: > Hi guys, > > (I'm sorry I took longer than I said I would, but I had to update my > server before I did any work on the faq.) > > I tested ikiwiki [1] and phpmyfaq [2] as two potential technologies to > store the lisp FAQ. As a preview of each tool, I put two "mock" lisp > FAQs [3] available on my server, one using ikiwiki: > > http://genos.mus.br/lispfaq/ > > and the other using phpmyfaq: > > http://genos.mus.br/lispfaq2/ > > feel free to play with them. > > here is my list of pros and cons for ikiwiki: > > * pros > - can be edited on-line (just like a wiki) and off-line (it uses git) > - simple and clean > - uses a "standard" format (markdown) > - very css friendly (all visual things can be changed) > - has a page for discussion (like wikipedia) > - distributed: each git clone is a full repo of the wiki. If I decide > to go nuts and live in the Bahamas (not a bad idea) the lisp faq can > be easily set up by anyone with a git clone > > * cons > - not really a faq manager > - has no top 10 list or rating system > > here is my list of pros and cons for myphpfaq: > > * pros > - professional feel (whatever that means) > - user can ask questions without signing in > - bells and whistles: top 10 lists, rating, last five questions, etc > - translation system (want a faq in Latvian?) > > * cons > - too complex (bureaucratic) to admin. each faq item has to be > approved by the admin > - too bondage and discipline (grab your whip, kwaa-tissshhh!) > - centralized: the whole thing is in a mysql database. what if I go to > the Bahamas and forget to backup? > - no "standard" format > > My personal choice is ikiwiki. I really love being able to edit pages > off-line with emacs (git push updates the wiki automagically). OTOH, > maybe phpmyfaq will be easier for beginners. What do you think? > > (I collected all lisp-related questions I could find in a gigantic > org-mode file and I'm ready to populate the new-new-new-new faq) > > Pedro > > Footnotes: > [1] http://ikiwiki.info/ > > [2] http://www.phpmyfaq.de/ > > [3] just a few questions on each faq so you can get the flavor for each > system > From pedro.kroger at gmail.com Tue Jul 7 15:47:49 2009 From: pedro.kroger at gmail.com (Pedro =?utf-8?Q?Kr=C3=B6ger?=) Date: Tue, 07 Jul 2009 08:47:49 -0700 Subject: [Gardeners] lisp FAQ status In-Reply-To: (Alberto Riva's message of "Mon, 06 Jul 2009 11:27:45 -0400") References: <87ljwjndro.fsf@gmail.com> Message-ID: <87hbxolcka.fsf@orestes.gateway.2wire.net> Alberto Riva writes: > Just curious: is this project still active? The last update I see dates > back to last November... Thanks, it has been "paused". I had a few problems (my laptop broke twice) and changes (moved from Brazil to USA) but I'm still interested in the project. I think ikiwiki is the way to go and I'll convert the old faqs to the new format soon. Pedro From ariva at ufl.edu Tue Jul 7 16:36:48 2009 From: ariva at ufl.edu (Alberto Riva) Date: Tue, 07 Jul 2009 12:36:48 -0400 Subject: [Gardeners] lisp FAQ status In-Reply-To: <87hbxolcka.fsf@orestes.gateway.2wire.net> References: <87ljwjndro.fsf@gmail.com> <87hbxolcka.fsf@orestes.gateway.2wire.net> Message-ID: Pedro Kr?ger wrote: > Alberto Riva writes: > >> Just curious: is this project still active? The last update I see dates >> back to last November... Thanks, > > it has been "paused". I had a few problems (my laptop broke twice) and > changes (moved from Brazil to USA) but I'm still interested in the > project. I think ikiwiki is the way to go and I'll convert the old faqs > to the new format soon. Great, I'd be happy to help out too. I was looking at the ALU wiki a few days ago, and I was thinking that it would be a good idea to host the FAQ there (*), but unfortunately right after that it got attacked by spammers, and now it's temporarily offline. Then I found this thread and I read what Dan Weinreb said in his message of 08/02/2008, ie that the ALU wants to turn lisp.org into the first stop for people interested in Lisp, and that the wikified-FAQ should be there. So I guess there's general agreement about the plan, now we just need to do it... :) Thanks, Alberto From munchking at gmail.com Thu Jul 9 02:09:40 2009 From: munchking at gmail.com (Adlai C) Date: Thu, 9 Jul 2009 05:09:40 +0300 Subject: [Gardeners] lisp FAQ status In-Reply-To: References: <87ljwjndro.fsf@gmail.com> <87hbxolcka.fsf@orestes.gateway.2wire.net> Message-ID: On Tue, Jul 7, 2009 at 7:36 PM, Alberto Riva wrote: > > Pedro Kr?ger wrote: > > Alberto Riva writes: > > > >> Just curious: is this project still active? The last update I see dates > >> back to last November... Thanks, > > > > it has been "paused". I had a few problems (my laptop broke twice) and > > changes (moved from Brazil to USA) but I'm still interested in the > > project. I think ikiwiki is the way to go and I'll convert the old faqs > > to the new format soon. > > Great, I'd be happy to help out too. I was looking at the ALU wiki a few > days ago, and I was thinking that it would be a good idea to host the > FAQ there (*), but unfortunately right after that it got attacked by > spammers, and now it's temporarily offline. Then I found this thread and > I read what Dan Weinreb said in his message of 08/02/2008, ie that the > ALU wants to turn lisp.org into the first stop for people interested in > Lisp, and that the wikified-FAQ should be there. So I guess there's > general agreement about the plan, now we just need to do it... :) As somebody who is quite new to Lisp, I think that having a Lisp FAQ and "first stop" be at Lisp.org would present a unified front for the language, as opposed to the current situation of having to track down different guides on various sites. I think an FAQ along with a good chart of links relating to various topics would be most helpful. - Adlai > > Thanks, > > Alberto > > _______________________________________________ > Gardeners mailing list > Gardeners at lispniks.com > http://www.lispniks.com/mailman/listinfo/gardeners From maximinus at gmail.com Thu Jul 9 04:18:37 2009 From: maximinus at gmail.com (Chris Smith) Date: Thu, 9 Jul 2009 12:18:37 +0800 Subject: [Gardeners] lisp FAQ status In-Reply-To: References: <87ljwjndro.fsf@gmail.com> <87hbxolcka.fsf@orestes.gateway.2wire.net> Message-ID: Agreed - having a central point for Lisp would be great. I helped out a bit last time, but what's needed is some central organization. To be honest, I'm not the really the person for that, but I'm happy to do work as directed... within reason ;-) Chris 2009/7/9 Adlai C > On Tue, Jul 7, 2009 at 7:36 PM, Alberto Riva wrote: > > > > Pedro Kr?ger wrote: > > > Alberto Riva writes: > > > > > >> Just curious: is this project still active? The last update I see > dates > > >> back to last November... Thanks, > > > > > > it has been "paused". I had a few problems (my laptop broke twice) and > > > changes (moved from Brazil to USA) but I'm still interested in the > > > project. I think ikiwiki is the way to go and I'll convert the old faqs > > > to the new format soon. > > > > Great, I'd be happy to help out too. I was looking at the ALU wiki a few > > days ago, and I was thinking that it would be a good idea to host the > > FAQ there (*), but unfortunately right after that it got attacked by > > spammers, and now it's temporarily offline. Then I found this thread and > > I read what Dan Weinreb said in his message of 08/02/2008, ie that the > > ALU wants to turn lisp.org into the first stop for people interested in > > Lisp, and that the wikified-FAQ should be there. So I guess there's > > general agreement about the plan, now we just need to do it... :) > > As somebody who is quite new to Lisp, I think that having a Lisp FAQ > and "first stop" be at Lisp.org would present a unified front for the > language, as opposed to the current situation of having to track down > different guides on various sites. I think an FAQ along with a good > chart of links relating to various topics would be most helpful. > > > - Adlai > > > > Thanks, > > > > Alberto > > > > _______________________________________________ > > Gardeners mailing list > > Gardeners at lispniks.com > > http://www.lispniks.com/mailman/listinfo/gardeners > _______________________________________________ > Gardeners mailing list > Gardeners at lispniks.com > http://www.lispniks.com/mailman/listinfo/gardeners > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lispniks.com/pipermail/gardeners/attachments/20090709/3baec31e/attachment.htm