From dfwpm at internetalias.net Wed Jan 1 13:23:18 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Wed, 01 Jan 2014 15:23:18 -0600 Subject: [DFW.pm] And now a word from our sponsor (really!) Message-ID: <52C48746.4090001@internetalias.net> I'd like to thank The Perl Shop for sponsoring our hackathon competition. It was unsolicited, they just kindly stepped forward and did it. They've provided us with professional Perl consulting, event planning, and a professional judge to help John and me (which is something I heartily welcome). I stand behind companies that use and promote Perl, so my thanks goes to The Perl Shop for their support of this hackathon and the Perl community. I'm pasting in a copy of their cool logo with a link to their website . If you would be so kind, please take a moment to reply and let Tom Metro and the other folks at The Perl Shop know that we appreciate them. --Tommy Butler -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 8315 bytes Desc: not available URL: From dfwpm at internetalias.net Wed Jan 1 15:06:54 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Wed, 01 Jan 2014 17:06:54 -0600 Subject: [DFW.pm] Hackathon IRC Channel Message-ID: <52C49F8E.9020803@internetalias.net> The IRC channel for our group and for the hackathon is #dfwpm on perl.irc.org Please join us. --Tommy Butler -------------- next part -------------- An HTML attachment was scrubbed... URL: From yanick at babyl.dyndns.org Wed Jan 1 16:19:17 2014 From: yanick at babyl.dyndns.org (Yanick Champoux) Date: Wed, 01 Jan 2014 19:19:17 -0500 Subject: [DFW.pm] And now a word from our sponsor (really!) In-Reply-To: <52C48746.4090001@internetalias.net> References: <52C48746.4090001@internetalias.net> Message-ID: <52C4B085.9080704@babyl.dyndns.org> On 14-01-01 04:23 PM, Tommy Butler wrote: > I'd like to thank The Perl Shop for sponsoring our hackathon competition. That's awfully nice of them. Thanks, Perl Shop! :-) Joy, `/anick From tmetro+dfw-pm at gmail.com Wed Jan 1 17:53:56 2014 From: tmetro+dfw-pm at gmail.com (Tom Metro) Date: Wed, 01 Jan 2014 20:53:56 -0500 Subject: [DFW.pm] And now a word from our sponsor (really!) In-Reply-To: <52C4B085.9080704@babyl.dyndns.org> References: <52C48746.4090001@internetalias.net> <52C4B085.9080704@babyl.dyndns.org> Message-ID: <52C4C6B4.4000906@gmail.com> Yanick Champoux wrote: > Tommy Butler wrote: >> I'd like to thank The Perl Shop for sponsoring our hackathon competition. > > That's awfully nice of them. Thanks, Perl Shop! :-) You're most welcome. We're happy to assist with events like this that help raise the stature and awareness of Perl. We're just playing a small part. The real credit goes to Tommy and John for conceiving of the contest, doing most of the work to execute it, and providing the server and venue. I'm looking forward to the competition. -Tom -- Tom Metro The Perl Shop, Newton, MA, USA "Predictable On-demand Perl Consulting." http://www.theperlshop.com/ From dfwpm at internetalias.net Wed Jan 1 22:42:13 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Thu, 02 Jan 2014 00:42:13 -0600 Subject: [DFW.pm] hackathon - example code updates Message-ID: <52C50A45.6070804@internetalias.net> If you are using the example code on github as a basis for your own deduper (which is fine), please make sure you pull down the changes from today. It's literally hundreds of times faster than it was before--the normal as well as the multithreaded version. The current state of the code is as much as I'll optimize it. No further changes to it will happen to it other than bug fixes. The rest... is up to you. Happy new year to all. --Tommy Butler -------------- next part -------------- An HTML attachment was scrubbed... URL: From dfwpm at internetalias.net Thu Jan 2 10:37:05 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Thu, 02 Jan 2014 12:37:05 -0600 Subject: [DFW.pm] Hackathon Server Usage Guidelines Message-ID: <52C5B1D1.2080003@internetalias.net> If you're using the server, please join our IRC channel #dfwpm on irc.perl.org As the contest nears, more and more people are using the server *at the same time.* This makes it difficult to really prove and benchmark your code because other people are pushing the server already. If you join IRC we can do cooperative runs where *everyone takes turns*. --Tommy Butler -------------- next part -------------- An HTML attachment was scrubbed... URL: From dfwpm at internetalias.net Thu Jan 2 11:14:31 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Thu, 02 Jan 2014 13:14:31 -0600 Subject: [DFW.pm] We've had a slight malfunction Message-ID: <52C5BA97.8090908@internetalias.net> It turns out that the "baseline" proof-of-concept code that I pushed to github yesterday is capable of doing a full run against the /dedup volume in less than 2 seconds. That doesn't make for much of a contest... So I spoke with another judge last night and decided to create a new volume of data to test against. The new volume is called /dedup-more and it is much less easy to run against. It's random data comes from the linux kernel, wikipedia, the perl source code, music files, video files, maildir files, cache files of all kinds, several git repos, and several other sources. Random data was generated throughout the tree as well, and it has been peppered with hard and soft links. With /dedup-more we've got something like 1 million files instead of 24 thousand... and many of the files are small files. This is more close to a real world scenario than completely random data. In the interest of time, the final data volume for the actual contest does not have this many files. However /dedup-more should give you a better opportunity to accurately benchmark your own code. As previously stated, please join the #dfwpm IRC channel on irc.perl.org if you are going to be running code, so we don't step on each other's toes. --Tommy Butler -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmetro+dfw-pm at gmail.com Fri Jan 3 15:55:39 2014 From: tmetro+dfw-pm at gmail.com (Tom Metro) Date: Fri, 03 Jan 2014 18:55:39 -0500 Subject: [DFW.pm] Hackathon award categories Message-ID: <52C74DFB.8020201@gmail.com> I was concerned that some contestants might not be aware that there are categories you can win for other than speed. They're mentioned in the slide presentation, but to increase their visibility, I'll list them here. First, we have several that can be objectively measured: -Lowest memory use (see other posting) -Best Perl::Crtic score % do-perl-critic.pl file.pl 3 total violations (do-perl-critic.pl is installed on the contest server, or available at https://github.com/tommybutler/dupfind/blob/master/do-perl-critic.pl) -Fewest lines of code (as output by cloc; max length 80 chars per line) % cloc file.pl ---------------------------------------------------------------------- Language files blank comment code ---------------------------------------------------------------------- Perl 1 177 14 415 ---------------------------------------------------------------------- In this case you'd report 415 as your LOC score. (cloc is installed on the contest server, or available at http://cloc.sourceforge.net) A few that will be up to the judges: -Best documentation -Most features (that the judges deem useful) -Best effort (most published (non-trivial) commits, as reported by github; obviously you must use and publish to github to compete in this category) And everyone who creates a packaged, reusable application will get a certificate acknowledging that. (Packaging can use Dist::Zilla or similar, and should include documentation, test suite, and be easy to install.) To qualify for any of these, your code still has to produce output that matches the reference design (in other words, your code needs to work), and it should take less than 30 minutes to run, but other than that, execution speed won't be a factor in the above categories. -Tom -- Tom Metro The Perl Shop, Newton, MA, USA "Predictable On-demand Perl Consulting." http://www.theperlshop.com/ From tmetro+dfw-pm at gmail.com Fri Jan 3 17:38:18 2014 From: tmetro+dfw-pm at gmail.com (Tom Metro) Date: Fri, 03 Jan 2014 20:38:18 -0500 Subject: [DFW.pm] [draft] Hackathon: least memory use category Message-ID: <52C7660A.6010901@gmail.com> Being fast isn't everything. What if you're running on a Raspberry Pi, router, or other memory constrained system? Getting done fast is less important that just getting done without running out of memory. Given this, if you think you can excel at creating a memory efficient design, enter the "least memory use" category. Memory use will be measured using: % valgrind --tool=massif --pages-as-heap=yes \ --massif-out-file=massif.out [your-program] % cat massif.out | grep mem_heap_B \ | sed -e 's/mem_heap_B=\(.*\)/\1/' | sort -g | tail -n 1 (That was found to correlate with the numbers reported by 'ps' for a sample program that allocated a chunk of memory and then slept for a while, giving ample time to sample the process stats.) Just to avoid extreme optimizations and having the judges wait around all day for runs to complete, a maximum run time of 30 minutes will be imposed. The memory use measurement will be taken separately from the speed measurements, so the performance impact of the memory profiler wont adversely impact your run times. Given that this category requires a separate run, you should declare your desire to compete in this category, and report what you believe your memory use to be when processing /dedup-more. It should be less than the reference design uses, which currently is 333 MB. -Tom -- Tom Metro The Perl Shop, Newton, MA, USA "Predictable On-demand Perl Consulting." http://www.theperlshop.com/ From dfwpm at internetalias.net Fri Jan 3 18:07:30 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Fri, 03 Jan 2014 20:07:30 -0600 Subject: [DFW.pm] [draft] Hackathon pre-contest leaderboard In-Reply-To: <52C767D1.1020306@gmail.com> References: <52C767D1.1020306@gmail.com> Message-ID: <52C76CE2.5050808@internetalias.net> I'd just add that folks should remember that they are posting numbers for their deduper against the /dedup-more volume. This is due to reasons covered in a previous list posting wherein it was discussed that (unexpectedly) the /dedup volume is very easy to dedup if you've optimized a little... in just a couple of seconds to be exact. So in summary, please submit your scores for runs against /dedup-more. A call for submissions will come very soon (I'm thinking Monday). We can't judge the contest in real time knowing that some of these entries are going to take a while to run, and knowing that watching progress bars doesn't make for fun online streaming. We'd rather use that time to talk about which few entries turned out to be the fastest and simply demo only them, giving us enough time allowance at the end of the meeting for open discussion and recognition of winners in all other categories. Please get that code ready! Time is running out! Reminder: the reference code is here , which you are still free to fork and use as a starting point. --Tommy Butler On 01/03/2014 07:45 PM, Tom Metro wrote: > For those of you ultra competitive types, we've set up a pre-contest > leaderboard (score board) so you can see how you score against the > competition. > How to report your score: post your score in #dfwpm-scores on IRC (that > way other developers in the main room who don't want to be distracted by > the scores won't see them) and Tommy or I will update the leaderboard. > > Reporting format should be like: > > runtime: 159.134 (seconds and fractional seconds) > memory: 3234123 (bytes) > loc: 256 (lines of code) > critic: 2 (Perl::Critic score) > > Omit values if they haven't changed since you last reported scores, or > for attributes you don't plan to compete on. > > > A different leaderboard will be used on competition day to hold the > results measured by the judges. > > -Tom > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmetro+dfw-pm at gmail.com Fri Jan 3 19:54:57 2014 From: tmetro+dfw-pm at gmail.com (Tom Metro) Date: Fri, 03 Jan 2014 22:54:57 -0500 Subject: [DFW.pm] Hackathon pre-contest leaderboard Message-ID: <52C78611.7070500@gmail.com> For those of you ultra competitive types, we've set up a pre-contest leaderboard (score board) so you can see how you score against the competition. The thought is that if you wait until competition day to find out how you compared, that feedback will arrive too late for you to put in further refinements. Knowing where you stand now at least gives you some time to push the envelope further. The leaderboard isn't just for speed daemons. It also tracks scores for memory use, lines of code, and Perl::Critic score. (Details on how you can measure each of these is in another posting.) You can view the leaderboard at: http://dfw.pm.org/ (After you've viewed this once, you may find it necessary to do a shift-reload to get the latest results. The embedded data from a Google Spreadsheet tends to stick around in browser caches.) On the other hand, if you're in the contest purely for the fun of it, then by all means no need to view or submit scores to the leaderboard. We don't want to discourage anyone from participating. Reporting is on the honor system and for the benefit of your fellow contestants. How to report your score: post your score in #dfwpm-scores on IRC (that way other developers in the main room who don't want to be distracted by the scores won't see them) and Tommy or I will update the leaderboard. Reporting format should be like: runtime: 159.134 (seconds and fractional seconds) memory: 3234123 (bytes) loc: 256 (lines of code) critic: 2 (Perl::Critic score) Omit values if they haven't changed since you last reported scores, or for attributes you don't plan to compete on. A different leaderboard will be used on competition day to hold the results measured by the judges. -Tom -- Tom Metro The Perl Shop, Newton, MA, USA "Predictable On-demand Perl Consulting." http://www.theperlshop.com/ From dfwpm at internetalias.net Sat Jan 4 10:45:54 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Sat, 04 Jan 2014 12:45:54 -0600 Subject: [DFW.pm] Call For Prerequisites Message-ID: <52C856E2.9090104@internetalias.net> Please send me the list of the system and CPAN prerequisites for your code. I need this today please. Tomorrow at the latest. Your promptness is appreciated! Yours Perlfully, --Tommy Butler -------------- next part -------------- An HTML attachment was scrubbed... URL: From yanick at babyl.dyndns.org Sat Jan 4 11:09:39 2014 From: yanick at babyl.dyndns.org (Yanick Champoux) Date: Sat, 04 Jan 2014 14:09:39 -0500 Subject: [DFW.pm] Call For Prerequisites In-Reply-To: <52C856E2.9090104@internetalias.net> References: <52C856E2.9090104@internetalias.net> Message-ID: <52C85C73.1000205@babyl.dyndns.org> On 14-01-04 01:45 PM, Tommy Butler wrote: > Please send me the list of the system and CPAN prerequisites for your > code. I need this today please. Tomorrow at the latest. Your > promptness is appreciated! There you go, in a nice little cpanfile format: https://github.com/yanick/dfw-contest/blob/master/cpanfile Joy, `/anick From yanick at babyl.dyndns.org Sat Jan 4 11:12:31 2014 From: yanick at babyl.dyndns.org (Yanick Champoux) Date: Sat, 04 Jan 2014 14:12:31 -0500 Subject: [DFW.pm] Call For Prerequisites In-Reply-To: <52C85C73.1000205@babyl.dyndns.org> References: <52C856E2.9090104@internetalias.net> <52C85C73.1000205@babyl.dyndns.org> Message-ID: <52C85D1F.1080604@babyl.dyndns.org> On 14-01-04 02:09 PM, Yanick Champoux wrote: > There you go, in a nice little cpanfile format: > https://github.com/yanick/dfw-contest/blob/master/cpanfile Oh, hi there, mailing list! ... I... totally meant to forward that to everyone. ... Yes. I... aaaah, definitively did. ... *hangs head low in shame, again*, `/anick From bruce.gray at acm.org Sat Jan 4 11:36:03 2014 From: bruce.gray at acm.org (Bruce Gray) Date: Sat, 4 Jan 2014 13:36:03 -0600 Subject: [DFW.pm] But what about Perl 6? In-Reply-To: <52BD0138.7070403@internetalias.net> References: <52BCF2F3.801@internetalias.net> <52BD0138.7070403@internetalias.net> Message-ID: <066EF9E4-0E41-42FD-A894-46AB7FABB0AE@acm.org> On Dec 26, 2013, at 10:25 PM, Tommy Butler wrote: > Do you want a custom-compiled Rakudo, or is the current stable release (according to the Debian Rakudo Maintainers) ok with you? It's version 0.1~2012.01-1 The bare ?Rakudo? 2012.01 release will not be very useful. The "Rakudo Star? package includes modules that anyone would need for this contest (e.g. Digest::MD5 and File::Find). The latest is 2013.12. These steps (retrieve+build+install) completed in <15 minutes on my laptop: curl -O http://rakudo.org/downloads/star/rakudo-star-2013.12.tar.gz tar xf rakudo-star-2013.12.tar.gz cd rakudo-star-2013.12 perl Configure.pl --prefix=/usr/local/rakudo --gen-parrot &> conf.log make &> make.log make install &> inst.log /usr/local/rakudo/bin/perl6 -e 'say "It works!"' Of course, replace /usr/local/rakudo with your choice of location. ? Thank you, Bruce Gray -------------- next part -------------- An HTML attachment was scrubbed... URL: From dfwpm at internetalias.net Sat Jan 4 11:43:02 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Sat, 04 Jan 2014 13:43:02 -0600 Subject: [DFW.pm] But what about Perl 6? In-Reply-To: <066EF9E4-0E41-42FD-A894-46AB7FABB0AE@acm.org> References: <52BCF2F3.801@internetalias.net> <52BD0138.7070403@internetalias.net> <066EF9E4-0E41-42FD-A894-46AB7FABB0AE@acm.org> Message-ID: <52C86446.4050903@internetalias.net> I'll certainly build it for you, Bruce. Anyone using Perl 6 gets the red carpet treatment. My hat is off to you. --Tommy Butler On 01/04/2014 01:36 PM, Bruce Gray wrote: > These steps (retrieve+build+install) completed in <15 minutes on my > laptop: -------------- next part -------------- An HTML attachment was scrubbed... URL: From dfwpm at internetalias.net Sat Jan 4 15:25:13 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Sat, 04 Jan 2014 17:25:13 -0600 Subject: [DFW.pm] But what about Perl 6? In-Reply-To: <52C86446.4050903@internetalias.net> References: <52BCF2F3.801@internetalias.net> <52BD0138.7070403@internetalias.net> <066EF9E4-0E41-42FD-A894-46AB7FABB0AE@acm.org> <52C86446.4050903@internetalias.net> Message-ID: <52C89859.30301@internetalias.net> Bruce, other Perl6'ers: Rakudo Star has been installed following the build instructions you specified. (It's in the location you indicated). Please test 'er out and let us know if it's working correctly. --Tommy Butler On 01/04/2014 01:43 PM, Tommy Butler wrote: > I'll certainly build it for you, Bruce. Anyone using Perl 6 gets the > red carpet treatment. My hat is off to you. > > --Tommy Butler > > On 01/04/2014 01:36 PM, Bruce Gray wrote: >> These steps (retrieve+build+install) completed in <15 minutes on my >> laptop: -------------- next part -------------- An HTML attachment was scrubbed... URL: From dfwpm at internetalias.net Sat Jan 4 15:54:45 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Sat, 04 Jan 2014 17:54:45 -0600 Subject: [DFW.pm] Hackathon - Call For Code Submissions! Message-ID: <52C89F45.9000901@internetalias.net> It's almost time. Please have your code submitted to < dfwpm at internetalias dotnet > for review and performance testing by Monday night at 9 PM CST. Please also indicate the categories in which you desire to compete. If you'd like to get on the pre-competition leaderboard at dfw.pm.org, please send us your info by following the steps from Tom Metro's message to the list last night. --Tommy Butler -------------- next part -------------- An HTML attachment was scrubbed... URL: From dfwpm at internetalias.net Sun Jan 5 10:51:59 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Sun, 05 Jan 2014 12:51:59 -0600 Subject: [DFW.pm] Concurrency not helping? Maybe you're doing it wrong Message-ID: <52C9A9CF.5080308@internetalias.net> Just for fun, I thought I'd post this to the list. It's a discussion on perlmonks about why the reference code (threaded version) doesn't seem to have large gains over the non-threaded version. If you are also using concurrency in your hackathon code to try to speed things up, it could be a matter of either or both of: you don't need it (really you may not), or you're doing it wrong. http://perlmonks.org/?node_id=1069338 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: wrong01.jpg Type: image/jpeg Size: 31473 bytes Desc: not available URL: From jacklupton at gmail.com Sun Jan 5 15:12:29 2014 From: jacklupton at gmail.com (Jack Lupton) Date: Sun, 5 Jan 2014 17:12:29 -0600 Subject: [DFW.pm] Concurrency not helping? Maybe you're doing it wrong In-Reply-To: <52C9A9CF.5080308@internetalias.net> References: <52C9A9CF.5080308@internetalias.net> Message-ID: Nice! Gotta love the Monastery. On Sun, Jan 5, 2014 at 12:51 PM, Tommy Butler wrote: > Just for fun, I thought I'd post this to the list. It's a discussion on > perlmonks about why the reference code (threaded version) doesn't seem to > have large gains over the non-threaded version. If you are also using > concurrency in your hackathon code to try to speed things up, it could be a > matter of either or both of: you don't need it (really you may not), or > you're doing it wrong. > > http://perlmonks.org/?node_id=1069338 > > > > > _______________________________________________ > Dfw-pm mailing list > Dfw-pm at pm.org > http://mail.pm.org/mailman/listinfo/dfw-pm > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmetro+dfw-pm at gmail.com Sun Jan 5 15:26:36 2014 From: tmetro+dfw-pm at gmail.com (Tom Metro) Date: Sun, 05 Jan 2014 18:26:36 -0500 Subject: [DFW.pm] Hackathon: architecture description Message-ID: <52C9EA2C.9070301@gmail.com> As your contest entries will be reviewed by the judges, and in some cases discussed at a Perl Mongers meeting, it would be appreciated (but not required) that you include a high-level description of your architecture. Either as a separate file (Architecture.pod?) or part of the POD in your main code file. It doesn't have to be much. Take for example the architecture summary Tommy wrote for the reference design in his Perl Monks posting (http://perlmonks.org/?node_id=1069338): 1. Traverses the filesystem. 2. Groups same-size files, tossing out the rest. (This is not threaded.) 3. Takes each group and reads the first few bytes each file, creating sub-groups based on the bytes read. Then it removes sub-groups with a single element, thereby "throwing out" the non-similar files from the parent group. 4. Makes a second pass at the above, but at the end of the file (the efficiency of this second pass is debatable but shows good results). 5. Adds up the final N number of files to be processed in a :shared variable. 6. Creates thread pool with worker threads and shoves 30 files at a time into their queues and waits until the threads have incremented the number of files they've processed to equal N -The threads digest the files in their queues in their entirety (this is bad?) 7. Main thread signals to the threads that they are done by ending their queues and finally joins them. It should cover the major steps your codes takes to solve the problem, the order in which it does them, and in particular, highlight any spots where you feel you are doing something atypical, like using parallel processing. -Tom -- Tom Metro The Perl Shop, Newton, MA, USA "Predictable On-demand Perl Consulting." http://www.theperlshop.com/ From bruce.gray at acm.org Mon Jan 6 14:22:17 2014 From: bruce.gray at acm.org (Bruce Gray) Date: Mon, 6 Jan 2014 16:22:17 -0600 Subject: [DFW.pm] But what about Perl 6? In-Reply-To: <52C89859.30301@internetalias.net> References: <52BCF2F3.801@internetalias.net> <52BD0138.7070403@internetalias.net> <066EF9E4-0E41-42FD-A894-46AB7FABB0AE@acm.org> <52C86446.4050903@internetalias.net> <52C89859.30301@internetalias.net> Message-ID: <120876E5-77A1-4A2A-ADCC-E52B7849CE8A@acm.org> Tommy, It is not working correctly. Parrot has been installed into /usr/local/rakudo/ , but no pieces of Rakudo itself are there. I would expect to see this (Parrot w/o Rakudo) if the steps I gave you were run though the `perl Configure.pl ?` step, and then stopped. When building Rakudo, the Configure step actually builds and installs Parrot in preparation for building Rakudo. Also, the Make step *installs* Rakudo to a temp subdirectory. Only the `make install` step actually copies the last pieces of Rakudo into their permanent location. That is why I gave this as the final step: /usr/local/rakudo/bin/perl6 -e 'say "It works!?? , because it eliminates the possibility of invoking `perl6` from the temporary location. Did /usr/local/rakudo/bin/perl6 -e 'say "It works!?? print ?It works!? when you ran it? I apologize for the delay in testing it as you requested. FWIW, my Perl 6 code is meant to be illustrative of how clearly and concisely a solution can be coded; it will win no speed contest. So, unless others are submitting Perl 6 code, fixing the Rakudo installation need not be a priority for tonight?s contest. ? Thank you, Bruce Gray (Util of PerlMonks) On Jan 4, 2014, at 5:25 PM, Tommy Butler wrote: > Bruce, other Perl6'ers: > > Rakudo Star has been installed following the build instructions you specified. (It's in the location you indicated). > > Please test 'er out and let us know if it's working correctly. > > --Tommy Butler > > On 01/04/2014 01:43 PM, Tommy Butler wrote: >> I'll certainly build it for you, Bruce. Anyone using Perl 6 gets the red carpet treatment. My hat is off to you. >> >> --Tommy Butler >> >> On 01/04/2014 01:36 PM, Bruce Gray wrote: >>> These steps (retrieve+build+install) completed in <15 minutes on my laptop: > _______________________________________________ > Dfw-pm mailing list > Dfw-pm at pm.org > http://mail.pm.org/mailman/listinfo/dfw-pm -------------- next part -------------- An HTML attachment was scrubbed... URL: From dfwpm at internetalias.net Mon Jan 6 15:15:23 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Mon, 06 Jan 2014 17:15:23 -0600 Subject: [DFW.pm] But what about Perl 6? In-Reply-To: <120876E5-77A1-4A2A-ADCC-E52B7849CE8A@acm.org> References: <52BCF2F3.801@internetalias.net> <52BD0138.7070403@internetalias.net> <066EF9E4-0E41-42FD-A894-46AB7FABB0AE@acm.org> <52C86446.4050903@internetalias.net> <52C89859.30301@internetalias.net> <120876E5-77A1-4A2A-ADCC-E52B7849CE8A@acm.org> Message-ID: <52CB390B.60104@internetalias.net> Hi Bruce. The contest isn't until Wednesday night. Up till that point the judges will be doing proving runs and code review, which is why the call for code submissions was made for this evening in order to give us enough time. We certainly have enough time to fix whatever went wrong with the Perl 6 installation on the server. Could you hop on irc.perl.org and join the #dfwpm channel so we can work it out? Please watch this list for the online meeting invite. We will be streaming live over the internet via Google Hangouts and YouTube and hope you will be part of the online meeting so you can discuss your Perl 6 work. You'll need a working microphone and speakers (webcam optional). --Tommy Butler On 01/06/2014 04:22 PM, Bruce Gray wrote: > Tommy, > > It is not working correctly. > Parrot has been installed into /usr/local/rakudo/ , but no pieces of > Rakudo itself are there. > > I would expect to see this (Parrot w/o Rakudo) if the steps I gave you > were run though the `perl Configure.pl ...` step, and then stopped. > When building Rakudo, the Configure step actually builds and installs > Parrot in preparation for building Rakudo. > Also, the Make step *installs* Rakudo to a temp subdirectory. > Only the `make install` step actually copies the last pieces of Rakudo > into their permanent location. > That is why I gave this as the final step: > /usr/local/rakudo/bin/perl6 -e 'say "It works!"' > , because it eliminates the possibility of invoking `perl6` from the > temporary location. > > Did > /usr/local/rakudo/bin/perl6 -e 'say "It works!"' > print "It works!" when you ran it? > > I apologize for the delay in testing it as you requested. > FWIW, my Perl 6 code is meant to be illustrative of how clearly and > concisely a solution can be coded; it will win no speed contest. > So, unless others are submitting Perl 6 code, fixing the Rakudo > installation need not be a priority for tonight's contest. > > --- > Thank you, > Bruce Gray (Util of PerlMonks) > > On Jan 4, 2014, at 5:25 PM, Tommy Butler > wrote: > >> Bruce, other Perl6'ers: >> >> Rakudo Star has been installed following the build instructions you >> specified. (It's in the location you indicated). >> >> Please test 'er out and let us know if it's working correctly. >> >> --Tommy Butler >> >> On 01/04/2014 01:43 PM, Tommy Butler wrote: >>> I'll certainly build it for you, Bruce. Anyone using Perl 6 gets >>> the red carpet treatment. My hat is off to you. >>> >>> --Tommy Butler >>> >>> On 01/04/2014 01:36 PM, Bruce Gray wrote: >>>> These steps (retrieve+build+install) completed in <15 minutes on my >>>> laptop: >> _______________________________________________ >> Dfw-pm mailing list >> Dfw-pm at pm.org >> http://mail.pm.org/mailman/listinfo/dfw-pm > > > > _______________________________________________ > Dfw-pm mailing list > Dfw-pm at pm.org > http://mail.pm.org/mailman/listinfo/dfw-pm -------------- next part -------------- An HTML attachment was scrubbed... URL: From dfwpm at internetalias.net Mon Jan 6 18:33:54 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Mon, 06 Jan 2014 20:33:54 -0600 Subject: [DFW.pm] Hackathon - Send in your code Message-ID: <52CB6792.70109@internetalias.net> It's time ladies and gents. Send in your code submissions if you have not already done so. If it's not finished, send it anyway! It's going to be a fun meeting on Wednesday night! --Tommy Butler -------------- next part -------------- An HTML attachment was scrubbed... URL: From dfwpm at internetalias.net Tue Jan 7 12:41:55 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Tue, 07 Jan 2014 14:41:55 -0600 Subject: [DFW.pm] Hackathon Proving Runs Now Message-ID: <52CC6693.4000000@internetalias.net> NOW The time has come for proving runs. Contestant server access will be terminated shortly to insure fairness during the proving runs. Before every run is performed, the server will be rolled back and all caches purged. DURING If you are competing and would like to be on stand by to help if there is a question about how your code is to be executed, please AFTER If you'd like to continue using the server after the contest for your own development pursuits, I'm happy to offer that, but for now all access will be relinquished. --Tommy Butler -------------- next part -------------- An HTML attachment was scrubbed... URL: From dfwpm at internetalias.net Tue Jan 7 14:24:19 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Tue, 07 Jan 2014 16:24:19 -0600 Subject: [DFW.pm] Hackathon Proving Runs Now In-Reply-To: <52CC6693.4000000@internetalias.net> References: <52CC6693.4000000@internetalias.net> Message-ID: <52CC7E93.8020201@internetalias.net> "If you are competing and would like to be on stand by to help if there is a question about how your code is to be executed, please " ...join us on IRC (irc.perl.org #dfwpm) --Tommy Butler On 01/07/2014 02:41 PM, Tommy Butler wrote: > > > NOW > > The time has come for proving runs. Contestant server access will be > terminated shortly to insure fairness during the proving runs. Before > every run is performed, the server will be rolled back and all caches > purged. > > > DURING > > If you are competing and would like to be on stand by to help if there > is a question about how your code is to be executed, please > > > AFTER > > If you'd like to continue using the server after the contest for your > own development pursuits, I'm happy to offer that, but for now all > access will be relinquished. > > --Tommy Butler -------------- next part -------------- An HTML attachment was scrubbed... URL: From noreply-f3605238 at plus.google.com Tue Jan 7 17:50:52 2014 From: noreply-f3605238 at plus.google.com (Tommy Butler (Google+)) Date: Tue, 07 Jan 2014 17:50:52 -0800 (PST) Subject: [DFW.pm] Tommy Butler invited you to DFW Perl Mongers Hackathon Smackdown - Results, Awards, And Code References: Message-ID: Tommy Butler invited you to DFW Perl Mongers Hackathon Smackdown - Results, Awards, And Code Wed, January 8, 7:00 PM CST 2995 Ladybird Lane, Dallas, TX, United States Tom Metro, Ian Davis, John Fields and 6 more are invited View Invitation: https://plus.google.com/_/notifications/ngemlink?&emid=COiJ1si77bsCFYgTQgodmF4AAA&path=%2Fevents%2Fcdg05ncric0f6f53n0kf0gnqr6g%3Fgpinv%3DAMIXal82x6J67K7SBYQL1Fsk39ntHNxRxM29xDeSVFuFKLKNHufZL1pPmZHcvt8fATsLUJq8LFlnqk2V1zPa4PuMYL9ShtTa_tAK_3NdcGD1llM3M5LR4Pg%26gpsrc%3Dgpev0&dt=1389145852935&uob=14 Live Streaming Event 7pm CST - Watch Online or attend at Dallas Makerspace (location provided). ?In this meeting we will discuss the results of the DFW Winter 2013 Deduplication Hackathon, ?have code review by the authors, recognition of winners, and presentation of awards. ?Join us on IRC as well in #dfwpm ?on irc.perl.org #Perl ? #Hackathon ? This notification was sent to dfw-pm at pm.org; Go to your notification delivery settings to update your address: https://plus.google.com/_/notifications/ngemlink?&emid=COiJ1si77bsCFYgTQgodmF4AAA&path=%2Fsettings%2Fplus&dt=1389145852935&uob=14 Manage subscriptions to change what emails you receive from Google+: https://plus.google.com/_/notifications/ngemlink?&emid=COiJ1si77bsCFYgTQgodmF4AAA&path=%2Fsettings%2Fplus&dt=1389145852935&uob=14 Google Inc., 1600 Amphitheatre Pkwy, Mountain View, CA 94043 USA -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmetro+dfw-pm at gmail.com Tue Jan 7 21:52:24 2014 From: tmetro+dfw-pm at gmail.com (Tom Metro) Date: Wed, 08 Jan 2014 00:52:24 -0500 Subject: [DFW.pm] [Discuss] Small website, non-technical users: Joomla, Drupal, or WordPress? (Solved) In-Reply-To: <20140008035433.50335.jc@trillian.mit.edu> References: 52CC91E1.8060202@horne.net, <52CB82E1.5030005@horne.net> <20140008035433.50335.jc@trillian.mit.edu> Message-ID: <52CCE798.6010707@gmail.com> jc at trillian.mit.edu wrote: > I had a similar case recently. I've helped a few nonprofits build web > sites, and several have started off looking into Drupal, Joomla, etc. > After a month or so of this, with nothing working, I've combined a > few scripts that I've collected or written anew with a few of their > designs for the pages they want, and in a week or two they were > happey with the results. > > ...they've looked at HTML manuals, and run terrified from the > incomprehensible technical gobbledy-gook that they saw. HTML is this > horrible stuff that mere mortals don't stand a chance of > understanding, right? > > Then I show them the effect of wrapping them in a simple > ... wrapper, and adding

tags between paragraphs. It funny that back in the days before CMSs we accomplished the two most important features they offer - separating the appearance of a site from the content, and making it user friendly to add/edit content - with some primitive tools that seem to have disappeared. The first objective was accomplished with frames. And then later when frames were shunned, with (Apache) server includes[1]. Server includes didn't gain much traction, as they were quickly eclipsed by PHP, Cold Fusion, ASP, Mason, and other templating languages, that offered much more functionality, but usually at the expense of requiring a programmer or "web designer." The other objective was accomplished with GUI HTML editors. For a while there, there were actually some decent competitors to Microsoft Front Page, including a few open source tools[2]. As developers we hated most of these (mostly Front Page) for the ugly HTML they generated, because sooner or later we'd be faced with making modification to the HTML outside the tool. These days the ugliness is still there, being generated by most CMSs, we just don't have occasion to look at it. The CMSs seem to have killed off the market for HTML editors, but it looks like the successor to the Mozilla Composer is still being updated[3]. I don't think there is any significant benefit to having content producers learn HTML, if they can find a suitable HTML editor. I imagine today with the help of CSS and something like server side includes, you could create a pretty functional poor man's CMS, where your non-technical content producer creates a new page by doing something like: 1. create a new directory named after the content title. 2. copy some boilerplate files to the directory, which might include an index.html with the server include directives, and an empty context.html file. (Steps 1 and 2 could be implemented with a shell script.) 3. load the content.html file into their GUI HTML editor and add content. The content then doesn't need to have any presentation markup. Headers, footers, and navigation all come from the server includes, and can be updated site-wide by editing in one place. Content styling comes from the site-wide CSS included by the boilerplate index.html. The user only has to concern themselves with the simple structural markup in content.html. -Tom 1. http://httpd.apache.org/docs/2.2/howto/ssi.html 2. http://en.wikipedia.org/wiki/Nvu 3. http://bluegriffon.org/pages/Download -- Tom Metro The Perl Shop, Newton, MA, USA "Predictable On-demand Perl Consulting." http://www.theperlshop.com/ From tmetro+dfw-pm at gmail.com Tue Jan 7 21:57:48 2014 From: tmetro+dfw-pm at gmail.com (Tom Metro) Date: Wed, 08 Jan 2014 00:57:48 -0500 Subject: [DFW.pm] [Discuss] Small website, non-technical users: Joomla, Drupal, or WordPress? (Solved) In-Reply-To: <52CCE798.6010707@gmail.com> References: 52CC91E1.8060202@horne.net, <52CB82E1.5030005@horne.net> <20140008035433.50335.jc@trillian.mit.edu> <52CCE798.6010707@gmail.com> Message-ID: <52CCE8DC.6070204@gmail.com> Tom Metro wrote: > It funny that back in the days before CMSs... Sorry about that. Wrong list. please ignore. (Sometimes it doesn't pay to be too reliant on Thunderbird extensions to set the list-specific reply headers correctly.) -Tom -- Tom Metro The Perl Shop, Newton, MA, USA "Predictable On-demand Perl Consulting." http://www.theperlshop.com/ From wigthft at gmail.com Tue Jan 7 22:01:52 2014 From: wigthft at gmail.com (John Fields) Date: Wed, 08 Jan 2014 00:01:52 -0600 Subject: [DFW.pm] [Discuss] Small website, non-technical users: Joomla, Drupal, or WordPress? (Solved) In-Reply-To: <52CCE8DC.6070204@gmail.com> References: 52CC91E1.8060202@horne.net, <52CB82E1.5030005@horne.net> <20140008035433.50335.jc@trillian.mit.edu> <52CCE798.6010707@gmail.com> <52CCE8DC.6070204@gmail.com> Message-ID: <52CCE9D0.8060902@gmail.com> Haha. No worries. But if he is stuck in PHP, check out SilverStripe? VERY GUI and perfect for leaving with non-tech users. JF On 01/07/2014 11:57 PM, Tom Metro wrote: > Tom Metro wrote: >> It funny that back in the days before CMSs... > Sorry about that. Wrong list. please ignore. > > (Sometimes it doesn't pay to be too reliant on Thunderbird extensions to > set the list-specific reply headers correctly.) > > -Tom > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dfwpm at internetalias.net Wed Jan 8 14:58:30 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Wed, 08 Jan 2014 16:58:30 -0600 Subject: [DFW.pm] Meeting Announcement - HACKATHON RESULTS TONIGHT AT 7! Message-ID: <52CDD816.90405@internetalias.net> Live Streaming Event 7pm CST - Watch Online https://plus.google.com/events/crhv075mh20epuesqh853sqee00 ...or attend at Dallas Makerspace (location provided below). In this meeting we will discuss the results of the DFW Winter 2013 Deduplication Hackathon, have code review by the authors, recognition of winners, and presentation of awards. Join us on IRC as well in #dfwpm on irc.perl.org Location Info: 2995 Ladybird Lane, Dallas, TX www.dallasmakerspace.org (214) 699-6537 See you at 7 PM! --Tommy Butler -------------- next part -------------- An HTML attachment was scrubbed... URL: From dfwpm at internetalias.net Wed Jan 8 15:45:51 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Wed, 08 Jan 2014 17:45:51 -0600 Subject: [DFW.pm] Meeting Announcement - HACKATHON RESULTS TONIGHT AT 7! In-Reply-To: <52CDD816.90405@internetalias.net> References: <52CDD816.90405@internetalias.net> Message-ID: <52CDE32F.6040000@internetalias.net> *Contestants please send me your google ID's so I can invite you to the hangout on air.** ** **--Tommy Butler* On 01/08/2014 04:58 PM, Tommy Butler wrote: > Live Streaming Event 7pm CST - Watch Online > https://plus.google.com/events/crhv075mh20epuesqh853sqee00 > > ...or attend at Dallas Makerspace (location provided below). > > In this meeting we will discuss the results of the DFW Winter 2013 > Deduplication Hackathon, have code review by the authors, recognition > of winners, and presentation of awards. Join us on IRC as well in > #dfwpm on irc.perl.org > > Location Info: > > 2995 Ladybird Lane, Dallas, TX > www.dallasmakerspace.org > (214) 699-6537 > > See you at 7 PM! > > --Tommy Butler -------------- next part -------------- An HTML attachment was scrubbed... URL: From dfwpm at internetalias.net Wed Jan 8 21:07:43 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Wed, 08 Jan 2014 23:07:43 -0600 Subject: [DFW.pm] youtube link for tonight's meeting Message-ID: <52CE2E9F.7020309@internetalias.net> You can watch tonight's meeting online at youtube: https://www.youtube.com/watch?v=HvqqRFGMZS0 --Tommy Butler -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.dexter at psydefect.com Thu Jan 9 15:11:36 2014 From: john.dexter at psydefect.com (John Dexter) Date: Thu, 9 Jan 2014 17:11:36 -0600 Subject: [DFW.pm] Hackathon Proving Runs Now In-Reply-To: <52CC7E93.8020201@internetalias.net> References: <52CC6693.4000000@internetalias.net> <52CC7E93.8020201@internetalias.net> Message-ID: Tommy, Would it be possible to get links to all of the github repos for the hackathon entries? There was some interesting code presented during the meeting last night that I'd like to take a closer look at. Sincerely, John Dexter On Tue, Jan 7, 2014 at 4:24 PM, Tommy Butler wrote: > " > If you are competing and would like to be on stand by to help if there is > a question about how your code is to be executed, please " > > ...join us on IRC (irc.perl.org #dfwpm) > > --Tommy Butler > > On 01/07/2014 02:41 PM, Tommy Butler wrote: > > NOW The time has come for proving runs. Contestant server access will be > terminated shortly to insure fairness during the proving runs. Before > every run is performed, the server will be rolled back and all caches > purged. > DURING If you are competing and would like to be on stand by to help if > there is a question about how your code is to be executed, please > AFTER If you'd like to continue using the server after the contest for > your own development pursuits, I'm happy to offer that, but for now all > access will be relinquished. > > --Tommy Butler > > > > _______________________________________________ > Dfw-pm mailing list > Dfw-pm at pm.org > http://mail.pm.org/mailman/listinfo/dfw-pm > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dfwpm at internetalias.net Thu Jan 9 15:47:24 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Thu, 09 Jan 2014 17:47:24 -0600 Subject: [DFW.pm] Hackathon Proving Runs Now In-Reply-To: References: <52CC6693.4000000@internetalias.net> <52CC7E93.8020201@internetalias.net> Message-ID: <52CF350C.3080109@internetalias.net> How's this? Innovative Modules Contestant Repository Framework Bruce Gray (Perl 6) /home/bruce.gray Perl 6 none Joakim Lagerqvist tarball Moose File::Compare Joel Berger https://github.com/jberger/DeDuperizer Classic Procedural File::Map reference code https://github.com/tommybutler/dupfind Classic Procedural none =) Reini Urban https://github.com/rurban/App-finddups-bloom Classic OO Bloom::Faster Tim King https://github.com/JTimothyKing/Data-Dedup MOP signatures Tommy Butler (unofficial) https://github.com/tommyprivate/dupfind Moose Threaded Map Reduce Yanick Champoux https://github.com/yanick/dfw-contest Moose MooseX::App::Simple Contestant Run time (S) Memory (MB) Lines of Code Perl::Critic score Yanick Champoux 234.223 292.738 266 123 Tommy Butler (unofficial) 274.402 1,800.387 814 474 reference code 312.383 457.000 502 239 Tim King 321.000 522.000 763 841 Joakim Lagerqvist 419.647 187.816 1149 2 Reini Urban 433.877 0.010 150 165 Joel Berger 539.155 129.707 131 104 Bruce Gray (Perl 6) > 30 min N/A 6 N/A --Tommy Butler On 01/09/2014 05:11 PM, John Dexter wrote: > Tommy, > > Would it be possible to get links to all of the github repos for the > hackathon entries? There was some interesting code presented during > the meeting last night that I'd like to take a closer look at. > > Sincerely, > > John Dexter > > > On Tue, Jan 7, 2014 at 4:24 PM, Tommy Butler > wrote: > > " > If you are competing and would like to be on stand by to help if > there is a question about how your code is to be executed, please " > > ...join us on IRC (irc.perl.org #dfwpm) > > --Tommy Butler > > On 01/07/2014 02:41 PM, Tommy Butler wrote: >> >> >> NOW >> >> The time has come for proving runs. Contestant server access >> will be terminated shortly to insure fairness during the proving >> runs. Before every run is performed, the server will be rolled >> back and all caches purged. >> >> >> DURING >> >> If you are competing and would like to be on stand by to help if >> there is a question about how your code is to be executed, please >> >> >> AFTER >> >> If you'd like to continue using the server after the contest for >> your own development pursuits, I'm happy to offer that, but for >> now all access will be relinquished. >> >> --Tommy Butler > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmetro+dfw-pm at gmail.com Thu Jan 9 15:49:43 2014 From: tmetro+dfw-pm at gmail.com (Tom Metro) Date: Thu, 09 Jan 2014 18:49:43 -0500 Subject: [DFW.pm] Hackathon Proving Runs Now In-Reply-To: References: <52CC6693.4000000@internetalias.net> <52CC7E93.8020201@internetalias.net> Message-ID: <52CF3597.20601@gmail.com> John Dexter wrote: > Would it be possible to get links to all of the github repos... The info is in the leaderboard spreadsheet, which is public, but may not be easy to find. Here's what we have (IRC handle in parentheses): Tim King (TimK) https://github.com/JTimothyKing/Data-Dedup Reini Urban (rurban) https://github.com/rurban/App-finddups-bloom Joel Berger (jberger) https://github.com/jberger/DeDuperizer Yanick Champoux (yanick) https://github.com/yanick/dfw-contest/blob/master/dedup.pl (I hope I'm assuming correctly that these authors don't mind these links being shared publicly, given they published them in public repositories.) Joakim Lagerqvist (Jokke) and Bruce Gray (Util) submitted code directly, rather than providing a URL to a repository. -Tom -- Tom Metro The Perl Shop, Newton, MA, USA "Predictable On-demand Perl Consulting." http://www.theperlshop.com/ From joakim.lagerqvist at gmail.com Thu Jan 9 22:58:35 2014 From: joakim.lagerqvist at gmail.com (Joakim Lagerqvist) Date: Fri, 10 Jan 2014 17:58:35 +1100 Subject: [DFW.pm] Hackathon Proving Runs Now In-Reply-To: <52CF3597.20601@gmail.com> References: <52CC6693.4000000@internetalias.net> <52CC7E93.8020201@internetalias.net> <52CF3597.20601@gmail.com> Message-ID: Joakim Lagerqvist (Jokke) and Bruce Gray (Util) submitted code directly, > rather than providing a URL to a repository. > My code is also here: https://github.com/jokke/Dedup-Hackaton Cheers, Jokke -------------- next part -------------- An HTML attachment was scrubbed... URL: From kbrannen at pwhome.com Fri Jan 10 00:15:01 2014 From: kbrannen at pwhome.com (kevin) Date: Fri, 10 Jan 2014 02:15:01 -0600 Subject: [DFW.pm] Concurrency not helping? Maybe you're doing it wrong In-Reply-To: <52C9A9CF.5080308@internetalias.net> References: <52C9A9CF.5080308@internetalias.net> Message-ID: <52CFAC05.4080305@pwhome.com> On 01/05/2014 12:51 PM, Tommy Butler wrote: > Just for fun, I thought I'd post this to the list. It's a discussion on > perlmonks about why the reference code (threaded version) doesn't seem > to have large gains over the non-threaded version. If you are also > using concurrency in your hackathon code to try to speed things up, it > could be a matter of either or both of: you don't need it (really you > may not), or you're doing it wrong. > > http://perlmonks.org/?node_id=1069338 Tommy, Sorry I'm slow, but I read the post and thought I'd give you this example. It's quite probable that you no longer need this as you have everything working, but perhaps it'll help someone. I've been meaning to post this to Perl Monks, but haven't gotten around to it. I remember wanting to do some things with threads some time back and having a devil of a time trying to find a simple example that showed everything I needed to do. So I cobbled this together. I think this has the "architecture" you were looking for, i.e. a parent in control, the children picking up tasks as fast as they could do them, so there's no real gate keeper. As with so many things, picking the right values for your task with number of children & number of items in the input queue is up to you. :) I think it's reasonably well documented, considering it's a test example, which I tend not to document at all, much to my detriment later. ;) It's sort of put together much in the manner I would have written back in the day when I used IPCs in C on a weekly basis. HTH, Kevin ===cut=== #!/usr/bin/perl; # # Example program for threads and queues. # # The parent will create an input queue for work to be done. It will be # a number of tasks ($num_tasks). To do the work, it will create a number # of children ($num_children) to do the work. Because this is a simple # example, we'll just put a set of random numbers in the queue (from # 1 to $task_time) for the children to work on. By convention, they know # to sleep that number of seconds then consider the work done and return a # "result" to the parent, before grabbing the next task to be done. # Once all the tasks are done, they end ... as does the parent. # # In real life, the parent could add more work, the children could sleep # until a specific command was given, etc. use strict; use warnings; use threads qw(stringify); use Thread::Queue; my $num_children = 3; my $num_tasks = 10; my $task_time = 5; # create communication queues my $inputq = Thread::Queue->new(); my $outputq = Thread::Queue->new(); # queue up tasks for (1 .. $num_tasks) { $inputq->enqueue(int(rand($task_time) + 1)); } # make worker threads my @children; my $thr; for (1 .. $num_children) { $children[$_] = $thr=threads->create(\&child, $_); $thr->detach(); } # watch for output from children while (my $val = $outputq->dequeue()) { # we got something... print "parent received [$val]\tprocess check: "; # see if we're done and show state of children # could probably simplify this to "last if (($inputq->pending() == 0) && ($outputq->pending() == 0));" # because if both queues are empty, then we're really finished, but this way # allows me to see the state of each child my $running = 0; for (my $c=1 ; $c <= $num_children ; $c++) { my $state = 'x'; if ($children[$c]) { if ($children[$c]->is_running()) { $state = 'R'; $running++; } else { $children[$c] = 0; } } print "$c=$state "; } print "\n"; last if (!$running); } print "parent done\n"; exit(0); #################### # the work our children will do sub child { my ($id) = @_; my $arg; # while there is more work to do and we can pull something off while ($inputq->pending() && ($arg = $inputq->dequeue())) { # do work sleep($arg); # tell our parent the results $outputq->enqueue("child $id had $arg"); } # all the work is done, exit print "child $id exiting\n"; return 1; } ===cut=== From rickazevedo2 at lycos.com Fri Jan 10 09:10:04 2014 From: rickazevedo2 at lycos.com (rickazevedo2 at lycos.com) Date: Fri, 10 Jan 2014 17:10:04 +0000 (UTC) Subject: [DFW.pm] Trouble running a simple perl program Message-ID: <1720632171.183011.1389373804755.JavaMail.mail@webmail07> An HTML attachment was scrubbed... URL: From wigthft at gmail.com Fri Jan 10 09:45:48 2014 From: wigthft at gmail.com (John Fields) Date: Fri, 10 Jan 2014 11:45:48 -0600 Subject: [DFW.pm] Trouble running a simple perl program In-Reply-To: <1720632171.183011.1389373804755.JavaMail.mail@webmail07> References: <1720632171.183011.1389373804755.JavaMail.mail@webmail07> Message-ID: Hmmm. Just like Padre was doing at first. Let's recheck: run "Perl -v" and see if it still gives you the version number and the paragraph of text. That should still work. If it doesn't then something is different since wed night. May need to apply the XP Compatibility mode setting to the Perl.exe file under c:\strawberry since win8 makes life hard just because it seems. On Jan 10, 2014 11:10 AM, wrote: > With the command line open, I type "perl helloworld.pl" (the name of the > file) and hit enter. It gives me the "0xc000007" error message, refusing > to execute the program. I looked up answers online and a lot of them are > "reboot the machine" "try reinstalling" etc. I rebooted and it didn't fix > anything. A registry-fixer was recommended but I decided to uninstall it > after installing. It would be nice to have some help. Thank you. Rick > Azevedo > > _______________________________________________ > Dfw-pm mailing list > Dfw-pm at pm.org > http://mail.pm.org/mailman/listinfo/dfw-pm > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rickazevedo2 at lycos.com Fri Jan 10 11:00:24 2014 From: rickazevedo2 at lycos.com (rickazevedo2 at lycos.com) Date: Fri, 10 Jan 2014 19:00:24 +0000 (UTC) Subject: [DFW.pm] Trouble running a simple perl program References: undefined Message-ID: <636840852.185098.1389380424218.JavaMail.mail@webmail07> An HTML attachment was scrubbed... URL: From wigthft at gmail.com Fri Jan 10 11:46:07 2014 From: wigthft at gmail.com (John Fields) Date: Fri, 10 Jan 2014 13:46:07 -0600 Subject: [DFW.pm] Trouble running a simple perl program In-Reply-To: <636840852.185098.1389380424218.JavaMail.mail@webmail07> References: <636840852.185098.1389380424218.JavaMail.mail@webmail07> Message-ID: Well poo. Getting the version worked on Wednesday night. No, because you are telling what you have (win8) to treat the program as if it was running on XP. Or to actually be backward compatible for this one program. Because win8 doesn't look back. Like a shark it has no neck. (Futurama joke) Try right clicking on the Perl.exe executable, select properties, compatibility tab, XP Service Pack 3 mode. Hmmmmmm. On Jan 10, 2014 1:00 PM, wrote: > perl -v gave me the same error message. Wouldn't XP Compatibility mode be > wrong for Windows 8? > > > on Jan 10, 2014, *John Fields* wrote: > > Hmmm. Just like Padre was doing at first. > > Let's recheck: run "Perl -v" and see if it still gives you the version > number and the paragraph of text. > > That should still work. If it doesn't then something is different since > wed night. May need to apply the XP Compatibility mode setting to the > Perl.exe file under c:\strawberry since win8 makes life hard just because > it seems. > On Jan 10, 2014 11:10 AM, wrote: > >> With the command line open, I type "perl helloworld.pl" (the name of the >> file) and hit enter. It gives me the "0xc000007" error message, refusing >> to execute the program. I looked up answers online and a lot of them are >> "reboot the machine" "try reinstalling" etc. I rebooted and it didn't fix >> anything. A registry-fixer was recommended but I decided to uninstall it >> after installing. It would be nice to have some help. Thank you. Rick >> Azevedo >> >> _______________________________________________ >> Dfw-pm mailing list >> Dfw-pm at pm.org >> http://mail.pm.org/mailman/listinfo/dfw-pm >> > > ------------------------------ > > _______________________________________________ > Dfw-pm mailing list > Dfw-pm at pm.org > http://mail.pm.org/mailman/listinfo/dfw-pm > > > > _______________________________________________ > Dfw-pm mailing list > Dfw-pm at pm.org > http://mail.pm.org/mailman/listinfo/dfw-pm > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dfwpm at internetalias.net Fri Jan 10 11:49:01 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Fri, 10 Jan 2014 13:49:01 -0600 Subject: [DFW.pm] Concurrency not helping? Maybe you're doing it wrong In-Reply-To: <52CFAC05.4080305@pwhome.com> References: <52C9A9CF.5080308@internetalias.net> <52CFAC05.4080305@pwhome.com> Message-ID: <52D04EAD.2090902@internetalias.net> Hey, thanks Kevin! Very nicely done. --Tommy Butler On 01/10/2014 02:15 AM, kevin wrote: > On 01/05/2014 12:51 PM, Tommy Butler wrote: >> Just for fun, I thought I'd post this to the list. It's a discussion on >> perlmonks about why the reference code (threaded version) doesn't seem >> to have large gains over the non-threaded version. If you are also >> using concurrency in your hackathon code to try to speed things up, it >> could be a matter of either or both of: you don't need it (really you >> may not), or you're doing it wrong. >> >> http://perlmonks.org/?node_id=1069338 > > > Tommy, > > Sorry I'm slow, but I read the post and thought I'd give you this > example. It's quite probable that you no longer need this as you have > everything working, but perhaps it'll help someone. I've been meaning > to post this to Perl Monks, but haven't gotten around to it. > > I remember wanting to do some things with threads some time back and > having a devil of a time trying to find a simple example that showed > everything I needed to do. So I cobbled this together. > > I think this has the "architecture" you were looking for, i.e. a > parent in control, the children picking up tasks as fast as they could > do them, so there's no real gate keeper. As with so many things, > picking the right values for your task with number of children & > number of items in the input queue is up to you. :) I think it's > reasonably well documented, considering it's a test example, which I > tend not to document at all, much to my detriment later. ;) It's sort > of put together much in the manner I would have written back in the > day when I used IPCs in C on a weekly basis. > > HTH, > Kevin > > ===cut=== > #!/usr/bin/perl; > # > # Example program for threads and queues. > # > # The parent will create an input queue for work to be done. It will be > # a number of tasks ($num_tasks). To do the work, it will create a number > # of children ($num_children) to do the work. Because this is a simple > # example, we'll just put a set of random numbers in the queue (from > # 1 to $task_time) for the children to work on. By convention, they know > # to sleep that number of seconds then consider the work done and > return a > # "result" to the parent, before grabbing the next task to be done. > # Once all the tasks are done, they end ... as does the parent. > # > # In real life, the parent could add more work, the children could sleep > # until a specific command was given, etc. > > use strict; > use warnings; > use threads qw(stringify); > use Thread::Queue; > > my $num_children = 3; > my $num_tasks = 10; > my $task_time = 5; > > # create communication queues > my $inputq = Thread::Queue->new(); > my $outputq = Thread::Queue->new(); > > # queue up tasks > for (1 .. $num_tasks) > { > $inputq->enqueue(int(rand($task_time) + 1)); > } > > # make worker threads > my @children; > my $thr; > for (1 .. $num_children) > { > $children[$_] = $thr=threads->create(\&child, $_); > $thr->detach(); > } > > # watch for output from children > while (my $val = $outputq->dequeue()) > { > # we got something... > print "parent received [$val]\tprocess check: "; > > # see if we're done and show state of children > # could probably simplify this to "last if (($inputq->pending() == > 0) && ($outputq->pending() == 0));" > # because if both queues are empty, then we're really finished, > but this way > # allows me to see the state of each child > my $running = 0; > for (my $c=1 ; $c <= $num_children ; $c++) > { > my $state = 'x'; > if ($children[$c]) > { > if ($children[$c]->is_running()) > { > $state = 'R'; > $running++; > } > else > { > $children[$c] = 0; > } > } > print "$c=$state "; > } > print "\n"; > last if (!$running); > } > print "parent done\n"; > exit(0); > > #################### > > # the work our children will do > sub child > { > my ($id) = @_; > my $arg; > > # while there is more work to do and we can pull something off > while ($inputq->pending() && ($arg = $inputq->dequeue())) > { > # do work > sleep($arg); > > # tell our parent the results > $outputq->enqueue("child $id had $arg"); > } > > # all the work is done, exit > print "child $id exiting\n"; > return 1; > } > ===cut=== > _______________________________________________ > Dfw-pm mailing list > Dfw-pm at pm.org > http://mail.pm.org/mailman/listinfo/dfw-pm -------------- next part -------------- An HTML attachment was scrubbed... URL: From rickazevedo2 at lycos.com Fri Jan 10 12:05:21 2014 From: rickazevedo2 at lycos.com (rickazevedo2 at lycos.com) Date: Fri, 10 Jan 2014 20:05:21 +0000 (UTC) Subject: [DFW.pm] Trouble running a simple perl program References: undefined Message-ID: <2135719763.186352.1389384321327.JavaMail.mail@webmail07> An HTML attachment was scrubbed... URL: From dfwpm at internetalias.net Fri Jan 10 12:25:40 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Fri, 10 Jan 2014 14:25:40 -0600 Subject: [DFW.pm] Trouble running a simple perl program In-Reply-To: <2135719763.186352.1389384321327.JavaMail.mail@webmail07> References: undefined <2135719763.186352.1389384321327.JavaMail.mail@webmail07> Message-ID: <52D05744.3020500@internetalias.net> I'm curious: Is there a particular reason why you are using ActiveState Perl instead of Strawberry? In addition to this list I aways recommend that questions be asked on www.perlmonks.org as well. The site looks like it's straight out of the nineties, but it is actually tremendously useful. They have a few resident Perl-On-Windows gurus too. --Tommy Butler On 01/10/2014 02:05 PM, rickazevedo2 at lycos.com wrote: > Sorry, but I have no idea. Is the Perl executable in XP compatibility > mode? > > on Jan 10, 2014, *John Fields* wrote: > > Well poo. Getting the version worked on Wednesday night. > > No, because you are telling what you have (win8) to treat the > program as if it was running on XP. Or to actually be backward > compatible for this one program. Because win8 doesn't look back. > Like a shark it has no neck. > (Futurama joke) > > Try right clicking on the Perl.exe executable, select properties, > compatibility tab, XP Service Pack 3 mode. Hmmmmmm. > > On Jan 10, 2014 1:00 PM, > wrote: > > perl -v gave me the same error message. Wouldn't XP > Compatibility mode be wrong for Windows 8? > > > on Jan 10, 2014, *John Fields* > wrote: > > Hmmm. Just like Padre was doing at first. > > Let's recheck: run "Perl -v" and see if it still gives you > the version number and the paragraph of text. > > That should still work. If it doesn't then something is > different since wed night. May need to apply the XP > Compatibility mode setting to the Perl.exe file under > c:\strawberry since win8 makes life hard just because it > seems. > > On Jan 10, 2014 11:10 AM, > wrote: > > With the command line open, I type "perl helloworld.pl > " (the name of the file) and hit > enter. It gives me the "0xc000007" error message, > refusing to execute the program. I looked up answers > online and a lot of them are "reboot the machine" "try > reinstalling" etc. I rebooted and it didn't fix > anything. A registry-fixer was recommended but I > decided to uninstall it after installing. It would be > nice to have some help. Thank you. Rick Azevedo > -------------- next part -------------- An HTML attachment was scrubbed... URL: From reini at cpanel.net Fri Jan 10 12:38:03 2014 From: reini at cpanel.net (Reini Urban) Date: Fri, 10 Jan 2014 14:38:03 -0600 Subject: [DFW.pm] Trouble running a simple perl program In-Reply-To: <52D05744.3020500@internetalias.net> References: undefined <2135719763.186352.1389384321327.JavaMail.mail@webmail07> <52D05744.3020500@internetalias.net> Message-ID: <52D05A2B.2080006@cpanel.net> On 01/10/2014 02:25 PM, Tommy Butler wrote: > I'm curious: Is there a particular reason why you are using ActiveState > Perl instead of Strawberry? > > In addition to this list I aways recommend that questions be asked on > www.perlmonks.org as well. The site looks like it's straight out of the > nineties, but it is actually tremendously useful. They have a few > resident Perl-On-Windows gurus too. The same would happen on linux or OSX also, if the shared librabry does not match the perl.exe executable. Rick: you need to find an offending perl*.dll in your path which overrides the correct perl*.dll for your perl.exe there are some utilities to help you in this, but all these require either a mingw, cygwin or a MSVC installation. > On 01/10/2014 02:05 PM, rickazevedo2 at lycos.com wrote: >> Sorry, but I have no idea. Is the Perl executable in XP compatibility >> mode? >> >> on Jan 10, 2014, *John Fields* wrote: >> >> Well poo. Getting the version worked on Wednesday night. >> >> No, because you are telling what you have (win8) to treat the >> program as if it was running on XP. Or to actually be backward >> compatible for this one program. Because win8 doesn't look back. >> Like a shark it has no neck. >> (Futurama joke) >> >> Try right clicking on the Perl.exe executable, select properties, >> compatibility tab, XP Service Pack 3 mode. Hmmmmmm. >> >> On Jan 10, 2014 1:00 PM, > > wrote: >> >> perl -v gave me the same error message. Wouldn't XP >> Compatibility mode be wrong for Windows 8? >> >> on Jan 10, 2014, *John Fields* > > wrote: >> >> Hmmm. Just like Padre was doing at first. >> >> Let's recheck: run "Perl -v" and see if it still gives you >> the version number and the paragraph of text. >> >> That should still work. If it doesn't then something is >> different since wed night. May need to apply the XP >> Compatibility mode setting to the Perl.exe file under >> c:\strawberry since win8 makes life hard just because it >> seems. >> >> On Jan 10, 2014 11:10 AM, > > wrote: >> >> With the command line open, I type "perl helloworld.pl >> " (the name of the file) and hit >> enter. It gives me the "0xc000007" error message, >> refusing to execute the program. I looked up answers >> online and a lot of them are "reboot the machine" "try >> reinstalling" etc. I rebooted and it didn't fix >> anything. A registry-fixer was recommended but I >> decided to uninstall it after installing. It would be >> nice to have some help. Thank you. Rick Azevedo >> > > > > _______________________________________________ > Dfw-pm mailing list > Dfw-pm at pm.org > http://mail.pm.org/mailman/listinfo/dfw-pm > [Disclaimer: The views expressed in this letter are my own, and do not represent those of my employer.] -- Reini Working towards a true Modern Perl. Slim, functional, unbloated, compile-time optimizable From rickazevedo2 at lycos.com Fri Jan 10 14:14:03 2014 From: rickazevedo2 at lycos.com (rickazevedo2 at lycos.com) Date: Fri, 10 Jan 2014 22:14:03 +0000 (UTC) Subject: [DFW.pm] Trouble running a simple perl program References: undefined <52D05744.3020500@internetalias.net> Message-ID: <875598497.188447.1389392043655.JavaMail.mail@webmail07> An HTML attachment was scrubbed... URL: From dfwpm at internetalias.net Fri Jan 10 14:17:16 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Fri, 10 Jan 2014 16:17:16 -0600 Subject: [DFW.pm] Trouble running a simple perl program In-Reply-To: <875598497.188447.1389392043655.JavaMail.mail@webmail07> References: undefined <52D05744.3020500@internetalias.net> <875598497.188447.1389392043655.JavaMail.mail@webmail07> Message-ID: <52D0716C.3080400@internetalias.net> Don't run away too fast :-) Let us know what you find out and how your journey progresses. We care about helping you succeed. That's part of being a member of our community. --Tommy Butler On 01/10/2014 04:14 PM, rickazevedo2 at lycos.com wrote: > I think I'm using Strawberry... will look at perlmonks.org. thx > > on Jan 10, 2014, *Tommy Butler* wrote: > > I'm curious: Is there a particular reason why you are using > ActiveState Perl instead of Strawberry? > > In addition to this list I aways recommend that questions be asked > on www.perlmonks.org as well. The site looks like it's straight > out of the nineties, but it is actually tremendously useful. They > have a few resident Perl-On-Windows gurus too. > > --Tommy Butler > > On 01/10/2014 02:05 PM, rickazevedo2 at lycos.com > wrote: >> Sorry, but I have no idea. Is the Perl executable in XP >> compatibility mode? >> >> on Jan 10, 2014, *John Fields* >> wrote: >> >> Well poo. Getting the version worked on Wednesday night. >> >> No, because you are telling what you have (win8) to treat >> the program as if it was running on XP. Or to actually be >> backward compatible for this one program. Because win8 >> doesn't look back. Like a shark it has no neck. >> (Futurama joke) >> >> Try right clicking on the Perl.exe executable, select >> properties, compatibility tab, XP Service Pack 3 mode. Hmmmmmm. >> >> On Jan 10, 2014 1:00 PM, > > wrote: >> >> perl -v gave me the same error message. Wouldn't XP >> Compatibility mode be wrong for Windows 8? >> >> >> on Jan 10, 2014, *John Fields* > > wrote: >> >> Hmmm. Just like Padre was doing at first. >> >> Let's recheck: run "Perl -v" and see if it still >> gives you the version number and the paragraph of text. >> >> That should still work. If it doesn't then something >> is different since wed night. May need to apply the >> XP Compatibility mode setting to the Perl.exe file >> under c:\strawberry since win8 makes life hard just >> because it seems. >> >> On Jan 10, 2014 11:10 AM, > > wrote: >> >> With the command line open, I type "perl >> helloworld.pl " (the name >> of the file) and hit enter. It gives me the >> "0xc000007" error message, refusing to execute >> the program. I looked up answers online and a >> lot of them are "reboot the machine" "try >> reinstalling" etc. I rebooted and it didn't fix >> anything. A registry-fixer was recommended but I >> decided to uninstall it after installing. It >> would be nice to have some help. Thank you. >> Rick Azevedo >> > > > ------------------------------------------------------------------------ > > _______________________________________________ > Dfw-pm mailing list > Dfw-pm at pm.org > http://mail.pm.org/mailman/listinfo/dfw-pm > > > > > _______________________________________________ > Dfw-pm mailing list > Dfw-pm at pm.org > http://mail.pm.org/mailman/listinfo/dfw-pm -------------- next part -------------- An HTML attachment was scrubbed... URL: From rickazevedo2 at lycos.com Fri Jan 10 15:27:00 2014 From: rickazevedo2 at lycos.com (rickazevedo2 at lycos.com) Date: Fri, 10 Jan 2014 23:27:00 +0000 (UTC) Subject: [DFW.pm] Trouble running a simple perl program References: undefined <52D0716C.3080400@internetalias.net> Message-ID: <1433638066.189488.1389396421014.JavaMail.mail@webmail07> An HTML attachment was scrubbed... URL: From dfwpm at internetalias.net Fri Jan 10 15:30:09 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Fri, 10 Jan 2014 17:30:09 -0600 Subject: [DFW.pm] Trouble running a simple perl program In-Reply-To: <1433638066.189488.1389396421014.JavaMail.mail@webmail07> References: undefined <52D0716C.3080400@internetalias.net> <1433638066.189488.1389396421014.JavaMail.mail@webmail07> Message-ID: <52D08281.2090705@internetalias.net> What's it like running on Windows 8? Too early to tell? --Tommy Butler, who runs everything on Linux On 01/10/2014 05:27 PM, rickazevedo2 at lycos.com wrote: > I installed the 32 bit version of strawberry instead of the 64 bit > version. Now I installed 64 bit, fixing the problem. Yeah! > > on Jan 10, 2014, *Tommy Butler* wrote: > > Don't run away too fast :-) > > Let us know what you find out and how your journey progresses. We > care about helping you succeed. That's part of being a member of > our community. > > --Tommy Butler > > On 01/10/2014 04:14 PM, rickazevedo2 at lycos.com > wrote: >> I think I'm using Strawberry... will look at perlmonks.org. thx >> on Jan 10, 2014, *Tommy Butler* >> wrote: >> >> I'm curious: Is there a particular reason why you are using >> ActiveState Perl instead of Strawberry? >> >> In addition to this list I aways recommend that questions be >> asked on www.perlmonks.org as well. The site looks like it's >> straight out of the nineties, but it is actually tremendously >> useful. They have a few resident Perl-On-Windows gurus too. >> >> --Tommy Butler >> >> On 01/10/2014 02:05 PM, rickazevedo2 at lycos.com >> wrote: >>> Sorry, but I have no idea. Is the Perl executable in XP >>> compatibility mode? >>> >>> on Jan 10, 2014, *John Fields* >>> wrote: >>> >>> Well poo. Getting the version worked on Wednesday night. >>> >>> No, because you are telling what you have (win8) to >>> treat the program as if it was running on XP. Or to >>> actually be backward compatible for this one program. >>> Because win8 doesn't look back. Like a shark it has no neck. >>> (Futurama joke) >>> >>> Try right clicking on the Perl.exe executable, select >>> properties, compatibility tab, XP Service Pack 3 mode. >>> Hmmmmmm. >>> >>> On Jan 10, 2014 1:00 PM, >> > wrote: >>> >>> perl -v gave me the same error message. Wouldn't XP >>> Compatibility mode be wrong for Windows 8? >>> >>> >>> on Jan 10, 2014, *John Fields* >> > wrote: >>> >>> Hmmm. Just like Padre was doing at first. >>> >>> Let's recheck: run "Perl -v" and see if it still >>> gives you the version number and the paragraph >>> of text. >>> >>> That should still work. If it doesn't then >>> something is different since wed night. May >>> need to apply the XP Compatibility mode setting >>> to the Perl.exe file under c:\strawberry since >>> win8 makes life hard just because it seems. >>> >>> On Jan 10, 2014 11:10 AM, >>> >> > wrote: >>> >>> With the command line open, I type "perl >>> helloworld.pl " (the >>> name of the file) and hit enter. It gives >>> me the "0xc000007" error message, refusing >>> to execute the program. I looked up answers >>> online and a lot of them are "reboot the >>> machine" "try reinstalling" etc. I rebooted >>> and it didn't fix anything. A >>> registry-fixer was recommended but I decided >>> to uninstall it after installing. It would >>> be nice to have some help. Thank you. Rick >>> Azevedo >>> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From dfwpm at internetalias.net Fri Jan 10 15:58:26 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Fri, 10 Jan 2014 17:58:26 -0600 Subject: [DFW.pm] MooseX::XSAccessor With Moo? Message-ID: <52D08922.8060304@internetalias.net> Does it make sense to use MooseX::XSAccessor if you're using Moo? --Tommy Butler -------------- next part -------------- An HTML attachment was scrubbed... URL: From saj at thecommune.net Fri Jan 10 16:09:37 2014 From: saj at thecommune.net (Stuart A Johnston) Date: Fri, 10 Jan 2014 17:09:37 -0700 Subject: [DFW.pm] MooseX::XSAccessor With Moo? In-Reply-To: <52D08922.8060304@internetalias.net> References: <52D08922.8060304@internetalias.net> Message-ID: <52D08BC1.30905@thecommune.net> As of Moo 1.4.0, Class::XSAccessor will automatically be used if available. On 01/10/2014 04:58 PM, Tommy Butler wrote: > Does it make sense to use MooseX::XSAccessor if you're using Moo? > > --Tommy Butler > > > _______________________________________________ > Dfw-pm mailing list > Dfw-pm at pm.org > http://mail.pm.org/mailman/listinfo/dfw-pm > From dfwpm at internetalias.net Fri Jan 10 16:40:21 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Fri, 10 Jan 2014 18:40:21 -0600 Subject: [DFW.pm] MooseX::XSAccessor With Moo? In-Reply-To: <52D08BC1.30905@thecommune.net> References: <52D08922.8060304@internetalias.net> <52D08BC1.30905@thecommune.net> Message-ID: <52D092F5.30200@internetalias.net> Thanks =) By following Joel's advice and porting everything in my deduper over to Moo, I've cut down my runtime by 30% in some cases -- well that and some other optimizations. --Tommy Butler On 01/10/2014 06:09 PM, Stuart A Johnston wrote: > As of Moo 1.4.0, Class::XSAccessor will automatically be used if > available. > > > On 01/10/2014 04:58 PM, Tommy Butler wrote: >> Does it make sense to use MooseX::XSAccessor if you're using Moo? >> >> --Tommy Butler -------------- next part -------------- An HTML attachment was scrubbed... URL: From rickazevedo2 at lycos.com Fri Jan 10 16:52:57 2014 From: rickazevedo2 at lycos.com (rickazevedo2 at lycos.com) Date: Sat, 11 Jan 2014 00:52:57 +0000 (UTC) Subject: [DFW.pm] Trouble running a simple perl program References: undefined <52D08281.2090705@internetalias.net> Message-ID: <268905986.190348.1389401577685.JavaMail.mail@webmail07> An HTML attachment was scrubbed... URL: From yanick at babyl.dyndns.org Sat Jan 11 10:01:29 2014 From: yanick at babyl.dyndns.org (Yanick Champoux) Date: Sat, 11 Jan 2014 13:01:29 -0500 Subject: [DFW.pm] MooseX::XSAccessor With Moo? In-Reply-To: <52D092F5.30200@internetalias.net> References: <52D08922.8060304@internetalias.net> <52D08BC1.30905@thecommune.net> <52D092F5.30200@internetalias.net> Message-ID: <52D186F9.9050801@babyl.dyndns.org> On 14-01-10 07:40 PM, Tommy Butler wrote: > By following Joel's advice and porting everything in my deduper over to > Moo, I've cut down my runtime by 30% in some cases -- well that and some > other optimizations. That's surprising. I would have thought that after the compile phase (assuming that all classes are made immutable and that method modifiers are kept to a minimum), the running times of Moo and Moose would be in the same ballpark... At some point, could be fun to profile the script while it's using Moo, and then do it again after a global s/(?=Moo)/se/g. :-) Joy, `/anick From joel.a.berger at gmail.com Sat Jan 11 22:29:44 2014 From: joel.a.berger at gmail.com (Joel Berger) Date: Sun, 12 Jan 2014 00:29:44 -0600 Subject: [DFW.pm] MooseX::XSAccessor With Moo? Message-ID: If you took my other suggestion and used Type::Tiny (versus Moose types) then that might account for some speed gain as they are much faster than their Moose-native counterparts. Glad to see that my suggestions are sparking some interest :-) Cheers, Joel -------------- next part -------------- An HTML attachment was scrubbed... URL: From dfwpm at internetalias.net Tue Jan 14 14:48:46 2014 From: dfwpm at internetalias.net (Tommy Butler) Date: Tue, 14 Jan 2014 16:48:46 -0600 Subject: [DFW.pm] Hackathon Winners Announced Message-ID: <52D5BECE.4040204@internetalias.net> DFW.pm Winter 2013 hackathon winners have been announced formally on dfw.pm.org Thank you all for your participation in every form. It was SO MUCH FUN. Winners, please send your mailing address info to dfwpm at internetalias dotnet so we can get you your laser-cut racing camel award. Again we thank The Perl Shop for their sponsorship and support. We WILL do this again in the future! Until then, keep it humpy my friends. --Tommy Butler, John Fields -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logo-dfwpm-deduplication-hackathon-winter-2013.png Type: image/png Size: 91014 bytes Desc: not available URL: From john.dexter at psydefect.com Fri Jan 17 07:46:09 2014 From: john.dexter at psydefect.com (John Dexter) Date: Fri, 17 Jan 2014 09:46:09 -0600 Subject: [DFW.pm] Fwd: Deal/Day: Save 50% on New Perl Ebooks - Become a Perl Mastermind In-Reply-To: <1389963802.31034.0.884227@post.oreilly.com> References: <1389963802.31034.0.884227@post.oreilly.com> Message-ID: O'Reilly is selling all Perl ebooks for half price. Sincerely, John Dexter ---------- Forwarded message ---------- From: O'Reilly Media Date: Fri, Jan 17, 2014 at 7:03 AM Subject: Deal/Day: Save 50% on New Perl Ebooks - Become a Perl Mastermind To: john.dexter at psydefect.com Save 50% ? Perl Ebooks & Videos (View in browser ) [image: O'Reilly Media] Deal of the Day Become a Perl Mastermind [image: Ebooks in Deal] Perl makes easy things easy and hard things possible. It's amazingly suitable for almost any task on any platform, from short fixes to complete web applications. Start learning Perl today or supercharge your existing skills by solving real-life problems of debugging, maintenance, configuration, and more. For *one day only*, SAVE 50% on Perl ebooks and videos from shop.oreilly.comand watch your productivity soar. Ebooks from shop.oreilly.comare *DRM-free*. You get *free lifetime access*, *multiple file formats*, and *free updates*. Sync with *Dropbox* ? your files, anywhere. View the titles ? Use discount code: DEAL This deal expires January 18, 2014 at 5:00am PT and cannot be combined with other offers. Offer does not apply to Print, or "Print & Ebook" bundle pricing. Shop 7000+ tech books and training videos shop.oreilly.com You are receiving this message because you purchased directly from O'Reilly or registered titles. Keep up on all things O'Reilly by signing up for our *email alerts and newsletters* . To ensure delivery to your inbox (not bulk or junk folders), please add *oreilly at post.oreilly.com* to your address book. To unsubscribe from all email announcements from O'Reilly, click here. O'Reilly Media, Inc. 1005 Gravenstein Highway North, Sebastopol, CA 95472 (707) 827-7000 -------------- next part -------------- An HTML attachment was scrubbed... URL: From rickazevedo2 at lycos.com Thu Jan 23 15:56:38 2014 From: rickazevedo2 at lycos.com (rickazevedo2 at lycos.com) Date: Thu, 23 Jan 2014 23:56:38 +0000 (UTC) Subject: [DFW.pm] Question on advice for Perl Message-ID: <896327742.7993.1390521398345.JavaMail.mail@webmail20> An HTML attachment was scrubbed... URL: From coyo at darkdna.net Thu Jan 23 16:50:50 2014 From: coyo at darkdna.net (Coyo) Date: Thu, 23 Jan 2014 18:50:50 -0600 Subject: [DFW.pm] Question on advice for Perl In-Reply-To: <896327742.7993.1390521398345.JavaMail.mail@webmail20> References: <896327742.7993.1390521398345.JavaMail.mail@webmail20> Message-ID: <52E1B8EA.2010103@darkdna.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The best way to learn Perl, like most programming languages, is by doing. Find a simple straightforward project that interests you and can maintain your attention span, and don't be afraid to lookup the wonderfully comprehensive documentation and tutorials I have been pleased to discover Perl has. Everything in, of and around Perl is beautifully documented, and its behavior well-known. Like Python, you can do almost anything in Perl, as it is well-supported by various industries. If you would like, I can help you with getting started. I am also a novice at Perl, even if I have more experience with computing and programming in general, and since I know many experts don't remember what it was like to be a newbie, other newbies are the best sources of pro-tips. On 1/23/2014 5:56 PM, rickazevedo2 at lycos.com wrote: > Hello all, As you may remember, I started learning Perl recently > and am going through "Learning Perl." I'm not stupid, but I do > have a lot of questions about various things in the text. I wonder > if you would recommend that I hire an expert in Perl to help me > through this. I have been asking questions on Perlmonks.org and I > feel like a bit of a drag. Rick Azevedo -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJS4bjqAAoJEDEXTUGm1DyUyTIIAIyj0Nk16X1bteSMLD7u0/KR AWjXpwikMdbHciOh6B2wgz1g305K10EOlbm0ocVTLTJWTR/UVOm0XmdqCfu+3HrZ 47y3BAGN3DF2GgRgBhZYJcU1sYl9lWHzeZnciLmvl8jwfihsMF9EFev005DgU8yf 2zVLZofbfViD8oxUFZOuK3dFbXMq4+e/D2B8Lg9t0Hyn0jQYKK8yx6Axhn2GDn/B FHxZSh3ws7dKVHLSntkWofsfZLGnb22hPHm+fJjjVzxeehQF4Pfama29X9RIgCBl thnaBe0KR37G0nXBCroYODIRoVI0GBvoXrt7+PSQ/1Nyioha80Ia4WnSvUBHNWM= =qkVJ -----END PGP SIGNATURE----- From wigthft at gmail.com Tue Jan 28 09:37:02 2014 From: wigthft at gmail.com (John Fields) Date: Tue, 28 Jan 2014 11:37:02 -0600 Subject: [DFW.pm] Question on advice for Perl In-Reply-To: <896327742.7993.1390521398345.JavaMail.mail@webmail20> References: <896327742.7993.1390521398345.JavaMail.mail@webmail20> Message-ID: Rick, We could setup a time to walk through your issues via a google Hangout screen share. Nights or weekends.. It might help to see how to use the reference tools that are available. They are references, and not tutorials, so while the answer is indeed in there... :) If you pay for perl learning, it would be an online class, and they would start over with their texts. http://alison.com/courses/Perl-Programming seems fairly good structured start, but you won't be using any of the CGI stuff. :) Also check out http://perlmaven.com/ Gabor always finds some really cool stuff to write about. I follow him on G+ Don't give up! JF On Thu, Jan 23, 2014 at 5:56 PM, wrote: > Hello all, > As you may remember, I started learning Perl recently and am going through > "Learning Perl." I'm not stupid, but I do have a lot of questions about > various things in the text. I wonder if you would recommend that I hire an > expert in Perl to help me through this. I have been asking questions on > Perlmonks.org and I feel like a bit of a drag. Rick Azevedo > > > _______________________________________________ > Dfw-pm mailing list > Dfw-pm at pm.org > http://mail.pm.org/mailman/listinfo/dfw-pm > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sri at vedurumudi.com Tue Jan 28 09:48:50 2014 From: sri at vedurumudi.com (Sriharsha Vedurumudi) Date: Tue, 28 Jan 2014 12:48:50 -0500 Subject: [DFW.pm] Question on advice for Perl In-Reply-To: <896327742.7993.1390521398345.JavaMail.mail@webmail20> References: <896327742.7993.1390521398345.JavaMail.mail@webmail20> Message-ID: Is there a place that has a list of your questions? I can try to help (having just completed my first and only, yet a fairly complex project in Perl) if you can list them out. Regards, Sri On Jan 23, 2014 6:56 PM, wrote: > Hello all, > As you may remember, I started learning Perl recently and am going through > "Learning Perl." I'm not stupid, but I do have a lot of questions about > various things in the text. I wonder if you would recommend that I hire an > expert in Perl to help me through this. I have been asking questions on > Perlmonks.org and I feel like a bit of a drag. Rick Azevedo > > > _______________________________________________ > Dfw-pm mailing list > Dfw-pm at pm.org > http://mail.pm.org/mailman/listinfo/dfw-pm > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sriharsha at vedurumudi.com Tue Jan 28 09:44:46 2014 From: sriharsha at vedurumudi.com (Sriharsha Vedurumudi) Date: Tue, 28 Jan 2014 12:44:46 -0500 Subject: [DFW.pm] Question on advice for Perl In-Reply-To: <896327742.7993.1390521398345.JavaMail.mail@webmail20> References: <896327742.7993.1390521398345.JavaMail.mail@webmail20> Message-ID: Is there a place that has a list of your questions? I can try to help (having just completed my first and only, yet a fairly complex project in Perl) if you can list them out. Regards, Sri On Jan 23, 2014 6:56 PM, wrote: > Hello all, > As you may remember, I started learning Perl recently and am going through > "Learning Perl." I'm not stupid, but I do have a lot of questions about > various things in the text. I wonder if you would recommend that I hire an > expert in Perl to help me through this. I have been asking questions on > Perlmonks.org and I feel like a bit of a drag. Rick Azevedo > > > _______________________________________________ > Dfw-pm mailing list > Dfw-pm at pm.org > http://mail.pm.org/mailman/listinfo/dfw-pm > > -------------- next part -------------- An HTML attachment was scrubbed... URL: