»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_log/perl6 | UTF-8 is our friend! 🦋
Set by Zoffix on 25 July 2018.
00:04 netrino_ joined 00:18 aborazmeh left 00:32 cpup joined 00:33 aborazmeh joined, aborazmeh left, aborazmeh joined 00:38 netrino_ left 00:43 netrino_ joined 00:49 espadrine_ left 01:10 sena_kun left 01:16 netrino_ left 01:22 netrino_ joined 01:23 adu joined 01:34 cpan-p6 left 01:35 cpan-p6 joined, cpan-p6 left, cpan-p6 joined 01:36 Cabanossi left
Xliff m: my $a = 'z'; my $content = 'abcdzf'; say $content ~~ / { $a }/ 01:37
camelia 「」
Xliff m: my $a = 'z'; my $content = 'abcdzf'; say $content ~~ / $a /
camelia 「z」
Xliff m: my $a = 'z'; my $content = 'abcdzf'; say $content ~~ /{ $a }/
camelia 「」
Xliff m: my %a<data> = 'z'; my $content = 'abcdzf'; say $content ~~ /{ $a }/ 01:38
camelia 5===SORRY!5=== Error while compiling <tmp>
Shaped variable declarations not yet implemented. Sorry.
at <tmp>:1
------> 3my %a<data>7⏏5 = 'z'; my $content = 'abcdzf'; say $con
Xliff m: my %a; %a<data> = 'z'; my $content = 'abcdzf'; say $content ~~ /{ $a }/
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '$a' is not declared. Did you mean '%a'?
at <tmp>:1
------> 3$content = 'abcdzf'; say $content ~~ /{ 7⏏5$a }/
Xliff m: my %a; %a<data> = 'z'; my $content = 'abcdzf'; say $content ~~ / %a<data> /
camelia 5===SORRY!5===
The use of hash variables in regexes is reserved
at <tmp>:1
------> 3content = 'abcdzf'; say $content ~~ / %a7⏏5<data> /
Other potential difficulties:
Apparent subscript will be treated as regex
at <tmp>:1…
Xliff m: my %a; %a<data> = 'z'; my $content = 'abcdzf'; say $content ~~ / "%a<data>" /
camelia 「z」
Xliff m: my %a; %a<data> = 'z'; my $content = 'abcdzf'; say $content ~~ / %a<data> /
camelia 5===SORRY!5===
The use of hash variables in regexes is reserved
at <tmp>:1
------> 3content = 'abcdzf'; say $content ~~ / %a7⏏5<data> /
Other potential difficulties:
Apparent subscript will be treated as regex
at <tmp>:1…
Xliff m: my %a; %a<data> = 'z'; my $content = 'abcdzf'; say $content ~~ / {%a<data>} /
camelia 「」
01:39 molaf left 01:45 Cabanossi joined 01:47 noisegul joined 01:48 qiqi joined 01:50 noisegul_ left 01:51 molaf joined 01:55 netrino_ left
Xliff my %p = ( actions => :shade, :hmax ); %p.gist.say 01:55
evalable6 {actions => shade => True, hmax => True}
02:01 Manifest0 left, netrino_ joined 02:03 Manifest0 joined
MasterDuke m: my $a = 'z'; my $content = 'abcdzf'; say $content ~~ /<{ $a }>/ 02:05
camelia 「z」
Xliff MasterDuke: OH! I forgot to add the angle-brackets? 02:14
m: my %a; %a<data> = 'z'; my $content = 'abcdzf'; say $content ~~ / <{%a<data>}> / 02:15
camelia 「z」
MasterDuke m: my $a = 'z'; my $content = 'abcdzf'; say $content ~~ /{ say "hi"; $a >/ 02:21
camelia 5===SORRY!5===
Regex not terminated.
at <tmp>:1
------> 3dzf'; say $content ~~ /{ say "hi"; $a >/7⏏5<EOL>
Regex not terminated.
at <tmp>:1
------> 3dzf'; say $content ~~ /{ say "hi"; $a >/7⏏5<EOL>
Unable to parse regex; c…
MasterDuke m: my $a = 'z'; my $content = 'abcdzf'; say $content ~~ /{ say "hi"; $a }/
camelia hi
「」
MasterDuke Xliff: yeah, bare {} executes code, but doesn't interpolate it into the regex 02:22
02:29 Sgeo__ left 02:31 Sgeo joined 02:35 moony left, netrino_ left
Xliff m: my token dim { <[\+\-]>\d+ }; "300,-420 400x+30" ~~ / $<x=dim>,$<y=dim> \s* $<w=dim>'x'$<h=dim> /; 02:36
camelia 5===SORRY!5===
Unrecognized regex metacharacter , (must be quoted to match literally)
at <tmp>:1
------> 3>\d+ }; "300,-420 400x+30" ~~ / $<x=dim>7⏏5,$<y=dim> \s* $<w=dim>'x'$<h=dim> /;
Unable to parse regex; couldn't find final '/'…
Xliff m: my token dim { <[\+\-]>\d+ }; say "300,-420 400x+30" ~~ / $<x=dim>,$<y=dim> \s* $<w=dim>'x'$<h=dim> /;
camelia 5===SORRY!5===
Unrecognized regex metacharacter , (must be quoted to match literally)
at <tmp>:1
------> 3 }; say "300,-420 400x+30" ~~ / $<x=dim>7⏏5,$<y=dim> \s* $<w=dim>'x'$<h=dim> /;
Unable to parse regex; couldn't find final '/'…
Xliff m: my token dim { <[\+\-]>\d+ }; say "300,-420 400x+30" ~~ / $<x=dim>','$<y=dim> \s* $<w=dim>'x'$<h=dim> /; 02:37
camelia Nil
Xliff m: my token dim { <[\+\-]>\d+ }; say "300,-420 ~~ / $<x=dim>','$<y=dim>/;
camelia 5===SORRY!5=== Error while compiling <tmp>
Unable to parse expression in double quotes; couldn't find final '"' (corresponding starter was at line 1)
at <tmp>:1
------> 3say "300,-420 ~~ / $<x=dim>','$<y=dim>/;7⏏5<EOL>
expecting …
Xliff m: my token dim { <[\+\-]>\d+ }; say "300,-420" ~~ / $<x=dim>','$<y=dim>/;
camelia Nil
Xliff m: my token dim { <[\+\-]>\d+ }; say "300,-420" ~~ / <x=dim>','<y=dim>/;
camelia Nil
Xliff m: my token dim { <[\+\-]>\d+ }; say "300,-420" ~~ / <dim>','<dim>/; 02:38
camelia Nil
Xliff m: my token dim { <[\+\-]>\d+ }; say "300,420" ~~ / <dim>','<dim>/;
camelia Nil
Xliff m: my token dim { <[\+\-]>\d+ }; say "300,420" ~~ /\d+/;
camelia 「300」
Xliff m: my token dim { <[\+\-]>\d+ }; say "300,420" ~~ /<dim>\/;
camelia 5===SORRY!5===
Unrecognized regex metacharacter ; (must be quoted to match literally)
at <tmp>:1
------> 3<[\+\-]>\d+ }; say "300,420" ~~ /<dim>\/7⏏5;
Unable to parse regex; couldn't find final '/'
at <tmp>:1
------> 3[\+\-]>\d+…
Xliff m: my token dim { <[\+\-]>\d+ }; say "300,420" ~~ /<dim>\/;
camelia 5===SORRY!5===
Unrecognized regex metacharacter ; (must be quoted to match literally)
at <tmp>:1
------> 3<[\+\-]>\d+ }; say "300,420" ~~ /<dim>\/7⏏5;
Unable to parse regex; couldn't find final '/'
at <tmp>:1
------> 3[\+\-]>\d+…
Xliff m: my token dim { <[\+\-]>\d+ }; say "300,420" ~~ /<dim>/;
camelia Nil
Xliff m: my token dim { <[+-]>\d+ }; say "300,420" ~~ /<dim>\/;
camelia 5===SORRY!5===
Unrecognized regex metacharacter ; (must be quoted to match literally)
at <tmp>:1
------> 3{ <[+-]>\d+ }; say "300,420" ~~ /<dim>\/7⏏5;
Unable to parse regex; couldn't find final '/'
at <tmp>:1
------> 3 <[+-]>\d+…
Xliff m: my token dim { <[+-]>\d+ }; say "300,420" ~~ /<dim>/; 02:39
camelia Nil
Xliff m: my token dim { \d+ }; say "300,420" ~~ /<dim>/;
camelia 「300」
dim => 「300」
Xliff m: my token dim { <[+-]>\d+ }; say "300,420" ~~ /<dim>/;
camelia Nil
Xliff m: my token dim { <[\+\-]>\d+ }; say "300,420" ~~ /<dim>/;
camelia Nil
Xliff m: my token dim { <[\+\-]> \d+ }; say "300,420" ~~ /<dim>/;
camelia Nil
Xliff m: my token dim { <[\+\-]> \d+ }; say "+300,420" ~~ /<dim>/;
camelia 「+300」
dim => 「+300」
Xliff m: my token dim { <[\+\-]>?\d+ }; say "300,-420 400x+30" ~~ / $<x=dim>','$<y=dim> \s* $<w=dim>'x'$<h=dim> /; 02:40
camelia Nil
Xliff m: my token dim { <[\+\-]>?\d+ }; say "300,-420 400x+30" ~~ / <x=dim>','<y=dim> \s* <w=dim>'x'\<h=dim> /;
camelia 5===SORRY!5===
Unrecognized regex metacharacter = (must be quoted to match literally)
at <tmp>:1
------> 3~~ / <x=dim>','<y=dim> \s* <w=dim>'x'\<h7⏏5=dim> /;
Unable to parse regex; couldn't find final '/'
at <tmp>:1
------> 3~ /…
Xliff m: my token dim { <[\+\-]>?\d+ }; say "300,-420 400x+30" ~~ / <x=dim>','<y=dim> \s* <w=dim>'x'<h=dim> /;
camelia 「300,-420 400x+30」
dim => 「300」
x => 「300」
dim => 「-420」
y => 「-420」
w => 「400」
dim => 「400」
h => 「+30」
dim => 「+30」
02:40 netrino_ joined
Xliff m: my token dim { <[\+\-]>?\d+ }; say "300,-420 400x+30" ~~ / <x=.dim>','<y=.dim> \s* <w=.dim>'x'<h=.dim> /; 02:40
camelia No such method 'dim' for invocant of type 'Match'
in block <unit> at <tmp> line 1
Xliff m: my token dim { <[\+\-]>?\d+ }; say "300,-420 400x+30" ~~ / <x=dim>','<y=dim> \s* <w=dim>'x'<h=dim> /; 02:41
camelia 「300,-420 400x+30」
x => 「300」
dim => 「300」
y => 「-420」
dim => 「-420」
w => 「400」
dim => 「400」
h => 「+30」
dim => 「+30」
Xliff m: $a = 'adlkjhee'; say $a.ends-with(/ee/) 02:48
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '$a' is not declared
at <tmp>:1
------> 3<BOL>7⏏5$a = 'adlkjhee'; say $a.ends-with(/ee/)
Xliff m: my $a = 'adlkjhee'; say $a.ends-with(/ee/)
camelia Cannot resolve caller ends-with(Str:D: Regex:D); none of these signatures match:
(Str:D: Cool:D $suffix, *%_ --> Bool)
(Str:D: Str:D $suffix, *%_ --> Bool)
in block <unit> at <tmp> line 1
02:50 moony joined 03:04 kurahaupo_ joined 03:06 kurahaupo left
AndroidKitKat Is the best way to iterate though a string using substrs? 03:07
like m: say substr("Long string", 1..1)
err 03:08
m: say substr("Long string", 1..1)
camelia o
03:12 kurahaupo_ left 03:13 kurahaupo joined, netrino_ left 03:20 kurahaupo left 03:23 Cabanossi left 03:27 Xliff left, netrino_ joined 03:31 kurahaupo joined 03:32 kurahaupo left 03:34 Cabanossi joined 03:39 aborazmeh left 03:52 kurahaupo joined 03:57 kurahaupo left, MidCHeck joined 03:58 MidCHeck left 03:59 kurahaupo joined, netrino_ left 04:03 kurahaupo left 04:06 netrino_ joined 04:09 qiqi left 04:14 kurahaupo joined 04:18 kurahaupo left 04:39 netrino_ left 04:40 qiqi joined 04:45 netrino_ joined 04:53 quester joined 04:57 curan joined 05:04 kjk left 05:08 vrurg left 05:14 qiqi left 05:21 sauvin joined 05:28 feldspath left 05:33 nadim_ left 05:35 rindolf joined 05:41 qiqi joined 05:50 nadim_ joined 05:58 ufobat joined 05:59 domidumont joined 06:03 vrurg joined 06:08 vrurg left, jmerelo joined 06:18 netrino_ left 06:19 netrino_ joined 06:22 Sgeo_ joined, Sgeo_ left 06:23 tholyghos joined, vrurg joined, tholyghos is now known as holyghost 06:26 Sgeo left 06:27 netrino__ joined 06:29 netrino_ left
Geth doc: f328984196 | (JJ Merelo)++ | doc/Type/independent-routines.pod6
Moves flat to the page of independent routines

Adds another definition, and also eliminates implementation details. Refs #2823, #1518
06:29
synopsebot Link: doc.perl6.org/type/independent-routines
06:30 nadim_ left 06:31 nadim_ joined 06:34 vrurg left 06:55 molaf left 06:56 Sgeo joined 07:00 Sgeo_ joined 07:04 Sgeo left 07:08 robertle joined 07:09 vrurg joined
SyrupThinker m: 07:15
m: .say for "A long string".comb 07:16
camelia A

l
o
n
g

s
t
r
i
n
g
SyrupThinker AndroidKitKat: Like this^ ?
07:18 zakharyas joined 07:22 vrurg left, quester left 07:25 nebuchad` joined 07:26 a3r0 left, a3r0 joined 07:27 sftp_ joined 07:28 nebuchadnezzar left, sftp left, sftp_ is now known as sftp 07:33 nebuchad` is now known as nebuchadnezzar
holyghost I've put docs in Game::AI::Messaging 07:34
release 0.1.9 07:35
cpan-p6 New module released to CPAN! Game::AI::Messaging (0.1.9) by 03HOLYGHOST
07:36 dakkar joined
holyghost I'm out for a coffee 07:39
07:40 Sgeo__ joined 07:44 Sgeo_ left 07:47 discord6 left 07:52 vrurg joined 07:57 netrino__ left 08:02 ravenousmoose left, ravenousmoose joined 08:04 nadim_ left 08:11 ravenousmoose left, Manifest0 left 08:13 vrurg left
jmerelo holyghost: the tests do not do anything. The actual use is commented out. I don't really think you should keep doing this. 08:16
holyghost: commenting is not documenting. Some methods are simply empty. I don't really think this is ready to be published, yet this seems to be version whatever number. 08:17
holyghost: uploading incorrect modules to Perl6 does not benefit anyone. It does not benefit the community, it does not benefit whoever finds it, even more so when you don't even have a repo for reporting issues. 08:18
08:18 Manifest0 joined 08:19 feldspath joined
jmerelo holyghost: so I would please ask you to stop doing that. If you want us to review your code or help you with that, upload them to a public repo and request reviews or comments. 08:19
holyghost: so until a person or persons say they are ready for publication in CPAN or anywhere else, I would kindly ask you to retire your modules from the ecosystem and refrain from uploading them again. 08:20
holyghost: you're very welcome to upload your code to a GitHub repo and learn #perl6 while doing so, and you're very welcome to request comments from us and we'll be happy to provide it 08:22
holyghost: unfortunately, CPAN is not your private repo and uploading it there has consequences, like these modules showing up in searches, and people actually downloading them and trying to do something.
holyghost: I'm sorry to be so harsh, but we have told you this several times already yet you keep doing the same. So again I would kindly ask you to not do it any more. 08:24
08:31 netrino__ joined
masak jmerelo: how come when I search for Game::AI::Messaging on metacpan, I get an empty search result? 08:35
08:37 Manifest0 left 08:42 Manifest0 joined 08:46 vrurg joined
timotimo masak: metacpan doesn't show any perl6 i think 08:55
09:01 netrino joined 09:04 netrino__ left 09:10 ravenousmoose joined, vrurg left
lizmat masak: modules.perl6.org 09:12
masak: also github.com/perl6/problem-solving/issues/26 09:13
fwiw, I agree with jmerelo
09:26 Woodi_ left 09:27 Woodi joined 09:28 sena_kun joined
jmerelo thanks, lizmat 09:28
09:32 Manifest0 left 09:38 Manifest0 joined, domidumont left 09:41 vrurg joined 09:42 nadim_ joined 09:45 antoniogamiz joined 09:51 nadim_ left
jmerelo I thought that roles in the way we use them, by mixing them in runtime, was more common. I don't think they are. Any idea if there's any other language that supports this? 09:51
m: my $foo = 3 but set(3,4); say $foo.Set
camelia Unexpected named argument 'value' passed
in block <unit> at <tmp> line 1
jmerelo m: my $foo = 3 but 3.0; say $foo.Num 09:52
camelia 3
masak fwiw, I agree with jmerelo too.
jmerelo masak: thanks.
m: my $foo = 3 but "bar"; say $foo.Str
camelia bar
jmerelo masak: you're the language expert here. One of them, anyway. Any idea if there's any language that does that thing above like Perl6 09:53
masak the README of Game::AI::Messaging tells me nothing. there's _one_ test file, and it has zero tests. I don't see why this module should be published at all. it's ridiculous that it has v0.1.8
09:53 molaf joined
masak jmerelo: depends what you mean by "that thing". I know of no other language with the `but` operator. but Python, for example, allows you to shove a method into an object. 09:54
jnthn jmerelo: en.wikipedia.org/wiki/Mixin#Examples
jmerelo jnthn: yep, I'm seeing that, but most of them only allow mixing at compile time, not mixing into containers.
masak I think the Smalltalk languages allows you to change the type of an object at runtime. there's also an operator for _swapping_ two objects in memory at runtime.
I forget its name 09:55
jmerelo jnthn: my actual question is anything like "but" in other languages? Or is that (also) unique?
jnthn masak: become, maybe? 09:56
masak yeah, something of that ilk
holyghost: seconding jmerelo's plea -- please don't pollute module-space with untested, undocumented code that only you can use
jnthn jmerelo: The JavaScript one kinda is, though it's prototype OO so maybe not direclty comparable 09:57
jmerelo jnthn: you add it to all instances of that class, right? 09:58
jnthn There are no classes in JavaScript
Object.assign(...) is adding to a particular object for sure 09:59
jmerelo jnthn: right. Whatever looks like a class in JS. Functions with self. Whatever.
jnthn I'm not aware of any other language that's exposed this kind of functionality as infix operators does/but, at least. :) 10:00
So probably Perl 6 is interesting in how comparatively easy it makes this
jmerelo jnthn: hum.
jnthn Unfortunately, it's an implementation/performance nightmare :) 10:01
jmerelo jnthn: point is. I'm giving a talk about perl6 next Saturday. I've made a list of 10 cool features of modern programming languages, all of which are in Perl6
jnthn: and that's the last one...
jnthn: adding a trait with but allows us to do "type tunnelling". We have a function that returns A, we can make it return A but B. We can check for B on reception. That's kinda cool, and also typesafe 10:02
jnthn *nod* 10:03
Yeah, it's a nice way to sneak in extra "ad-hoc" data/functionality to an object
Though of course comes with risks if over-done :)
10:04 vrurg left
jmerelo jnthn: with great power comes great responsability 10:04
timotimo great power, great composability 10:05
jmerelo timotimo: lol 10:06
masak I might be an outlier, but I can't recall using the `but` and `does` operators at all in production code...
jnthn I use them relatively occasionally 10:08
jmerelo masak: from time to time. We still have to produce programming patterns for most features in perl6
10:09 nadim_ joined
jnthn Just don't put it in any hot-path code :) 10:11
10:17 Manifest0 left 10:22 Manifest0 joined
sena_kun speaking of `but`, I am still in awe of github.com/Altai-man/cro-ldap/blob...nt.pm6#L74 which is just _so_ elegantly fits there. 10:24
jnthn :D
That's cute
sena_kun s/which is/which/
10:33 Manifest0 left
antoniogamiz |%_ is the same as %_.list ? 10:38
10:40 nadim_ left, vrurg joined, Manifest0 joined, mniip left, mniip joined
timotimo antoniogamiz: | corresponds to .Slip 10:50
jmerelo sena_kun: absolutely. 10:51
10:53 nadim_ joined 11:10 Manifest0 left 11:11 vrurg left 11:12 kensanata joined
jmerelo Anyone has tried to apply for GitHub sponsors? help.github.com/en/articles/about-...b-sponsors 11:13
It might be a good idea to get some of us supported by anonymous donor + matching donation by GitHub
11:15 Manifest0 joined 11:21 qiqi left 11:22 Manifest0 left 11:27 Manifest0 joined 11:29 jmerelo left 11:35 Manifest0 left 11:41 Manifest0 joined 11:44 vrurg joined 11:45 domidumont joined 11:53 Manifest0 left 11:56 netrino left 11:57 netrino_ joined 11:58 Manifest0 joined 12:05 Manifest0 left
masak sena_kun: nice usage! 12:09
unfortunately, me saying "I never use that feature" keeps bringing up nice/cool usages of a feature, so it's not really encouraging me to stop doing that, is it? :P 12:10
12:10 netrino__ joined 12:11 Manifest0 joined, netrino_ left
timotimo haha 12:12
sena_kun well, to be honest, when I firstly saw people doing stuff like `1 but Bool`, I was suprised to "Who on Earth would do that?" extent, but once I thought of "Oh, so you can mix in some roles into the type" it turned out to be pretty nice. I mean, you can always write a wrapper, and it is not a daily feature, but still can be useful. 12:13
12:14 vrurg left
masak aye 12:15
I'm curious how it would mix/blend with static typing
12:16 netrino__ left, netrino joined
Geth ecosystem: allsopp++ created pull request #455:
Add Operator::dB
12:21
12:21 molaf left 12:24 allsopp joined 12:30 Manifest0 left
Geth ecosystem: 725313b14c | (Owen Allsopp)++ | META.list
Add Operator::dB

  github.com/allsopp/p6-Operator-dB
12:37
ecosystem: c1f08fb9fe | Altai-man++ (committed using GitHub Web editor) | META.list
Merge pull request #455 from allsopp/master

Add Operator::dB
12:38 Manifest0 joined, antoniogamiz left 12:49 vrurg joined 12:53 Manifest0 left 12:56 feldspath left, feldspath joined 12:58 Manifest0 joined 13:02 aborazmeh joined, aborazmeh left, aborazmeh joined 13:03 Sgeo_ joined
kawaii I'm probably being a bit ambitious in this next project but are there any good guides for using NativeCall? I'd like to create a Perl 6 port of Crypt::Argon2 using the C lib (github.com/P-H-C/phc-winner-argon2) 13:04
13:04 molaf joined
sena_kun kawaii, have you seen github.com/skinkade/p6-crypt-argon2 ? 13:05
kawaii problem solved - thanks sena_kun! 13:06
sena_kun : )
13:07 Sgeo__ left 13:09 zakharyas left
holyghost vrurg : I might test out openbsd stuff for you, next week preferably, I saw you mention it in a post here 13:10
just .tell me stuff if I don;t answer
I'm on a amd64 openbsd 13:12
13:19 vrurg left
holyghost It's a macbook running 5.7 FWIW 13:23
13:25 feldspath left 13:29 robertle left 13:30 vrurg joined 13:31 Manifest0 left, curan left 13:32 robertle joined 13:35 ChoHag left, Even9 joined 13:36 Even9 left, Manifest0 joined
vrurg .tell holyghost Thanks! Any help with any platform is welcome for sure. I would most likely close the existing openbsd ticket. So, feel free to open a new one. 13:50
yoleaux vrurg: I'll pass your message to holyghost.
13:55 skids joined 14:05 zakharyas joined 14:07 ChoHag joined, domidumont left 14:20 feldspath joined 14:22 robertle left 14:25 robertle joined 14:29 allsopp left 14:38 ChoHag left 14:42 jmerelo joined 14:43 feldspath left 14:44 feldspath joined 14:45 A_ joined, robertle left 14:48 MasterDuke left 14:51 feldspath left, A_ left 14:52 aborazmeh left 14:58 Manifest0 left, feldspath joined 15:04 Manifest0 joined 15:10 molaf left 15:28 feldspath left 15:31 zakharyas left
jmerelo squashable6: status 15:31
squashable6 jmerelo, Next SQUASHathon in 7 days and ≈12 hours (2019-06-01 UTC-14⌁UTC+20). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
15:33 nadim_ left, kurahaupo joined 15:39 angelds joined 15:45 ChoHag joined
jmerelo Next question in StackOverflow will be the 1100 stackoverflow.com/questions/tagged/perl6 15:53
Not a incredibly beautiful number, but still.
15:57 abraxxa left 15:59 robertle joined 16:02 cpup left
timotimo squashathon will be right during gpn hmm 16:06
jmerelo gpn?
timotimo gulaschprogrammiernacht 16:07
moritz Gulashprogrammiernacht
a hacking event in Germany
jmerelo that sounds... German
timotimo it's a very cozy event
16:07 lukasv joined
lukasv weekly: blogs.perl.org/users/damian_conway/...erl-6.html 16:08
notable6 lukasv, Noted!
16:09 lukasv left 16:17 Manifest0 left 16:22 Manifest0 joined 16:28 nadim_ joined 16:37 dakkar left, angelds left 16:38 pecastro joined 16:45 cpan-p6 left, cpan-p6 joined, cpan-p6 left, cpan-p6 joined 16:50 cpup joined 16:52 Manifest0 left 16:57 Manifest0 joined
ugexe how does one use race with functional map? 16:58
it isn't `ace map { sleep 0.5; print $_ }, 1..10;`
no matter where i put the `race` it seems to run sequentially 16:59
jnthn m: race map { say $*THREAD.id }, 1..100 17:06
camelia 4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4…
jnthn m: race map { sleep rand; say $*THREAD.id }, 1..100 17:07
ugexe: I think it is, just the default minimum batch size is too large for it to be visible there
(And the only way to set that is with the method)
camelia (timeout)4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4…
17:07 Manifest0 left
tadzik curious that it takes so much more than 1 second for it to run thouhg 17:08
jnthn oh, hang on...I'm not sure that's going to work out at all, since you need to be in race mode before starting 17:09
Hmm
17:12 kensanata left 17:13 Manifest0 joined 17:14 adu left
lizmat weekly: blogs.perl.org/users/damian_conway/...erl-6.html 17:15
notable6 lizmat, Noted!
tadzik m: say Date.today.truncated-to('day')
camelia 2019-05-01
tadzik ^ LTA? 17:16
lizmat that feels wrong ?
tadzik very much so :)
lizmat could you make an issue ?
tadzik should be a no-op imho
sure
do we still use [email@hidden.address]
tadzik is out of the loop 17:17
lizmat nope, that's dead
tadzik [`] Github then, I assume?
lizmat indeed
17:17 zacts joined
tadzik alrighty, will do :) 17:17
actually, I could probably just fix it myself...
lizmat yeah, only needs an elsif, by the looks of it 17:18
in Dateish
in !truncate-ymd
nadim_ m: dd [1..2] ;
camelia Array element = [1, 2]
tadzik while filing the report I noticed that I'm on rakudo 2017.10. Wow 17:19
lizmat yes, looks like you're missing out on a lot of goodies / performance
nadim_ hi all, why is 'element' returned by .VAR.?name when there's no variable? 17:20
tadzik just on my desktop though, interestingly
nadim_ m: dd [1..2] ; 17:21
camelia Array element = [1, 2]
nadim_ like in this example
lizmat nadim_: actually am not sure why that is 17:22
nadim_ I don't think it used to do that before, before like the last time I paid attention 17:23
17:28 Manifest0 left, zacts left
ugexe I thought `map { sleep rand; print $*THREAD.id }, race 1..100;` might work since it creates a RaceSeq for 1..100, but its sequential too 17:32
17:34 Manifest0 joined
nadim_ m: [1, 2, 3].VAR.^name.say 17:38
camelia Array
nadim_ m: [1, 2, 3].VAR.?name.say
camelia element
nadim_ lizmat: does the above seem logical to you?
17:38 epony left
nadim_ m: [1, 2, 3][0].VAR.^name.say 17:40
camelia Scalar
nadim_ m: [1, 2, 3][0].VAR.?name.say
camelia Nil
lizmat yes, because .?name and .^name are two different things
timotimo m: [1, 2, 3].name.say
camelia element
timotimo .VAR on this just gives the same thing as without VAR
nadim_ I though ?methos was like cam().method 17:41
can
timotimo yeah, if the method exists it's called, otherwise Nil is returned
nadim_ ? calls the method on the object and ^ on the class, right? 17:43
timotimo no, ^ calls on the metaobject
which is often an instance of ClassHOW
nadim_ that's what I meant
timotimo OK. it's a big difference, at least in how i understand what calling a method "on the class" means 17:44
nadim_ I agree, bad vocabulary frommy part
timotimo OK, that's cleared up, then :)
nadim_ that yes but the "element" not yet
m: dd [1..2] ; 17:45
camelia Array element = [1, 2]
nadim_ it's even "element =" ! 17:48
17:49 ravenous_ joined
timotimo method name() { nqp::isnull($!descriptor) ?? Nil !! $!descriptor.name } 17:50
github.com/rakudo/rakudo/blob/mast....pm6#L1352
nadim_ nopaste.linux-dev.org/?1203161 17:51
timotimo m: say $_ === $_.VAR given [1, 2, 3] 17:53
camelia True
timotimo .VAR is a no-op on the arra
so comparing it to how the scalar behaves is, IMO, wrong 17:54
m: say Array[int8].new(1, 2, 3).name
camelia Type check failed in assignment to ; expected int8 but got Int (1)
in block <unit> at <tmp> line 1
nadim_ more than a comparison it was meant to show the different results, and it's a bit unexpected
timotimo m: say Array[int8].new().name
camelia
timotimo m: say Array[Routine].new().name 17:55
camelia
17:59 Manifest0 left 18:04 Manifest0 joined, kurahaupo left 18:05 kurahaupo joined 18:14 epony joined 18:25 Manifest0 left 18:29 epony left, epony joined 18:30 Manifest0 joined 18:35 sauvin left, Manifest0 left 18:40 Manifest0 joined 18:49 Manifest0 left 18:54 Manifest0 joined 18:56 jmerelo left 18:58 Manifest0 left 19:05 Manifest0 joined 19:08 adu joined 19:10 Manifest0 left 19:16 Manifest0 joined 19:28 Manifest0 left 19:32 Manifest0 joined 19:39 Manifest0 left 19:43 netrino left 19:44 ravenous_ left, Manifest0 joined 19:45 netrino joined 19:50 Manifest0 left 19:53 zakharyas joined 19:55 Manifest0 joined 19:58 Sgeo__ joined 19:59 espadrine_ joined 20:00 Manifest0 left 20:01 Sgeo_ left 20:05 Manifest0 joined 20:09 ufobat_ joined 20:14 ufobat left 20:16 Sgeo__ left, Sgeo__ joined 20:26 redhands joined 20:28 johnjohn101 joined 20:29 molaf joined 20:48 Sgeo_ joined 20:51 redhands left 20:52 Sgeo__ left 20:55 Sgeo__ joined 20:59 Sgeo_ left 21:03 skids left 21:10 Manifest0 left
lizmat weekly: www.reddit.com/r/perl6/comments/bs...ss_report/ 21:10
notable6 lizmat, Noted!
21:11 melezhik joined
melezhik Hi, just wrote some update on Sparrow to Perl6 migration progress to, feel free to message me if someone is interested in Sparrow6/Perl6 automation - www.reddit.com/r/perl6/comments/bs...ss_report/ 21:13
lizmat melezhik++
21:15 Manifest0 joined
melezhik I actually would like to test the water if it could be applicable for any Perl6 related projects / Perl6 development, now when Sparrow is pure Perl6, so I am open for ideas/discussions ((=; 21:16
sadly my current employer does not allow to use any Perl6 ... I have to put up with using Sparrow6 limited to my laptop/Sandbox environment 21:18
21:18 zakharyas left
lizmat :-( 21:20
21:31 MasterDuke joined, MasterDuke left, MasterDuke joined 21:39 aindilis left 21:48 pecastro left
rba are there any subdomains on either rakudo.org or moarvm.org with a website? 21:54
21:57 adu left 21:59 Manifest0 left
lizmat rba: not to my knowledge, jnthn might be able to tell wrt moarvm.org 22:01
try doing an axfr on the DNS ? :-)
nadim_ m: my $s = <1 2 3>.slip ; dd $s 22:02
camelia No such method 'slip' for invocant of type 'List'. Did you mean any of these?
Slip
flip
sin
skip

in block <unit> at <tmp> line 1
lizmat m: my $s = <1 2 3>.Slip ; dd $s
camelia Slip $s = $(slip(IntStr.new(1, "1"), IntStr.new(2, "2"), IntStr.new(3, "3")))
nadim_ m: my $s = (1, 2, 3).slip ; dd $s
camelia No such method 'slip' for invocant of type 'List'. Did you mean any of these?
Slip
flip
sin
skip

in block <unit> at <tmp> line 1
nadim_ m: my $s = (1, 2, 3).Slip ; dd $s 22:03
camelia Slip $s = $(slip(1, 2, 3))
nadim_ m: my $s = (1, 2, 3).Slip ; dd $s ; sub s(Mu $s) { dd $s} ; s($s)
camelia Slip $s = $(slip(1, 2, 3))
$(slip(1, 2, 3))
22:03 Manifest0 joined
nadim_ m: my $s = (1, 2, 3).Slip ; dd $s ; sub s(Mu $s, 'Begin', $s, 'end') { dd $s} ; dd s($s) ; 22:05
camelia 5===SORRY!5=== Error while compiling <tmp>
Redeclaration of symbol '$s'
at <tmp>:1
------> 3.Slip ; dd $s ; sub s(Mu $s, 'Begin', $s7⏏5, 'end') { dd $s} ; dd s($s) ;
expecting any of:
shape declaration
nadim_ m: my $s = (1, 2, 3).Slip ; dd $s ; sub s(Mu $s){ 'Begin', $s, 'end') { dd $s} ; dd s($s) ;
camelia 5===SORRY!5=== Error while compiling <tmp>
Missing block
at <tmp>:1
------> 3dd $s ; sub s(Mu $s){ 'Begin', $s, 'end'7⏏5) { dd $s} ; dd s($s) ;
expecting any of:
statement end
statement modifier
stat…
jnthn rba: Just checked; no 22:07
nadim_ m: my $s = (1, 2, 3).Slip ; dd $s ; sub s(Mu $s){ 'Begin', $s, 'end'} ; dd s($s)
camelia Slip $s = $(slip(1, 2, 3))
("Begin", 1, 2, 3, "end")
nadim_ m: my $s = (1, 2, 3).Slip ; dd $s ; sub s(Mu $s){ 'Begin', $s, 'end'} ; my ($b, Mu $s2, $e) = s($s) ; dd $s2 22:08
camelia Slip $s = $(slip(1, 2, 3))
Int $s2 = 1
nadim_ is it even possible to return a Slip? 22:09
m: my $s = (1, 2, 3).Slip ; dd $s ; sub s(Mu $s){ 'Begin', $s, 'end'} ; my ($b, \s2, $e) = s($s) ; dd s2
camelia Slip $s = $(slip(1, 2, 3))
1
nadim_ m: my $s = (1, 2, 3).Slip ; sub s(Mu $s){ 'Begin', $s, 'end'} ; my ($b, \s2, $e) = s($s) ; dd s2
camelia 1
nadim_ m: my $s = (1, 2, 3).Slip ; sub s(Mu $s){ $s} ; my ($b, \s2, $e) = s($s) ; dd s2 22:11
camelia 2
22:11 sena_kun left, sena_kun joined
nadim_ jnthn, lizmat: is it possible to return a Slip? or does it get flattened when used (returned) 22:12
22:12 melezhik left
lizmat yes, you can return a Slip, and it gets flattened when returned 22:12
timotimo you're really multi-value-assigning there, so that'll invoke flattening 22:13
22:13 johnjohn101 left
lizmat m: dd (1,2,3).map: { |(42,$_,666) } 22:13
camelia (42, 1, 666, 42, 2, 666, 42, 3, 666).Seq
timotimo if you want to keep the Slip, you'd just assign or perhaps even bind the return value
lizmat sleep&
timotimo gnite lizmat 22:14
nadim_ but it has to be returned on its own, returned with other values will always flatten it, right? 22:15
jnthn Yes, a Slip disappears into any list it is placed in 22:17
ugexe jnthn: seems like map { }, race (1..10000) should technically work (although ugly), but doesnt because `sub map(&code, +values)` the +values turns RaceSeq into a List. is it worth making this DWIM? 22:19
22:20 rindolf left
jnthn ugexe: I've thought about that one before, and can argue it both ways. 22:21
22:26 Celelibi left
rba jnthn: thanks. 22:27
Made a temporary setup of the examples websites here: examples.p6c.dev/ 22:28
ugexe does that mean somehow making `race map { }, (1..100)` work would be desirable? 22:29
jnthn That'd be preferable. Thing is, `race` is something you opt into at a source 22:30
race for foo() { } is actually sugar for `do for foo().race { }`
ugexe preferable but impossible then heh
jnthn So the question is, can be find something useful for it to `.race` that isn't going to cause an utter WAT too often. 22:31
22:32 Celelibi joined 22:37 Cabanossi left 22:38 Manifest0 left 22:44 Manifest0 joined 22:46 Cabanossi joined 22:54 Manifest0 left, nadim_ left 22:59 Manifest0 joined 23:00 netrino left 23:04 Manifest0 left 23:09 Manifest0 joined 23:17 aborazmeh joined, aborazmeh left, aborazmeh joined 23:18 redhands joined 23:26 Manifest0 left 23:32 netrino joined, Manifest0 joined
MasterDuke .ask pmurias wasn't bigint support a blocker for rakudo.js in firefox? if so, looks like it will be good soon wingolog.org/archives/2019/05/23/b...in-firefox 23:38
yoleaux MasterDuke: I'll pass your message to pmurias.
MasterDuke and if anybody who has a HN account wants to comment, there's some discussion about big integers and floating point and decimals, etc and how differen langs implement them news.ycombinator.com/item?id=19991405 23:40
23:47 Manifest0 left 23:48 espadrine_ left 23:51 Manifest0 joined