Re: Micro-articles on Perl 6 Operators
On 9/18/07, Adriano Ferreira [EMAIL PROTECTED] wrote: Join me. The drafts of the introduction and the first article are here: http://ferreira.nfshost.com/perl6/intro.html http://ferreira.nfshost.com/perl6/zip.html I see the following snippet in zip.html: # import num2en from Perl 6 Lingua::EN::Numbers module use :from perl5 Lingua::EN::Numbers num2en ; Maybe you meant Perl 5 in that comment? It looks inconsistent to me ;) Nice article, BTW :) Thanks, agentz
Re: Micro-articles on Perl 6 Operators
On 9/18/07, Agent Zhang [EMAIL PROTECTED] wrote: On 9/18/07, Adriano Ferreira [EMAIL PROTECTED] wrote: Join me. The drafts of the introduction and the first article are here: http://ferreira.nfshost.com/perl6/intro.html http://ferreira.nfshost.com/perl6/zip.html I see the following snippet in zip.html: # import num2en from Perl 6 Lingua::EN::Numbers module use :from perl5 Lingua::EN::Numbers num2en ; Maybe you meant Perl 5 in that comment? It looks inconsistent to me ;) Yes. That's what I meant. Fixed by now. Thanks. Nice article, BTW :) Thanks, agentz
Re: Micro-articles on Perl 6 Operators
In article [EMAIL PROTECTED], Alberto Simões [EMAIL PROTECTED] wrote: Adriano Ferreira wrote: The plan is to write a series of blog entries discussing a Perl 6 operator at a time or a small group of closely related ones. I think the idea is cool. Also, I do not know how periodically that would be, but it might be a good idea to join some of them in turns and ask brian d foy to publish them in TPR as well. Yes, I'd publish them. :) However, I don't want to publish something that's already on Perl.com.
Re: Micro-articles on Perl 6 Operators
On 9/18/07, brian d foy [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Alberto Simões [EMAIL PROTECTED] wrote: Adriano Ferreira wrote: The plan is to write a series of blog entries discussing a Perl 6 operator at a time or a small group of closely related ones. I think the idea is cool. Also, I do not know how periodically that would be, but it might be a good idea to join some of them in turns and ask brian d foy to publish them in TPR as well. Yes, I'd publish them. :) However, I don't want to publish something that's already on Perl.com. brian is right. The blog entries in ONLamp will appear right away in perl.com. To tell the truth, they already are: * the introduction http://www.oreillynet.com/onlamp/blog/2007/09/yet_another_perl_6_operator_th.html * the zip article http://www.oreillynet.com/onlamp/blog/2007/09/yet_another_perl_6_operator_zi.html Thanks, folks. Adriano.
Parrot 0.4.16 Released
On behalf of the Parrot team, I'm proud to announce Parrot 0.4.16, A Farewell to Alex. Parrot (http://parrotcode.org/) is a virtual machine aimed at running all dynamic languages. Parrot 0.4.16 can be obtained via CPAN (soon), or follow the download instructions at http://parrotcode.org/source.html. For those who would like to develop on Parrot, or help develop Parrot itself, we recommend using Subversion or SVK on the source code repository to get the latest and best Parrot code. Parrot 0.4.16 News: - Implementation: + Performed code review on every PMC + Modified PMC code generation to use Storable, reducing compile times + Added a makefile target to generate test coverage data of C sources - Languages: + NQP: added lists, for loops, operators, comparison and multiplicative operators + Announced Kea-CL, Kea Common Lisp, an ANSI Common Lisp implementation The repository is available at https://rgrjr.dyndns.org/svn/kea-cl/trunk/ - Documentation + PDD17 PMCs - draft approved, the design is complete + Added more PIR tutorials, see examples/tutorial/00_README.pod - Miscellaneous: + Many bugfixes, enhancements, documentation, and coding standard updates + Deprecated PMC constants and other crufty syntax, see DEPRECATED.pod + Improved icc compiler compatibility for error line reporting Thanks to all our contributors for making this possible, and our sponsors for supporting this project. Enjoy! ~jerry
Re: Micro-articles on Perl 6 Operators
--- Adriano Ferreira [EMAIL PROTECTED] wrote: [[snips here and at end]] . . . I have one suggestion: you might want to mention the roundrobin function in the article on the zip function since the two are very closely related. Thanks, Joe and Alberto. Even though the roundrobin is very closely related to zip, I think that mentioning it and giving an explanation would add length and detail to the article. I already sacrificed the trick with (@x, *) to extend a list and the @@() for multidimensional context, which are fine but too much for this piece of text. It would certainly add length, but you could minimize the addition of detail by using them as hooks. Maybe embed them in a special section... e.g., hypothetical For the Gearheads We won't bore you with excess details, but for more info on the trick with (@x, *) to extend a list and the @@() for multidimensional context, c.f. . /hypothetical Sorry, not sure where to link off the top of my head, but if anyone thinks it's a good idea I'll look it up on request. Well, it's kind of hard to keep these articles small and interesting. Maybe this stuff can find their way in later articles. Personally, I'm a bit behind on my P6, but I think this is a good idea. I'd be happy to contribute something, and though my time is short like everyone's these days, please feel free to contact me here or offline with requests or suggestions. If you like, I could even try to ghost-write an article or three. I'll go look over the list and see if there's anything I feel competent to work with (but feel free to tell I'm a schmuck and I shouldn't bother if I don't post more. =o) === Hodges' Rule of Thumb: Don't expect reasonable behavior from anything with a thumb. Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545433
Re: Micro-articles on Perl 6 Operators
On 9/18/07, Paul Hodges [EMAIL PROTECTED] wrote: --- Adriano Ferreira [EMAIL PROTECTED] wrote: [[snips here and at end]] . . . I have one suggestion: you might want to mention the roundrobin function in the article on the zip function since the two are very closely related. Thanks, Joe and Alberto. Even though the roundrobin is very closely related to zip, I think that mentioning it and giving an explanation would add length and detail to the article. I already sacrificed the trick with (@x, *) to extend a list and the @@() for multidimensional context, which are fine but too much for this piece of text. It would certainly add length, but you could minimize the addition of detail by using them as hooks. Maybe embed them in a special section... e.g., hypothetical For the Gearheads We won't bore you with excess details, but for more info on the trick with (@x, *) to extend a list and the @@() for multidimensional context, c.f. . /hypothetical I am thinking about such hooks and good ways to do that. More on that later. Sorry, not sure where to link off the top of my head, but if anyone thinks it's a good idea I'll look it up on request. Well, it's kind of hard to keep these articles small and interesting. Maybe this stuff can find their way in later articles. Personally, I'm a bit behind on my P6, but I think this is a good idea. I'd be happy to contribute something, and though my time is short like everyone's these days, please feel free to contact me here or offline with requests or suggestions. If you like, I could even try to ghost-write an article or three. I'll go look over the list and see if there's anything I feel competent to work with (but feel free to tell I'm a schmuck and I shouldn't bother if I don't post more. =o) I salute every bit of help. I am trying to organize the production and will hopefully provide more details soon. By now, I think that I can handle suggestions and corrections to the articles. The next one is here: http://ferreira.nfshost.com/perl6/stitching6.html === Hodges' Rule of Thumb: Don't expect reasonable behavior from anything with a thumb. Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545433
Re: Micro-articles on Perl 6 Operators
Adriano Ferreira wrote: I salute every bit of help. I am trying to organize the production and will hopefully provide more details soon. By now, I think that I can handle suggestions and corrections to the articles. The next one is here: http://ferreira.nfshost.com/perl6/stitching6.html This one's very nice. One question: what's the ~+ operator you talk about in your discussion of prefix ~ ? I can't find any mention of it in Synopsis 3. Joe Gottman
Re: Micro-articles on Perl 6 Operators
Looks good . . . but how short do we want them? For the non-Perl audience, I think it might be worth mentioning the (to us) obvious automatic context manipulations. e.g., ~ is stitching strings, and will make strings out of its arguments if it can -- it's not adding, but has the same precedence, so: $x = 1 ~ 2 + 3; # 15: is 12 + 3, string coerced to number maybe even add $y = (1 ~ 2) + 3; # 15: same as above, but explicit $z = 1 ~ (2 + 3); # 15: 1 ~ 5, numbers coerced to strings though I think that adds up to a bit too much clutter. Or have I gone too long without sleep? It looks funny The point is that we want these articles to play up both the old perlishness that's retained for those fearful of change, and give a good feel of what perlishness is all about to those used to C and Java...or CoBOL and ForTran. We also want shell programmers to see that the convenience factor of quick scripting is still there, but with Perl's ramped-up capabilities -- it beats the hell out of ksh and awk, after all, but isn't really so much harder to learn and use, either at the low or the high end. Maybe we should add a Making the easy things easy, and the hard things possible tagline to all these articles. :) Also -- is it out of the scope of these to have each perhaps present a basic problem and a use of the operator to solve it? I think the zip article does that, and the example helped, but this one seems like a small but faintly operator-spicy example would help, even if a little contrived. sub page_ruler ( uint8 $len = 80 ) { # take int, max 256, default 80 my $ruler = ''; # declares a buffer my $digit = 0; # starts with 0 $ruler ~= $digit++ % 10 # appends next digit while length($ruler) $len; # till there's enough return $ruler; # and returns the string } my $r = page_ruler(25); # 0123456789012345678901234 Again, PLEASE double-check my probably goofy syntax. Paul --- Adriano Ferreira [EMAIL PROTECTED] wrote: On 9/18/07, Paul Hodges [EMAIL PROTECTED] wrote: --- Adriano Ferreira [EMAIL PROTECTED] wrote: [[snips here and at end]] . . . I have one suggestion: you might want to mention the roundrobin function in the article on the zip function since the two are very closely related. Thanks, Joe and Alberto. Even though the roundrobin is very closely related to zip, I think that mentioning it and giving an explanation would add length and detail to the article. I already sacrificed the trick with (@x, *) to extend a list and the @@() for multidimensional context, which are fine but too much for this piece of text. It would certainly add length, but you could minimize the addition of detail by using them as hooks. Maybe embed them in a special section... e.g., hypothetical For the Gearheads We won't bore you with excess details, but for more info on the trick with (@x, *) to extend a list and the @@() for multidimensional context, c.f. . /hypothetical I am thinking about such hooks and good ways to do that. More on that later. Sorry, not sure where to link off the top of my head, but if anyone thinks it's a good idea I'll look it up on request. Well, it's kind of hard to keep these articles small and interesting. Maybe this stuff can find their way in later articles. Personally, I'm a bit behind on my P6, but I think this is a good idea. I'd be happy to contribute something, and though my time is short like everyone's these days, please feel free to contact me here or offline with requests or suggestions. If you like, I could even try to ghost-write an article or three. I'll go look over the list and see if there's anything I feel competent to work with (but feel free to tell I'm a schmuck and I shouldn't bother if I don't post more. =o) I salute every bit of help. I am trying to organize the production and will hopefully provide more details soon. By now, I think that I can handle suggestions and corrections to the articles. The next one is here: http://ferreira.nfshost.com/perl6/stitching6.html === Hodges' Rule of Thumb: Don't expect reasonable behavior from anything with a thumb. Check out the hottest 2008 models today at Yahoo! Autos. http://autos.yahoo.com/new_cars.html
Re: Micro-articles on Perl 6 Operators
On Tue, Sep 18, 2007 at 09:46:14PM -0400, Joe Gottman wrote: : Adriano Ferreira wrote: : I salute every bit of help. I am trying to organize the production and : will hopefully provide more details soon. By now, I think that I can : handle suggestions and corrections to the articles. The next one is : here: : : http://ferreira.nfshost.com/perl6/stitching6.html : : : This one's very nice. One question: what's the ~+ operator you : talk about in your discussion of prefix ~ ? I can't find any mention of : it in Synopsis 3. Is no such operator. We have ~, ~|, and ~^ though. Larry
Re: Micro-articles on Perl 6 Operators
On Tue, Sep 18, 2007 at 07:41:54PM -0700, Paul Hodges wrote: : while length($ruler) $len; # till there's enough There is no length function anymore. Larry