From daoswald at gmail.com Sun Nov 3 15:19:05 2013 From: daoswald at gmail.com (David Oswald) Date: Sun, 3 Nov 2013 16:19:05 -0700 Subject: [Saltlake-pm] A call for November presentations (and food?) Message-ID: If you have an idea for a presentation for our November 12th meeting, please let me know. Does anyone know of a corporate sponsor who would like to feed us this month? Let's try to make our November meeting compelling! Dave -- David Oswald daoswald at gmail.com From daoswald at gmail.com Tue Nov 5 16:31:01 2013 From: daoswald at gmail.com (David Oswald) Date: Tue, 5 Nov 2013 17:31:01 -0700 Subject: [Saltlake-pm] November meeting head count Message-ID: *** NEWS ALERT *** >>> Our November meeting will include FOOD! <<< We have a volunteer for pizza and beverages at our November 12th meeting! As a courtesy to our November sponsor, I'd like to get a rough idea of how many will be able to attend our meeting. If you can make it, please speak up. However, please don't think that failure to speak up now disqualifies you from attending if you decide at the last minute to come. Everyone is welcome! I'll be giving a discussion, probably on the steps I took recently on producing an XS module (unless something else grabs my interest between now and next week). And we're open to a second talk of any length, any topic related to Perl. -- David Oswald daoswald at gmail.com From fozzmoo at gmail.com Tue Nov 5 18:27:16 2013 From: fozzmoo at gmail.com (Doran L. Barton) Date: Tue, 5 Nov 2013 19:27:16 -0700 Subject: [Saltlake-pm] November meeting head count In-Reply-To: References: Message-ID: <20131105192716.309c3bd8@foo.fozzilinymoo.org> On Tue, 5 Nov 2013 17:31:01 -0700 David Oswald wrote: > We have a volunteer for pizza and beverages at our November 12th meeting! > > As a courtesy to our November sponsor, I'd like to get a rough idea of > how many will be able to attend our meeting. If you can make it, > please speak up. However, please don't think that failure to speak up > now disqualifies you from attending if you decide at the last minute > to come. Everyone is welcome! I'll be there. Thanks! -- Doran L. Barton - Linux, Perl, Web, good fun, and more! "I'll fire aimlessly if you don't come out!" -- English film subtitle seen in Hong Kong From daoswald at gmail.com Sun Nov 10 21:41:16 2013 From: daoswald at gmail.com (David Oswald) Date: Sun, 10 Nov 2013 22:41:16 -0700 Subject: [Saltlake-pm] Reminder: Meeting Tuesday @ 7:00pm Message-ID: If you're going and haven't mentioned it to me yet, please let me know. I'd like to get a head count for our meeting on Tuesday the 12th of November. We will have food provided for us, so this is as a courtesy to our sponsor. I'll be discussing producing XS modules. And maybe we'll have a little fun with something else too... If anyone has anything they would like to present (even if it's just a 5 minute topic) let me know and we'll plan on it! November and December are probably difficult months for people, but if you're available, we'd love to see you. Dave -- David Oswald daoswald at gmail.com From daoswald at gmail.com Tue Nov 12 08:28:49 2013 From: daoswald at gmail.com (David Oswald) Date: Tue, 12 Nov 2013 09:28:49 -0700 Subject: [Saltlake-pm] It's tonight! Message-ID: Tonight at Bluehost in Draper is our November Perl Mongers meeting. Please stop by for some pizza and Perl (they go well together). RSVP's are appreciated but not required. We'll be discussing Inline::C, XS, and developing an idea into an XS module. Dave -- David Oswald daoswald at gmail.com From daoswald at gmail.com Tue Nov 12 21:30:36 2013 From: daoswald at gmail.com (David Oswald) Date: Tue, 12 Nov 2013 22:30:36 -0700 Subject: [Saltlake-pm] November meeting recap Message-ID: We had a good turnout this evening. I didn't get a count, but the room was full. First I want to thank Rodney Palmer from ListMarketer for providing us with delicious food from The Pie this evening. His company is a Perl shop, and seeking another full time developer. If you're looking for Perl work you may contact him at rodney at listmarketer.com, or by phone at 877-231-3495. Maybe you're not looking, but know someone who is. If so, please pass the information along. It's good for Perl (and thus, good for us Perl developers) if companies seeking Perl developers find them... especially if they can find them here in Utah. At tonight's meeting our main presentation was about getting started with Perl XS, and Inline::C. For those who would like to look a little closer at the slides, they're on slideshare: http://www.slideshare.net/daoswald/getting-started-with-perl-xs-and-inlinec Also, some example modules that are designed to be pretty easy to read, even for someone just starting out with XS and Inline::whatever, see: Math::Prime::FastSieve (This module has an Inline::CPP dependency). List::BinarySearch::XS (This module just used plain vanilla XS, but was developed with the aid of Inline::C) List::BinarySearch (This module demonstrates how to provide a pure-Perl fall-back and an automatic but optional XS dependency). We will skip December, and resume our meetings Tuesday January 14th at 7:00pm. If you have something you would like to talk about, you've got a couple months to prepare. Just let me know! Dave -- David Oswald daoswald at gmail.com From fozzmoo at gmail.com Wed Nov 13 12:47:18 2013 From: fozzmoo at gmail.com (Doran L. Barton) Date: Wed, 13 Nov 2013 13:47:18 -0700 Subject: [Saltlake-pm] November meeting recap In-Reply-To: References: Message-ID: <20131113134718.18a4abef@thinker> On Tue, 12 Nov 2013 22:30:36 -0700 David Oswald wrote: > We had a good turnout this evening. I didn't get a count, but the > room was full. There were 11 or 12 people there. There was only one empty chair. Great work, Mongers. Here's the video: http://www.youtube.com/watch?v=l0wvw3XAB2c -- Doran L. Barton - Linux, Perl, Web, good fun, and more! "Please do not wash hair or clothes in toilet." -- Seen in a Tokyo restroom From daoswald at gmail.com Wed Nov 13 13:36:01 2013 From: daoswald at gmail.com (David Oswald) Date: Wed, 13 Nov 2013 14:36:01 -0700 Subject: [Saltlake-pm] November meeting recap In-Reply-To: <20131113134718.18a4abef@thinker> References: <20131113134718.18a4abef@thinker> Message-ID: And the slides are at: http://www.slideshare.net/daoswald/getting-started-with-perl-xs-and-inlinec I'll post a link to both on the website when I get a chance. One correction: I mentioned that the C++ "Boost::Graph" library had been wrapped in XS to produce the CPAN "Boost::Graph" module. This is correct. But I was incorrect in how this wrapping was done. I can't find any definitive reference to the module's author using the AUTO_WRAP tool from Inline::C. There are other modules that have used this feature. I'll try to see if sisyphus (Inline::C maintainer) knows which modules used AUTO_WRAP. It's certainly convenient though. Also someone asked about memory leakage when wrapping C libraries. The most common issue in this regard is when wrapping a library where one function allocates memory, but never calling the function that deallocates it; it would be a bug for a C programmer to do the same thing. And in most cases if Inline::C is able to use a native typemap to convert a data type, which is often the case for wrapped functions, the user doesn't need to worry about memory leaks. The most common leaks occur when the XS programmer takes control over moving Perl data structures (SV's, AV's, HV's) back and forth using the stack (implicitly or explicitly). In these cases, it's important to keep track of which XS functions increment the reference counter and which don't. The calling code owns a reference count, so it's important that the XSUB doesn't retain a ref count. Hope this clarifies, though to be honest, consulting the docs frequently and looking at good examples such as List::MoreUtils, List::BinarySearch, Scalar::Util, List::Util, etc... prior art is sometimes better than the wall of documentation when it comes to understanding how to accomplish things. Dave On Wed, Nov 13, 2013 at 1:47 PM, Doran L. Barton wrote: > On Tue, 12 Nov 2013 22:30:36 -0700 > David Oswald wrote: > >> We had a good turnout this evening. I didn't get a count, but the >> room was full. > > There were 11 or 12 people there. There was only one empty chair. Great > work, Mongers. > > Here's the video: http://www.youtube.com/watch?v=l0wvw3XAB2c > > -- > Doran L. Barton - Linux, Perl, Web, good fun, and more! > "Please do not wash hair or clothes in toilet." > -- Seen in a Tokyo restroom > _______________________________________________ > Saltlake-pm mailing list > Saltlake-pm at pm.org > http://mail.pm.org/mailman/listinfo/saltlake-pm > http://saltlake.pm.org -- David Oswald daoswald at gmail.com From daoswald at gmail.com Wed Nov 13 16:10:04 2013 From: daoswald at gmail.com (David Oswald) Date: Wed, 13 Nov 2013 17:10:04 -0700 Subject: [Saltlake-pm] Links to slides/video from last night's meeting available on the website. Message-ID: The Salt Lake Perl Mongers website has been updated with links to slides and video from last night's meeting. See the "past meetings" page (browser refresh may be required): http://saltlake.pm.org/past.html We've decided to take December off; holidays will preempt Perl. See you all in January. -- David Oswald daoswald at gmail.com