> On 15 Mar 2024, at 03:57, Mark Devine wrote:
>
> Rakoons,
> I keep running into a space with Raku where it would be nice to have some
> magic to reduce boilerplate. I often make roles & classes with interface
> options that flow from a consuming script’s MAIN arguments, then the first
>
> On 3 Mar 2024, at 03:32, ToddAndMargo via perl6-users
> wrote:
>
>> On 3/2/24 05:13, Elizabeth Mattijsen wrote:
>>> .sort(*.split(/\d+/, :kv).map({ (try .Numeric) // $_}).List)
>
>> Hi Elizabeth,
>> It works perfectly. Thank you!
>> I have no ide
$ raku -e '.say for .sort(*.split(/\d+/, :kv).map({ (try
.Numeric) // $_}).List)
afoo2
afoo12
> On 2 Mar 2024, at 07:26, ToddAndMargo via perl6-users
> wrote:
>
> Hi All,
>
> @Sorted_List = @Sorted_List.sort: { .comb(/ \d+ | \D+ /) .map({ .Int // .self
> })};
>
> gives me
>
> Element
e 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?
>
.rakumod
> On 6 Feb 2024, at 18:08, ToddAndMargo via perl6-users
> 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
> On 10 Feb 2024, at 08:56, ToddAndMargo via perl6-users
> wrote:
>
> Hi All,
>
> Is there a switch to tell Raku to bomb out with a
> type mismatch rather than coercing the following?
>
> > my uint16 $x = -1
> 65535
No, this is intentional behaviour on native integers.
Note that you can
>>> wrote:
>>>
>>> Hi All,
>>>
>>> Is there a way to syntax a module? Sort of like the "-c"
>>> option on main programs?
>>>
>>> Many thanks,
>>> -T
>
> On 2/6/24 01:34, Elizabeth Mattijsen wrote
$ raku -c foo.rakumod
Syntax OK
> On 6 Feb 2024, at 00:39, ToddAndMargo via perl6-users
> wrote:
>
> Hi All,
>
> Is there a way to syntax a module? Sort of like the "-c"
> option on main programs?
>
> Many thanks,
> -T
>
>
>
> --
> ~~
> Computers are
$ raku --help
...
--optimize=level use the given level of optimization (0..3)
...
> On 7 Jan 2024, at 07:09, ToddAndMargo via perl6-users
> wrote:
>
> Hi All,
>
> Is there a switch on the command line to disable the code optimizer?
>
> Many thanks,
> -T
Looking at the Pointer class code, it looks like you can either create it
without arguments, or with an integer argument. The fact that you can
parameterize the Pointer class, only indicates the type of data the pointer is
pointing at.
> On 20 Dec 2023, at 20:12, Marcel Timmerman wrote:
>
>
t; };
>>> True
>>>
>>> Is there a way to tell .contains that you want to know
>>> if any of a sequence characters is in a string other that
>>> repeating || over and over. Any [a..z] or [0..9] option?
>>>
>>> Many thanks,
>>> -T
>
my @letters = ;
if $x.contains(any @letters) {
...
> On 10 Dec 2023, at 21:36, ToddAndMargo via perl6-users
> wrote:
>
> Hi All,
>
> my Str $x="abc3defg"; if $x.contains( "a" || "b" || "3" ) { print "True\n";
> } else { print "False\n" };
> True
>
> Is there a way to tell .contains that
> On 28 Nov 2023, at 20:33, Parrot Raiser <1parr...@gmail.com> wrote:
>
> In https://youtu.be/L2jnRk2GYwg?si=ffds1MWsyZaB09HR Cassie talks about
> creating a language for prompting AI bots. Isn't creating specialised DSs a
> Raku strong point?
Anton Antonov is on that!
> 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
> On 2 Feb 2023, at 00:53, Ralph Mellor wrote:
> I looked at Jitsi when vrurg suggested it for their Core class.
> It required an international phone call.
??? I've never had to make *any* phone call to be able to use Jitsi. And the
RSC uses it every 2 weeks or so.
Liz
lines.contains... is really short for: lines.Str.contains...
Do you then understand what's going on?
> On 28 Jan 2023, at 21:41, William Michels via perl6-users
> wrote:
>
> Some more examples:
>
> ~$ raku -e 'put "1\n2\n3";' | raku -e 'lines.contains(/ \h /).put;'
> True
> ~$ raku -e 'put
; implemented in details, but most likely the regex is processed inside the
> sequence iterator which owns the $/ used by the regex eventually.
>
> Best regards,
> Vadim Belman
>
>> On Dec 28, 2022, at 12:49 PM, Elizabeth Mattijsen wrote:
>>
>> That's beca
els wrote:
>
> Doesn't it have to? At least for the following case?
>
> [0] > #REPL
> Nil
> [0] > say $/.Str if 9 ~~ /9/;
> 9
>
> Best regards. --B
>
> On Wed, Dec 28, 2022, 09:49 Elizabeth Mattijsen wrote:
> That's because it at on
ot;trick" sets $/ in these cases too.
>
>
> On Wed, Dec 28, 2022 at 12:01 PM Elizabeth Mattijsen wrote:
> This isn't specific to the REPL:
>
> $ raku -e 'say 1 ... /9/; say $/'
> (1 2 3 4 5 6 7 8 9)
> Nil
>
> I can only assume that the sequence has its own s
This isn't specific to the REPL:
$ raku -e 'say 1 ... /9/; say $/'
(1 2 3 4 5 6 7 8 9)
Nil
I can only assume that the sequence has its own scope for $/, and thus isn't
visible outside of it.
Liz
> On 28 Dec 2022, at 16:47, Sean McAfee wrote:
>
> In a fresh 2022.12 Raku REPL, when the
Perhaps it would make sense to export these to a separate Gnome::Constants
module?
> On 29 Nov 2022, at 15:05, Marcel Timmerman wrote:
>
> On 29-11-2022 10:13, Francis Grizzly Smit wrote:
>
> Hi Francis,
>>
>> Personally I never use \name are I hate how it looks, and so far I have
>> never
> Which brings me back to the other of my criticisms
> of the documentation. The examples are high level
> users showing off their skills making for a totally
> useless example for beginners. They should show a
> simple example and then work up to the show off stuff.
On that note, OOC, what
> a\\\b\\\c\\\d
>>>
>>>
>>> But this does not:
>>>
>>> $ echo "a/b/c/d" | raku -ne 'my $x=$_; $x~~s:g|$(Q[/])|Q[\\\]|;print $x ~
>>> "\n"'
>>> aQ[\]bQ[\]cQ[\]d
>>>
>>>
>>> H
> On 14 Oct 2022, at 22:23, Joseph Polanik wrote:
>
> On 10/14/22 4:15 PM, Elizabeth Mattijsen wrote:
>
>> The script Run/run_SequenceHelper.raku contains only the following lines
>>> use lib '~/Documents/myRaku/gitHub/SequenceHelper/lib';
>>> use Seque
> On 14 Oct 2022, at 22:05, Joseph Polanik wrote:
>
> On 10/14/22 3:38 PM, Elizabeth Mattijsen wrote:
>>> On 14 Oct 2022, at 21:15, Joseph Polanik wrote:
>>> Actually, I did create a factorial() sub, but that didn't get me out of my
>>> present pr
> On 14 Oct 2022, at 21:15, Joseph Polanik wrote:
> Actually, I did create a factorial() sub, but that didn't get me out of my
> present predicament. It works as expected when invoked from the command line.
> However, when invoked from a test script (or the REPL) the error message is
>
> On 14 Oct 2022, at 20:35, Joseph Polanik wrote:
> Each of these results is correct. So, the problem remains that some subs are
> not found when invoked either from a test script or from the REPL.
>
> Is there some cache that I must clear when changing a .rakumod file to
> prevent my system
I cannot reproduce:
% cat lib/A.rakumod
sub postfix: ($n) is export {
when $n == 0 {return 1}
default {$n * ($n - 1)!}
}
% raku -e 'use lib "lib"; use A; say 42!'
14050061177528798985431426062445115699363840
% raku -v
Welcome to Rakudo™ v2022.07-64-gce1af0fa0.
Implementing the
Are there any in Perl? If so, maybe you can use them with Inline::Perl5 ?
> On 8 Oct 2022, at 22:20, rir wrote:
>
> Are there any Raku modules for extracting meta-data from
> JPEG files? I have looked but not found.
>
> At this point, I just want to extract dates to re-timestamp
> the files.
teger"). It looks like this
> somewhat old but unaddressed open issue:
> https://github.com/niner/Inline-Python/issues/44. There was a suggestion to
> add --force-test to override. I tried that and returned to the previous
> status quo: empty array, "instance has no attribute
a somewhat old version of Raku, 2021.04. But
> then, Inline::Python seems to be mostly even older.
>
>
> On Fri, Sep 9, 2022 at 11:35 AM Elizabeth Mattijsen wrote:
> To rule out any REPL artefacts, do you see the same thing if you put the code
> in a script and run the script?
&
To rule out any REPL artefacts, do you see the same thing if you put the code
in a script and run the script?
> On 9 Sep 2022, at 20:17, Sean McAfee wrote:
>
> Hello--
>
> I recently started playing around with PySpark. It soon occurred to me that
> it would be a lot more fun to work in
ck it.
>
> The guys on the chat line said this is normal
> as `BEGIN` runs a compile time
How short *is* your memory?
> From: Elizabeth Mattijsen
> Subject: Re: BEGIN {} question
> Date: 29 August 2022 at 09:44:30 CEST
> To: ToddAndMargo via perl6-users
>
>> Question, wo
> Since you wrote both Perl 5 and Perl 6, is there some
> reason beyond my limited understanding of how these
> things work as to why your Perl 5 is so much faster to
> compile that your Perl 6?
You clearly understand the situation!
What can I say?
Ah, I know. *PLONK*
Liz
> Question, would BEGIN go at the top or the bottom
> of my code? Seems the compiler would hit it first
> at the top, but I do not know if it makes a full
> pass of everything before firing off the BEGIN.
BEGIN runs at *compile* time.
This means that anything before the BEGIN statement in the
> On 9 Aug 2022, at 15:10, Fernando Santagata wrote:
>
> On Tue, Aug 9, 2022 at 2:13 PM Elizabeth Mattijsen wrote:
> > On 9 Aug 2022, at 13:53, Fernando Santagata
> > wrote:
> >
> > Hello,
> >
> > I'm trying to uninstall old versions of
> On 9 Aug 2022, at 13:53, Fernando Santagata wrote:
>
> Hello,
>
> I'm trying to uninstall old versions of some modules; it looks like it's
> working but in reality it isn't. For example, but it's not limited to just
> this module:
>
> $ zef list --installed|grep CBOR
> ===> Found via
Good chance it will if:
a. that works in plain Perl
b. you have Inline::Perl5 installed
c. you do "use Net::FTP:from"
d. you change -> to .
> On 9 Aug 2022, at 11:46, ToddAndMargo via perl6-users
> wrote:
>
> On 8/9/22 00:56, Elizabeth Mattijsen wrote:
&g
;CompUnit::Repository::NQP<63797000>
>>>CompUnit::Repository::Perl5<63797040>
>>> at -e:1
>>>
>>>
>>> Why are we looking in perl 5?
>
>
> On 8/8/22 23:52, Elizabeth Mattijsen wrote:
> > So that you can transparently
So that you can transparently say "use DBI:from"
> On 9 Aug 2022, at 06:19, ToddAndMargo via perl6-users
> wrote:
>
> $ raku -Msigpipe -e 'loop { say "y"}' | sed 3q
> ===SORRY!=== Error while compiling -e
> Could not find sigpipe in:
>/home/tony/.raku
>/opt/rakudo-pkg/share/perl6/site
> On 4 Aug 2022, at 14:38, Marc Chantreux wrote:
> It would be nice to define a backtrick operator (like in rc) so we
> could write
>
> my @installed-files =
> grep *.IO.f,
> map *.trim,
> `< dpkg-query -f ${db-fsys:Files} -W gnuplot* >;
>
>
> On 4 Aug 2022, at 10:35, Marc Chantreux wrote:
>
> hello people,
>
> I found myself choosing between
>
> raku -e '
> (run :out, <
> dpkg-query -f ${db-fsys:Files} -W gnuplot*
> > ).out>>.lines>>.trim>>.grep(*.IO.f)>>.say'
>
> and
>
> raku -e '
> qx<
>
> On 19 Jul 2022, at 20:49, ToddAndMargo via perl6-users
> wrote:
> As an aside, Raku still reads my Perl 5 ".pm"
> modules before reading my Raku ".pm6" modules.
> Raku default to ".pm" before ".pm6". The
> compiler wags its finger at me a lot!
>
> So I have to segregate my ".pm6" modules
>
That is correct.
> On 12 Jul 2022, at 03:52, Darren Duncan wrote:
>
> On 2022-07-10 10:56 a.m., Elizabeth Mattijsen wrote:
>> Fez (aka https://360.zef.pm) will provide *all* versions.
>
> The above url just displays a big data structure when visiting it in a web
> b
Ah, indeed I did. Using App::Mi6 is so ingrained in me (and before that
"cpan-upload"), that it is hard for me to imagine any other situation :-)
Liz
> On 10 Jul 2022, at 21:41, Vadim Belman wrote:
>
> Hi,
>
> Liz has probably missed the point of your question. Yes, you must do fez
>
> 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
> 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
I can think of ways to do this, but it would
>>> require separate variable and conversions routines
>>> back and forth.
>>>
>>> Any words of Raku wisdom?
>>>
>>> Many thanks,
>>> -T
>
> On 6/10/22 01:23, Elizabeth Mattijsen wrote:
>&
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
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:
>
>
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
> 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
> 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
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
Maybe first explain why the error:
When you specify a Pair as such as an argument, it is interpreted as a *named*
argument.
$ raku -e 'sub a(|c) { dd c }; a b => 42'
\(:b(42))
So thus you can see why the error is thrown: you passed 0 positional arguments
to the subroutine, and it
If you're looking for Perl, you're probably on the wrong mailing list: I
suggest you try "perl.beginners".
> On 1 Jan 2022, at 10:42, Turritopsis Dohrnii Teo En Ming
> wrote:
>
> Subject: Should I start learning Perl?
>
> Good day from Singapore,
>
> I am thinking of learning Perl. May I
+1 from me. Shouldn't that be a .rakudoc file ? :-)
> On 30 Dec 2021, at 12:20, Richard Hainsworth wrote:
>
> I'm revising how I name files that are included in my modules. With the name
> change to Raku, the file extensions also changed for script and module files.
>
> In addition Jonathan
Personally, I don't add it anywhere anymore. Especially in files with the
.raku, .rakumod and .rakutest extensions :-)
> On 28 Dec 2021, at 17:59, Marc Chantreux wrote:
>
> hello people,
>
> long time ago, there was this 'use v6' line so perl should be v6 and
> still run v5.* things.
>
> I
Planned are:
- more optimizations based on new-disp
- the RakuAST branch will land, bringing better composability and full-blown
macros
- the next language version will be released: probably called "6.e"
Non-core developments I see:
- support for Raku Ecosystem Archive integrated into zef
-
> On 13 Dec 2021, at 05:23, rir wrote:
>
>
> REPL says:
>> Date.new("2024-02-29").later( :1year);
>2025-02-28
>
> Is the following some standard?
I'm not sure...
Basically when moving by month / year, it just basically moves that field in
the date, and then checks for validity of the
I suggest making this a problem-solving issue:
https://github.com/raku/problem-solving
> On 11 Dec 2021, at 05:48, Timothy Nelson wrote:
>
> Hi all.
>
> I've been lurking on this list for years (and once won an "oldest resurrected
> conversation" award). I've loved Raku conceptually since
rir wrote:
>
> Wow, that was a surprise. Thanks.
>
> But I was on this path:
>
>class Not-really-real {
>has Real $value handles :<=>;
>}
>
> Rob
>
>
> On Fri, Nov 26, 2021 at 03:15:32PM +0100, Elizabeth Mattijsen wrote:
&g
You mean like:
say :<+>(has 42,137); # 179
?? If so, by referring to its full name :-)
> On 26 Nov 2021, at 15:07, rir wrote:
>
> Is it possible to to delegate plain or overridden operators? If so,
> what does the syntax look like?
>
> Rob
If this pull request is merged:
https://github.com/rakudo/rakudo/pull/4620
you will get a deprecation notice at the end of your program of the locations
in your code that need changing.
Liz
> On 5 Nov 2021, at 19:54, Joseph Brenner wrote:
>
> Yes, this feels like natural Raku code to a
Perhaps Think Raku: https://greenteapress.com/wp/think-perl-6/ ?
> On 29 Sep 2021, at 14:18, Walt CH wrote:
>
> I have some ruby programming experience, and some JS.
> can you suggest a book for newbie of perl6?
>
> Thanks
> On 21 Aug 2021, at 20:03, Joseph Brenner wrote:
>
> Given and example like this:
>
> class A {}
> class B is A {}
> class D is B {}
>
> say D.^parents(); # ((B) (A))
> say D.^parents( :all ); # ((B) (A) (Any) (Mu))
>
> So, I conclude that Any and Mu are "hidden" as far as ^parents is
recated code
>>>> adapted, so that this message will disappear!
>>>> 148: ( $ReturnStr, $ReturnErr, $RtnCode ) = RunNoShellAll( $RunString,
>>>> True, False, True );
>>>> Confused,
>>>> -T
>
>
>>> On 27 Jul 2021, at 02:29, Tod
Read the error message!
"/home/linuxutil/p6lib/RunNoShellLib.pm6 (RunNoShellLib), line 148"
What does that line say?
> On 27 Jul 2021, at 02:29, ToddAndMargo via perl6-users
> wrote:
>
> On 7/26/21 5:21 PM, ToddAndMargo via perl6-users wrote:
>> Hi All,
>> $ raku -v
>> Welcome to 퐑퐚퐤퐮퐝퐨™
> On 19 Jul 2021, at 05:49, Peter Scott wrote:
>
> I'm curious as to why Rat.new initializes instead of leaving as undefined:
>
> > $*RAKU
> Raku (6.d)
> > my Rat $p
> (Rat)
> > put $p
> Use of uninitialized value $p of type Rat in string context.
> Methods .^name, .raku, .gist, or .say can be
> On 13 Jul 2021, at 19:07, Joseph Brenner wrote:
> Bruce Gray points out "constant" works also:
>
> constant $lib_loc = $*PROGRAM.parent.add('../lib');
Yup.
constant $foo = 42;
is basically short for:
BEGIN my $foo := 42
> On 12 Jul 2021, at 00:54, ToddAndMargo via perl6-users
> wrote:
> I want the full stinkin' path, not a dot.
".".IO.full-stinkin-path;
ah, no, that should be:
".".IO.absolute
> On 11 Jul 2021, at 01:11, Joseph Brenner wrote:
>
> I want my test files to be able to find the modules they're testing
> just using their relative locations, given the usual layout of "lib"
> and "t" locations in parallel inside the project directory.
>
> I find that while this works:
>
>
my $x = UupDumpClass.new;
> On 4 Jul 2021, at 12:36, ToddAndMargo via perl6-users
> wrote:
>
> Hi All,
>
> What I am doing wrong here?
>
> > class UupDumpClass { has @.arry is rw; }
> (UupDumpClass)
>
> > my $x = UupDumpClass;
> (UupDumpClass)
>
> > $x.arry[0] = "zero";
> Cannot look up
> On 9 Jun 2021, at 12:48, Marc Chantreux wrote:
>
> hello,
>
> I just saw this and it's very good
>
> https://www.youtube.com/watch?v=elalwvfmYgk
>
> The features he picked are indeed things i really like in raku
> and i learned some interesting details. Other details are still
> bugging me
> On 9 Jun 2021, at 06:34, Paul Procacci wrote:
>
> Hopefully a pretty quick question
>
> GIven the following:
>
> my Buf $b .= new([72, 105, 0, 32, 97, 103, 97, 105, 110, 0]);
> say $b.decode;
>
> I would expect this to print 'Hi'.
> Instead it prints 'Hi again'.
>
>
[16:37:23] i'm not subscribed to the mailing list but maybe
someone who is could chime in to this thread
https://www.nntp.perl.org/group/perl.perl6.users/2021/04/msg9878.html and
mention that i believe the problem is in libtommath's mp_get_double and the gmp
branch fixes it?
> On 14 Apr
> On 17 Mar 2021, at 22:02, Richard Hainsworth wrote:
>
> After working at this, I finally found where it was happening, and a
> work-around.
>
> I was checking all 517 http/s links in the documentation to see whether they
> are all live (not 404 and host found). For this I was using
> On 17 Mar 2021, at 18:45, Richard Hainsworth wrote:
>
> I have been running into this error: "Too many open files"
>
> Sorry for the lack of detail. The problem is that the error comes up in odd
> places, so I have found it difficult to golf down into Raku program that
> always fails with
> On 16 Mar 2021, at 04:22, Matthew Stuckwisch wrote:
>
> So here's my 2¢, which will probably be followed up with some actual
> development of stuff (I do put my money where my mouth is… although it might
> take me a while to save up to spend it ha). Some of the minor details could,
> of
> On 7 Mar 2021, at 00:16, Joseph Brenner wrote:
>
> Is there anything like an equivalent of "man perlguts" for Raku/rakudo?
>
> There are things like this, but they seem to be very out-of-date:
>
> https://github.com/rakudo/rakudo/blob/master/docs/architecture.html
That is indeed severely
$ raku -e 'class samesame { hello samesame, { say "Wosup?" } }'
===SORRY!=== Error while compiling -e
Undeclared routine:
hello used at line 1. Did you mean 'shell'?
Are you missing a comma there? Did you intend to call the "hello" subroutine,
with "samesame" and the block as parameters?
See also: https://log.perl.org/2021/01/perlcom-hijacked.html
The site is currently hosted at https://perldotcom.perl.org
> On 30 Jan 2021, at 00:07, Earl Ruby wrote:
>
> A glance at the domain records show the contact information is now "REDACTED
> FOR PRIVACY". Prior to the change Tom
Agree.
That's why I did https://github.com/rakudo/rakudo/commit/d53a927331 earlier
today.
> On 11 Jan 2021, at 18:36, Richard Hainsworth wrote:
>
> I want to test for a key being defined in one hash, and if it is, then it
> should be a hash, and I need the value of that second key.
>
> So I
If those are the only lines in your program, the program will have exited
before the sleep in the start has actually passed. If you change the program
to:
start { sleep 1; say "done"; exit }
say "working";
sleep;
you should also see the "done".
> On 5 Jan 2021, at 14:15, Theo van
Thank you for the compliment. But I was merely channeling Jonathan
Worthington... :-)
> On 30 Dec 2020, at 14:43, Gianni Ceccarelli wrote:
>
> Liz is, as usual, correct: there's no reason to wait until our write
> buffers are flushed (``await $conn.print``) before ``react``ing to
> what's in
Using an `await` inside a react, feels like a code smell to me. An `await`
will block the `react` block from processing other messages until the `await`
returns. Which feels like it is opening up a large window of dead-locking
opportunities.
Couldn't a whenever be used there instead?
> On
> When one goes to make a fix, and the fixer is broken, it's a bit
> recursive. Can anyone cure problem #1, so I can get to step #2? :-)*
>
> On 12/28/20, Elizabeth Mattijsen wrote:
>> ❤️
>>
>>> On 28 Dec 2020, at 13:54, Richard Hainsworth
>>> wrote:
>
❤️
> On 28 Dec 2020, at 13:54, Richard Hainsworth wrote:
>
> Todd,
>
> Some of what you have said in this email list over the years has been very
> valuable. You ask questions that get some very illuminating answers. I wrote
> a Module just for you (although I' still trying to get it to work
> On 24 Dec 2020, at 03:55, Matthias Peng wrote:
> May I ask if there is any practical perl6 project running? For example,
> homebrew by ruby, k8s by go, flask by python etc.
https://raku-advent.blog/2020/12/20/day-20-a-raku-in-the-wild/ looks like a
practical project to me.
Nil is really a Failure that doesn't throw. It indicates the absence of a
value where there is one expected.
That is why Nil doesn't throw. If you want to indicate a soft failure, you
should use fail().
If the chain of methods you mention are core methods, and one of them is
returning Nil,
This change of behaviour turned out to be a regression. This was fixed
reported in https://github.com/rakudo/rakudo/issues/4039 and fixed with
https://github.com/rakudo/rakudo/commit/3e10cc6f8a
> On 18 Nov 2020, at 18:46, William Michels via perl6-users
> wrote:
>
> user@mbook:~$ raku
>
> On 30 Oct 2020, at 22:11, Sean McAfee wrote:
>
> Sorry, it seems I wasn't explicit enough.
>
> With polymod, I can get the values of digits even in large bases like 101:
>
> > 1234567890.polymod(101 xx *)
> (46 20 26 87 11)
>
> Given a list of digit values like that, and the base, I
$ raku -e 'dd "g".parse-base(17)'
16
> On 30 Oct 2020, at 21:25, Sean McAfee wrote:
>
> I want to construct a number from its digits in some arbitrary base. That
> is, to essentially do the inverse of this kind of polymod call:
>
> my @digits = $number.polymod($base xx *);
>
> I have a
> On 26 Oct 2020, at 18:40, Sean McAfee wrote:
> Is this the intended behavior? The doc page on quoting constructs just says
> that values can be interpolated with braces, but (at least to my eyes)
> doesn't suggest that this involves creating a new scope, or a new function,
> or however it
> On 25 Sep 2020, at 04:25, Brad Gilbert wrote:
> Rakudo does not use ICU
>
> It used to though.
>
> Rakudo used to run on Parrot.
> Parrot used ICU for its Unicode features.
Ah, the days.
I do remember that in the Parrot days, any non-ASCII character in any string,
would have a significant
Feels like a regression worthy of a Rakudo issue
> On 24 Sep 2020, at 20:26, Fernando Santagata
> wrote:
>
> Hello,
>
> Since I upgraded to the last Rakudo I'am having a weird problem. I have a
> module like this:
>
> unit class Class1;
> etc.
>
> Then a second module:
>
> unit class
https://www.codesections.com/blog/raku-unicode/
> On 24 Sep 2020, at 20:00, Joseph Brenner wrote:
>
> I'm not sure myself, but my first guess would be probably not...I
> *think* Raku is doing it's own Unicode thing, and isn't using any
> system ICU libraries (but I'm willing to stand corrected
$ time raku -e ''
real0m0.120s
user0m0.111s
sys 0m0.022s
Doesn't take 10 seconds for me.
> On 31 Jul 2020, at 03:45, ToddAndMargo via perl6-users
> wrote:
>
> Hi All,
>
> Any sign of a fix for the 10 second compile time?
>
> Do you know if a bug has been opened on it so I can
Larry,
good to see you here!
Of course, I have some comments on your suggestions :-)
> On 22 Jul 2020, at 21:14, Larry Wall wrote:
>> Trick #5: -a
>>
>> -a turns on autosplit mode – perl will automatically split input
>> lines on whitespace into the @F array. If you ever run
> On 10 Jul 2020, at 23:37, Brad Gilbert wrote:
> I honestly think that there is an argument to be made that it shouldn't even
> be possible to write a `subset` without a `where` clause.
Making the "where" clause non-optional, is remarkably simple: removing a '?'
However, there appear to be
1 - 100 of 315 matches
Mail list logo