new raku just hit: 2021.05

2021-05-25 Thread ToddAndMargo via perl6-users

GetRaku  new update downloaded  2021.04.02 --> 2021.05

https://github.com/nxadm/rakudo-pkg/releases

No idea what changed


Re: File::Find using a junction with exclude

2021-05-25 Thread Andy Bach
> It's a bug in the REPL. The example from the documentation works when
fed to the compiler directly

So is the error
Cannot find method 'qast' on object of type NQPMu

any use in finding the REPL bug?

From: William Michels via perl6-users 
Sent: Tuesday, May 25, 2021 4:04 PM
To: perl6-users@perl.org 
Subject: Re: File::Find using a junction with exclude

CAUTION - EXTERNAL:

Well spotted, Gianni!

user@mbook:~$ raku -e 'my int $x = 2⁶³-1;say ++$x;'
-9223372036854775808
user@mbook:~$ raku --version
Welcome to 퐑퐚퐤퐮퐝퐨™ v2020.10.
Implementing the 퐑퐚퐤퐮™ programming language v6.d.
Built on MoarVM version 2020.10.


On Tue, May 25, 2021 at 8:38 AM Gianni Ceccarelli 
mailto:dak...@thenautilus.net>> wrote:
On Tue, 25 May 2021 15:16:03 +
Andy Bach mailto:andy_b...@wiwb.uscourts.gov>> 
wrote:

> > However I had to use "Int" instead of "int":
> Ah, "int" is the "lower" level, native integer and "Int" is the raku.
> An "int" is immutable or something?

It's a bug in the REPL. The example from the documentation works when
fed to the compiler directly::

  $ raku -e 'my int $x = 2⁶³-1;say ++$x;'
  -9223372036854775808

--
Dakkar - 
GPG public key fingerprint = A071 E618 DD2C 5901 9574
 6FE2 40EA 9883 7519 3F88
key id = 0x75193F88

CAUTION - EXTERNAL EMAIL: This email originated outside the Judiciary. Exercise 
caution when opening attachments or clicking on links.



Re: File::Find using a junction with exclude

2021-05-25 Thread William Michels via perl6-users
Well spotted, Gianni!

user@mbook:~$ raku -e 'my int $x = 2⁶³-1;say ++$x;'
-9223372036854775808
user@mbook:~$ raku --version
Welcome to 퐑퐚퐤퐮퐝퐨™ v2020.10.
Implementing the 퐑퐚퐤퐮™ programming language v6.d.
Built on MoarVM version 2020.10.


On Tue, May 25, 2021 at 8:38 AM Gianni Ceccarelli 
wrote:

> On Tue, 25 May 2021 15:16:03 +
> Andy Bach  wrote:
>
> > > However I had to use "Int" instead of "int":
> > Ah, "int" is the "lower" level, native integer and "Int" is the raku.
> > An "int" is immutable or something?
>
> It's a bug in the REPL. The example from the documentation works when
> fed to the compiler directly::
>
>   $ raku -e 'my int $x = 2⁶³-1;say ++$x;'
>   -9223372036854775808
>
> --
> Dakkar - 
> GPG public key fingerprint = A071 E618 DD2C 5901 9574
>  6FE2 40EA 9883 7519 3F88
> key id = 0x75193F88
>
>


Re: File::Find using a junction with exclude

2021-05-25 Thread Gianni Ceccarelli
On Tue, 25 May 2021 15:16:03 +
Andy Bach  wrote:

> > However I had to use "Int" instead of "int":
> Ah, "int" is the "lower" level, native integer and "Int" is the raku.
> An "int" is immutable or something?

It's a bug in the REPL. The example from the documentation works when
fed to the compiler directly::

  $ raku -e 'my int $x = 2⁶³-1;say ++$x;'
  -9223372036854775808

-- 
Dakkar - 
GPG public key fingerprint = A071 E618 DD2C 5901 9574
 6FE2 40EA 9883 7519 3F88
key id = 0x75193F88



Re: File::Find using a junction with exclude

2021-05-25 Thread Andy Bach
> However I had to use "Int" instead of "int":

Ah, "int" is the "lower" level, native integer and "Int" is the raku. An "int" 
is immutable or something? The page
https://docs.raku.org/language/numerics#Native_numerics

has:
my int $x = 2⁶³-1;
say $x; # OUTPUT: «9223372036854775807␤»
say ++$x;   # OUTPUT: «-9223372036854775808␤»

But I see
> my int $x = 2⁶³-1
9223372036854775807
> say $x
9223372036854775807
> say ++$x
Cannot find method 'qast' on object of type NQPMu

 NQP (Not Quite Perl) Mu has no "qast" method - qast is the successor to past, 
Parrot AST and AST is Abstract Syntax Tree. I guess $x *is * the int, not an 
container/variable holding an int value.

Man, there's a lot I don't know about raku!  That section on colon pairs 
cleared up a lot.

From: William Michels 
Sent: Monday, May 24, 2021 11:47 PM
To: perl6-users 
Subject: Re: File::Find using a junction with exclude

CAUTION - EXTERNAL:

Hi Andy,

A quick test with my (older) Raku install and I was able to get one of the 
examples (Daniel's) below to work. However I had to use "Int" instead of "int":

user@mbook:~$ raku
Welcome to 퐑퐚퐤퐮퐝퐨™ v2020.10.
Implementing the 퐑퐚퐤퐮™ programming language v6.d.
Built on MoarVM version 2020.10.

To exit type 'exit' or '^D'
> my int $f = 0;
0
> sub foo($) { ++$f }('a' | 'b,b' | 'c');
Cannot find method 'qast' on object of type NQPMu

> my Int $g = 0;
0
> sub foo($) { ++$g }('a' | 'b,b' | 'c');
any(1, 2, 3)
>

HTH, Bill.


On Mon, May 24, 2021 at 2:40 PM Andy Bach 
mailto:andy_b...@wiwb.uscourts.gov>> wrote:
> Cannot sent this email in 'plain text' mode as ATOM SYMBOL disappears.

I was impressed I could copypasted that in the text/terminal sesion of raku's 
REPL and have it work. As a matter of fact:
> sub foo($) { ++⚛$c }('a' | 'b,b' | 'c');
any(1, 2, 3)
> say $c;
3

but, trying it without the cabbage, er, atomic symbol
> my atomicint $d = 0;
0
>  sub foo($) { ++$d }('a'|'b,b'|'c');
Cannot find method 'qast' on object of type NQPMu

> my int $f = 0;
0
> sub foo($) { ++$f }('a' | 'b,b' | 'c');
Cannot find method 'qast' on object of type NQPMu

but my raku's a tad long in tooth
$ raku -v
This is Rakudo version 2020.05.1 built on MoarVM version 2020.05

From: William Michels mailto:w...@caa.columbia.edu>>
Sent: Monday, May 24, 2021 2:41 PM
To: perl6-users mailto:perl6-users@perl.org>>
Subject: Re: File::Find using a junction with exclude

CAUTION - EXTERNAL:

WATs are everywhere, and (I'm not trying to pick on one language
here), I find this SO question to be intruiging:

https://stackoverflow.com/q/58340585/7270649

Joseph (and Ralph): thanks for starting off this conversation!
Fernando and Vadim: amazed at your code!
Andy: good questions always welcome!

Daniel: Thank you for your confirmation on EVAL. Also, I tried parsing
the ATOM SYMBOL character to look at classification, and this is the
best I could do (in the Raku REPL):

> say "⚛".uniprop
So
> dd "⚛".comb>>.uniprop
("So",)
Nil
> say "{uniparse 'ATOM SYMBOL'}"
⚛
> say "{uniparse 'ATOM SYMBOL'}".uniprop
So
> say "{uniparse 'ATOM SYMBOL'}".uniprop('Alphabetic')
False

HTH, Bill.

PS. Cannot sent this email in 'plain text' mode as ATOM SYMBOL disappears.


On Mon, May 24, 2021 at 11:28 AM Daniel Sockwell 
mailto:dan...@codesections.com>> wrote:
> Oh, and WAT is [short for] "Weird/will Ass Thing"?

No, it's not an abbreviation for anything – it's the word "what", but 
pronounced in a way that
indicates the speaker is surprised/confused. More specifically, it's a 
reference to the WAT talk (a
really good one, even if it is about a different language)
https://www.destroyallsoftware.com/talks/wat

(All of that is pretty much strait from the glossary, by the way)
https://docs.raku.org/language/glossary#index-entry-WAT

– codesections
CAUTION - EXTERNAL EMAIL: This email originated outside the Judiciary. Exercise 
caution when opening attachments or clicking on links.

CAUTION - EXTERNAL EMAIL: This email originated outside the Judiciary. Exercise 
caution when opening attachments or clicking on links.