Re: trouble returning a value from sub

2022-06-16 Thread Simon Proctor
I think, and I don't have my computer to hand to double check but I think you want a return before your recursive.call to factors passing in @f. When dealing with recursive functions you need to make sure what you're returning back up the stack. On Thu, 16 Jun 2022, 18:10 Rick Bychowski,

trouble returning a value from sub

2022-06-16 Thread Rick Bychowski
Hi Everyone, I've been lurking quite a while, this will be my first post to perl6 users. I've written a lot of short scripts in perl5 for system admin type stuff at home and work. Lately I'm playing with Raku, which is a lot of fun. Error reporting is excellent, as is the online

Glade?

2022-06-15 Thread ToddAndMargo via perl6-users
Hi All, Any you guys use Glade for user interfaces? https://glade.gnome.org/ Your thoughts on it? Or do you like something better? Many thanks, -T -- ~~ Computers are like air conditioners. They malfunction when you open windows

Re: Easier way to load a buffer?

2022-06-13 Thread Andy Bach
> You could think: what does "comb(2)" do? Perhaps look at the documentation? > And then maybe realize that Simon forgot that the comb(2) should be a method > on $hex? Otherwise, how would it know what to parse? Ah, I did wonder why $hex wasn't in the 2nd line in any way. > my $hex =

Re: Dual Buf and Str question

2022-06-11 Thread ToddAndMargo via perl6-users
On 6/11/22 02:28, ToddAndMargo via perl6-users wrote: On 6/9/22 22:54, ToddAndMargo via perl6-users wrote: Hi All, I can easily  get away with this in Modula2, but how can I do this with Raku? I wish to create a single variable that can be manipulated in two ways: 1) as a fixed length string

Re: BigRoot precision question

2022-06-11 Thread Bruce Gray
> On Jun 11, 2022, at 4:41 AM, ToddAndMargo via perl6-users > wrote: > > Hi All, > > In the following paper on Big Root: > > https://newbedev.com/how-can-i-set-the-level-of-precision-for-raku-s-sqrt > > > > use BigRoot; > > BigRoot.precision = 7; > > say (BigRoot.newton's-sqrt:

Re: Easier way to load a buffer?

2022-06-11 Thread ToddAndMargo via perl6-users
On 6/10/22 07:49, ToddAndMargo via perl6-users wrote: Hi All, I am looking for an easier way to load a buffer. I know about this way [4] > my Buf $b=Buf.new(0x2A, 0x54, 0xFF, 0x53); Buf:0x<2A 54 FF 53> I would like to do it on one big blast: my Buf

BigRoot precision question

2022-06-11 Thread ToddAndMargo via perl6-users
Hi All, In the following paper on Big Root: https://newbedev.com/how-can-i-set-the-level-of-precision-for-raku-s-sqrt > use BigRoot; > BigRoot.precision = 7; > say (BigRoot.newton's-sqrt: 2;).base(10) 1.4142136 > say (BigRoot.newton's-sqrt: 2;).base(16) 1.6A09E7 That is a base(10) precision.

Re: Dual Buf and Str question

2022-06-11 Thread ToddAndMargo via perl6-users
On 6/9/22 22:54, ToddAndMargo via perl6-users wrote: Hi All, I can easily  get away with this in Modula2, but how can I do this with Raku? I wish to create a single variable that can be manipulated in two ways: 1) as a fixed length string (Str) 2) as a fixed length buffer (Buf) I can think

Re: tons of digits

2022-06-10 Thread Bruce Gray
> On Jun 10, 2022, at 8:01 AM, ToddAndMargo via perl6-users > wrote: > > Hi All, > I forgot how to write out a ton of digits for the square root of 2 (or any > other irrational number). Hi Todd, I suspect that this message is what you have misplaced:

Re: Easier way to load a buffer?

2022-06-10 Thread Elizabeth Mattijsen
> On 10 Jun 2022, at 23:28, ToddAndMargo via perl6-users > wrote: > >>> On Fri, 10 Jun 2022 at 15:49, ToddAndMargo via perl6-users >>> mailto:perl6-users@perl.org>> wrote: >>>Hi All, >>>I am looking for an easier way to load a buffer. >>>I know about this way >>>[4] > my Buf

Re: Easier way to load a buffer?

2022-06-10 Thread ToddAndMargo via perl6-users
On Fri, 10 Jun 2022 at 15:49, ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: Hi All, I am looking for an easier way to load a buffer. I know about this way [4] > my Buf $b=Buf.new(0x2A, 0x54, 0xFF, 0x53); Buf:0x<2A 54 FF 53> I would like to do it

Re: Easier way to load a buffer?

2022-06-10 Thread Elizabeth Mattijsen
> On 10 Jun 2022, at 22:47, ToddAndMargo via perl6-users > wrote: > >>> On Fri, 10 Jun 2022 at 15:49, ToddAndMargo via perl6-users >>> mailto:perl6-users@perl.org>> wrote: >>>Hi All, >>>I am looking for an easier way to load a buffer. >>>I know about this way >>>[4] > my Buf

Re: Easier way to load a buffer?

2022-06-10 Thread ToddAndMargo via perl6-users
On Fri, 10 Jun 2022 at 15:49, ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: Hi All, I am looking for an easier way to load a buffer. I know about this way [4] > my Buf $b=Buf.new(0x2A, 0x54, 0xFF, 0x53); Buf:0x<2A 54 FF 53> I would like to do it

Re: Easier way to load a buffer?

2022-06-10 Thread Simon Proctor
So Buf is expecting a list of integers. If' you've got one long one in a string like "2A54FF53A5F1D36F1CEA7E61FC37A20D54A77FE7B78" you want to split it into smaller values so something like this? my $hex = "2A54FF53A5F1D36F1CEA7E61FC37A20D54A77FE7B78"; my Buf $b=Buf.new(comb(2).map(

Easier way to load a buffer?

2022-06-10 Thread ToddAndMargo via perl6-users
Hi All, I am looking for an easier way to load a buffer. I know about this way [4] > my Buf $b=Buf.new(0x2A, 0x54, 0xFF, 0x53); Buf:0x<2A 54 FF 53> I would like to do it on one big blast: my Buf $b=Buf.new(0x2A54FF53A5F1D36F1CEA7E61FC37A20D54A77FE7B78); Cannot unbox 170 bit wide bigint into

tons of digits

2022-06-10 Thread ToddAndMargo via perl6-users
Hi All, I forgot how to write out a ton of digits for the square root of 2 (or any other irrational number). -T -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~

Re: Dual Buf and Str question

2022-06-10 Thread ToddAndMargo via perl6-users
On 6/10/22 02:36, Elizabeth Mattijsen wrote: On 10 Jun 2022, at 11:20, ToddAndMargo via perl6-users wrote: On 10 Jun 2022, at 07:54, ToddAndMargo via perl6-users wrote: Hi All, I can easily get away with this in Modula2, but how can I do this with Raku? I wish to create a single

Re: Dual Buf and Str question

2022-06-10 Thread Elizabeth Mattijsen
> On 10 Jun 2022, at 11:20, ToddAndMargo via perl6-users > wrote: > >>> On 10 Jun 2022, at 07:54, ToddAndMargo via perl6-users >>> wrote: >>> >>> Hi All, >>> >>> I can easily get away with this in Modula2, but >>> how can I do this with Raku? >>> >>> I wish to create a single variable

Re: Dual Buf and Str question

2022-06-10 Thread ToddAndMargo via perl6-users
On 10 Jun 2022, at 07:54, ToddAndMargo via perl6-users wrote: Hi All, I can easily get away with this in Modula2, but how can I do this with Raku? I wish to create a single variable that can be manipulated in two ways: 1) as a fixed length string (Str) 2) as a fixed length buffer (Buf) I

Re: Dual Buf and Str question

2022-06-10 Thread Elizabeth Mattijsen
Perhaps https://raku.land/zef:raku-community-modules/Pythonic::Str is what you're after? > On 10 Jun 2022, at 07:54, ToddAndMargo via perl6-users > wrote: > > Hi All, > > I can easily get away with this in Modula2, but > how can I do this with Raku? > > I wish to create a single variable

Dual Buf and Str question

2022-06-09 Thread ToddAndMargo via perl6-users
Hi All, I can easily get away with this in Modula2, but how can I do this with Raku? I wish to create a single variable that can be manipulated in two ways: 1) as a fixed length string (Str) 2) as a fixed length buffer (Buf) I can think of ways to do this, but it would require separate

Re: The SF Perl Raku Study Group, 06/05 at 1pm PDT

2022-06-04 Thread ToddAndMargo via perl6-users
Hi Joseph, Did the issue of the extreme compile times ever get discussed? And if so, is anyone working on it? Many thanks, -T

Re: The SF Perl Raku Study Group, 06/05 at 1pm PDT

2022-06-03 Thread Joseph Brenner
Let's try that again, without the typo on the date in the message body: it's on Sunday, June *5th*. "Language is an artifact." Guru Lou Fonghoo Step 35 of the 85 steps of Fonghoosim (1972) The Raku Study Group June 5th, 2022 1pm in California, 9pm in the UK Zoom meeting link:

The SF Perl Raku Study Group, 06/05 at 1pm PDT

2022-06-03 Thread Joseph Brenner
"Language is an artifact." Guru Lou Fonghoo Step 35 of the 85 steps of Fonghoosim (1972) The Raku Study Group June 6th, 2022 1pm in California, 9pm in the UK Zoom meeting link: https://us02web.zoom.us/j/83136957677?pwd=WXRSRkZ0SjZ4aGNJZ2l1OWM3OExqQT09 Passcode: 4RakuRoll RSVPs are

The SF Perl Raku Study Group, 05/22 at 1pm PDT

2022-05-19 Thread Joseph Brenner
Colin McPhee, "A House in Bali" (1944-47): "Beside the palm-leaf books which he had been working on the day before there lay a little fan of blossoms. "How do you honour books in America? Durus asked as he set a lamp on the table. A large mantis flew out of the dark and

Re: author specification

2022-05-11 Thread Brad Gilbert
After thinking on it, :auth<> is sort of an authentication chain. Just a really short one. To authenticate a module with :auth you have to first authenticate zef. On Wed, May 11, 2022 at 4:02 PM Darren Duncan wrote: > This discussion thread has excellent timing, because I was otherwise about >

Re: author specification

2022-05-11 Thread Darren Duncan
This discussion thread has excellent timing, because I was otherwise about to come here and start a thread on the topic. I have been interested in the weeds of Raku's fully qualified compunit naming convention for a long long time, since I first saw it in Larry's Apocalypse 12

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

Re: author specification

2022-05-06 Thread yary
But I'm understanding from this conversation is that people have different ideas of what the auth field means. 1. It shows who is responsible for this code. It is independent of which home the author chooses, where home is GitHub, gitlab, cpan, zef,p6c etc. 2. It shows who is responsible for this

The SF Perl Raku Study Group, 05/08 at 1pm PDT

2022-05-05 Thread Joseph Brenner
Herbert A. Simon, "The Sciences of the Artificial" (1969): "Since there are now many such devices in the world, and since the properties that describe them also appear to be shared by the human central nervous system, nothing prevents us from developing a natural history of them. We can study

Re: author specification

2022-05-04 Thread Marcel Timmerman
Hi Vadim, I'd put it this way: this API has not been stabilized yet. Though at the moment it's coming to some consensus. Hopefully it would not be necessary to change the auth field which is the main issue of mine. Because fez is registering the user on its first run, the auth field is not

Re: author specification

2022-05-03 Thread Vadim Belman
I'd put it this way: this API has not been stabilized yet. Though at the moment it's coming to some consensus. Currently the only ecosystem with authentication is zef. In order to publish there fez would ask your password once in a while. This is also why all other ecosystems are considered

Re: author specification

2022-05-03 Thread Brad Gilbert
There could be a way for one of them to only act as a middle man. Basically have fez defer to CPAN and just host a copy of it. On Tue, May 3, 2022, 10:59 AM Marcel Timmerman wrote: > Hi Brad, > > Auth is for more than just the author. It is for author, authority, and > authentication. > > There

Re: author specification

2022-05-03 Thread Marcel Timmerman
Hi Brad, Auth is for more than just the author. It is for author, authority, and authentication. There is no password or other cryptographic way, so authentication is not possible. Obviously, I might miss some insight here. In the documentation I read; "|:auth| generally takes the form

Re: author specification

2022-05-02 Thread Brad Gilbert
Auth is for more than just the author. It is for author, authority, and authentication. CPAN can't authenticate github or fez modules, and vice versa. There is a reason the field is only the first four letters. That they are seen as different modules is an intended feature, not a bug. I would

author specification

2022-05-02 Thread Marcel Timmerman
Hi, I was wondering about the 'auth' specification in the meta file or on the class/module/package. I was used to specify it as 'github:MARTIMM' because I store the stuff on GitHub for all the goodies it offers. Now I see//that fez wants to start with 'fez:' and when I look at the raku.land

⏰ Raku conference talk proposals due Sun 18:00 UTC

2022-04-29 Thread Daniel Sockwell via perl6-users
As a final reminder, the Perl and Raku Conference's call for proposals closes in TWO DAYS – on Sunday, May 1 at 18:00 UTC (2pm eastern time).   Don't forget to submit your talk proposal by then! (And, if you aren't yet planning to propose a talk, it's not too late to do so: you don't need to

Re: checking MAIN arguments

2022-04-28 Thread Luca Ferrari
On Wed, Apr 27, 2022 at 7:29 PM yary wrote: > It's like the "where" clause has its own signature-like list of types it will > accept. When the where clause uses the default topic "$_" then that topic has > no constraint, and MAIN can probe if "--dir=something" should be interpreted > as a flag

Re: checking MAIN arguments

2022-04-27 Thread yary
I just read through https://github.com/rakudo/rakudo/issues/4878 and I had a thought. It's like the "where" clause has its own signature-like list of types it will accept. When the where clause uses the default topic "$_" then that topic has no constraint, and MAIN can probe if "--dir=something"

The SF Perl Raku Study Group, 10/24 at 1pm PDT

2022-04-20 Thread Joseph Brenner
Jane Jacobs, "The Death and Life of Great American Cities" "Cities are an immense laboratory of trial and error, failure and success, in city building and city design. This is the laboratory in which city planning should have been learning and forming and testing its theories. Instead the

Re: checking MAIN arguments

2022-04-16 Thread Luca Ferrari
On Fri, Apr 15, 2022 at 4:15 PM yary wrote: > > Here's how I ended up handling input arg validation, with meaningful error > messages, as part of a Perl Weekly Challenge a couple years ago. It looks > almost the same as Luca's original, except mine uses "die" instead of "warn", > which means

Re: checking MAIN arguments

2022-04-15 Thread yary
Here's how I ended up handling input arg validation, with meaningful error messages, as part of a Perl Weekly Challenge a couple years ago. It looks almost the same as Luca's original, except mine uses "die" instead of "warn", which means it won't attempt to continue once it encounters a bad arg.

Re: checking MAIN arguments

2022-04-14 Thread William Michels via perl6-users
Works (퐑퐚퐤퐮퐝퐨™ v2021.06): admin@mbook:~$ raku Luca_Ferrari2.p6 Usage: Luca_Ferrari2.p6 [--dir=] admin@mbook:~$ raku Luca_Ferrari2.p6 --dir=foo foo But...warning "Specify the directory [$dir]" isn't printing when `--dir=foo` is omitted. HTH, Bill. On Tue, Apr 12, 2022 at 1:23 AM Luca Ferrari

Re: checking MAIN arguments

2022-04-14 Thread William Michels via perl6-users
Fails on 퐑퐚퐤퐮퐝퐨™ v2021.06. ~$ raku Luca_Ferrari.p6 Use of uninitialized value of type Any in string context. Methods .^name, .raku, .gist, or .say can be used to stringify it to something meaningful. in block at Luca_Ferrari.p6 line 1 Specify the directory [] in block at Luca_Ferrari.p6

Re: checking MAIN arguments

2022-04-12 Thread Luca Ferrari
On Tue, Apr 12, 2022 at 10:15 AM Luca Ferrari wrote: > > Hello all, > given this simple program: > > sub MAIN( Str :$dir where { .so && .IO.d // warn "Specify the > directory [$dir]" } ) { > say $dir; > } > Shame on me: it works if I omit the topic and substitute it with the explicit

checking MAIN arguments

2022-04-12 Thread Luca Ferrari
Hello all, given this simple program: sub MAIN( Str :$dir where { .so && .IO.d // warn "Specify the directory [$dir]" } ) { say $dir; } it works as I expect on ancient versions of rakudo, e.g., 202-01, but it fails miserably on current rakudo: % raku ~/tmp/test.p6 --dir=foo Use of

The SF Perl Raku Study Group, 04/10 at 1pm PDT

2022-04-10 Thread Joseph Brenner
"I could see the writing on the wall. It was my handwriting." Jean Michel-Basquiat, "Downtown 81" The Raku Study Group April 10, 2022 1pm in California, 9pm in the UK Zoom meeting link: https://us02web.zoom.us/j/88273860585?pwd=eks5ZWFrNmdrTGF3VWFNVWtENkxmUT09

Re: Help with promises, supplies and channels.

2022-04-08 Thread William Michels via perl6-users
Wow that was fast! Thanks Liz! On Thu, Apr 7, 2022 at 3:25 AM Elizabeth Mattijsen wrote: > Fixed with > https://github.com/rakudo/rakudo/commit/5658f4da07b44d492a3d35d57fa76939822d2c66 > > Thanks for the report! > > > On 7 Apr 2022, at 11:28, David Emanuel da Costa Santiago < >

Re: Help with promises, supplies and channels.

2022-04-07 Thread Elizabeth Mattijsen
Fixed with https://github.com/rakudo/rakudo/commit/5658f4da07b44d492a3d35d57fa76939822d2c66 Thanks for the report! > On 7 Apr 2022, at 11:28, David Emanuel da Costa Santiago > wrote: > > > Thanks for the information! > > I opened a bug in rakudo: > >

Re: Help with promises, supplies and channels.

2022-04-07 Thread David Emanuel da Costa Santiago
Thanks for the information! I opened a bug in rakudo: https://github.com/rakudo/rakudo/issues/4853 Regards, David Santiago Às 05:27 de 07/04/22, yary escreveu: For what it's worth, I'm on a mac, promise_test.raku hangs for me once in a while also. Welcome to Rakudo(tm) v2021.04.

Re: Help with promises, supplies and channels.

2022-04-06 Thread yary
For what it's worth, I'm on a mac, promise_test.raku hangs for me once in a while also. Welcome to Rakudo(tm) v2021.04. Implementing the Raku(tm) programming language v6.d. Built on MoarVM version 2021.04. Trying to reduce it, I would like to find a program that reliably tickles this bug and

Re: Help with promises, supplies and channels.

2022-04-05 Thread William Michels via perl6-users
Thanks for the bash loop. I'm seeing a few hangs, also some errors returned saying: "Unhandled exception in code scheduled on thread 4" (MacOS 11.11) On Tue, Apr 5, 2022 at 12:47 PM David Emanuel da Costa Santiago < deman...@gmail.com> wrote: > > Hi William, > > when it fails or hangs it

Re: Help with promises, supplies and channels.

2022-04-05 Thread David Emanuel da Costa Santiago
Hi William, when it fails or hangs it doesn't print the last line. Please check attached file for output of the stack. Since the failures are random, it's easier to invoke it in a loop: bash$ for i in $(seq 100); do raku test.raku; done If nothing is wrong with the code, i'll open a bug in

Re: Help with promises, supplies and channels.

2022-04-05 Thread William Michels via perl6-users
No problems so far. say $*VM; #add as last line, returns: moar (2021.06) On Tue, Apr 5, 2022 at 11:06 AM David Emanuel da Costa Santiago < deman...@gmail.com> wrote: > Hi, > > > > I'm trying to learn about promises, supplies and channels. So i made > this code: > > """ > > my $p1 =

Help with promises, supplies and channels.

2022-04-05 Thread David Emanuel da Costa Santiago
Hi, I'm trying to learn about promises, supplies and channels. So i made this code: """ my $p1 = Supply.interval(5); my $p2 = Supply.interval(2); my Channel $ch = Channel.new; my $prom = start react { whenever $p1 -> $interval { say "5"; } whenever $p2 -> $interval {

The SF Perl Raku Study Group, 03/27 at 1pm PDT

2022-03-24 Thread Joseph Brenner
Paul Linebarger, "Psychological Warfare" (1947): "Europeans described light, hard-hitting *numerically inferior* cavalry as a 'numberless horde' because Mongol agents whispered such a story in the streets. To this day most Europeans do not appreciate the lightness of the forces nor the

Rakudo-Star news

2022-03-15 Thread notna
Dear all. A BIG thanks go's to [donaldh], who fixed some STAR bugs with his 2x [GitHub pulls]. I've pushed a new 2022.02.1 release to [Rakudo.org] just before, which has those fixes in. Beside this, I've also added a new [sync_latest GitHub Action], which will publish new STAR release

Re: The SF Perl Raku Study Group, 03/22 at 1pm PDT

2022-03-13 Thread Joseph Brenner
> March 13, 2022 1pm in California, 9pm in the UK Sorry, but thanks to the magic of "daylight savings time", 1pm in California is an hour earlier today, and that "9pm in the UK" should've said 8pm.

The SF Perl Raku Study Group, 03/22 at 1pm PDT

2022-03-11 Thread Joseph Brenner
Randall Munroe, "Excel Lambda": "The Church-Turing thesis says that all ways of computing are *equally* wrong." https://xkcd.com/2453/ The Raku Study Group March 13, 2022 1pm in California, 9pm in the UK Zoom meeting link:

Re: how to handle too many threads?

2022-03-08 Thread Brian Duggan
On Tuesday, March 8, Richard Hainsworth wrote: > I would like some help on a strategy to find what/where the problem is, and > how to prevent the error. Not sure if it will help since it looks like the issue is more low-level, but feel free to try out some very new functionality for debugging

how to handle too many threads?

2022-03-08 Thread Richard Hainsworth
Briefly I have lots of tests that individually run with no fails, but when run together I get a really strange run-time error: MoarVM oops: insert conflict, java is 437938227, 9 != 17 I think too many threads are being used. I'm not asking someone else to solve this problem, but for

Rakudo-Star 2022.02 (Windows MSI and Linux RSTAR) packages

2022-02-26 Thread notna
Please find the 2022.02 Rakudo Star Windows MSI and Linux RSTAR packages at https://github.com/rakudo/star/releases/latest As always, it would be great if someone makes them also available on https://rakudo.org/star Thanks & regards AntonOks

Rakudo-Star 2022.02 (Windows MSI and Linux RSTAR) packages

2022-02-26 Thread notna
Please find the 2022.02 Rakudo Star Windows MSI and Linux RSTAR packages at https://github.com/rakudo/star/releases/latest As always, it would be great if someone makes them also available on https://rakudo.org/star Thanks & regards AntonOks

The SF Perl Raku Study Group, 02/27 at 1pm PDT

2022-02-25 Thread Joseph Brenner
Poul Anderson, "Harvest the Fire" (1995): "Why this jagged distribution of greatness? The incidence of innate abilities could scarcely vary that much. The social situation, the _Zeitgeist_-- were such phrases anything but noises?" The Raku Study Group February 17, 2022 1pm in

Re: A natural opportunity for Raku?

2022-02-12 Thread ToddAndMargo via perl6-users
On 2/12/22 13:12, Parrot Raiser wrote: unfortunate tendency for "simple" languages to accrete features and morph into misshapen monsters Hi Parrot, This is probably not going to add the the knowledge of humanist, but WHEN DOES THAT STOP ME My tendency is to find what I need and ignore

Re: A natural opportunity for Raku?

2022-02-12 Thread Daniel Sockwell
February 12, 2022 4:12 PM, "Parrot Raiser" <1parr...@gmail.com> wrote: > In this article, "Every Simple Language Will Eventually End Up Turing > Complete" > https://solutionspace.blog/2021/12/04/every-simple-language-will-eventually-end-up-turing-complete > the author points out an unfortunate

Re: A natural opportunity for Raku?

2022-02-12 Thread Matthew Stuckwisch
Yes, absolutely. There were some early examples with Tony O'Dell's inline SQL module. It doesn't actually check the syntax, and just passes off everything between 'sql' and ';'. You can see it at . I'm sure it could be updated today to check off

A natural opportunity for Raku?

2022-02-12 Thread Parrot Raiser
In this article, "Every Simple Language Will Eventually End Up Turing Complete" https://solutionspace.blog/2021/12/04/every-simple-language-will-eventually-end-up-turing-complete the author points out an unfortunate tendency for "simple" languages to accrete features and morph into misshapen

Re: coercion

2022-02-11 Thread Marcel Timmerman
On 11-02-2022 15:58, Daniel Sockwell wrote: The question now is that I can't find anything about COERCE in the documentation. Yeah, COERCE definitely should be documented but just hasn't been yet. There's a raku/doc issue about needing to add it (https://github.com/Raku/doc/issues/3807) but

Re: coercion

2022-02-11 Thread Daniel Sockwell
> The question now is that I can't find anything about COERCE in the > documentation. Yeah, COERCE definitely should be documented but just hasn't been yet. There's a raku/doc issue about needing to add it (https://github.com/Raku/doc/issues/3807) but unfortunately none of us has done so yet

Re: coercion

2022-02-11 Thread Elizabeth Mattijsen
It is being tested in Roast, so I'd say it's not really that experimental anymore :-) > On 11 Feb 2022, at 15:20, Marcel Timmerman wrote: > > Hi, > > I stumbled over a discussion between Raku developers on > "Raku/proplem-solving" issue 227 "Coercion reconsidered and unified" and I > saw

coercion

2022-02-11 Thread Marcel Timmerman
Hi, I stumbled over a discussion between Raku developers on "Raku/proplem-solving" issue 227 "Coercion reconsidered and unified" and I saw something interesting about coercion. Without much knowledge I started to experiment with a method called COERCE(). This ended successful and can now

Re: show all drive letters and labels

2022-02-10 Thread ToddAndMargo via perl6-users
On 2/10/22 02:25, Elizabeth Mattijsen wrote: Have you considered giving back to the community by putting this into a module (as well as the WinMessageBox and WinMount modules that it refers to, which I assume to be your private modules) and uploading it to the ecosystem? I have considered.

Re: show all drive letters and labels

2022-02-10 Thread Elizabeth Mattijsen
> On 10 Feb 2022, at 11:10, ToddAndMargo via perl6-users > wrote: > That is an interesting module. I am not sure what > I would use it for though. Maybe in the future. > It is a method of find out what a drive is. > > What I was after was finding the drive letter that > corresponded to a

Re: show all drive letters and labels

2022-02-10 Thread ToddAndMargo via perl6-users
On 2/10/22 01:26, Elizabeth Mattijsen wrote: So I was really hoping for a built in system32 call. I really, really don't care for the the trouble associated with using the "C" interface to call system 32 dll's, but I may have to. One of the things that Raku tries to do, is to be ignorant about

Re: show all drive letters and labels

2022-02-10 Thread Elizabeth Mattijsen
> So I was really hoping for a built in system32 call. > I really, really don't care for the the trouble > associated with using the "C" interface to call > system 32 dll's, but I may have to. One of the things that Raku tries to do, is to be ignorant about the underlying OS. Having a system32

The SF Perl Raku Study Group, 02/13 at 1pm PDT

2022-02-09 Thread Joseph Brenner
Lera Boroditsky, "How does our language shape the way we think" (2009): We have collected data around the world: from China, Greece, Chile, Indonesia, Russia, and Aboriginal Australia. What we have learned is that people who speak different languages do indeed think differently and that

Re: show all drive letters and labels

2022-02-09 Thread ToddAndMargo via perl6-users
On 2/9/22 12:18, ToddAndMargo via perl6-users wrote: On 9 Feb 2022, at 12:37, ToddAndMargo via perl6-users wrote: Hi All, Windows 7,10,11 Do we have a command/function that will show all drive letter and their labels? Many thanks, -T On 2/9/22 04:05, Elizabeth Mattijsen wrote: > What

Re: show all drive letters and labels

2022-02-09 Thread ToddAndMargo via perl6-users
On 9 Feb 2022, at 12:37, ToddAndMargo via perl6-users wrote: Hi All, Windows 7,10,11 Do we have a command/function that will show all drive letter and their labels? Many thanks, -T On 2/9/22 04:05, Elizabeth Mattijsen wrote: > What would you use on a command-line to get that

Re: show all drive letters and labels

2022-02-09 Thread Elizabeth Mattijsen
What would you use on a command-line to get that information? Then look at https://docs.raku.org/routine/run Liz > On 9 Feb 2022, at 12:37, ToddAndMargo via perl6-users > wrote: > > Hi All, > > Windows 7,10,11 > > Do we have a command/function that will show all drive > letter and their

show all drive letters and labels

2022-02-09 Thread ToddAndMargo via perl6-users
Hi All, Windows 7,10,11 Do we have a command/function that will show all drive letter and their labels? Many thanks, -T -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~

Fosdem 2022 Videos published!

2022-02-07 Thread William Michels via perl6-users
Ten talks, online! https://fosdem.org/2022/schedule/track/raku/

Re: Aw: Re: Re: Latest Rakudo*

2022-02-02 Thread ToddAndMargo via perl6-users
Hi notna, I watch https://github.com/nxadm/rakudo-pkg/releases[https://github.com/nxadm/rakudo-pkg/releases][https://github.com/nxadm/rakudo-pkg/releases[https://github.com/nxadm/rakudo-pkg/releases] with a Raku program I wrote and notify and download any new ones that show up. Regex

Aw: Re: Re: Latest Rakudo*

2022-02-02 Thread notna
Hi. As far es I know, those come without the Star additions... say extra packages and docu. Regrads AntonOks     > Hi notna, > > I watch > >

Re: Aw: Re: Latest Rakudo*

2022-01-31 Thread ToddAndMargo via perl6-users
On 1/31/22 12:51, no...@ist-einmalig.de wrote: Hi. Let's say, the RSTAR Linux releases haven't made their way into the official rakudo.org site since a very long time but releases are build since some months again and sooner or later they will show up there again. You can find Rakudo Star,

Aw: Re: Latest Rakudo*

2022-01-31 Thread notna
Hi.   Let's say, the RSTAR Linux releases haven't made their way into the official rakudo.org site since a very long time but releases are build since some months again and sooner or later they will show up there again. You can find Rakudo Star, including the Linux RSTAR, builds here: [1]

Re: Latest Rakudo*

2022-01-31 Thread ToddAndMargo via perl6-users
On 1/30/22 14:30, Parrot Raiser wrote: https://rakudo.org/star shows the latest Rakudo* bundle for Linux as 2021.04 - is that really the latest? Hi Parrot, This is what I show: https://github.com/nxadm/rakudo-pkg/releases v2021.12 HTH, -T

Latest Rakudo*

2022-01-30 Thread Parrot Raiser
https://rakudo.org/star shows the latest Rakudo* bundle for Linux as 2021.04 - is that really the latest?

The SF Perl Raku Study Group, 01/30 at 1pm PDT

2022-01-28 Thread Joseph Brenner
David Auerbach, "Bitwise: A Life in Code" (2018): "As a child, I had been drawn to computers because they were free of society's tortuous value systems. Ironically, I now live in a world where computers are the thoughtless arbiters of those very same value systems. They have come to

Re: How to use WHY on a object's method?

2022-01-17 Thread David Emanuel da Costa Santiago
Super! That's what i was looking for. Thanks! David Santiago Às 18:43 de 17/01/22, Clifton Wood escreveu: You need the method object, and you can't get that from $a.test  -- Try using the following: when X::AdHoc { say $a.^lookup('test').WHY; # TODO: This is wrong :-( } I've tested it

Re: How to use WHY on a object's method?

2022-01-17 Thread Clifton Wood
You need the method object, and you can't get that from $a.test -- Try using the following: when X::AdHoc { say $a.^lookup('test').WHY; # TODO: This is wrong :-( } I've tested it here ( https://replit.com/@Xliff/ThinDutifulExtensions#main.raku) and it works! :) -X On Mon, Jan 17, 2022 at

How to use WHY on a object's method?

2022-01-17 Thread David Emanuel da Costa Santiago
Hello Rakuns, How do i access the declarator block of my object method? I'm trying to do this, but it's not working: class A { #|( This is just a test with 3 parameters: * p1 - parameter 1 * p2 - parameter 1 * p2 - parameter 1 ) method test($p1, $p2, $p3) {

Re: Benchmark for Scala, Ruby and Perl

2022-01-15 Thread Jon Smart
Thanks for the geeks on the lists who pointed out a lot of problems to me. I want to add the description why I want to make this benchmark. And I tried to use mmap() for reading file but I have got no benefits from it. https://blog.cloudcache.net/why-mmap-has-no-significant-effect-in-my-code/

Re: Benchmark for Scala, Ruby and Perl

2022-01-15 Thread Paul Procacci
On Sat, Jan 15, 2022 at 5:03 AM Jon Smart wrote: > > Thanks Paul. I am surprised that mmap has that huge IO advantages > comparing to the classic way. So ruby take more benefit from this mmap > calling. Just get learned from your case. > > Regards > > It's not always beneficial. There are cases

Re: Benchmark for Scala, Ruby and Perl

2022-01-15 Thread Jon Smart
Thanks Paul. I am surprised that mmap has that huge IO advantages comparing to the classic way. So ruby take more benefit from this mmap calling. Just get learned from your case. Regards On 15.01.2022 17:57, Paul Procacci wrote: Hey John, One more follow up and then it's bedtime for me.

Re: Benchmark for Scala, Ruby and Perl

2022-01-15 Thread Paul Procacci
Sorry, it's 5:00am here and needless to say it's wy past my bedtime and I'm making mistakes. The comparison should have been between both ruby versions ugh. I'll let you play though. Have a great night. On Sat, Jan 15, 2022 at 4:57 AM Paul Procacci wrote: > Hey John, > > One more

Re: Benchmark for Scala, Ruby and Perl

2022-01-15 Thread Paul Procacci
Hey John, One more follow up and then it's bedtime for me. I wanted to further this discussion just a little bit more by implementing the mmap solution that I applied to perl to ruby instead. Now all of a sudden, ruby is much much faster. My ruby source code follows: Goodnight! # ruby -W0

Re: Benchmark for Scala, Ruby and Perl

2022-01-15 Thread Paul Procacci
Hey John, On Sat, Jan 15, 2022 at 3:04 AM Jon Smart wrote: > > Hello Paul > > Do you mean by undef $/ and with <$fh> we can read the file into memory > at one time? > In most cases the short answer is yes. I have problems with your wording however given the 'geek' that I am. 'At one time'

Re: Benchmark for Scala, Ruby and Perl

2022-01-15 Thread Jon Smart
Hello Paul Do you mean by undef $/ and with <$fh> we can read the file into memory at one time? Yes that would be faster b/c we don't need to read file by each line, which increases the disk IO. Another questions: 1. what's the "truss" command? 2. what's the syntax "<:mmap"? Thank you.

<    3   4   5   6   7   8   9   10   11   12   >