From waltman at pobox.com Sun Dec 4 19:40:27 2011 From: waltman at pobox.com (Walt Mankowski) Date: Sun, 4 Dec 2011 22:40:27 -0500 Subject: [Philadelphia-pm] Topic for Monday's meeting In-Reply-To: <4ED6E44A.2030601@criticode.com> References: <20111130205456.GB20135@mawode.com> <4ED6E44A.2030601@criticode.com> Message-ID: <20111205034027.GU3338@mawode.com> Thanks! I think it was the 2009 YAPC, but whatever. This will be basically the same talk, but I have a longer code sample to walk through if we have time. On Wed, Nov 30, 2011 at 09:19:54PM -0500, Darian Anthony Patrick wrote: > That sounds good. I think I saw it at YAPC10. It was good. I would > enjoy seeing it again. > > On 11/30/2011 03:54 PM, Walt Mankowski wrote: > > So, we're scheduled to have our December meeting this coming > > Monday, December 5. I'd like to volunteer to give a talk on using > > threads on Perl. I did this talk at YAPC a few years ago, but I > > don't think I've given it for phl.pm yet. > > > > Sound good? > > > > Walt > > > > > > > > _______________________________________________ Philadelphia-pm > > mailing list Philadelphia-pm at pm.org > > http://mail.pm.org/mailman/listinfo/philadelphia-pm > > -- > Darian Anthony Patrick, Criticode LLC > Office: (215) 789-9956 > Facsimile: (866) 789-2992 > Email/XMPP: darian at criticode.com > Web: http://criticode.com > ================================================= > BCF1 E7AD 15AD 8A99 F613 AF5F 2A9C C45C F580 E087 > ================================================= > * Signed and encrypted communications preferred. > _______________________________________________ > Philadelphia-pm mailing list > Philadelphia-pm at pm.org > http://mail.pm.org/mailman/listinfo/philadelphia-pm -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 190 bytes Desc: Digital signature URL: From waltman at pobox.com Sun Dec 4 19:47:01 2011 From: waltman at pobox.com (Walt Mankowski) Date: Sun, 4 Dec 2011 22:47:01 -0500 Subject: [Philadelphia-pm] Reminder: tech meeting Monday night, December 5 In-Reply-To: <20111003050719.GB24966@mawode.com> References: <20111003050719.GB24966@mawode.com> Message-ID: <20111205034701.GV3338@mawode.com> Just wanted to send out a reminder about our December tech meeting. It will be tomorrow night, Monday December 5, at 7 PM, at our usual spot at 307 Levine Hall at Penn. I'll be giving a talk on "Getting Started With Multithreaded Perl". It's basically the same talk I gave at YAPC in 2009, but I'm guessing most people haven't heard it. I did recently actually have an excuse to use threads in some research code I'm working on. I munged that into some sample code that I can demo assuming my voice holds out that long. (I've on the tail end of a nasty chest cold.) Walt -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 190 bytes Desc: Digital signature URL: From websco137 at gmail.com Mon Dec 5 14:10:33 2011 From: websco137 at gmail.com (Daniel Webster) Date: Mon, 5 Dec 2011 17:10:33 -0500 Subject: [Philadelphia-pm] Topic for Monday's meeting In-Reply-To: <20111205034027.GU3338@mawode.com> References: <20111130205456.GB20135@mawode.com> <4ED6E44A.2030601@criticode.com> <20111205034027.GU3338@mawode.com> Message-ID: What time? Where? Sorry if I missed that detail in prior emails On Sun, Dec 4, 2011 at 10:40 PM, Walt Mankowski wrote: > Thanks! I think it was the 2009 YAPC, but whatever. This will be > basically the same talk, but I have a longer code sample to walk > through if we have time. > > On Wed, Nov 30, 2011 at 09:19:54PM -0500, Darian Anthony Patrick wrote: > > That sounds good. I think I saw it at YAPC10. It was good. I would > > enjoy seeing it again. > > > > On 11/30/2011 03:54 PM, Walt Mankowski wrote: > > > So, we're scheduled to have our December meeting this coming > > > Monday, December 5. I'd like to volunteer to give a talk on using > > > threads on Perl. I did this talk at YAPC a few years ago, but I > > > don't think I've given it for phl.pm yet. > > > > > > Sound good? > > > > > > Walt > > > > > > > > > > > > _______________________________________________ Philadelphia-pm > > > mailing list Philadelphia-pm at pm.org > > > http://mail.pm.org/mailman/listinfo/philadelphia-pm > > > > -- > > Darian Anthony Patrick, Criticode LLC > > Office: (215) 789-9956 > > Facsimile: (866) 789-2992 > > Email/XMPP: darian at criticode.com > > Web: http://criticode.com > > ================================================= > > BCF1 E7AD 15AD 8A99 F613 AF5F 2A9C C45C F580 E087 > > ================================================= > > * Signed and encrypted communications preferred. > > _______________________________________________ > > Philadelphia-pm mailing list > > Philadelphia-pm at pm.org > > http://mail.pm.org/mailman/listinfo/philadelphia-pm > > _______________________________________________ > Philadelphia-pm mailing list > Philadelphia-pm at pm.org > http://mail.pm.org/mailman/listinfo/philadelphia-pm > > -- - Dan Webster -------------- next part -------------- An HTML attachment was scrubbed... URL: From websco137 at gmail.com Mon Dec 5 14:12:13 2011 From: websco137 at gmail.com (Daniel Webster) Date: Mon, 5 Dec 2011 17:12:13 -0500 Subject: [Philadelphia-pm] Topic for Monday's meeting In-Reply-To: References: <20111130205456.GB20135@mawode.com> <4ED6E44A.2030601@criticode.com> <20111205034027.GU3338@mawode.com> Message-ID: Never mind folks... Got it off the website. Mon 5 Dec 2011 - Walt Mankowski will be giving a tech talk, "Getting Started With Multithreaded Perl" at Levine Hall, 3330 Walnut St., Room 307, 7-9 PM On Mon, Dec 5, 2011 at 5:10 PM, Daniel Webster wrote: > What time? Where? > Sorry if I missed that detail in prior emails > > > On Sun, Dec 4, 2011 at 10:40 PM, Walt Mankowski wrote: > >> Thanks! I think it was the 2009 YAPC, but whatever. This will be >> basically the same talk, but I have a longer code sample to walk >> through if we have time. >> >> On Wed, Nov 30, 2011 at 09:19:54PM -0500, Darian Anthony Patrick wrote: >> > That sounds good. I think I saw it at YAPC10. It was good. I would >> > enjoy seeing it again. >> > >> > On 11/30/2011 03:54 PM, Walt Mankowski wrote: >> > > So, we're scheduled to have our December meeting this coming >> > > Monday, December 5. I'd like to volunteer to give a talk on using >> > > threads on Perl. I did this talk at YAPC a few years ago, but I >> > > don't think I've given it for phl.pm yet. >> > > >> > > Sound good? >> > > >> > > Walt >> > > >> > > >> > > >> > > _______________________________________________ Philadelphia-pm >> > > mailing list Philadelphia-pm at pm.org >> > > http://mail.pm.org/mailman/listinfo/philadelphia-pm >> > >> > -- >> > Darian Anthony Patrick, Criticode LLC >> > Office: (215) 789-9956 >> > Facsimile: (866) 789-2992 >> > Email/XMPP: darian at criticode.com >> > Web: http://criticode.com >> > ================================================= >> > BCF1 E7AD 15AD 8A99 F613 AF5F 2A9C C45C F580 E087 >> > ================================================= >> > * Signed and encrypted communications preferred. >> > _______________________________________________ >> > Philadelphia-pm mailing list >> > Philadelphia-pm at pm.org >> > http://mail.pm.org/mailman/listinfo/philadelphia-pm >> >> _______________________________________________ >> Philadelphia-pm mailing list >> Philadelphia-pm at pm.org >> http://mail.pm.org/mailman/listinfo/philadelphia-pm >> >> > > > -- > - Dan Webster > -- - Dan Webster -------------- next part -------------- An HTML attachment was scrubbed... URL: From waltman at pobox.com Tue Dec 6 12:15:25 2011 From: waltman at pobox.com (Walt Mankowski) Date: Tue, 6 Dec 2011 15:15:25 -0500 Subject: [Philadelphia-pm] Reminder: tech meeting Monday night, December 5 In-Reply-To: <20111205034701.GV3338@mawode.com> References: <20111003050719.GB24966@mawode.com> <20111205034701.GV3338@mawode.com> Message-ID: <20111206201525.GX3338@mawode.com> On Sun, Dec 04, 2011 at 10:47:01PM -0500, Walt Mankowski wrote: > Just wanted to send out a reminder about our December tech meeting. > It will be tomorrow night, Monday December 5, at 7 PM, at our usual > spot at 307 Levine Hall at Penn. > > I'll be giving a talk on "Getting Started With Multithreaded Perl". > It's basically the same talk I gave at YAPC in 2009, but I'm guessing > most people haven't heard it. I did recently actually have an excuse > to use threads in some research code I'm working on. I munged that > into some sample code that I can demo assuming my voice holds out that > long. (I've on the tail end of a nasty chest cold.) Thanks to everyone who came out last night and put up with my coughing and raspy voice. Aside from the title page, the slides I used last night are identical to when I gave this talk in 2009 at YAPC::Europe. Those can be downloaded at http://www.mawode.com/~waltman/talks/perl_threads.yapceu09.pdf The first Monday of January falls on the 2nd, which is a holiday. So next we'll be meeting on the second Monday, which falls on January 9. We need a speaker for January. Anyone have anything they want to talk about? Walt -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 190 bytes Desc: Digital signature URL: From john at kominetz.com Tue Dec 6 14:25:29 2011 From: john at kominetz.com (John Kominetz) Date: Tue, 6 Dec 2011 17:25:29 -0500 Subject: [Philadelphia-pm] Reminder: tech meeting Monday night, December 5 In-Reply-To: <20111206201525.GX3338@mawode.com> References: <20111003050719.GB24966@mawode.com> <20111205034701.GV3338@mawode.com> <20111206201525.GX3338@mawode.com> Message-ID: I have to say I was a little confused from the start because of the statement that each thread was a complete interpreter. I "interpreted" that as each thread was actually a separate PROCESS, and that all this was hijacking threads as a metaphor for inter-process communication. So I wrote a test with five threads that each waited for 30 seconds and watched the activity monitor. It reported one perl process with six threads, running for 30 seconds. End of Duh. That also renders moot my question about "threads" surviving beyond the lifetime of the caller. Being real (OS) threads, that's not possible. Changing my test from join() to detach(), the threads die unexpected, untimely deaths as the process comes crashing down upon them. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rGeoffrey at PlatypiVentures.com Tue Dec 6 14:54:25 2011 From: rGeoffrey at PlatypiVentures.com (R. Geoffrey Avery) Date: Tue, 06 Dec 2011 17:54:25 -0500 Subject: [Philadelphia-pm] As mentioned Monday night, PLUG is on Wednesday In-Reply-To: References: <20111003050719.GB24966@mawode.com> <20111205034701.GV3338@mawode.com> <20111206201525.GX3338@mawode.com> Message-ID: <6.2.3.4.2.20111206175218.029bc300@mail.PlatypiVentures.com> Here is a link to the next PLUG meeting on Wednesday 12/7, a date which may or may not live in infamy: "It Came from...HOLD SPACE! Alien Horrors from the Dawn of Unix" - Mark Jason Dominus http://www.phillylinux.org/meetings.html 600 South 43rd Street Griffith Hall, Room "C" 7pm, talk starts about 8 From waltman at pobox.com Tue Dec 6 15:13:30 2011 From: waltman at pobox.com (Walt Mankowski) Date: Tue, 6 Dec 2011 18:13:30 -0500 Subject: [Philadelphia-pm] Reminder: tech meeting Monday night, December 5 In-Reply-To: References: <20111003050719.GB24966@mawode.com> <20111205034701.GV3338@mawode.com> <20111206201525.GX3338@mawode.com> Message-ID: <20111206231330.GY3338@mawode.com> On Tue, Dec 06, 2011 at 05:25:29PM -0500, John Kominetz wrote: > I have to say I was a little confused from the start because of the > statement that each thread was a complete interpreter. I "interpreted" that > as each thread was actually a separate PROCESS, and that all this was > hijacking threads as a metaphor for inter-process communication. So I wrote > a test with five threads that each waited for 30 seconds and watched the > activity monitor. It reported one perl process with six threads, running > for 30 seconds. End of Duh. In ithreads, there's one process for everything, and each perl thread is a complete perl interpreter running inside an operating system thread. But you're partially right. Even though they are threads, because they're isolated from each other, Perl has to do some magic internally in order to share data. Also perl lets you do things that pthreads doesn't allow, suck as dynamically sharing and unsharing variables at run time. What you described is actually what forks.pm does. That module lets you use the same api as threads, but it instead of creating threads it forks new processes. All the data sharing is done using sockets. If I ever give this talk again, I'll try to be clearer about all this. > That also renders moot my question about "threads" surviving beyond the > lifetime of the caller. Being real (OS) threads, that's not possible. > Changing my test from join() to detach(), the threads die unexpected, > untimely deaths as the process comes crashing down upon them. In fact the guy down at the other end of the room (sorry, I didn't catch your name) had exactly that problem. He called me over to say that he was trying to run one of my examples but it wasn't working. Turned out he was calling detach() instead of join(). Walt -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 190 bytes Desc: Digital signature URL: