Re: pm6 naming convention

2024-02-12 Thread Will Coleda
On Mon, Feb 12, 2024 at 5:32 PM ToddAndMargo via perl6-users <
perl6-users@perl.org> wrote:

> On 2/12/24 14:29, ToddAndMargo via perl6-users wrote:
> >>> On Mon, Feb 12, 2024 at 3:24 PM ToddAndMargo via perl6-users
> >>> mailto:perl6-users@perl.org>> wrote:
> >>
> >>>     Has .pl6 been renamed too?
> >
> > On 2/12/24 12:37, Will Coleda wrote:
> >  > Please see: https://docs.raku.org/language/filename-extensions
> >  > <https://docs.raku.org/language/filename-extensions>
> >  >
> >
> > Thank you!  I saved it in my own documentation.
>
> Interesting that the site calls Raku code a
> "script".  I wonder just exactly how many
> thousands of lines of code I have to write before
> I can officially call it a "program"?
>
>
Pull requests welcome, and if you have any specific notes about searches
that aren't working for you, please report them on
https://github.com/Raku/doc/issues.

You can click on the edit icon on that doc page to easily submit a PR.


Re: pm6 naming convention

2024-02-12 Thread Will Coleda
Please see: https://docs.raku.org/language/filename-extensions

On Mon, Feb 12, 2024 at 3:24 PM ToddAndMargo via perl6-users <
perl6-users@perl.org> wrote:

>
> >> On 12 Feb 2024, at 20:34, ToddAndMargo via perl6-users <
> perl6-users@perl.org> wrote:
> >>
> >>
>  On 6 Feb 2024, at 18:08, ToddAndMargo via perl6-users <
> perl6-users@perl.org> wrote:
> 
>  Hi All,
> 
>  I use AnyDesk for remoter customer support.  Work rather well.
> 
>  The file transfer portion, which I adore, posts a Microsoft
>  Office Publisher Icon (a big one) when it hits a .pm6 modules.
> 
>  Is there a different naming convention I can use for my
>  modules that does not mimic some other program?
> 
>  Many thanks,
>  -T
> >>
> >> On 2/12/24 11:11, Elizabeth Mattijsen wrote:
> >>> .rakumod
> >>
> >>
> >> Thank you!
> >>
> >> Is there a way to get raku to ignore pm (perl 5)
> >> module naming?
>
> On 2/12/24 11:40, Elizabeth Mattijsen wrote:
>  > It's been marked as DEPRECATED since 2023.12 I believe.
>  >
>
> Cool.
>
> Has .pl6 been renamed too?
>
>


Re: Help with %?RESOURCES variable

2023-04-20 Thread Will Coleda
On Mon, Apr 17, 2023 at 12:01 David Santiago  wrote:

>
> I'm trying to use the variable %?RESOURCES without success. It doesn't
> work even when i install it locally with zef
>
> I have the following:
>
> demanuel@archlinux test> cat resources/text.txt
> This is my test file
> demanuel@archlinux test> cat bin/run-me
> sub MAIN(){
> say %?RESOURCES{"text.txt"}.slurp(:close);
> }
> demanuel@archlinux test> cat META6.json
> {
>   "raku" : "6.d",
>   "name" : "Test",
>   "api"  : "1",
>   "auth" : "demanuel",
>   "version" : "0.0.1",
>   "description" : "my resources test",
>   "authors" : [ "demanuel" ],
>   "license" : "GPLv3",
>   "resources": [
> "text.txt"
>   ]
> }
> demanuel@archlinux test> tree
> .
> ├── bin
> │   └── run-me
> ├── lib
> ├── META6.json
> └── resources
> └── text.txt
>
> 4 directories, 3 files
> demanuel@archlinux test> raku -I ./lib bin/run-me


Try -I. : lib doesn’t know about the info in META6.json


> Nil
> demanuel@archlinux test> zef install .
> ===> Testing: Test:ver<0.0.1>:auth:api<1>
> ===> Testing [OK] for Test:ver<0.0.1>:auth:api<1>
> ===> Installing: Test:ver<0.0.1>:auth:api<1>
>
> 1 bin/ script [run-me] installed to:
> /home/demanuel/.raku/bin
> demanuel@archlinux test> run-me
> Nil
> demanuel@archlinux test>
>
>
>
>
> Can someone point me what i'm doing wrong?
>
> Best regards,
> David Santiago
>
>


Re: Upcoming documentation meetings

2023-03-08 Thread Will Coleda
Team -

I'm going to cancel the call scheduled for this Saturday - we've had
great success in the past month coordinating via email (last resort),
and irc and github (preferred). We've made a lot of progress, got the
site live, closed/transferred probably 50+ tickets, setup milestones
on raku/doc & raku/doc-website with quarterly goals to prioritize the
tickets.

Thanks to everyone making the docs work a success - if you'd like to
volunteer, please stop by on IRC to chat, or reach out to me directly
via email.

We'll see where we are next month;

On Sat, Feb 11, 2023 at 2:26 PM Will Coleda  wrote:
>
> Team -
>
> I missed the call! My back has been troubling me the last day after traveling 
> for business this week and I spent the day unplugged and half asleep. I’ll do 
> a write up of what I’ve been working on recently and post it on the wiki.
>
> Thanks to everyone who has been working on getting us to our next big 
> milestone of deploying the updated site.
>
> On Mon, Feb 6, 2023 at 05:38 Polgár Márton  
> wrote:
>>
>> Hey, you thought right! We were just doing a little testing (or at least
>> offered to do) so that functionality concerns can be checked.
>>
>> By the way, I brought up the example of the Rakudo classes were Jitsi
>> kind of failed us and the second occasion was moved to Zoom. It could be
>> that something similar happens to us but I suppose we will have to see
>> that for ourselves.
>>
>> On 2023. 02. 06. 10:49, Richard Hainsworth wrote:
>> > I thought it was for 2nd Saturday, which is the 11-th
>> >
>> > On 04/02/2023 23:13, Ralph Mellor wrote:
>> >> That's super short notice but if you mean EST, so 5pm UK time,
>> >> it would work for me.
>> >>
>> >> On Fri, Feb 3, 2023 at 7:07 PM Will Coleda  wrote:
>> >>> I can do a test tomorrow at noon if there's interest.
>> >>>
>> >>> On Fri, Feb 3, 2023 at 10:27 AM Parrot Raiser <1parr...@gmail.com>
>> >>> wrote:
>> >>>> I think I had problems finding the audio options on Jitsi, and wasted
>> >>>> a couple of meetings doing so. I'd suggest a "test" setup meeting,
>> >>>> where the whole agenda is ensuring that everyone has all the settings
>> >>>> right. Maybe set up a static video shot with background music to give
>> >>>> feedback?
>> >>>>
>> >>>> On 2/2/23, Elizabeth Mattijsen  wrote:
>> >>>>>> On 2 Feb 2023, at 21:11, Ralph Mellor 
>> >>>>>> wrote:
>> >>>>>> My internet is flakey when humidity is around 80%+ and the weather
>> >>>>>> forecast suggests it may be but with luck I'll be "there" 5pm UK
>> >>>>>> time
>> >>>>>> (noon EST, 9am US west coast time) Saturday Feb 11.
>> >>>>> If you switch off your camera, you will reduce the needed bandwidth
>> >>>>> significantly.  But I guess I don't need to tell you that :-)
>> >>>>>
>> >>>>>
>> >>>>> Liz


Re: New doc site

2023-02-28 Thread Will Coleda
Sorry, there is no GUI programming that's part of the core; the docs
site is for the language spec and any core modules.

On Tue, Feb 28, 2023 at 1:12 AM ToddAndMargo via perl6-users
 wrote:
>
>
> > http://raku.docs.org
> At first glance, this looks like a treasure trove.
>
> I did not see anything about GUI programming,
> but I did not look that close.


Re: New doc site

2023-02-27 Thread Will Coleda
Embarrassing!

Thanks for catching that, thankful she got it right in the weekly!


On Mon, Feb 27, 2023 at 8:51 AM Marcel Timmerman  wrote:
>
> On 27-02-2023 01:08, Will Coleda wrote:
> > Since I know not everyone is on IRC:
> >
> > The updated raku.docs.org site is now live! Big thanks to everyone who
> > helped make this happen!
> >
> > If you find any issues please let me know at
> >
> > https://github.com/raku/doc/issues - content
> >
> > https://github.com/raku/doc-website/issues - site, search, styling, etc.
> Hi Will,
>
> Thanks for all the effort you and all writers/debuggers have put into it.
> A small typo above though; 'raku.docs.org' should be
> 'https://docs.raku.org/'.  However, I could find it via the weekly post
> of Elizabeth.
>
> Thanks again,
> Marcel


New doc site

2023-02-26 Thread Will Coleda
Since I know not everyone is on IRC:

The updated raku.docs.org site is now live! Big thanks to everyone who
helped make this happen!

If you find any issues please let me know at

https://github.com/raku/doc/issues - content

https://github.com/raku/doc-website/issues - site, search, styling, etc.


Re: Upcoming documentation meetings

2023-02-11 Thread Will Coleda
Team -

I missed the call! My back has been troubling me the last day after
traveling for business this week and I spent the day unplugged and half
asleep. I’ll do a write up of what I’ve been working on recently and post
it on the wiki.

Thanks to everyone who has been working on getting us to our next big
milestone of deploying the updated site.

On Mon, Feb 6, 2023 at 05:38 Polgár Márton 
wrote:

> Hey, you thought right! We were just doing a little testing (or at least
> offered to do) so that functionality concerns can be checked.
>
> By the way, I brought up the example of the Rakudo classes were Jitsi
> kind of failed us and the second occasion was moved to Zoom. It could be
> that something similar happens to us but I suppose we will have to see
> that for ourselves.
>
> On 2023. 02. 06. 10:49, Richard Hainsworth wrote:
> > I thought it was for 2nd Saturday, which is the 11-th
> >
> > On 04/02/2023 23:13, Ralph Mellor wrote:
> >> That's super short notice but if you mean EST, so 5pm UK time,
> >> it would work for me.
> >>
> >> On Fri, Feb 3, 2023 at 7:07 PM Will Coleda  wrote:
> >>> I can do a test tomorrow at noon if there's interest.
> >>>
> >>> On Fri, Feb 3, 2023 at 10:27 AM Parrot Raiser <1parr...@gmail.com>
> >>> wrote:
> >>>> I think I had problems finding the audio options on Jitsi, and wasted
> >>>> a couple of meetings doing so. I'd suggest a "test" setup meeting,
> >>>> where the whole agenda is ensuring that everyone has all the settings
> >>>> right. Maybe set up a static video shot with background music to give
> >>>> feedback?
> >>>>
> >>>> On 2/2/23, Elizabeth Mattijsen  wrote:
> >>>>>> On 2 Feb 2023, at 21:11, Ralph Mellor 
> >>>>>> wrote:
> >>>>>> My internet is flakey when humidity is around 80%+ and the weather
> >>>>>> forecast suggests it may be but with luck I'll be "there" 5pm UK
> >>>>>> time
> >>>>>> (noon EST, 9am US west coast time) Saturday Feb 11.
> >>>>> If you switch off your camera, you will reduce the needed bandwidth
> >>>>> significantly.  But I guess I don't need to tell you that :-)
> >>>>>
> >>>>>
> >>>>> Liz
>


Re: Upcoming documentation meetings

2023-02-04 Thread Will Coleda
Yes, Eastern- but the time had already passed, sorry.

On Sat, Feb 4, 2023 at 18:13 Ralph Mellor  wrote:

> That's super short notice but if you mean EST, so 5pm UK time,
> it would work for me.
>
> On Fri, Feb 3, 2023 at 7:07 PM Will Coleda  wrote:
> >
> > I can do a test tomorrow at noon if there's interest.
> >
> > On Fri, Feb 3, 2023 at 10:27 AM Parrot Raiser <1parr...@gmail.com>
> wrote:
> > >
> > > I think I had problems finding the audio options on Jitsi, and wasted
> > > a couple of meetings doing so. I'd suggest a "test" setup meeting,
> > > where the whole agenda is ensuring that everyone has all the settings
> > > right. Maybe set up a static video shot with background music to give
> > > feedback?
> > >
> > > On 2/2/23, Elizabeth Mattijsen  wrote:
> > > >> On 2 Feb 2023, at 21:11, Ralph Mellor 
> wrote:
> > > >> My internet is flakey when humidity is around 80%+ and the weather
> > > >> forecast suggests it may be but with luck I'll be "there" 5pm UK
> time
> > > >> (noon EST, 9am US west coast time) Saturday Feb 11.
> > > >
> > > > If you switch off your camera, you will reduce the needed bandwidth
> > > > significantly.  But I guess I don't need to tell you that  :-)
> > > >
> > > >
> > > > Liz
>


Re: Upcoming documentation meetings

2023-02-04 Thread Will Coleda
Ok,we joined at noon eastern but only two of us were there.

We'll see folks next week!

On Fri, Feb 3, 2023 at 2:06 PM Will Coleda  wrote:
>
> I can do a test tomorrow at noon if there's interest.
>
> On Fri, Feb 3, 2023 at 10:27 AM Parrot Raiser <1parr...@gmail.com> wrote:
> >
> > I think I had problems finding the audio options on Jitsi, and wasted
> > a couple of meetings doing so. I'd suggest a "test" setup meeting,
> > where the whole agenda is ensuring that everyone has all the settings
> > right. Maybe set up a static video shot with background music to give
> > feedback?
> >
> > On 2/2/23, Elizabeth Mattijsen  wrote:
> > >> On 2 Feb 2023, at 21:11, Ralph Mellor  wrote:
> > >> My internet is flakey when humidity is around 80%+ and the weather
> > >> forecast suggests it may be but with luck I'll be "there" 5pm UK time
> > >> (noon EST, 9am US west coast time) Saturday Feb 11.
> > >
> > > If you switch off your camera, you will reduce the needed bandwidth
> > > significantly.  But I guess I don't need to tell you that  :-)
> > >
> > >
> > > Liz


Re: Upcoming documentation meetings

2023-02-03 Thread Will Coleda
I can do a test tomorrow at noon if there's interest.

On Fri, Feb 3, 2023 at 10:27 AM Parrot Raiser <1parr...@gmail.com> wrote:
>
> I think I had problems finding the audio options on Jitsi, and wasted
> a couple of meetings doing so. I'd suggest a "test" setup meeting,
> where the whole agenda is ensuring that everyone has all the settings
> right. Maybe set up a static video shot with background music to give
> feedback?
>
> On 2/2/23, Elizabeth Mattijsen  wrote:
> >> On 2 Feb 2023, at 21:11, Ralph Mellor  wrote:
> >> My internet is flakey when humidity is around 80%+ and the weather
> >> forecast suggests it may be but with luck I'll be "there" 5pm UK time
> >> (noon EST, 9am US west coast time) Saturday Feb 11.
> >
> > If you switch off your camera, you will reduce the needed bandwidth
> > significantly.  But I guess I don't need to tell you that  :-)
> >
> >
> > Liz


Re: Virtualmin and Webmin web hosting control panel are written in Perl 5

2022-08-03 Thread Will Coleda
Sorry this list is for users of the programming language Raku, which
was formerly known as "Perl 6".

For Perl support, I'd recommend starting at https://www.perl.org/

Best of luck.

On Mon, Aug 1, 2022 at 4:16 AM Turritopsis Dohrnii Teo En Ming
 wrote:
>
> Subject: Virtualmin and Webmin web hosting control panel are written in Perl 5
>
> Good day from Singapore,
>
> I understand that Virtualmin and Webmin web hosting control panel are
> written in Perl 5.
>
> Source: In which perl framework is webmin written into?
> Link: https://archive.virtualmin.com/node/36615
>
> If I want to learn Perl programming language from scratch having
> totally no knowledge of it, how long (in terms of months or years)
> would it take before I can confidently and proficiently modify
> Virtualmin and Webmin code?
>
> Hopefully there is no steep learning curve.
>
> Thank you.
>
> Regards,
>
> Mr. Turritopsis Dohrnii Teo En Ming
> Targeted Individual in Singapore
> 1 Aug 2022 Mon
> Blogs:
> https://tdtemcerts.blogspot.com
> https://tdtemcerts.wordpress.com


Re: What is `Γäó`?

2022-07-04 Thread Will Coleda
https://www.reddit.com/r/rakulang/comments/kko35z/short_blog_post_fixing_raku_unicode_display/

To enable unicode output in your cmd session, run:

chcp 65001

On Fri, Jul 1, 2022 at 8:10 PM ToddAndMargo via perl6-users
 wrote:
>
> >> On Fri, Jul 1, 2022 at 7:34 PM ToddAndMargo via perl6-users
> >> mailto:perl6-users@perl.org>> wrote:
> >>
> >> Hi All,
> >>
> >> Windows 10 Pro - 21H2
> >> RakudoMoar-2022.06.01-win-x86_64-msvc.msi
> >>
> >>   > raku -v
> >> Welcome to RakudoΓäó v2022.06.
> >> Implementing the Raku® Programming Language v6.d.
> >> Built on MoarVM version 2022.06.
> >>
> >> What is `Γäó`?
> >>
> >> Inquiring minds want to know.
> >>
> >> -T
>
> On 7/1/22 16:38, Larry Wall wrote:
> > Technically speaking, it's mojibake.
> >
> > Larry
> >
>
> Thank you!
>
> Made me look it up!  Guess -v's unicode does
> not like a standard "cmd.exe" terminal.
>
>
> This from Power Shell:
>
> PS C:\> raku -v
> Welcome to RakudoΓäó v2022.06.
> Implementing the Raku® Programming Language v6.d.
> Built on MoarVM version 2022.06.
>
>


raku/docs: Planning

2022-05-08 Thread Will Coleda
Mentioning on list since I know this has specifically come up in the past.

If you are working on something for the documentation site, please let
me know. I am trying to get a list of all the projects in flight right
now.

Please see https://github.com/Raku/doc/wiki for what's on my list right now.


Re: Depreciated code????

2021-08-10 Thread Will Coleda
On Tue, Jul 27, 2021 at 4:38 PM ToddAndMargo via perl6-users
 wrote:
>
> On 7/27/21 12:21 PM, Elizabeth Mattijsen wrote:
>
> > So the deprecation logic is pointing at the wrong line.
> >
> > Where does this RunNoShellLib.pm6 live?  It's must be something inside that.
>
> Nothing has changed inside it for the last year.

You've presumably updated your copy of Rakudo in that time, and Rakudo
has started declaring that something is deprecated.

The error message tells you what is now deprecated (status), what you
should use instead, and when it will be removed. I assume your Run

BTW, depreciated is a financial term, this is deprecated, no "i".

> It resides in /home/linuxutil/p6lib
>
> The main program resides in /home/linuxutil
>
> And I call that line from the main program over 100
> times without issue.
>
> The error only happens when I call `exit;` from the
> main program.  And goes away when I comment out
> `# exit;`

Deprecation warning (not error) messages are emitted only when the
program exits, though the docs could make this clearer.

This is to avoid the warnings interleaving with any other program output.

See https://docs.raku.org/routine/is%20DEPRECATED for an example of
how you can add deprecated messages to your own code.

See 
https://github.com/rakudo/rakudo/blob/54f1b7a5f22c03b301809667c18cef00d6b1df39/src/core.c/Proc.pm6#L204
for the particular deprecation notice you're receiving.

> This is an odd one for me.
>
> I tried erasing p6lib/.precomp.  No joy.
>
> Here I can reproduce the error.  And without the exit:
>
>
> $ raku -e 'my $x; my $y;
>use lib "/home/linuxutil/p6lib";
>use RunNoShellLib :RunNoShell;
>($x,$y)= RunNoShell "pwd";'
>
> Saw 1 occurrence of deprecated code.
> 
> Sub RunNoShellAll (from RunNoShellLib) seen at:
>/home/linuxutil/p6lib/RunNoShellLib.pm6 (RunNoShellLib), line 148
> Please use exitcode and/or signal methods (status is to be removed in
> 2022.06) instead.
> 
> Please contact the author to have these occurrences of deprecated code
> adapted, so that this message will disappear!
>
>
>
> This is the sub being called:
>
> 141: sub RunNoShell( $RunString ) is export( :RunNoShell ) {
> 142:   # Return both the STDOUT and the return code
> 143:
> 144:   my $ReturnStr = "";
> 145:   my $ReturnErr = "";
> 146:   my $RtnCode   = 0;
> 147:
> 148:   ( $ReturnStr, $ReturnErr, $RtnCode ) = RunNoShellAll( $RunString,
> True, False, True );
> 149:   return ( $ReturnStr, $RtnCode );
> 150: }
>
>
> And it calls RunNoShellAll
>
> 36: sub RunNoShellAll( Str $RunString, Bool $StdOut, Bool $StdErr, Bool
> $Code ) {
>
>
> Do you see anything that is "depreciate" on any of these line?

It's probably a call to status inside this sub.

> Thank you for helping with this,
> -T
>


Re: A problem case for the site documentation search: the "^methods" method.

2021-03-09 Thread Will Coleda
Please open an issue for this at github.com/Raku/doc/issues

On Tue, Mar 2, 2021 at 8:12 PM Joseph Brenner  wrote:
>
> If you go to docs.raku.org and type "^methods" into the search
> window, you get a drop down looking something like this:
>
> class
>   Method
>   Submethod
>
> method
>   methods
>
> Reference
>  ^methods
>   methods
>   Submethods
>
> Routine
>   method
>
> Site Search
>   search entire site for ^methods
>
> There's a bunch of stuff in there I don't particularly want to
> see, but there's at least one entry that's definitely a hit:
>
>   Reference
> ^methods
>
> That takes you to here:
>
>   
> https://docs.raku.org/language/classtut#index-entry-$CIRCUMFLEX_ACCENTmethods
>
>
> On this, my browser leaves me at the top of the page, it doesn't jump
> to the internal label-- it's presumably missing from the page: and
> $CIRCUMFLEX_ACCENT is a variable that was supposed to interpolate
> but got treated as a literal.
>
> But anyway, I can do a text search for "^methods" now, and that
> takes me to this section, where there's some good material about
> "^methods":
>
>https://docs.raku.org/language/classtut#Introspection
>
> Every other entry in that drop down menu is a red herring.
> Particularly bad is the "search entire site" because it uses
> Google, and they don't treat characters like '^' as significant
> (once upon a time they had a "code search" feature, but it's
> long gone).
>
> There *are* other place whether "^methods" is mentioned in the
> documentation, but to find them I needed to do a git clone of
> the project and grep the source files on my hard drive:
>
> language/5to6-perlvar
> Language/operators
> Language/rb-nutshell
> Language/structures
> Type/ForeignCode
> Type/Metamodel/MethodContainer
> Type/Signature
> Type/Stash
>
> And actually, just the fact that the main search interface for
> the raku docs is a drop-down is a bit of an annoyance for me-- it
> no doubt seems very modern to some people, but I had to do a
> screen shot of it just to get it to sit still so I could type up
> the copy I included above.


Re: Newsgroups

2021-03-08 Thread Will Coleda
I'd rather spend our energy moving to a raku-named list than fixing
things on the perl6 lists.

On Sat, Mar 6, 2021 at 4:41 PM Ask Bjørn Hansen  wrote:
>
> The nntp.perl.org NNTP server runs from the list archive.
>
> Distributing to other nntp servers runs via a few feeds which may not work 
> anymore.
>
> We can add other feeds if you are running a server, but it was always a bit 
> tenuous and posting back via other NNTP servers isn’t supported.
>
>
> Ask


Re: surprise with start

2021-01-05 Thread Will Coleda
They are tested for compilation, not that they generate the desired
results (though this is a wishlist item in the docs backlog)

On Tue, Jan 5, 2021 at 9:59 AM Ralph Mellor  wrote:
>
> Sounds to me like it's time to raise a doc issue.
>
> Also, does  anyone know  if doc examples are tested?
>
> Not just when first published, but as part of blinning?
>
> On Tue, Jan 5, 2021 at 1:30 PM Theo van den Heuvel
>  wrote:
> >
> > Hi gurus,
> >
> > The first example in the documentation on the start control flow does
> > not seem to work as promised.
> > Here is the code:
> >
> > start { sleep 1; say "done" }
> > say "working";
> > # working, done
> >
> > Both 2020.1 and the 2020.12 version under Ubuntu yield only "working".
> > Am I missing something?
> >
> > --
> > Theo van den Heuvel


Re: Raku Steering Council: nomination period ends Sept 6th at midnight UTC!

2020-09-09 Thread Will Coleda
Nominations are closed, but voting is now open through September 20th.

Original announcement with notes about who is eligible to vote:

https://github.com/Raku/Raku-Steering-Council/blob/main/announcements/20200720.md

A ballot has been created that has instructions on voting:

https://github.com/Raku/Raku-Steering-Council/blob/main/nominations/2020/voting-form.md

On Tue, Sep 1, 2020 at 2:53 PM William Michels via perl6-users
 wrote:
>
> Hello all,
>
> A Raku Steering Council will be elected to serve the needs of the
> greater Raku Community. At present we are in the nomination period,
> which will end on Sept. 6th at midnight UTC:
>
> https://github.com/Raku/Raku-Steering-Council/blob/main/announcements/20200720.md
>
> Are you interested in nominating yourself? Are you interested in
> nominating a fellow Raku-un? If so, navigate to the following URL and
> add a file to the list of nominees:
>
> https://github.com/Raku/Raku-Steering-Council/tree/main/nominations/2020
>
> Thank you to all Raku Community members who have volunteered (or will
> volunteer) !!


Re: Access violation when creating class instance

2020-06-24 Thread Will Coleda
The download page requires an update. You can get 2020.05.1 here:

https://rakudo.org/downloads/star/

On Wed, Jun 24, 2020 at 6:11 AM WFB  wrote:
>
> Thanks JJ,
>
> I am using Rakudostar on Windows and 2020.01 is the current released version 
> so far.
> I will try to reduce the code a bit more but it is just one class definition 
> together with an instantiation. Not sure I can pack that in a one liner, but 
> will try.
>
> The access violation comes probably from C code handling some Windows stuff.
>
> On Wed, 24 Jun 2020 at 10:13, JJ Merelo  wrote:
>>
>>
>>
>> El mié., 24 jun. 2020 a las 10:05, WFB () 
>> escribió:
>>>
>>> Hi all,
>>>
>>> I have an access violation on Windows for one of my classes and think it is 
>>> a bug, but not entirely sure about that.
>>>
>>> Every now and then creating a class instance ended my script with error:
>>> Process finished with exit code -1073741819 (0xC005)
>>>
>>> The class looks like that:
>>>
>>> class KnowledgeKeeper::Note {
>>> has $.title is required;
>>> has $.data is required;
>>> has @.tags;
>>> has @.attachments;
>>> has DateTime $.creation-date = DateTime.now;
>>> has DateTime $.modification-date = DateTime.now;
>>> }
>>>
>>> I first recognized it when a test just ended without dieing. That happens 
>>> about in 50% of the test runs.
>>> But I could reproduce it with just a simple line in a script:
>>>
>>> #!/usr/bin/env perl6
>>> use KnowledgeKeeper::Note;
>>>
>>> my $note = KnowledgeKeeper::Note.new(title => "dasd", data => "adsad");
>>> say "OK";
>>>
>>> With this script it is not failing that much but at least reproducible:
>>>
>>> PS C:\dev\repos\KnowledgeKeeper> raku -Ilib .\bin\test.p6   
>>> OK
>>> PS C:\dev\repos\KnowledgeKeeper> raku -Ilib .\bin\test.p6   
>>> OK
>>> PS C:\dev\repos\KnowledgeKeeper> raku -Ilib .\bin\test.p6   
>>> OK
>>> PS C:\dev\repos\KnowledgeKeeper> raku -Ilib .\bin\test.p6   
>>> OK
>>> PS C:\dev\repos\KnowledgeKeeper> raku -Ilib .\bin\test.p6   
>>> OK
>>> PS C:\dev\repos\KnowledgeKeeper> raku -Ilib .\bin\test.p6   
>>> OK
>>> PS C:\dev\repos\KnowledgeKeeper> raku -Ilib .\bin\test.p6   
>>> OK
>>> PS C:\dev\repos\KnowledgeKeeper> raku -Ilib .\bin\test.p6   
>>> OK
>>> PS C:\dev\repos\KnowledgeKeeper> raku -Ilib .\bin\test.p6   
>>> OK
>>> PS C:\dev\repos\KnowledgeKeeper> raku -Ilib .\bin\test.p6   
>>> OK
>>> PS C:\dev\repos\KnowledgeKeeper> raku -Ilib .\bin\test.p6   
>>> OK
>>> PS C:\dev\repos\KnowledgeKeeper> raku -Ilib .\bin\test.p6   
>>> OK
>>> PS C:\dev\repos\KnowledgeKeeper> raku -Ilib .\bin\test.p6   
>>> OK
>>> PS C:\dev\repos\KnowledgeKeeper> raku -Ilib .\bin\test.p6   
>>> OK
>>> PS C:\dev\repos\KnowledgeKeeper> raku -Ilib .\bin\test.p6   
>>> OK
>>> PS C:\dev\repos\KnowledgeKeeper> raku -Ilib .\bin\test.p6   
>>> OK
>>> PS C:\dev\repos\KnowledgeKeeper> raku -Ilib .\bin\test.p6   
>>> OK
>>> PS C:\dev\repos\KnowledgeKeeper> raku -Ilib .\bin\test.p6   
>>>PS C:\dev\repos\KnowledgeKeeper> 
>>> $LastExitCode   
>>>-1073741819
>>>
>>> OS: Windows 10 1909 x64
>>> Raku: This is Rakudo version 2020.01 built on MoarVM version 2020.01.1 
>>> implementing Perl 6.d.
>>>
>>> Should I file a bug?
>>
>>
>> Definitely, yes. Please check first if it's still the same problem with the 
>> latest released version. Also, try to golf it down to the minimal amount of 
>> code that still produces the same result. Does the LastExitCode make any 
>> sense?
>>
>> --
>> JJ


Re: Is thre a way to do an "if" on "use lib"?

2020-06-07 Thread Will Coleda
the URL with literal !! in it didn't work for me, but this does:
https://docs.raku.org/language/operators#infix_??_%21%21

On Sun, Jun 7, 2020 at 4:53 PM Peter Pentchev  wrote:
>
> On Sun, Jun 07, 2020 at 12:32:09PM -0700, ToddAndMargo via perl6-users wrote:
> > On 2020-06-07 02:32, Peter Pentchev wrote:
> >
> > > BEGIN {
> > > $path = 'lib1'.IO.d ?? 'lib1' !! 'lib2';
> > > }
> >
> > Does the final "}" close the BEGIN?
>
> Well, there is an opening { after "BEGIN", so, yes.
>
> More precisely, it closes the block that is to be executed early.
>
> > > $path = 'lib1'.IO.d ?? 'lib1' !! 'lib2';
> >
> > Hi Peter,
> >
> > Would you explain what the ?? and !! are
> > doing in the above?
>
> https://docs.raku.org/language/operators#infix_??_!!
>
> G'luck,
> Peter
>
> --
> Peter Pentchev  r...@ringlet.net r...@debian.org p...@storpool.com
> PGP key:http://people.FreeBSD.org/~roam/roam.key.asc
> Key fingerprint 2EE7 A7A5 17FC 124C F115  C354 651E EFB0 2527 DF13


Re: I need a second pair of eyes

2020-05-27 Thread Will Coleda
Part of framing the question in the first place is reducing the
problem code to as small a subset as possible that still exhibits the
problem.

Often, in the course of doing this "golfing", you'll uncover the
problem yourself.

On Wed, May 27, 2020 at 4:59 PM ToddAndMargo via perl6-users
 wrote:
>
> On 2020-05-27 13:38, Veesh Goldman wrote:
> > well, like I said before, if you just show ALL of your code, then we'd
> > be able to know what happened.
>
> I fixed the mistake I made, which also fixed the
> wrong output from "say", so all is working now
> and I doubt the issue would reproduce.
>
> The code itself is 420 lines long, plus modules.
> Would you like me to eMail you the code and
> all the modules?  I am no sure what you can do
> with it.


Re: the state of the build and install instructions

2020-05-14 Thread Will Coleda
https://github.com/rakudo/rakudo/issues/3693

On Thu, May 14, 2020 at 5:11 PM Parrot Raiser <1parr...@gmail.com> wrote:
>
> Working with p.spek p.s...@tyil.nl on a revised Rakudo Star we
> encountered a problem with the Configure step; it might be worthwhile
> contacting him to coordinate any changes.
>
> On 5/14/20, Will Coleda  wrote:
> > I think it's out of date, yes.
> >
> > Need a "make install" to install the binaries (by default to
> > ./install). Previous versions of the build left a copy in ./perl6 but
> > that hasn't been the case for a while. Thanks for the ping, we'll open
> > a ticket to get INSTALL.txt updated.
> >
> > On Thu, May 14, 2020 at 4:20 PM Elizabeth Mattijsen  wrote:
> >>
> >> Personally, I always do:
> >>
> >> perl Configure.pl --gen-moar --gen-nqp --make-install
> >>
> >> > On 14 May 2020, at 22:08, Joseph Brenner  wrote:
> >> >
> >> > I'm having trouble doing a build of raku from github.  Could it
> >> > be the INSTALL.txt file is out-of-date?
> >> >
> >> > I was trying to build a "bleeding edge" Raku using the
> >> > instructions here:
> >> >
> >> >  https://github.com/rakudo/rakudo/blob/master/INSTALL.txt
> >> >
> >> > So I thought I'd just need to do this:
> >> >
> >> >  cd /home/doom/End/Sys/Perl6/dev
> >> >  git clone git://github.com/rakudo/rakudo.git
> >> >  cd rakudo
> >> >  git pull
> >> >  perl Configure.pl --gen-moar --gen-nqp --backends=moar
> >> >  make
> >> >
> >> >  pwd
> >> >  /home/doom/End/Sys/Perl6/dev/rakudo
> >> >
> >> >  ./perl6 --version
> >> >
> >> > But actually, there is no ./perl6 here.  And I don't see a
> >> > "Generating" message for it:
> >> >
> >> >  [...]
> >> >  +++ Generating   rakudo-gdb-m
> >> >  +++ Generating   rakudo-lldb-m
> >> >  +++ Generating   rakudo-valgrind-m
> >> >  +++ Generating   perl6-gdb-m
> >> >  +++ Generating   perl6-lldb-m
> >> >  +++ Generating   perl6-valgrind-m
> >> >
> >> > Trying something that looks close, I just get this an error:
> >> >
> >> >  ./perl6-gdb-m --version
> >> >
> >> >  Unhandled exception: While looking for
> >> > '/home/doom/End/Sys/Perl6/dev/rakudo/perl6.moarvm': no such file or
> >> > directory
> >> >
> >> > That file doesn't exist... so despite the --gen-moar option, it
> >> > wasn't created?
> >> >
> >> >  sudo updatedb
> >> >  locate perl6.moarvm
> >> >
> >> >  /home/doom/End/Sys/Perl6/rakudo-star-2019.03/rakudo/perl6.moarvm
> >> >  /home/doom/End/Sys/Perl6/rakudo-star-2020.01/rakudo/perl6.moarvm
> >> >  /root/rakudo/share/perl6/runtime/perl6.moarvm
> >> >
> >> > The INSTALL.txt describes a --with-moar option, so I thought I
> >> > might try building with an existing moarvm:
> >> >
> >> >  cd /home/doom/End/Sys/Perl6/dev/rakudo
> >> >  perl Configure.pl
> >> > --with-moar=/home/doom/End/Sys/Perl6/rakudo-star-2020.01/rakudo/perl6.moarvm
> >> > --gen-nqp --backends=moar
> >> >  make
> >> >
> >> > But that just errors out:
> >> >
> >> >  Unknown option: with-moar
> >


Re: the state of the build and install instructions

2020-05-14 Thread Will Coleda
I think it's out of date, yes.

Need a "make install" to install the binaries (by default to
./install). Previous versions of the build left a copy in ./perl6 but
that hasn't been the case for a while. Thanks for the ping, we'll open
a ticket to get INSTALL.txt updated.

On Thu, May 14, 2020 at 4:20 PM Elizabeth Mattijsen  wrote:
>
> Personally, I always do:
>
> perl Configure.pl --gen-moar --gen-nqp --make-install
>
> > On 14 May 2020, at 22:08, Joseph Brenner  wrote:
> >
> > I'm having trouble doing a build of raku from github.  Could it
> > be the INSTALL.txt file is out-of-date?
> >
> > I was trying to build a "bleeding edge" Raku using the
> > instructions here:
> >
> >  https://github.com/rakudo/rakudo/blob/master/INSTALL.txt
> >
> > So I thought I'd just need to do this:
> >
> >  cd /home/doom/End/Sys/Perl6/dev
> >  git clone git://github.com/rakudo/rakudo.git
> >  cd rakudo
> >  git pull
> >  perl Configure.pl --gen-moar --gen-nqp --backends=moar
> >  make
> >
> >  pwd
> >  /home/doom/End/Sys/Perl6/dev/rakudo
> >
> >  ./perl6 --version
> >
> > But actually, there is no ./perl6 here.  And I don't see a
> > "Generating" message for it:
> >
> >  [...]
> >  +++ Generating   rakudo-gdb-m
> >  +++ Generating   rakudo-lldb-m
> >  +++ Generating   rakudo-valgrind-m
> >  +++ Generating   perl6-gdb-m
> >  +++ Generating   perl6-lldb-m
> >  +++ Generating   perl6-valgrind-m
> >
> > Trying something that looks close, I just get this an error:
> >
> >  ./perl6-gdb-m --version
> >
> >  Unhandled exception: While looking for
> > '/home/doom/End/Sys/Perl6/dev/rakudo/perl6.moarvm': no such file or
> > directory
> >
> > That file doesn't exist... so despite the --gen-moar option, it
> > wasn't created?
> >
> >  sudo updatedb
> >  locate perl6.moarvm
> >
> >  /home/doom/End/Sys/Perl6/rakudo-star-2019.03/rakudo/perl6.moarvm
> >  /home/doom/End/Sys/Perl6/rakudo-star-2020.01/rakudo/perl6.moarvm
> >  /root/rakudo/share/perl6/runtime/perl6.moarvm
> >
> > The INSTALL.txt describes a --with-moar option, so I thought I
> > might try building with an existing moarvm:
> >
> >  cd /home/doom/End/Sys/Perl6/dev/rakudo
> >  perl Configure.pl
> > --with-moar=/home/doom/End/Sys/Perl6/rakudo-star-2020.01/rakudo/perl6.moarvm
> > --gen-nqp --backends=moar
> >  make
> >
> > But that just errors out:
> >
> >  Unknown option: with-moar


Re: vim-raku roadmap

2020-05-11 Thread Will Coleda
I think this got pulled into the Raku org so it didn't get lost - I
don't think anyone is "in charge" at the moment. I'll review the
existing PRs and apply them if possible.

On Sat, May 9, 2020 at 12:53 PM Marc Chantreux  wrote:
>
> hello rakuists,
>
> i want to work on raku-vim and saw that some PR from january aren't
> merged (https://github.com/Raku/vim-raku/pulls) so i would like to
> discuss about my roadmap with any interested people.
>
> my goals:
>
> * remove references to perl6
> * remove mappings that shouldn't be in a public package and
>   "conflicts" with digraphs anyway 
> (https://github.com/Raku/vim-raku/blob/master/ftplugin/raku.vim#L76)
> * improve inex to work with installed modules
> * start working with open issues
>
> waiting for someone in charge to contact me, i'll go on improving my repo.
>
> regards
> marc


Re: Exactly what is type match?

2018-12-20 Thread Will Coleda
"Match objects are the result of a successful regex match, this does
include any zero-width match. They store a reference to the original
string (.orig), positional and named captures, the positions of the
start and end of the match in the original string, and a payload
referred to as AST (abstract syntax tree), which can be used to build
data structures from complex regexes and grammars." -
https://docs.perl6.org/type/Match

When you say $0, you're using the Match. If you want the Str version,
explicitly cast it to Str with:

~$0

or

$0.Str

Regards.

On Thu, Dec 20, 2018 at 5:17 PM ToddAndMargo via perl6-users
 wrote:
>
> >> El jue., 20 dic. 2018 21:43, ToddAndMargo via perl6-users
> >> mailto:perl6-users@perl.org>> escribió:
> >>
> >> Hi All,
> >>
> >> Exactly what is type "Match"?
> >>
> >> Here I want $D0..$D3 to only be strings.  And it throws a match error.
> >>
> >> $ p6 'my $x="11.2.3.4"; my Str $D0; my Str $D1; my Str $D2; my Str $D3;
> >> $x~~m{ (<:N>) [.] (\d+) [.] (\d+) [.] (\d+) }; $D0 = $0; $D1 = $1;
> >> $D2 =
> >> $2; $D3 = $3; print "$D0 $D1 $D2 $D3\n";'
> >>
> >> Type check failed in assignment to $D0; expected Str but got Match
> >> (Match.new(from => 1, made ...)
> >> in block  at -e line 1
> >>
> >> Here is my work around:
> >>
> >> $ p6 'my $x="11.2.3.4"; my Str $D0; my Str $D1; my Str $D2; my Str $D3;
> >> $x~~m{ (<:N>+) [.] (\d+) [.] (\d+) [.] (\d+) }; $D0 = $0.Str; $D1 =
> >> $1.Str; $D2 = $2.Str; $D3 = $3.Str; print "$D0 $D1 $D2 $D3\n";'
> >> 11 2 3 4
> >>
> >>
> >> Many thanks,
> >> -T
>
> On 12/20/18 2:08 PM, JJ Merelo wrote:
> > Put a wriggly ~ in front of $0 to turn it into a Str; it's the Str
> > contextualizer
> >
>
> Hi JJ,
>
> You did not actually answer the question I asked.  What is type "Match"?
>
> And I am missing something in your answer
>
> This works:
>
> $ p6 'my $x="11.2."; my Str $D0; my Str $D1; $x~~m{ (<:N>+) [.] (\d+) };
> $D0 = $0.Str; $D1 = $1.Str;  print "$D0 $D1\n";'
> 11 2
>
>
> This does not.  One with a space after the ~, one without it.
>
> $ p6 'my $x="11.2."; my Str $D0; my Str $D1; $x~~m{ (<:N>+) [.] (\d+) };
> $D0 ~$0; $D1 ~ $1;  print "$D0 $D1\n";'
> WARNINGS for -e:
> Useless use of "~" in expression "$D1 ~ $1" in sink context (line 1)
> Useless use of "~" in expression "$D0 ~$0" in sink context (line 1)
> Use of uninitialized value of type Str in string context.
> Methods .^name, .perl, .gist, or .say can be used to stringify it to
> something meaningful.
>in block  at -e line 1
> Use of uninitialized value of type Str in string context.
> Methods .^name, .perl, .gist, or .say can be used to stringify it to
> something meaningful.
>in block  at -e line 1
> Use of uninitialized value of type Str in string context.
> Methods .^name, .perl, .gist, or .say can be used to stringify it to
> something meaningful.
>in block  at -e line 1
> Use of uninitialized value of type Str in string context.
> Methods .^name, .perl, .gist, or .say can be used to stringify it to
> something meaningful.
>in block  at -e line 1
>
> I am confused,
> -T


Re: Nesting pod6 formatting codes

2018-11-06 Thread Will Coleda
You can increase the # of <<'s :

C<<$*PERL.compiler.version < v2018.09>>

Or you can use unicode:

C«$*PERL.compiler.version < v2018.09»


On Tue, Nov 6, 2018 at 6:38 AM Fernando Santagata
 wrote:
>
> Hi,
>
> Here:
>
> https://docs.perl6.org/language/pod#Formatting_codes
>
> I read this:
>
>> Formatting codes may nest other formatting codes.
>
>
> but when I try this:
>
> C<$*PERL.compiler.version E<0x3C> v2018.09>
>
> p6doc outputs this:
>
>> $*PERL.compiler.version E<0x3C> v2018.09
>
>
> instead of $*PERL.compiler.version < v2018.09
>
> Did I misunderstand the whole nesting thing?
> Is there any other way to include a '<' character inside a formatting code?
>
> Thank you!
>
> --
> Fernando Santagata


Re: a `pe4rl6 -c` error to fix

2018-06-20 Thread Will Coleda
It's a warning, not an error.

On Tue, Jun 19, 2018 at 10:50 PM, Todd Chester  wrote:
> Dear Perl Developers,
>
> Would you please fix this `perl6 -c` checker error?
>
> $ perl6 -v
> This is Rakudo version 2018.05 built on MoarVM version 2018.05
> implementing Perl 6.c.
>
>
> The checkers passes this line with Syntax OK
>
>  $ReturnStr, $CurlStatus = CurlDownloadFile $FileAddr, $BaseFileName,
> %MaxTime<'MaxTime4'>;
>
>
> But actually running the line throws
>
>  Useless use of $ReturnStr in sink context
>
>
> The checker should throw an error if the line is "useless"
>
> Many thanks,
> -T



-- 
Will "Coke" Coleda


Re: flatmap considered harmful?

2017-07-27 Thread Will Coleda
I agree, that seems like pointless editorializing.

If you can open a ticket at perl6/doc/issues on github, I'll remove
that sentence this evening. (or someone can beat me to it.)

On Thu, Jul 27, 2017 at 2:39 PM, Sean McAfee <eef...@gmail.com> wrote:
> While browsing the Perl 6 docs recently, here:
>
> https://docs.perl6.org/type/List#method_flatmap
>
> I noticed this paragraph for the first time:
>
>> It is considered bad practice to use flatmap. Instead of .flatmap( ),
>> please use .map( ).flat as it is clear when the .flat is called and is not
>> confusing like .flatmap.
>
>
> To quote a certain president's lawyer:  Says who?
>
> Flat-mapping is awesome; I've written code that does it in several different
> programming languages, in none of which is it deprecated in this way.  Is
> there really any reason to avoid it in Perl 6 other than subjective notions
> of how confusing it is?
>



-- 
Will "Coke" Coleda


Re: contains question

2017-06-12 Thread Will Coleda
On Mon, Jun 12, 2017 at 4:07 PM, Elizabeth Mattijsen <l...@dijkmat.nl> wrote:
>> On 12 Jun 2017, at 22:04, Will Coleda <w...@coleda.com> wrote:
>> On Mon, Jun 12, 2017 at 5:17 AM, Francesco Rivetti <o...@oha.it> wrote:
>>> if you can:
>>>
>>> $s ~~ "foo"
>>> $s ~~ /foo/
>>>
>>> then wouldn't be good to have also:
>>>
>>> $s.contains("foo");
>>> $s.contains(/foo/);
>>
>> The latter is currently available as:
>>
>>> "foobar".match(/'foo'/);
>> 「foo」
>
> That’s not entirely true, as .contains returns a Bool:D, not a Match object.  
> It *could* be interesting to not have to build the entire Match object 
> somehow and just return a Bool:D in case of contains.
>
>
> Liz

Sorry, you're right, it's:

?"foobar".match(/'foo'/);


-- 
Will "Coke" Coleda


Re: contains question

2017-06-12 Thread Will Coleda
On Mon, Jun 12, 2017 at 5:17 AM, Francesco Rivetti <o...@oha.it> wrote:
> if you can:
>
> $s ~~ "foo"
> $s ~~ /foo/
>
> then wouldn't be good to have also:
>
> $s.contains("foo");
> $s.contains(/foo/);

The latter is currently available as:

> "foobar".match(/'foo'/);
「foo」


> IOW, overload .contains() with Str and Regex
>
> F
>
>
> On 06/12/2017 10:42 AM, Elizabeth Mattijsen wrote:
>>
>>
>>> On 12 Jun 2017, at 01:27, ToddAndMargo <toddandma...@zoho.com> wrote:
>>> perl6 -e 'my $x = "\t"; if $x !~~ /<[A..Z a..z 0..9]>/ {say "out"} else
>>> {say "in"}'
>>>
>>> Would this be easier to do with $x.contains?  Or would it
>>> be too worky?
>>
>>
>> .contains only takes a *single string* to look up.  So it is only useful
>> for checking whether “foo” exists in “foo bar”:
>>
>>say “foo bar”.contains(“foo”)
>>
>>
>>
>> Liz
>>
>



-- 
Will "Coke" Coleda


Re: Task::Star and Panda

2017-05-26 Thread Will Coleda
On Thu, May 25, 2017 at 5:12 AM, Gabor Szabo <szab...@gmail.com> wrote:
> On Thu, May 25, 2017 at 11:59 AM, Richard Hainsworth
> <rnhainswo...@gmail.com> wrote:
>
>> However, for someone new to the Perl6 world, there needs to be some form of
>> recommendation about useful "first" modules.
>
> Agree, but would go further:
>
> Someone new to Perl 6 should not need to make any decision regarding
> modules and should not need to install anything else for the common
> tasks. What are common tasks changes with time. These days accessing
> SQLite, handling JSON, YAML, INI files, and even XML falls in that
> place. Even simple web application development falls in that category.

This decision can be outsourced to the community (as this thread
shows). I think a bundle of this nature would be more useful than
Task::Star (which had a basically random collection) or Task::Popular
(which IMO is random on another axis)

> IMHO if the distribution of Perl 6 (I guess I mean Rakudo Start) does
> not come with such capabilities then it won't be able to compete with
> languages such as PHP or Python because of
> 1) Analysis paralyzes
> 2) Lack of knowledge how to install
> 3) Lack of rights (technical or legal)

Note, Rakudo::Star is not intended to be "the" distribution. (as the
.vip discussion I think highlights)

Note that from a business standpoint, the bundling isn't helpful
(along with your legal rights question on #3); Each of these pieces of
software has its own licensing considerations, and is going to have to
be reviewed to insure that it can be used on a particular project/by a
particular team. (The bundling is much more relevant for
students/personal development)

I think a more helpful approach is to move on the CPAN approach and
then use existing tools for recommendations/ratings, etc.

Finally, as I recall, Perl 6 made a deliberate decision not to bundle
as much in core as Perl 5, and to push out these decisions about what
is a useful group of modules to the community anyway - which I am glad
to see is happening here.

> Gabor
> http://perl6maven.com/



-- 
Will "Coke" Coleda


Re: Task::Star and Panda

2017-05-26 Thread Will Coleda
On Wed, May 24, 2017 at 12:27 AM, ToddAndMargo <toddandma...@zoho.com> wrote:
> On 05/23/2017 07:44 PM, Richard Hainsworth wrote:
>>
>> The issue is not poor quality software!
>>
>> The problem is community management.
>
>
> You have a point.  I think the lack of interest is
> because they have decided to use zef instead.
>
> I was really using "Stinks" in a general sense.  Next
> time I will use "Broken"

Again, panda is not actually broken. Sounds like it was missing in a
travis config, but that isn't an issue with panda, per se.

"zef is recommended over panda" is the message here. If you feel the
need to specify why, you can point to the ability to interact with
CPAN, improved module dependency checking, inclusion with
Rakudo::Star, etc.

-- 
Will "Coke" Coleda


Re: Task::Star and Panda

2017-05-23 Thread Will Coleda
On Tue, May 23, 2017 at 3:24 AM, ToddAndMargo <toddandma...@zoho.com> wrote:
> On 05/23/2017 12:05 AM, Richard Hainsworth wrote:
>>
>> I was upgrading perl6 and following the standard instructions, only to
>> find Task::Star is no longer in the Ecosystem.
>>
>> Surely if this is not an error, the change should be notified.
>>
>> Also, I upgraded a module of my own, but the Travis testing failed. It
>> seems that panda is not working either.
>>
>> Panda might be deprecated, but removing it seems a bit sudden. I checked
>> and there seem to be quite a few modules that reference panda in their
>> travis.yml files.

Removed? It's still available at https://github.com/tadzik/panda …

>> RIchard
>
>
>
> Hi Richard,
>
> Panda stinks.

That's not really true or called for.

>  It is being replaced with `zef`.
> Here are my notes on zef (it presumes Fedora Core
> 25 Linux, but you can get the procedure from it for
> Windows):
>
> HTH,
> -T
>
> Installing modules: zef
>
> Note: modules can be downloaded from
>  https://modules.perl6.org/
>   with
>  git clone address_from_above
>
>
> Install zef:
> $ git clone https://github.com/ugexe/zef.git
> $ mv zef zef.git
> $ cd zef.git
> $ perl6 -Ilib bin/zef install .
> $ cd ..
>
> or if using https://github.com/nxadm/rakudo-pkg/releases
> $ install_zef_as_user.sh: install it in ~/.perl6
> # install_zef_as_root.sh: install it in /opt/rakudo as root (use sudo)
> It will give you a path merge one liner
>
> This should install to /usr/lib64/perl6/site/bin/zef
> Make a link to it with
> # ln -s /usr/lib64/perl6/site/bin/zef /usr/bin/zef
>
> Then update your path:
> # vi /etc/profile
>   under the last pathmunge, add (depending on where perl6 really is)
># perl 6's panda path
># pathmunge /usr/share/perl6/site/bin after
>pathmunge /opt/rakudo/bin after
>
> And make a link from the actual location to the expected location
> # ln -s /opt/rakudo/bin/perl6  /usr/bin/perl6
>
>
>
> USAGE
>
> Note: run as a user
>
> zef --help
>
> # install the CSV::Parser distribution   (it will also install
> dependancies)
> zef install CSV::Parser
> zef install Net::SMTP
> zef install NQP::Eval
> zef install Terminal::ANSIColor
>
>
> # search for distribution names matching `CSV`
> zef search CSV
>
> # detailed information for a matching distribution
> zef info CSV::Parser
>
> # list all available distributions
> zef list
>
> # list reverse dependencies of an identity
> zef rdepends HTTP::UserAgent
>
> # test project in current directory
> zef test .
>
> # fetch a specific module only
> zef fetch CSV::Parser
>
> # fetch a module, then shell into its local path
> zef look CSV::Parser
>
> # smoke test modules from all repositories
> zef smoke
>
> # run Build.pm if one exists in given path
> zef build .
>
> # update Repository package lists
> zef update
>
> # upgrade all distributions (BETA)
> zef upgrade
>
> # upgrade specific distribution (BETA)
> zef upgrade CSV::Parser
>
> # lookup module info by name/path/sha1
> zef --sha1 locate 9FA0AC28824EE9E5A9C0F99951CA870148AE378E
>
>
>
>
>
>
>
> --
> ~~
> Computers are like air conditioners.
> They malfunction when you open windows
> ~~



-- 
Will "Coke" Coleda


Re: Bug report for Crypt::Bcrypt - cannot install

2017-03-28 Thread Will Coleda
Looks like you already found the dependency that is failing:
https://github.com/FROGGS/p6-if/issues/2

The original module doesn't have a bug queue, and I don't think we
have a community solution to authors that don't have bugqueues.
(except to kindly ask them to enable them)



On Tue, Mar 28, 2017 at 2:33 PM, Gabor Szabo <szab...@gmail.com> wrote:
> I've just tried to install Crypt::Bcrypt into my Docker based Rakudo
> but it failed.
> I checked the GitHub repo of the project
> https://github.com/skinkade/p6-Crypt-Bcrypt
> that was linked from modules.perl6.org but it could not find the way
> to submit bug reports.
>
> Where should I report it?
>
>
> # perl6 -v
> This is Rakudo version 2017.01 built on MoarVM version 2017.01
> implementing Perl 6.c.
>
>
> # zef install Crypt::Bcrypt
> ===> Searching for: Crypt::Bcrypt
> ===> Searching for missing dependencies: Crypt::Random
> ===> Searching for missing dependencies: if
> ===> Fetching: Crypt::Bcrypt
> ===> Fetching: Crypt::Random
> ===> Fetching: if
> ===> Building: Crypt::Bcrypt:ver('1.3.1')
> ===> Building [OK] for Crypt::Bcrypt:ver('1.3.1')
> ===> Testing: if:ver('0.1.0'):auth('github:FROGGS')
> t/if.t ..1/5===SORRY!===
> Cannot find method 'symtable' on object of type GLOBAL
> # Looks like you planned 5 tests, but ran 1
> t/if.t .. All 5 subtests passed
> All tests successful.
>
> Test Summary Report
> ---
> t/if.t (Wstat: 0 Tests: 1 Failed: 0)
>   Parse errors: Bad plan.  You planned 5 tests but ran 1.
> Files=1, Tests=1,  1 wallclock secs
> Result: FAILED
> ===> Testing [FAIL]: if:ver('0.1.0'):auth('github:FROGGS')
> Aborting due to test failure: if:ver('0.1.0'):auth('github:FROGGS')
> (use --force to override)
>   in code  at 
> /usr/share/perl6/site/sources/1DC0BAA246D0774E7EB4F5119C6168E0D8266EFA
> (Zef::Client) line 306
>   in method test at
> /usr/share/perl6/site/sources/1DC0BAA246D0774E7EB4F5119C6168E0D8266EFA
> (Zef::Client) line 285
>   in code  at 
> /usr/share/perl6/site/sources/1DC0BAA246D0774E7EB4F5119C6168E0D8266EFA
> (Zef::Client) line 457
>   in sub  at 
> /usr/share/perl6/site/sources/1DC0BAA246D0774E7EB4F5119C6168E0D8266EFA
> (Zef::Client) line 454
>   in method install at
> /usr/share/perl6/site/sources/1DC0BAA246D0774E7EB4F5119C6168E0D8266EFA
> (Zef::Client) line 560
>   in sub MAIN at
> /usr/share/perl6/site/sources/A9948E7371E0EB9AFDF1EEEB07B52A1B75537C31
> (Zef::CLI) line 123
>   in block  at
> /usr/share/perl6/site/resources/3DD33EF601FD300095284AE7C24B770BAADAF32E
> line 1



-- 
Will "Coke" Coleda


Re: Using Rakudo Start on OSX using the .dmg

2017-03-25 Thread Will Coleda
These notes are already available in the README.txt file that is in the .dmg

Regards.

On Sat, Mar 25, 2017 at 4:54 AM, Gabor Szabo <szab...@gmail.com> wrote:
> Hi,
>
> I just tried to use the .dmg version of Rakudo Star.
> I might not be the typical Mac user as I spent quite some time trying to 
> figure
> out what do I need to do in order to start using it after the installation.
>
> In the end I found that it was installed to  /Applications/Rakudo
>
> Then I added these to my .bash_profile:
>
> export RAKUDO=/Applications/Rakudo
> export PATH=$RAKUDO/bin:$RAKUDO/share/perl6/site/bin/:$PATH
> export PERL6LIB=$RAKUDO/share/perl6/site/lib/
>
> reloaded it and then I could use it.
>
> Maybe some notes like this could be added to
> http://rakudo.org/how-to-get-rakudo/
>
> regards
>Gabor



-- 
Will "Coke" Coleda


Re: Perl 6 docs

2017-03-25 Thread Will Coleda
Please open an issue at https://github.com/perl6/doc/issues so it gets
tracked, thanks!

On Sat, Mar 25, 2017 at 8:36 AM, Gabor Szabo <szab...@gmail.com> wrote:
> When I search for %INC at https://docs.perl6.org/ it offers   "%INC (Perl 5)"
> but when I search for the more common @INC
>
> Luckily the former leads to
> https://docs.perl6.org/language/5to6-perlvar which also has
> information on the latter, but it would be nice if that was also
> recognized in the search box.
>
> Gabor



-- 
Will "Coke" Coleda


Re: my command line notes:

2017-03-14 Thread Will Coleda
FYI

https://docs.perl6.org/language/functions#index-entry-MAIN

On Tue, Mar 14, 2017 at 3:58 PM, ToddAndMargo <toddandma...@zoho.com> wrote:
> Hi All,
>
> I wrote myself a little demonstration program on
> reading elements from the command line.  I thought
> it might be useful to others (DuckDuckGo is a bust
> on Perl 6 and the command line):
>
> -T
>
>
> Perl 6: command line parameters:
>
> 
> #!/usr/bin/perl6
>
> if not @*ARGS.elems > 0 { say "command line is empty"; exit 0; }
>
> say "\@\*ARGS has " ~ @*ARGS.elems ~ " elements";
> say "   \@\*ARGS  = <" ~ @*ARGS  ~ ">";
> say "   \@\*ARGS.perl = <" ~ @*ARGS.perl ~ ">\n";
>
> say "say in a loop:";
> for @*ARGS.kv -> $indx, $Arg { say "   \@\*ARGS[$indx] = <$Arg>"; }
> 
>
>
> $ ./CommandLineTest.pl6
> command line is empty
>
> $ ./CommandLineTest.pl6 a b c
> @*ARGS has 3 elements
>@*ARGS  = 
>@*ARGS.perl = <["a", "b", "c"]>
>
> say in a loop:
>@*ARGS[0] = 
>@*ARGS[1] = 
>@*ARGS[2] = 
>
>
> --
> ~~
> Computers are like air conditioners.
> They malfunction when you open windows
> ~~



-- 
Will "Coke" Coleda


Re: Perl 5 list assignment idiom

2017-03-13 Thread Will Coleda
Works the same in Perl 6, and you can avoid the parens. Using helper
subs that return one or two item lists, here's some sample code:

$ perl6
> sub one-thing { return ("hi",) }
sub one-thing () { #`(Sub|140454852043936) ... }
> 1 == my $script = one-thing
True
> $script
(hi)


> sub two-things { return  }
sub two-things () { #`(Sub|140454852044088) ... }
> 1 == my $bar = two-things
False
> $bar
(hi there)



On Mon, Mar 13, 2017 at 2:32 PM, Sean McAfee <eef...@gmail.com> wrote:
> In Perl 5, list assignment in scalar context evaluates to the number of list
> elements on the right-hand side.  That enables an idiom that I rather like:
>
> 1 == (my ($script) = $page->find('//script'))
>   or die "Other than exactly one script element found";
>
> Can a similar expression that avoids an intermediate array variable be
> written in Perl 6?
>



-- 
Will "Coke" Coleda


Re: How do I call system functions?

2017-03-08 Thread Will Coleda
Perl 6 uses "NativeCall" to call out to native library functions. I
would start with

https://docs.perl6.org/language/nativecall

and come back with specific questions.

On Wed, Mar 8, 2017 at 5:51 AM, ToddAndMargo <toddandma...@zoho.com> wrote:
> Hi All,
>
> In Linux, how do I call system functions from Perl 6?
>
> int XStoreBytes(Display *display, char *bytes, int nbytes);
>
> And what is that?  "C"?
>
> Is there an inline "C" call?
>
> Many thanks,
> -T
>
>
> man XStoreBuffer
>
> NAME
>XStoreBytes, XStoreBuffer, XFetchBytes, XFetchBuffer,
>XRotateBuffers -  manipulate cut and paste buffers
>
> SYNTAX
>int XStoreBytes(Display *display, char *bytes, int nbytes);
>
>int XStoreBuffer(Display *display, char *bytes, int nbytes, int buf‐
>   fer);
>
>char *XFetchBytes(Display *display, int *nbytes_return);
>
>char *XFetchBuffer(Display *display, int *nbytes_return, int buffer);
>
>int XRotateBuffers(Display *display, int rotate);
>
>
> --
> ~~
> Computers are like air conditioners.
> They malfunction when you open windows
> ~~



-- 
Will "Coke" Coleda


Re: Install Drive on Windows

2017-03-07 Thread Will Coleda
Rakudo isn't relocatable (yet)- you cannot move it to a different
install directory and have it still work, so when doing a build for
the installer, C: is the only reasonable default.

Please watch https://github.com/rakudo/star/issues/10 (which
specifically mentions parrot, which rakudo no longer uses, but I think
the current infrastructure suffers from a similar issue)

Regards.

On Tue, Mar 7, 2017 at 3:16 AM, Andreas Mueller
<andreas.muel...@biologie.uni-osnabrueck.de> wrote:
>   Hi,
>
>   why do I have to install rakudo on drive C:\ ?
>
>   Greetings
>   Andreas
>
> --
> Andreas Müller



-- 
Will "Coke" Coleda


Re: Is there a list out there of all the \n characters?

2017-03-06 Thread Will Coleda
Can you clarify the request here, I'm not sure what you mean.

On Mon, Mar 6, 2017 at 5:14 AM, ToddAndMargo <toddandma...@zoho.com> wrote:
> Hi All,
>
> Is there a list of all the \n pairs out there somewhere?
>
> Many thanks,
> -T



-- 
Will "Coke" Coleda


Re: pod question

2017-03-01 Thread Will Coleda
Not true, '=for' is part of POD6. See below.

If you're getting errors, it's helpful to reduce the example to a
reasonably small bit of code that duplicates the same error; either
you'll realize the issue as you remove unrelated bits of code, or
you'll end up with an example that epitomizes the problem you're
facing.


$ cat foo.p6
=for comment
   This is a comment

say "hi";

$ perl6 foo.p6
hi


Re: debugging and HookGrammar

2017-02-28 Thread Will Coleda
FYI, rakudobrew is not recommend for users.

You could try "rakudobrew rehash", though I'm not sure if that will
help in this case.

On Tue, Feb 28, 2017 at 7:55 AM, Theo van den Heuvel
<vdheu...@heuvelhlt.nl> wrote:
> hi everyone,
>
> last week I used rakudobrew to update my Perl6 installation on Ubuntu.
>
>   This is Rakudo version 2017.02-106-gdd4dfb1 built on MoarVM version
> 2017.02-7-g3d85900
>   implementing Perl 6.c.
>
> Now, whenever I try perl6-debug-m I get
>
>   Cannot find method 'setlang' on object of type Perl6::HookGrammar
>at gen/moar/perl6-debug.nqp:407
> (/home/theo/.rakudobrew/moar-nom/install/share/perl6/runtime/perl6-debug.moarvm:comp_unit)
>
> followed by a slew of other nqp stuff. Is there something wrong with my
> installation? Suggestions for repair?
>
> Thanks,
>
>
> --
> Theo van den Heuvel
> Malden, The Netherlands



-- 
Will "Coke" Coleda


Re: panda's port?

2017-01-17 Thread Will Coleda
Note that you can also set the environment variable GIT_PROTOCOL to
https or ssh to use those protocols on their various ports,
respectively.

(Useful when behind a corporate firewall and http proxy)

$ GIT_PROTOCOL=https panda install JSON::Fast



On Fri, Jan 13, 2017 at 8:25 PM, ToddAndMargo <toddandma...@zoho.com> wrote:
> On 01/13/2017 05:09 PM, ToddAndMargo wrote:
>>
>> Hi All,
>>
>>Anyone know what port and protocol (tcp, udp) panda uses
>> to install modules?
>>
>> Many thanks,
>> -T
>>
>
> Figured it out.  It is using "git" or port 9418 tcp.
>
>
> --
> ~~
> Computers are like air conditioners.
> They malfunction when you open windows
> ~~



-- 
Will "Coke" Coleda


Re: Observations from a C++/Python developer that never used Perl5

2016-09-08 Thread Will Coleda
> As I recall it, macros where left out of the initial implementation. So you 
> have to wait for another Christmas Present :-)

The version of macros that was available in Rakudo when the 6.c spec
was cut was released with the compiler; It's marked experimental and
is therefore subject to change, but they are in there.

On Thu, Sep 8, 2016 at 1:25 AM, Kaare Rasmussen <ka...@jasonic.dk> wrote:
> Hi Joseph
>
> Welcome, and I hope you'll stick around.
>
> Now, I haven't had the time to dig into Perl 6 myself, only to poke at it
> from time to time. But, while waiting for people who know something to
> respond, I'll ask you to be a little concise in certain areas.
>>
>> * I can find no concise easy-to-understand explanation for how to define
>> what other languages would call constructors. Instead there is a mess of
>> bless, magic inside Mu, new, BUILD, BUILDALL... It's not clear when you
>> should prefer to override BUILD or new or both. I also assume there are some
>> benefits to teasing apart object construction this way, but right now I
>> don't know what they are. This is also an area where I think there are older
>> blog posts confusing the situation because they discuss semantics from an
>> older version of Perl6.
>
>
> I wonder what you miss from https://docs.perl6.org/language/classtut. To me,
> it explains the hows and whys very thoroughly. Now, I now people have been
> hard at work improving the documentation, so if you can point to what's
> missing or unclear, I'm sure it will help a lot.
>>
>>
>> * It would be nice for people coming from Python for a tutorial that
>> explained the basic module importing, the scope of things imported, and how
>> name collisions are avoided when importing from two modules that have the
>> same sub. The official documentation is trying to distinguish a bunch of
>> subtle and presumably useful for advanced users distinctions that are
>> completely lost on a newcomer. I just want to know what is the equivalent of
>> import, from foo import bar, and import foo as bar.
>
>
> It sounds like "arh, do it yourself", but I'd like to say that, coming from
> a Python background, you'd be the perfect person to do just that. At least
> take notes and post them, so it can go into a tutorial of some kind.
>
>> * Coming from almost any other language the => operator is dark magic
>> because of its implicit quoting of the left hand side. Likewise the implicit
>> quoting done by . Some explanation of why this is done, and how you
>> could write a sub or operator that does the same thing would probably go a
>> long way towards making it less confusing.
>
>
> The pair operator is explained here
> https://docs.perl6.org/language/operators#index-entry-pair_constructor and
> word quoting here https://docs.perl6.org/language/quoting#Word_quoting:_qw -
> perhaps they're more Perl 5-like, but both are very handy features. Perhaps
> you can expand a little as to what you'd like explained. Coming from Perl 5,
> I'm certainly damaged in that respect.
>
>> * I haven't been able to find any guidance on when I should be using a
>> role and when I should be using a class. The former seem to give you better
>> error messages when you forget to define a method from a base role... So
>> never use classes? I suspect it's more complicated than that.
>
>
> I guess this is something everybody can have an opinion about. There are a
> number of reasons to go one or the other way. Isn't it a topic for all
> modern languages?
>
>> * Types feel like second-class citizens. Without knowing the details of
>> the implementation it feels like the errors that Perl can statically detect
>> is chosen at random. It's generally useful
>
>
> I think your wording is misleading. The things that Perl 6 can detect when
> compiling shouldn't be a matter of choice, but of what's possible. Perhaps
> you can give some examples, I'm sure there are perfectly good reasons for
> the way things are. If not, it may be a bug, and the compiler can be
> improved.
>
>> argument constructors, are all pretty sweet as well. Macros look pretty
>> promising although again I had trouble finding good tutorials.
>
>
> As I recall it, macros where left out of the initial implementation. So you
> have to wait for another Christmas Present :-)
>
> /kaare
>



-- 
Will "Coke" Coleda


Re: can Perl 6 bootstrap itself

2016-08-22 Thread Will Coleda
Bennet is correct.

If you're buildilng from source, you'll need perl5 and make (and git
if you don't have a tarball to work from)

If you're using MoarVM backend, you'll need a C compiler, and javac
for the JVM backend.

Note that Perl 6 is implemented mostly in Perl 6 and NQP (Not Quite
Perl 6), but only NQP is bootstrapped.

On Mon, Aug 22, 2016 at 11:13 AM, Bennett Todd <bennett.e.t...@gmail.com> wrote:
> I think perl6 isn't self bootstrapping, yet. Unless I've gotten myself 
> confused, some of the environment sniffing and basic build automation is in 
> perl5, and the foundation is in C. Also wants make.



-- 
Will "Coke" Coleda


Re: perl6 reserves

2016-05-16 Thread Will Coleda
On Fri, May 13, 2016 at 1:24 PM, Hans Ginzel <h...@matfyz.cz> wrote:
> Hello!
>
> There are good lists of Perl6 features like
> https://wendyga.wordpress.com/2015/12/25/why-would-you-want-to-use-perl-6-some-answers/
> http://doc.perl6.org/language/faq#Why_should_I_learn_Perl_6?_What%27s_so_great_about_it
>
> Do you know about list of Perl6 reserves? What is missing? Where it can be
> better?
>
> Some thoughts:
>
> Perl6 cannot be (yet?) used as web client side scripting language.
> (JavaScript replacament)
> http://stackoverflow.com/questions/930716/alternatives-to-javascript

FYI: http://blogs.perl.org/users/pawel_murias/

> Perl6 cannot be (yet?) compiled into executable code.
> I don't mean bundling script with interpreter and VM.
> Although when none dynamic features are used and every variable is typed.
> (C replacement)
> https://topcoder23.wordpress.com/2011/10/25/linus-torvalds-on-why-c-rocks-and-c-sucks/
>
> Perl6 does not (yet?) support online module replacement
> for Highly available, non-stop applications.
> (Erlang replacement)
> https://en.wikipedia.org/wiki/Erlang_%28programming_language%29
>
> What are other features/properties in other languages missing in perl6,
> please?
> Compilation to JS?
> https://en.wikipedia.org/wiki/Dart_%28programming_language%29
> …
>
> Kind regards,
> Hans
>
> PS: Please serious answers, no flame.



-- 
Will "Coke" Coleda


Re: Helping Perl 6: a complete dev environment

2016-05-01 Thread Will Coleda
FYI, anything that claims to run parrot code is very out of date at this point.

On Thu, Apr 28, 2016 at 7:52 PM, Jovan Trujillo
<jovan.trujil...@gmail.com> wrote:
> I see Padre has hooks for running Perl 6 and even parrot code. Don't know if 
> Git is built into it yet. Probably easier to get started than using Emacs or 
> spacemacs
>
> Sent from my iPhone
>
>> On Apr 28, 2016, at 3:26 PM, Tom Browder <tom.brow...@gmail.com> wrote:
>>
>> Is there a pointer somewhere on how to set up a complete development 
>> environment for Perl 6?  I know how to clone individual pieces but I don't 
>> know how to use the various cloned directories for a complete dev 
>> environment using them.  I assume I can install each piece individually but 
>> maybe there is some magic way to use rakudobrew to do it more easily.
>>
>> I would like to be able to easily test and create pull requests for rakudo 
>> and also the Task::Star modules but haven't yet figured out how to get it 
>> all working in the most effective manner.
>>
>> Thanks.
>>
>> Best regards,
>>
>> -Tom



-- 
Will "Coke" Coleda


Re: Most wanted module: Net::SMTP

2016-02-22 Thread Will Coleda
On Mon, Feb 22, 2016 at 9:05 AM, Tom Browder <tom.brow...@gmail.com> wrote:
> On Mon, Feb 22, 2016 at 12:08 AM, Kaare Rasmussen <ka...@jasonic.dk> wrote:
>> On 2016-02-20 20:50, Tom Browder wrote:
>>>
>>> I notice that module Net::SMTP is on the most wanted list and shown as
>>> a WIP. However, on a lark I decided to try:
>>
>> I guess you refer to
>> https://github.com/perl6/perl6-most-wanted/blob/master/most-wanted/modules.md
>> which seems to be a compilation of wishes for Perl 6.  Nobody can decide
>> what gets worked on in Perl 6; I think this is just a collection of ideas
>> for someone to pick up if they have time.
>>
>>> 1. Why is Net::SMTP available in the ecosystem if it is still a WIP
>>> (and doesn't pass testing)?
>
> Okay, I confused two issues.  Questions:
>
> 1. Shouldn't a Perl 6 module available in the Perl 6 ecosystem no
> longer be shown on the most wanted list?  (And if it's still a WIP,
> the installation via Panda should note that somehow.)

Specifically not addressing the "should it be on the most wanted list
or not still" question, but:

panda can't really tell if a module is "good", only if it's
installable. Seems like a README in the project repo is a good start
here. (and maybe something similar in the MW list). Or perhaps a
version convention.

I'm sure we can crib some notes from the perl 5 ecosystem here about
determining if a module has quality.

No one is suggesting the ecosystem setup is in a final state; There
will be hiccups like this as we grow.

> 2. How does one install a local (non-panda-list recognized) module
> (e.g., one downloaded with git cl;one ...)?
>
> Thanks.
>
> Best regards,
>
> -Tom

$ panda install .

-- 
Will "Coke" Coleda


Re: Perl 6 advocacy needs a mailing list

2016-02-05 Thread Will Coleda
Please open a ticket for this request at
https://github.com/perl6/user-experience/issues so we don't lose it.
Thanks.

On Fri, Feb 5, 2016 at 8:18 AM, Tom Browder <tom.brow...@gmail.com> wrote:
> I would like to see such a list. It would help separate some of us
> bloviators, dreamers, and hand wavers from the others on the users list.
>
> -Tom



-- 
Will "Coke" Coleda


Re: Needed: Rakudo Star with 6.c Christmas Perl 6 release

2016-01-25 Thread Will Coleda
FYI,

http://blogs.perl.org/users/coke/2016/01/perl-6c-christmas-rakudo-star-coming-soon.html

We hope to have an R* release out in the next two weeks. Thanks for
your patience.

On Sat, Jan 16, 2016 at 1:45 PM, Brandon Allbery <allber...@gmail.com> wrote:
> On Sat, Jan 16, 2016 at 1:40 PM, James E Keenan <jk...@verizon.net> wrote:
>>
>> Is there a timeline for the release of a Rakudo Star with 6.c?
>
>
> I don't think there is a specific timeline, but given the rakudo bug fixes
> since 6.c (in particular with CompUnitRepo, which would have made it
> difficult to install the modules one expects in Star) it was correct to
> delay a Star release. Hopefully it'll happen in the next few days.
>
> --
> brandon s allbery kf8nh   sine nomine associates
> allber...@gmail.com  ballb...@sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net



-- 
Will "Coke" Coleda


Re: Rakudo* downloader

2016-01-04 Thread Will Coleda
Out of curiosity, how does this compare to rakudobrew?

I would recommend creating a github repository for it if you feel it's
worth sharing.

On Mon, Jan 4, 2016 at 11:12 AM, Parrot Raiser <1parr...@gmail.com> wrote:
> I have a small bash script to download and install a specified version
> of rakudo*.
>
> If anyone might find it useful, where should I put it to share?



-- 
Will "Coke" Coleda


Re: release?

2015-12-28 Thread Will Coleda
There isn't a 6.0.0 as such.

Perl 6's language specification, versioned 6.c (aka Christmas) was
released; at the same time, the Rakudo Perl 6 compiler, version
2015.12 was released, which is the most up to date implementation of
this specification.

The specification is intended to have only minor changes in 6.c going
forward; the next version (6.d, no specific release date planned) will
likely have more involved changes. In the meantime, an implementation
that supports 6.c is free to change internals or parts of the language
that were not explicitly part of the 6.c specification.

Future versions of the compiler may have support for multiple versions
of the specification that can be handled with a lexical "use v6.c" to
get old behavior once the spec changes.

Finally, Rakudo * is a distribution that includes the compiler and
multiple modules; Look for this bundled release of the 2015.12 Rakudo
in the next few days.

On Sun, Dec 27, 2015 at 2:33 PM, webmind <webm...@puscii.nl> wrote:
> Hiya,
>
> I'm a bit confused, there is a major release for Perl 6, but I know
> wonder if this is the 6.0.0 release or when this will be?
>
> Thanks
>
> web
>
> --
> GPG Key: https://u2m.nl/data/webmind.asc
> GPG Fingerprint: 0506976E 234653B4 A628EC33 E23D16EE FCF154AE
> XMPP webm...@puscii.nl:  D79970A8 7EC43E29 186D86BA 590F20F6 4C7930B8
> XMPP webm...@laglab.org: 11E91112 091881F7 53EF6108 63C48543 C74D035C
> u2m.nl (exp: 08/04/2016) SHA256:
> C2:40:67:22:25:52:29:AF:DF:50:4E:2A:6B:32:6D:BC:5B:1E:CA:7D:52:3B:4C:4A:21:5D:C8:E5:AE:7D:1A:09
> Puscii (exp: 04/03/2016) SHA256:
> F9:C7:B1:B7:90:6B:17:BF:84:93:93:7C:0F:B4:FD:BE:E3:C0:71:9D:83:01:ED:3A:96:FE:FC:82:9D:30:51:C9
>



-- 
Will "Coke" Coleda


Re: Hello List! Error found in glossary.pod

2015-12-27 Thread Will Coleda
It's defining what NST means; the acronym is still a thing.

On Sun, Dec 27, 2015 at 9:10 AM, James Ellis Osborne III
<busyt...@gmail.com> wrote:
> Line 1585:1587 Reads:
> --
> =head2 NST
>
> No Such Thing.
> --
>
> Surely Thi[j]s Is No Longer True?
>
> -jas



-- 
Will "Coke" Coleda


Announce: Rakudo Perl 6 compiler, Development Release #94 (“коледа”)

2015-12-25 Thread Will Coleda
 requires a declaration of 'use MONKEY-SEE-NO-EVAL'
 + Make pack and unpack experimental
 + Dynamic variables are now visible inside start { ... } blocks
 + Autoincrements on native ints are now faster than on Int
 + The ~~ operator can now chain with other comparisons in many circumstances
 + Various numeric operations now return overflow/underflow failures instead
   of wrong value
 + The :ss, :ii, and :mm options to s/// now all work together

This is only a partial list of the changes in this release. For a more
detailed list, see “docs/ChangeLog”.

The development team thanks all of our contributors and sponsors for
making Rakudo Perl possible, as well as those people who worked on
the design docs, the Perl 6 test suite, MoarVM and the specification.
Additionally, the Pugs, Parrot, and Niecza projects were all instrumental
with their contributions to the specification and the community.

The following people contributed to the development of the Christmas release;
We’ve gone back through the logs of all the various projects.  Thanks to
everyone who has worked to make this release happen over the past 15 years. We
would also like to thank everyone who submitted bug reports or dropped in on
the various forums to discuss things.  Finally, we’d like to extend a special
thanks to everyone who we accidentally left out of this list.

Gisle Aas, abcxyzp, Chuck Adams, Colin Paul Adams, Rod Adams,
C.J. Adams-Collier, David H. Adler, Chirag Agrawal,
Amir E. Aharoni, Bilal Akhtar, Julian Albo, Alekssasho,
alexghacker, Paco Alguacil, Brandon S Allbery, Geir Amdal,
Markus Amsler, Paul C. Anagnostopoulos, Nikolay Ananiev,
anatolyv, andras, Saleem Ansari, Joji Antony, Tomoki Aonuma,
Syed Uzair Aqeel, arathorn, Arcterus, Kodi Arfer,
Daniel Arbelo Arrocha, ash, Ted Ashton, Arnaud Assad, atroxaper,
Ori Avtalion אורי אבטליון, Auzon, Greg Bacon,
Ivan Baidakou, Alex Balhatchet, Szabó, Balázs, Amir Livine Bar-On
עמיר ליבנה בר-און, Luca Barbato, Mattia Barbon,
Ann Barcomb, Christian Bartolomäus, Alex "Skud" Bayley,
bcmb, Jody Belka, Shachaf Ben-Kiki, Andrei Benea, benedikth,
Zev Benjamin, benmorrow, Kevan Benson, Martin Berends, Anton Berezin,
Arthur Bergman, Anders Nor Berle, bestian, Peter Bevan, Mark Biggar,
Carlin Bingham, Ævar Arnfjörð Bjarmason, J. David Blackstone,
Ronald Blaschke, Ingo Blechschmidt, bloonix, blwood, Kristof Bogaerts,
Dan Bolser, Конрад Боровски, Christopher Bottoms,
Gonéri Le Bouder, Jos Boumans, Brad Bowman, Matt Boyle, bpetering,
H.Merijn Brand, Terrence Brannon, Gwern Branwen, Stig Brautaset,
Herbert "lichtkind" Breunung, bri, brian_d_foy, Fernando Brito,
Geoffrey Broadwell, Leon Brocard, Benjamin Brodfuehrer, Samuel Bronson,
Dan Brook, Nathan C. Brown, Roger Browne, Philippe Bruhat (BooK),
David Brunton, Corwin Brust, Klaus Brüssel, Lucas Buchala,
buchetc, Christoph Buchetmann, Norbert Buchmuller, Buddha Buck,
Alexandre Buisse, Tim Bunce, Bryan Burgers, Sean M. Burke,
Matthew Byng-Maddick, András Bártházi, Jürgen Bömmels, Caelum,
Aldo Calpini, Edward Cant, David Cantrell, Carlin, Michael Cartmell,
Hezekiah Carty, Nuno 'smash' Carvalho, Marcelo Serra Castilhos,
Piers Cawley, cdavaz, cdpruden, Gianni Ceccarelli, cfourier,
Marc Chantreux, Mitchell N Charity, Oliver Charles, Vasily Chekalkin,
Yuan-Chen Cheng 鄭原真, Daniel Chetlin, Hsin-Chan Chien 簡信昌,
N. Hao Ching, Joshua Choi, Elizabeth Cholet, David Christensen,
chuck, cjeris, Nicholas Clark, Steve Clark, Jeff Clites,
cmarcelo, cmeyer, Paul Cochrane, Daniel Colascione, Jason Cole,
Will "Coke" Coleda, Sylvain Colinet, cono, Tim Conrow, Géraud Continsouzas,
Damian Conway, Neil Conway, Stuart Cook, David Corbin,
Deven T. Corzine, cosmicnet, Timothy Covell, Beau E. Cox,
Simon Cozens, Philip Crow, cspenser, Franck Cuny, Tyler Curtis,
David Czech, Daenyth, Dagur, Ritz Daniel, darkwolf, Chris Davaz,
David Warring, Justin DeVuyst, Daniel Dehennin, Akim Demaille,
Detonite, Lars "daxim" Dieckow 迪拉斯,
Matt Diephouse, Bob Diertens, Wendy "woolfy" van Dijk, Jeffrey Dik,
John M. Dlugosz, dimid, diotalevi, Hans van Dok, Chris Dolan,
Mark Dominus, Bryan Donlan, Andy Dougherty, Dave Doyle,
drKreso, dr_df0, dudley, Jonathan Scott Duff, dug, Lee Duhem,
Darren Duncan, Andrew Egeler, Havard Eidnes, Nelson Elhage,
Fitz Elliott, Alex Elsayed, Jay Emerson, Aankhola Encorporated,
ennio, Enveigler, Jon Ericson, Shae Matijs Erisson, Eryq,
Mike Eve, Pat Eyler, Aaron Faanes, Kevin Falcone, David Farrell,
Angel Faus, Jason Felds, Paul Fenwick, Jose Rodrigo Fernandez,
Nelson Ferraz, Adriano Ferreira, João Fernando Ferreira,
Chris Fields, Caio Marcelo de Oliveira Filho, Steve Fink,
Shlomi "rindolf" Fish שלומי פיש, Mark Leighton Fisher,
Scott Fitzenrider, Dudley Flanders, Richard Foley, Vincent Foley,
Julian Fondren, Ruben Fonseca, David Formosa, Karl Forner,
Solomon Foster, Chaddaï Fouché, Lloyd Fournier, Michael Fowler,
Matt Fowles, franck, Austin Frank, Carl Franks,
Kent Fredric, Chaim Frenkel, Piotr Fusik, gabriele,

Re: Object Introspection for Existence of Methods: How?

2015-03-20 Thread Will Coleda
class bar { method foo () {}}
my bar $a = bar.new();
say so $a.can(foo);

True

my Int $b;
say so $b.can(foo);

False

I'm not sure this warrants a new _ok method.

On Fri, Mar 20, 2015 at 2:38 PM, Tom Browder tom.brow...@gmail.com wrote:
 I am trying to create a testing subroutine to detect if a class object
 has a certain method.

 I want it to look something like this:

   my $obj = Foo.new();
   can_ok($obj, 'method1');

   sub can_ok($obj, Str $method_name) {
 if $obj.{$method_name}:exists {
   say ok;
   return True;
 }
 else {
   say not ok;
  return False;
 }
   }

 A similar function can detect valid attributes, but this or variants
 I've tried don't.

 How can I test for the existence of a method?

 Thanks.

 Cheers!

 -Tom



-- 
Will Coke Coleda


Re: Object Introspection for Existence of Methods: How?

2015-03-20 Thread Will Coleda
 use Test;
 class bar { method foo () {}}
 ok bar.can(foo), stuff;
ok 1 - stuff

On Fri, Mar 20, 2015 at 3:00 PM, Tom Browder tom.brow...@gmail.com wrote:
 On Mar 20, 2015 1:50 PM, Will Coleda w...@coleda.com wrote:
 class bar { method foo () {}}
 my bar $a = bar.new();
 say so $a.can(foo);

 Great!

 I'm not sure this warrants a new _ok method.

 How would you do it with an existing test?

 Thanks, Will.

 Cheers!

 -Tom



-- 
Will Coke Coleda


Re: rakudo website down

2015-03-01 Thread Will Coleda
Just saw this message; seems fine right now.

On Sun, Mar 1, 2015 at 8:22 AM, Václav Strachoň
vaclav.strac...@gmail.com wrote:
 Hi,

 seems like rakudog.org is down:

 ping rakudo.org
 PING rakudo.org (74.200.73.219): 56 data bytes
 Request timeout for icmp_seq 0
 Request timeout for icmp_seq 1
 Request timeout for icmp_seq 2
 Request timeout for icmp_seq 3
 ^C
 --- rakudo.org ping statistics ---
 5 packets transmitted, 0 packets received, 100.0% packet loss

 Can we bring it back?

 Thanks,

 Vaclav



-- 
Will Coke Coleda


Re: Installing dependencies, testing a module

2015-01-01 Thread Will Coleda
I use ufo for this sort of thing when doing development work.

$ panda install ufo

$ ufo ; # in top level of checked out perl6 project.

This creates a makefile, which gives you a test target, among other
things. (This test target is almost exactly what you have above,
though)


On Wed, Dec 31, 2014 at 6:03 PM, Gabor Szabo ga...@szabgab.com wrote:
 HI,

 Given a Perl 6 module that properly lists its dependencies such as
 https://github.com/supernovus/perl6-web-template/

 If I clone the repository, is there a command that would install all the
 dependencies of the module
 but not the module itself (e.g.   panda installdeps ?)


 What would be the recommended way to run all the tests?
 I currently use the following, but I wonder if there is another recommended
 command?


 prove -e perl6 -Ilib

 Gabor




-- 
Will Coke Coleda


Re: Orphaned module Form

2014-09-09 Thread Will Coleda
Looks like this repo has commits as of a day ago, and mathw is back on the case.

On Mon, Sep 8, 2014 at 4:44 AM, Kamil Kułaga teodoz...@gmail.com wrote:
 Hi,

 There is a https://github.com/mathw/form trying to implement
 http://search.cpan.org/~dconway/Perl6-Form-0.005/lib/Perl6/Form.pm

 Module is still usable but fails tests.

 retupmoca has prepared https://github.com/masak/data-pretty/pull/1 but
 mathw seems to be no longer active on github.

 My question is: Shall https://github.com/perl6 community adopt it or
 maybe someone should fork it and change link in
 https://github.com/perl6/ecosystem/blob/master/META.list?




 --
 Pozdrawiam

 Kamil Kułaga



-- 
Will Coke Coleda


Re: how to handle debug code?

2014-01-03 Thread Will Coleda
Whoops, just noticed this was sent to only me:

I can duplicate your issue, in that the macro is hit, the debug code is
quasi'd, but the resulting class doesn't seem to have a $.b.

Hitting the list to get more discussion on the right way to approach this
particular problem.

On Tue, Dec 17, 2013 at 10:02 AM, Richard Hainsworth rnhainswo...@gmail.com
 wrote:

  Will,

 I'm not having much success.

 Here's a small test.p6 program. It compiles, but does not output what I'm
 expecting, namely

 A.new(a = 0.984, b = 4 )

 Instead, I get

 A.new(a = 0.984)

 test.p6 is

 use v6;

 constant DEBUG = True;

 macro include-debug ($code) {
   if DEBUG { quasi { $code }  } else { quasi {} }
 }

 class A {
   has $.a is rw = rand.fmt(%.3f);
   include-debug('has $.b is rw;');
 }

 my A $x .=new;
 include-debug(' $x.b = 4; ');
 $x.say;


 end program

 In the 'true' section of the 'if' statement, I've tried
 quasi { $code }
 $code
 quasi  { {{{ $code }}} }

 All produce the same result.
 What am I doing wrong?


 Richard

 On 12/17/2013 02:25 AM, Will Coleda wrote:

 I would start with
 http://strangelyconsistent.org/blog/macros-what-are-they-really for a way
 to parse but not execute potentially expensive debug code.




 On Sun, Dec 15, 2013 at 10:49 PM, Richard Hainsworth 
 rnhainswo...@gmail.com wrote:

 What should be the perl6 idiom for handling debug code?

 I am writing a program that will be run with large values and take some
 time when it is clear that it is running correctly.

 In order to ensure that the program is correct, I have added code to
 generate and output intermediate results. I do not want this code to be
 compiled for the large values. At the same time, I don't want to eliminate
 the code in case the intermediate results will be needed again. I have
 previously handled this situation by commenting out the debug code, but
 this leads to problems when I want it back.

 My first thought was:

 constant DEBUG = True;

 BEGIN { if DEBUG {
 # code generating intermediate results
 }
 }

 But then this fails in this context

 class A {
 has $.a is rw;
 BEGIN { if DEBUG {
 has @.mem-metric;
 }
 }
 has $.b;
 # etc etc etc

 method reset {
  @.mem-metric = ()
 }
 }

 I actually got Null PMC access in find_method('mem-metric')   
 without a line number to indicate at what point the compilation got
 stopped, which indicates that this is a bug rather than a syntax error.

 However, I was wondering whether there was another way to achieve the
 same effect. Possible using POD as an extension of just commenting out the
 code?

 Regards
 Richard




  --
 Will Coke Coleda





-- 
Will Coke Coleda


Re: Perl 6 / Rakudo unicode code point ranges

2013-02-19 Thread Will Coleda
The code points giving you trouble are 0xFDD0..0xFDEF:

http://stackoverflow.com/questions/5188679/whats-the-purpose-of-the-noncharacters-ufdd0-to-ufdef

You can split this into two ranges to avoid the problematic points (and
could use this to combine the distinct ranges you have above.)

$  perl6 -e 'say ?(\c[0xFDCF] ~~
/[\c[0xE000]..\c[0xFDCF]\c[0xFDF0]..\c[0xFFFD]]/)'
True

Note that if you have invalid UTF-8 input, though, you'll still get the
invalid character error, so you'll need to deal with that before trying to
use the rule.

$  perl6 -e 'say ?(\c[0xFDD0] ~~
/[\c[0xE000]..\c[0xFDCF]\c[0xFDF0]..\c[0xFFFD]]/)'
===SORRY!===
Invalid character for UTF-8 encoding

Hope this helps.



On Mon, Feb 18, 2013 at 11:29 PM, David Warring david.warr...@gmail.comwrote:

 Hi Guys,
 A quick question.

 I'm trying to interpret unicode code-point ranges from the CSS 3 spec -
 http://www.w3.org/TR/css3-syntax/#CHARSETS

 The rule in question is

 nonascii :== #x80-#xD7FF #xE000-#xFFFD #x1-#x10

 Where (I think) these are unicode code-point ranges.

 The latest rakudo build is fine with:


 % perl6 -e perl6 -e '/[\c[0x80]..\c[0xD7FF]]/'


 ...but doesn't like the second (or third) range:


 % perl6 -e '/[\c[0xE000]..\c[0xFFFD]]/'
 ===SORRY!===
 Invalid character for UTF-8 encoding


 ...the individual code points are ok:


 % perl6 -e '/[\c[0xE000]]/'
 % perl6 -e '/[\c[0xFFFD]]/'


 I'm think I'm getting the above error because not all unicode code-points
 are defined for the range xE000 to xFFFD - see
 http://www.utf8-chartable.de/unicode-utf8-table.pl  .

 I'm just having a problem implementing a concise regex/grammar rule for the
 above. Looking for advice.

 Cheers,
 David Warring




-- 
Will Coke Coleda


Re: lc on arrays

2012-05-21 Thread Will Coleda
On Mon, May 21, 2012 at 11:50 AM, Parrot Raiser 1parr...@gmail.com wrote:
 ./perl6 -e 'my @a =  A B C ; @a = lc @a; say @a,  Size = , @a + 0;'
 a b c Size = 1

 Is this the way lc is supposed to operate on the elements of an array?

 I.e. converting the individual elements of the source, but combining
 them into one element in the destination.

lc on the array here is returning the string a b c; The array is
getting flattened to a string, passed into lc, which then returns a
string, which is then set as the first element of the array.

If you want to lc the elements of the string in place, you need to act
on the array elements, not the array itself, e.g.:

 my @a = A B C; @a».=lc; say @a; say @a+0
a b c
3

Regards.

-- 
Will Coke Coleda


Re: Fwd: FOSDEM - perl 6 critic

2011-02-22 Thread Will Coleda
On Tue, Feb 22, 2011 at 11:14 AM, Guy Hulbert gwhulb...@eol.ca wrote:
 On Tue, 2011-22-02 at 17:57 +0200, Gabor Szabo wrote:
 For a better comparison that takes in account the features as well see
 http://www.modernperlbooks.com/mt/2010/07/an-accurate-comparison-of-perl-5-and-rakudo-star.html

 Thanks for posting this.

 Can I infer from this article that it is *rakudo*, which is slow, rather
 than parrot?  I have the impression that I can compile perl6 down to
 parrot code and run that separately.  If so, it will be interesting to
 benchmark both cases.

 --
 --gh




Parrot's speed  memory footprint can certainly be improved - it's not
all Rakudo.

-- 
Will Coke Coleda


Re: benchmarking against other languages

2011-02-13 Thread Will Coleda
[$_];
      $dz = @zs[$i] - @zs[$_];
      $distance = sqrt($dx * $dx + $dy * $dy + $dz * $dz);
      $e -= (@mass[$i] * @mass[$_]) / $distance;
    }
  }
  return $e;
 }


 multi MAIN( $n ) {
  energy.fmt(%.9f).say;
  advance(0.01) for ^$n;
  energy.fmt(%.9f).say;
 }

 multi MAIN('test') {
  use Test;
  plan *;

  is energy.fmt(%.9f), -0.169075164, 'energy 0';
  advance(0.01) for ^123;
  is energy.fmt(%.9f), -0.169044806, 'energy 123';

  done();
 }






-- 
Will Coke Coleda


Re: Can't download Rakudo Dec 2010 without git

2011-01-04 Thread Will Coleda
On Tue, Jan 4, 2011 at 2:25 AM, Moritz Lenz mor...@faui2k3.org wrote:
 On 01/04/2011 03:19 AM, gvim wrote:
 Does this mean I have no option but to install git in order to keep my Perl 
 6 up to date?

 No. You can download and install a release tarball of parrot, and then
 point rakudo's Configure.pl to the installed parrot. Only if you use the
 --gen-parrot option, git needs to be available.

 Cheers,
 Moritz


gen-parrot *could* try to fallback on the svn interface to github, but
I imagine for macports, a better alternative is to make the rakudo
port depend on an appropriate parrot port, rather than trying to build
parrot itself.

-- 
Will Coke Coleda


Re: Various questions

2010-12-28 Thread Will Coleda
On Tue, Dec 28, 2010 at 6:32 PM, Daniel Carrera dcarr...@gmail.com wrote:
 1)  Does anyone know what a Parcel is?

 1 2 3 4.WHAT  = Parcel()
 1 2 3 4 ; 2 3 4 ; 5.WHAT  = Parcel()

Here's a link to some docs on Parcel:
http://perlcabal.org/syn/S08.html#Capture_or_Parcel

You can use: http://perlcabal.org/syn/ and do a google search in the
upper RHS (which is what I did just now.)

Regards.

-- 
Will Coke Coleda


Re: slurpy hash

2010-08-16 Thread Will Coleda
On Mon, Aug 16, 2010 at 3:03 PM, David H. Adler d...@panix.com wrote:
 Given the code:

        use v6;

        sub speakhash (*%hash) {
            say %hash{};
        }

        speakhash(1, 2, 3, 4, 5, 6);

 I get the error:

        Too many positional parameters passed; got 6 but expected 0
          in 'speakhash' at line 3:slurphash.p6
            in main program body at line 7:slurphash.p6

 According to the UsingPerl6 draft document, *%hash slurps all the
 remaining unbound named arguments into a hash.

The key here is named arguments; You've invoked the speakhash sub
with positional args.

Try this:

 sub speakhash (*%hash) {
 say %hash.perl;
 }

 speakhash(a = 1, b = 2, c = 3, d = 4, e = 5, f = 6);


 So, it looks to me as though the arguments given to the speakhash()
 subroutine should be slurped into %hash. Regardless, it strikes me as
 odd that Rakudo* seems to think that the subroutine should expect *0*
 arguments.

The error message is potentially confusing, yes.

 So... clearly there's a problem here, but I'm not sure if it's with
 Rakudo* or with my thinking. :-)

 Any thoughts on this matter would be appreciated.

 many thanks,

 dha

 --
 David H. Adler - d...@panix.com - http://www.panix.com/~dha/
 Why *isn't* there a Widget::Gonzo module?




-- 
Will Coke Coleda


Announce: Rakudo Perl 6 compiler development release #31 (Atlanta)

2010-07-22 Thread Will Coleda
On behalf of the Rakudo development team, I'm happy to announce the
July 2010 development release of Rakudo Perl #31 Atlanta.
Rakudo is an implementation of Perl 6 on the Parrot Virtual Machine
(see http://www.parrot.org). The tarball for the July 2010 release
is available from http://github.com/rakudo/rakudo/downloads.

Please note: This is not the Rakudo Star release, which is scheduled
for July 29, 2010 [1]. The Star release will include the compiler, an
installer, modules, a book (PDF), and more.

The Rakudo Perl compiler follows a monthly release cycle, with each release
named after a Perl Mongers group. The July 2010 release is code named
Atlanta in recognition of Atlanta.pm and their Perl 5 Phalanx project [2],
which they selected for its benefits to Perl 6.

Some of the specific changes and improvements occurring with this
release include:

* Rakudo now properly constructs closures in most instances.

* Undefined objects can now autovivify into arrays or hashes when
  subscripted with .[ ] or .{ } .

* Arrays can now handle infinite ranges.

* Generic, multi-level Whatever-currying now works, e.g. (1, 1, *+* ... *).

* The REPL shell now remembers lexical declarations in susbsequent lines.

* The open() subroutine now returns a Failure instead of throwing
  a fatal exception.

* Rakudo now provides $*ARGFILES for reading from files specified
  on the command line.

* Added $*PERL, moved %*VM to $*VM.

* Simple binding operators := and ::= now work.

* Simple feed operators == and == now work.

For a more detailed list of changes see docs/ChangeLog.

The development team thanks all of our contributors and sponsors for
making Rakudo Perl possible, as well as those people who worked on parrot, the
Perl 6 test suite and the specification.

The following people contributed to this release:
Patrick R. Michaud, Jonathan Worthington, Moritz Lenz, Solomon Foster,
Carl Masak, Bruce Gray, Martin Berends, chromatic, Will Coke Coleda,
Matthew (lue), Timothy Totten, maard, Kodi Arfer, TimToady, Stephen Weeks,
Patrick Abi Salloum, snarkyboojum, Radu Stoica, Vyacheslav Matjukhin,
Andrew Whitworth, cognominal, Tyler Curtis, Alex Kapranoff, Ingy döt Net,
Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯, mathw, lue, Вячеслав Матюхин

If you would like to contribute, see http://rakudo.org/how-to-help, ask on
the perl6-compi...@perl.org mailing list, or ask on IRC #perl6 on freenode.

The next release of Rakudo (#32) is scheduled for August 19, 2010.
A list of the other planned release dates and code names for 2010 is
available in the docs/release_guide.pod file.  In general, Rakudo
development releases are scheduled to occur two days after each
Parrot monthly release.  Parrot releases the third Tuesday of each month.

Have fun!

[1] http://rakudo.org/node/73
[2] http://code.google.com/p/atlanta-pm-code/


-- 
Will Coke Coleda


Re: In lieu of This Week in Perl 6

2008-04-25 Thread Will Coleda
On Fri, Apr 25, 2008 at 2:21 AM, Conrad Schneiker
[EMAIL PROTECTED] wrote:
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, April 23, 2008 1:59 PM


   On Sun, Apr 13, 2008 at 1:22 PM, Patrick R. Michaud
   [EMAIL PROTECTED] wrote:


- The sidebar links should be updated.  It might be good to update
  the Talks, Who's Who, and Status links to point to the
  appropriate pages on the Perl 6 wiki.
  
   Can you give me the appropriate links for these? A quick glance at the
   wiki main page only found me some tangential links.

  Hmmm. It may be time for (yet another) front page reorganization then,
  since all those things are there. I was hoping that such things would be
  fairly obvious, despite the many other additions.

  Talks:


  http://www.perlfoundation.org/perl6/index.cgi?perl_6_articles_and_presentati
  ons

Changed sidebar but left page and put link to wiki there also.

  Who's Who:

  http://www.perlfoundation.org/perl6/index.cgi?perl_6_people

Changed sidebar but left page and put link to wiki there also.

  Status:

  http://www.perlfoundation.org/perl6/index.cgi?when_will_perl_6_be_released

  http://www.perlfoundation.org/perl6/index.cgi?development_dashboard

Left sidebar but put link to both wiki pages on page.

  I also suggest adding Latest News:

  http://www.perlfoundation.org/perl6/index.cgi?perl_6_rss_news_feeds


Added to sidebar.


  Best regards,
  Conrad Schneiker

  www.AthenaLab.com

  Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
  Official Parrot Wiki - http://www.perlfoundation.org/parrot


-- 
Will Coke Coleda


Re: In lieu of This Week in Perl 6

2008-04-24 Thread Will Coleda
On Sun, Apr 13, 2008 at 1:22 PM, Patrick R. Michaud [EMAIL PROTECTED] wrote:
 On Sat, Apr 12, 2008 at 11:52:44PM +0200, Moritz Lenz wrote:
   Conrad Schneiker wrote:
Also, please consider referring people to the Perl 6 wiki (and
any relevant subsections thereof) for more information when
writing things that may get wider attention beyond the immediate
Perl 6 community.
  
   and if you find things on http://dev.perl.org/perl6/ to be wrong or
   outdated, feel free to contact me, and I'll send a patch to our webmasters.
   I tried to update the most important parts (without being too
   intrusive), but it's surely not complete.

  The biggest things I notice:

  - The link to the Perl 6 Wiki on http://dev.perl.org/perl6/ is broken
   (it's an xrl.us link that takes me to a totally unrelated Herald-Sun
   page).

The xrl.us link in the main body of the page did work for me, but I
replaced it (and all the odd mouseover stuff it was doing) with the
exploded link and added the wiki to the sidebar.

  - The sidebar links should be updated.  It might be good to update
   the Talks, Who's Who, and Status links to point to the
   appropriate pages on the Perl 6 wiki.

Can you give me the appropriate links for these? A quick glance at the
wiki main page only found me some tangential links.

  - Along the same lines, it might be nice to have the Perl 6 FAQ
   on the wiki instead of the static (and somewhat out of date)
   page we have now.

I'm pretty sure we can do both with a little bit of work (have the
real data on the wiki, but scrape it for the site.) This is an issue
we face on the parrotcode site as well in terms of who can update what
when.

 Also, the Perl 6 wiki has a link to an
   excellent (perhaps slightly out of date) FAQ at
   http://www.programmersheaven.com/2/Perl6-FAQ .  Perhaps
   we could arrange with Jonathan and/or Programmers Heaven
   to get some of those items migrated to the wiki for easy
   updating?

  - The copyright date is given as 2005.  :-)

This is outside my area of commit bits. BCC'ing someone who can do
something about it.

-- 
Will Coke Coleda


Re: OT: wiki engine architecture

2006-06-08 Thread Will Coleda
To bring this back around to the implementation portion in an effort  
to get back on topic..


There are also sample grammars (for those who like samples in  
addition to docs) available in the parrot source tree, e.g.:


http://svn.perl.org/parrot/trunk/compilers/tge/TGE/Parser.pg
http://svn.perl.org/parrot/trunk/languages/APL/lib/APLGrammar.pg
(view as utf-8)

http://svn.perl.org/parrot/trunk/languages/punie/lib/punie.pg

While these are using parrot directly, the PGE (Parrot/Perl6 Grammar  
Engine) is already a very large subset of valid Perl6 rules  
constructs. You could probably write the parser in parrot today, and  
then use the same grammar to drive a perl6 (in parrot or otherwise)  
implementation.


I would also recommend using kwid as a basis for any markup, given  
its current status with pugs/perl6.


Regards.

On Jun 8, 2006, at 10:08 AM, A. Pagaltzis wrote:


* Michael Mathews [EMAIL PROTECTED] [2006-06-08 13:15]:

This is the smartest suggestion I've yet seen on the subject,
but, not being all *that* familiar with Perl6 Grammars (aren't
they something like contextually-smart regexes?), can anyone
give an example of Perl 6 code that uses grammars and can
express some wiki-formatting?


Not me, at the time of writing. :-) I’ve just read the documents:

http://dev.perl.org/perl6/doc/design/apo/A05.html
http://dev.perl.org/perl6/doc/design/exe/E05.html
http://dev.perl.org/perl6/doc/design/syn/S05.html

It doesn’t take more than that to see that P6 Grammars will blow
any existing way to write parsers clear out of the water, though.

Regards,
--
#Aristotle
*AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(,$\/, )[defined  
wantarray]/e;$1};

Just-another-Perl-hacker;



--
Will Coke Coleda
[EMAIL PROTECTED]