IRCloggy #perl6 2019-05-31

Logs Search ←Prev date Next date→ Channels Documentation

Provider of IRC logs since 2005.
WARNING: As Freenode became unjoinable and lost all warnings in topics, we cannot log channels on Freenode anymore.

2019-05-31

netrino__ joined00:01
Manifest0 left00:06
Manifest0 joined00:11
Manifest0 left00:15
Manifest0 joined00:20
Manifest0 left00:25
lucasb left00:25
Manifest0 joined00:30
coldforged left00:30
netrino__ left00:35
MasterDuke joined00:39
MasterDuke left00:39
MasterDuke joined00:39
netrino__ joined00:40
Sgeo__ joined00:52
Sgeo_ left00:55
Manifest0 left00:57
Manifest0 joined01:03
Manifest0 left01:13
netrino__ left01:13
Manifest0 joined01:18
netrino__ joined01:19
Manifest0 left01:41
molaf left01:45
Manifest0 joined01:46
netrino__ left01:53
cpan-p6 New module released to CPAN! OEIS (1.0.0) by TOBS 01:55
molaf joined01:58
Manifest0 left01:58
netrino__ joined01:59
Manifest0 joined02:03
Manifest0 left02:07
MasterDuke left02:09
Manifest0 joined02:12
Manifest0 left02:21
Manifest0 joined02:26
netrino__ left02:31
Manifest0 left02:37
netrino__ joined02:38
Manifest0 joined02:43
Manifest0 left02:48
angelds joined02:48
adu joined02:48
Manifest0 joined02:53
nadim_ left02:58
Manifest0 left02:59
hythm joined03:01
Manifest0 joined03:04
hythm_ joined03:09
hythm left03:09
Manifest0 left03:12
Manifest0 joined03:16
hythm_ left03:17
Manifest0 left03:23
Manifest0 joined03:28
veesh left03:30
hythm joined03:30
netrino__ left03:32
hythm left03:33
nadim_ joined03:34
hythm joined03:34
veesh joined03:35
netrino__ joined03:37
Manifest0 left03:41
hythm p6: my %h1 = < a 1 >; my %h2 = < a 2 >; my @a = %h1, %h2; say @a.unique(:as(&.<a>)) # How to unique based on hash key?03:42
camelia rakudo-moar a643b8be1: OUTPUT: «({a => 1} {a => 2})␤»03:42
Manifest0 joined03:46
skids left03:47
Manifest0 left03:54
elcaro hythm: you mean merge hashes?03:58
m: my %h1 = < a 1 >; my %h2 = < a 2 >; say my %h3 = %h1, %h2;03:58
camelia rakudo-moar a643b8be1: OUTPUT: «{a => 2}␤»03:58
elcaro this works because I'm assigning to a Hash03:59
Manifest0 joined03:59
elcaro If you wanna put pairs into an array, based on unique key, here's one way04:01
flatten you hashes to produce a list of pairs, then unique by key04:02
m: my %h1 = < a 1 >; my %h2 = < a 2 >; say my @a = (%h1, %h2).flat.unique(as => *.key)04:02
camelia rakudo-moar a643b8be1: OUTPUT: «[a => 1]␤»04:02
elcaro but unique will see the first and not the second... where as in hash merge, later keys overwrite older ones04:03
Manifest0 left04:03
hythm left04:09
netrino__ left04:09
Manifest0 joined04:10
veesh left04:11
netrino__ joined04:16
hythm joined04:16
Manifest0 left04:16
hythm eclaro I don't mean to merge hashes, what I'm trying to achieve is if I have my @a = { a => 1}, {a => 2}, { b => 3}; when I @a.unique, I want the result to be {a => 1 }, {b => 3}04:17
elcaro well i guess it's similar to a merge, but you want a list of pairs when your done, right04:21
jmerelo joined04:21
hythm right04:23
for example ({name => 'a', age = 20 }, {name => 'b', age = 30 }, {name => 'a', age = 40 }).unique: :as(*.name) # something like that04:25
elcaro m: my @a = {a => 1}, {a => 2}, {b => 3}; say my @b = @a.map(|*).unique(as => *.key)04:25
camelia rakudo-moar a643b8be1: OUTPUT: «[a => 1 b => 3]␤»04:25
elcaro same theory applies as above... need to flatten your Hashes out into a list of Pairs... once you have a stream of Pairs, you can `unique` them via the key04:25
Manifest0 joined04:26
hythm Thanks, Will try that04:26
elcaro ok, with multiple keys it's a little different04:27
jmerelo squashable6: status04:27
squashable6 jmerelo, 🍕🍕 SQUASHathon is in progress! The end of the event in 2 days and ≈9 hours. See https://github.com/rakudo/rakudo/wiki/Monthly-Bug-Squash-Day04:27
elcaro let me play with your example there a sec04:27
m: say ({name => 'a', age => 20 }, {name => 'b', age => 30 }, {name => 'a', age => 40 }).unique(as => *<name> eq 'a')04:27
camelia rakudo-moar a643b8be1: OUTPUT: «({age => 20, name => a} {age => 30, name => b})␤»04:27
elcaro like that?04:28
molaf left04:28
elcaro or you want any duplicate names to be filtered04:28
hythm exactly. the above works. thank you04:29
elcaro well, it just filters names that are 'a'... if you just want uniqe names, then drop the `eq 'a'` part04:29
m: say ({name => 'a', age => 20 }, {name => 'b', age => 30 }, {name => 'a', age => 40 }).unique(as => *<name>)04:30
camelia rakudo-moar a643b8be1: OUTPUT: «({age => 20, name => a} {age => 30, name => b})␤»04:30
elcaro yeah that was an oops on my part... no need to check if name is eq to anything... this just says you want to filter out hashes with a previously seen value in the 'name' key04:31
hythm: https://tio.run/##K0gtyjH7/z@3UsEhUcFWQUOBSwEIqvMSc1MVbO0U1BPVdRQS08FsI4NaHTTZJLyySHqNMWWTiTXZBCSrac3FVZwIcqVeaV5mYWmqRmIxSFLLBqTFDiiNXRZoBlDy/38A04:33
hythm right, I was trying with &.<name>, while I should have used *.<name> like you did04:36
elcaro *.<name> works... as does *<name>04:36
another cool method to keep in mind is `squish` which is like `uniq` in unix, ie. filter consecutive duplicates04:37
m: say < a a b b a c c >.squish04:37
camelia rakudo-moar a643b8be1: OUTPUT: «(a b a c)␤»04:37
hythm right, I got confused a little (bad from my part) because the docs examples using &04:38
elcaro but you can do .squish(as => *<somekey>) all the same04:38
hythm nice, yes squish would be faster too04:38
elcaro yeah, & is when you're passing a callable04:38
m: say < one One ONE Two TWO >.unique(as => &lc)04:39
camelia rakudo-moar a643b8be1: OUTPUT: «(one Two)␤»04:39
hythm yeah, makes sense04:39
hythm left04:45
kurahaupo left04:46
kurahaupo joined04:46
curan joined04:47
netrino__ left04:48
veesh joined04:51
netrino__ joined04:55
Manifest0 left04:56
Manifest0 joined05:00
Manifest0 left05:05
dolmen joined05:07
Manifest0 joined05:10
Sgeo_ joined05:16
Manifest0 left05:17
jmerelo .tell holyghost this is just to let you know that, after repeated warnings in this channel, I have requested your upload privileges to CPAN to be removed: https://www.nntp.perl.org/group/perl.modules/2019/05/msg100215.html . I am sorry about that, but there was no other alternative.05:17
yoleaux jmerelo: I'll pass your message to holyghost.05:17
nadim_ left05:18
Sgeo__ left05:19
Manifest0 joined05:23
netrino__ left05:27
veesh left05:29
veesh joined05:31
netrino__ joined05:34
nadim joined05:38
dolmen left05:39
vrurg left05:40
Manifest0 left05:41
Manifest0 joined05:45
Manifest0 left05:50
dolmen joined05:50
dolmen left05:52
dolmen joined05:54
Manifest0 joined05:55
Manifest0 left06:03
netrino__ left06:07
Manifest0 joined06:08
Manifest0 left06:13
netrino__ joined06:13
Geth ¦ doc: 15ce9aaf09 | (JJ Merelo)++ | doc/Language/variables.pod606:16
¦ doc: Adds examples for anon refs #1655 06:16
¦ doc: review: https://github.com/perl6/doc/commit/15ce9aaf0906:16
synopsebot Link: https://doc.perl6.org/language/variables06:16
squashable6 🍕🍕🍕 First contribution by JJ++! ♥06:16
jmerelo tell AlexDaniel the bots should point at Rakudo, NQP and MoarVM, not doc :-)06:17
jmerelo left06:17
Manifest0 joined06:18
Manifest0 left06:22
dolmen left06:26
Manifest0 joined06:27
adu left06:30
SmokeMachine jmerelo have you forgotten the . on .tell?06:36
Too late...06:37
vrurg joined06:39
Manifest0 left06:57
noisegul joined07:00
noisegul o/07:01
Manifest0 joined07:01
Xliff joined07:10
Xliff \o07:10
yoleaux 30 May 2019 08:47Z <jnthn> Xliff: Yup, the value seems to match up with that hypothesis.07:10
30 May 2019 09:33Z <holyghost> Xliff: There's code for drawing GameObjects, Entity, MovingEntity and Sprites, I've put comments in all relevant files. This afternoon I'm going to try to put the first game subsystem in for starting out the game by drawing a Room (.pm6) in the main-loop07:10
30 May 2019 18:17Z <holyghost> Xliff: I'd like to debug the graphics system on Tuesday at GMT+207:10
Xliff .tell holyghost From now on, please use emails for these missives. I'd like to keep then OFF OF YOLEAUX.07:10
yoleaux Xliff: I'll pass your message to holyghost.07:10
Manifest0 left07:11
Xliff m: my %h = ( 1=>1, 2=>2, 3=>3, 4=>4 ); for %h.keys { when 1 | 2} 4 { %h<1>:delete } default { .say } }07:12
camelia rakudo-moar a643b8be1: OUTPUT: «=== SORRY!=== Error while compiling <tmp>␤Missing block␤at <tmp>:1␤------> , 3=>3, 4=>4 ); for %h.keys { when 1 | 2 } 4 { %h<1>:delete } default { .say } } ␤ expecting any of:␤ block or pointy block␤»07:12
Xliff m: my %h = ( 1=>1, 2=>2, 3=>3, 4=>4 ); for %h.keys { when 1 | 2 | 4 { %h<1>:delete } default { .say } }07:12
camelia rakudo-moar a643b8be1: OUTPUT: «=== SORRY!=== Error while compiling <tmp>␤Strange text after block (missing semicolon or comma?)␤at <tmp>:1␤------> h.keys { when 1 | 2 | 4 { %h<1>:delete } default { .say } } ␤»07:12
Xliff m: my %h = ( 1=>1, 2=>2, 3=>3, 4=>4 ); for %h.keys { when 1 | 2 | 4 { %h<1>:delete }; default { .say } }07:12
camelia rakudo-moar a643b8be1: OUTPUT: «3␤»07:12
Xliff m: $*PERL.compiler.version.say07:13
camelia rakudo-moar a643b8be1: OUTPUT: «v2019.03.1.385.ga.643.b.8.be.1␤»07:13
Manifest0 joined07:15
robertle_ joined07:17
netrino__ left07:18
netrino__ joined07:22
Manifest0 left07:28
Manifest0 joined07:33
netrino__ left07:33
dolmen joined07:39
dolmen left07:44
dolmen joined07:48
dolmen left07:49
reach_satori left07:52
angelds left07:54
Manifest0 left07:54
Manifest0 joined07:59
Manifest0 left08:06
domidumont joined08:07
Manifest0 joined08:11
reach_satori joined08:17
domidumont left08:18
Manifest0 left08:18
Manifest0 joined08:24
rindolf joined08:26
Manifest0 left08:31
ravenousmoose joined08:31
Manifest0 joined08:35
kurahaupo_ joined08:36
kurahaupo left08:39
Sgeo_ left08:41
Sgeo_ joined08:42
AlexDaniel ahem08:48
squashable6 left08:49
squashable6 joined08:53
ChanServ set mode: +v08:53
squashable6 Webhook for rakudo/rakudo is now active! Mind your words, they are important.08:54
AlexDaniel should be alright now!08:54
Sgeo__ joined08:54
kawaii good morning friends :)08:57
Sgeo_ left08:57
gfldex m: dd $*IN.lines.Seq.Supply;08:58
camelia rakudo-moar a643b8be1: OUTPUT: «Supply.new␤»08:58
Altreus SmokeMachine: I'm learning a lot of Perl6 from this code but I will not be able to help with it for a while xD08:58
gfldex I can't file where Seq.Supply is defined. Any pointers?08:58
*find08:58
Altreus kawaii:08:59
gfldex Found it. I was to blind while reading Any.pm6.09:00
kawaii Altreus: PR to replace DBI with Red in Pokeapi when sir? ;)09:00
Altreus when I'm as deep in perl6 as you are :P09:00
kawaii Altreus: hey we have an October this year right? We can tag some of the API::Discord issues with `Hacktoberfest` tags and see if the cool kids help out09:03
leont joined09:03
Altreus we might do09:03
the world might end before then so either way we're good09:04
Can someone help me understand how the keyword `model` is introduced in Red?09:08
I can see the code that makes it work, but I don't see the magic where it creates the keyword itself09:08
jnthn Altreus: grep EXPORTHOW09:09
reach_satori left09:09
jnthn Altreus: If you want to see a smaller module introducing a package declaration, see OO::Monitors09:09
Altreus ah nice, thanks :)09:10
reach_satori joined09:11
Altreus I suppose EXPORTHOW is named in parallel with ClassHOW, i.e. works on meta09:12
jnthn Yes09:13
kawaii Altreus: I want to make another library, or maybe revisit API::Cloudflare09:13
jnthn Even deeper: the compiler has a hash %*HOW that tracks the current mappings between package declarators and metaclasses :)09:13
Manifest0 left09:18
Manifest0 joined09:23
reach_satori_ joined09:23
reach_satori left09:25
Manifest0 left09:27
Altreus kawaii: awoo?09:29
Manifest0 joined09:34
sena_kun joined09:35
kurahaupo_ left09:37
kurahaupo joined09:38
Manifest0 left09:43
SmokeMachine Altreus: you mean you think you don't know enough to help? If so, I'm sure its not true... for example, here is a issue that would be easy to you to close: https://github.com/FCO/Red/issues/16309:43
Altreus: https://github.com/FCO/Red/projects/209:44
https://github.com/FCO/Red/issues?utf8=✓&q=label%3A%22test+needed%22+09:46
Geth ¦ doc: 28f8591a8d | (JJ Merelo)++ | doc/Language/variables.pod609:46
¦ doc: Adds example for anon class, closes #1655 09:46
¦ doc: review: https://github.com/perl6/doc/commit/28f8591a8d09:46
synopsebot Link: https://doc.perl6.org/language/variables09:46
Manifest0 joined09:48
Altreus SmokeMachine: I am helping with ideas :D09:50
SmokeMachine: oh yeah, I can contribute docs too ^_^09:50
SmokeMachine Altreus: that helps a lot! :)09:51
rindolf left09:54
SmokeMachine Altreus: have you seen this as complementation of the `schema` discussion? https://github.com/FCO/Red/issues/1509:59
vrurg left09:59
rindolf joined10:00
Manifest0 left10:05
Manifest0 joined10:10
Sgeo_ joined10:10
Altreus nyet10:12
SmokeMachine: what did you use to make README.md?10:12
SmokeMachine mi6 build...10:12
Altreus new tools to learn :)10:13
SmokeMachine it's generated throw the pod6 on Red.pm610:13
Altreus ya, I've updated that but can't check I've not broken it without trying to convert it10:13
Sgeo__ left10:13
SmokeMachine through10:14
noisegul left10:15
SmokeMachine https://modules.perl6.org/dist/App::Mi6:cpan:SKAJI10:15
reach_satori joined10:18
reach_satori_ left10:19
Altreus https://github.com/FCO/Red/pull/16410:21
migrations are a whole other thing that I've been struggling with at work for a long time xD10:22
nothing so far has beaten "SQL scripts in a discoverable place"10:22
rindolf left10:24
gfldex lolibloggedalittle: https://gfldex.wordpress.com/2019/05/31/whatever-whenever-does/10:25
Altreus loli haet pizza?10:27
hrm, sort of surprised that $*IN.lines isn't already DWIMmy enough to work that way10:28
gfldex Altreus: Channels can fill up all your RAMz real qick in a hurry.10:29
Altreus ah heck10:30
rindolf joined10:30
Altreus what does «self.list.Supply» do then? something unrequited?10:32
uh10:32
unrequired10:32
Is it the case that $*IN.lines.Supply is not an async supply being fed by something when more lines arrive on STDIN?10:34
gregf_ joined10:36
jnthn Altreus: See my SO answer for an explanation of that, and how to do it right :)10:36
Or "as right as is possible today"10:36
Manifest0 left10:46
Manifest0 joined10:51
leont left10:51
holyghost joined10:55
holyghost Good morning.10:55
yoleaux 05:17Z <jmerelo> holyghost: this is just to let you know that, after repeated warnings in this channel, I have requested your upload privileges to CPAN to be removed: https://www.nntp.perl.org/group/perl.modules/2019/05/msg100215.html . I am sorry about that, but there was no other alternative.10:55
07:10Z <Xliff> holyghost: From now on, please use emails for these missives. I'd like to keep then OFF OF YOLEAUX.10:55
Altreus got it10:56
There's a lot of information if you just keep following links!10:56
holyghost PaganVisions2 compiles now except for the script, I need to debug it with Xliff on Tuesday10:56
I'm off for the weekend10:57
holyghost left10:57
Altreus This community is very wholesome10:57
reach_satori left11:00
reach_satori joined11:02
mowcat joined11:13
SmokeMachine Altreus: thank you! merged!11:14
reach_satori left11:15
mowcat left11:17
mowcat joined11:18
Manifest0 left11:31
Manifest0 joined11:37
Manifest0 left11:48
woolfy .tell jmerelo I want to discuss your latest action with you in private discussion please.11:50
yoleaux woolfy: I'll pass your message to jmerelo.11:50
Manifest0 joined11:53
cpan-p6 left11:53
lgandras joined11:59
cpan-p6 joined12:00
cpan-p6 left12:00
cpan-p6 joined12:00
mowcat left12:02
lizmat weekly: http://news.perlfoundation.org/2019/05/call-for-grant-proposals-may-2-4.html12:12
notable6 lizmat, Noted!12:12
lizmat did the squashathon not start already ?12:21
sena_kun squashable6, status12:21
squashable6 sena_kun, 🍕🍕 SQUASHathon is in progress! The end of the event in 2 days and ≈1 hour. See https://github.com/rakudo/rakudo/wiki/Monthly-Bug-Squash-Day12:21
sena_kun, Log and stats: https://gist.github.com/07f2569c6832a6c8ca7e17f04d237cea12:21
lizmat aha,.. ok12:21
sena_kun lizmat, seems like it is12:22
aeruder_ joined12:22
iviv_ joined12:22
spycrab0_ joined12:23
Spot___ joined12:23
peteretep_ joined12:23
integral left12:24
perlbot left12:24
timeless_ joined12:24
Mithaldu left12:24
perlbot joined12:24
lizmat sorta expected jmerelo would have twittered about it12:24
mtj_ left12:24
spacedbat left12:24
jnthn left12:24
rjbs left12:24
jcallen left12:25
gks joined12:25
rjbs joined12:25
timeless left12:25
dotdotdot left12:25
spycrab0 left12:25
peteretep left12:25
iviv left12:25
Spot__ left12:25
gks_ left12:25
aeruder left12:25
unclechu left12:25
rba[m] left12:25
albongo left12:25
integral_ joined12:25
iviv_iviv12:25
spycrab0_spycrab012:25
peteretep_peteretep12:25
go|dfish left12:25
mtj_ joined12:26
jnthn joined12:26
dotdotdot joined12:26
syntaxman left12:26
hoelzro_ left12:26
spacedbat joined12:27
syntaxman joined12:27
hoelzro joined12:27
timeless_timeless12:27
jcallen joined12:27
albongo joined12:27
unclechu joined12:27
Brock left12:27
rba[m] joined12:27
Mithaldu joined12:27
awwaiid joined12:27
jhill left12:28
jhill joined12:29
cpan-p6 New module released to CPAN! Result (0.2.3) by SAMGWISE 12:35
Manifest0 left12:36
reach_satori joined12:37
Manifest0 joined12:41
Manifest0 left12:48
leont joined12:51
go|dfish joined12:53
Manifest0 joined12:54
holyghost joined12:55
woolfy squasha13:05
(sorry, wrong window)13:05
Manifest0 left13:07
rindolf left13:08
domidumont joined13:09
rindolf joined13:10
curan left13:11
El_Che woolfy: squasha your self!13:16
Manifest0 joined13:16
pmurias joined13:16
pmurias hi13:16
is telling people to "npm install -g" rakudo.js in it's README a good idea?13:17
woolfy Claudio Ramirez: I just did...13:19
El_Che don't squasha da pasta!13:19
vrurg joined13:20
cpan-p6 New module released to CPAN! HTML::Lazy (0.0.1) by SAMGWISE 13:21
New module released to CPAN! Structable (0.0.3) by SAMGWISE 13:21
Manifest0 left13:29
kiwi_67 joined13:30
kiwi_67 left13:31
Manifest0 joined13:34
skids joined13:36
Altreus how long does m.p6.o take to index these ^ ?13:40
more than 20 minutes? :P13:40
sena_kun Altreus, around so, iirc13:41
Manifest0 left13:41
Manifest0 joined13:47
Manifest0 left13:52
Manifest0 joined13:58
leont It's a cronjob AFAIK13:59
I think it runs every 15 minutes14:00
pmurias left14:12
pmurias joined14:14
zxcvz joined14:18
jelkner joined14:20
jelkner ugexe, do you have a minute?14:21
i was referred to you by sena_kun on the cro channel14:21
i am having troubles installing cro, and sena_kun thinks its a zef issue, not a cro issue14:22
i'm a high school teacher whose planning period is about to end14:23
so i'll need to log off14:23
sena_kun https://pastebin.com/uKH6T6zp <- looks pretty odd, as it has the distributions, but doesn't install it. environment I believe is ubuntu 18.10 with rakudo-pkg installed.14:23
jast given his idle time of 15 hours, don't hold your breath :)14:23
jelkner np, sena_kun, how best to report this so it can be handled later?14:23
sena_kun I'd bet on https://github.com/ugexe/zef/issues with a detailed report: zef version, `zef which`, what was done, logs.14:24
at the very least it'll be a case description to not write it out every time14:24
Xliff \o14:26
sena_kun Xliff, o/14:26
holyghost Xliff 'lo14:26
Xliff needs coffee.14:26
holyghost Xliff, I've sent you some email14:26
Xliff holy: Fine.14:26
mowcat joined14:26
Xliff jnthn: Any idea how to fix issue with uint8?14:27
jelkner sena_kun, will the pastebin link hang around, or should i paste the error into the issue?14:29
sena_kun jelkner, I see its expire time is set to `never`, so you can just add an url to paste and that'd be ok14:29
jelkner thanks!14:29
Manifest0 left14:38
lichtkind joined14:40
ugexe that version of zef looks ancient14:40
its reporting versions as e.g. Cro::HTTP:ver('0.8.0')14:40
not :ver<0.8.0>14:41
Manifest0 joined14:42
sena_kun jelkner, ^14:46
lichtkind left14:48
lgandras left14:51
bob_ joined14:55
bob_ left14:56
bob_birdrock joined14:56
jelkner left14:58
ugexe https://github.com/ugexe/zef/issues/299#issuecomment-49772966014:59
they have two versions installed14:59
zef:ver('0.1.15') and zef:ver('0.7.1')14:59
the lower version is in the home repo which is checked first, which is why it is being used over 0.7.115:00
so `zef nuke home` would probably fix it15:00
pmurias left15:02
sena_kun ugexe++15:03
nadim left15:19
Manifest0 left15:20
integral_ left15:20
integral_ joined15:20
integral_integral15:20
guifa joined15:24
Manifest0 joined15:25
Manifest0 left15:31
Xliff m: sub foo(Num() $n is rw) { $n++ }; my $x = 1; foo($x)15:38
camelia rakudo-moar a643b8be1: OUTPUT: «Cannot resolve caller postfix:<++>(Num:D); the following candidates␤match the type but require mutable arguments:␤ (Mu:D $a is rw)␤ (Num:D $a is rw)␤␤The following do not match for other reasons:␤ (Bool:D $a is rw)␤ (Bool:U $…»15:38
Manifest0 joined15:38
Xliff m: sub foo(Int() $n is rw) { $n++ }; my $x = 1e0; foo($x)15:38
camelia rakudo-moar a643b8be1: OUTPUT: «Cannot resolve caller postfix:<++>(Int:D); the following candidates␤match the type but require mutable arguments:␤ (Mu:D $a is rw)␤ (Int:D $a is rw --> Int:D)␤␤The following do not match for other reasons:␤ (Bool:D $a is rw)␤ …»15:38
Xliff ^^ Still running into mutable type errors on conversion.15:39
ravenousmoose left15:39
Sgeo__ joined15:40
bob_birdrock sub foo($n) { $n++ }; my $x = 1; foo($x);15:40
Has the same results for me.15:40
Xliff sub foo($n) { $n++ }; my $x = 1; foo($x);15:41
m: sub foo($n) { $n++ }; my $x = 1; foo($x);15:41
camelia rakudo-moar a643b8be1: OUTPUT: «Cannot resolve caller postfix:<++>(Int:D); the following candidates␤match the type but require mutable arguments:␤ (Mu:D $a is rw)␤ (Int:D $a is rw --> Int:D)␤␤The following do not match for other reasons:␤ (Bool:D $a is rw)␤ …»15:41
Xliff m: sub foo($n is rw) { $n++ }; my $x = 1; foo($x);15:41
camelia rakudo-moar a643b8be1: ( no output )15:41
Xliff m: sub foo($n is rw) { $n++ }; my $x = 1; foo($x).say;15:41
camelia rakudo-moar a643b8be1: OUTPUT: «1␤»15:41
Xliff m: sub foo(Int() $n is rw) { $n++ }; my $x = 1e0; foo($x).say;15:41
camelia rakudo-moar a643b8be1: OUTPUT: «Cannot resolve caller postfix:<++>(Int:D); the following candidates␤match the type but require mutable arguments:␤ (Mu:D $a is rw)␤ (Int:D $a is rw --> Int:D)␤␤The following do not match for other reasons:␤ (Bool:D $a is rw)␤ …»15:41
bob_birdrock Wow!15:41
Xliff m: sub foo(Int() $n is rw) { ++$n }; my $x = 1e0; foo($x).say;15:42
camelia rakudo-moar a643b8be1: OUTPUT: «Cannot resolve caller prefix:<++>(Int:D); the following candidates␤match the type but require mutable arguments:␤ (Mu:D $a is rw)␤ (Int:D $a is rw --> Int:D)␤␤The following do not match for other reasons:␤ (Bool $a is rw)␤ (M…»15:42
Xliff m: sub foo(Int $n is rw) { ++$n }; my $x = 1e0; foo($x).say;15:42
camelia rakudo-moar a643b8be1: OUTPUT: «Type check failed in binding to parameter '$n'; expected Int but got Num (1e0)␤ in sub foo at <tmp> line 1␤ in block <unit> at <tmp> line 1␤␤»15:42
bob_birdrock So why does adding "is rw" make it work?15:42
Xliff m: sub foo(Int $n is rw) { ++$n }; my $x = 1; foo($x).say;15:42
camelia rakudo-moar a643b8be1: OUTPUT: «2␤»15:42
bob_birdrock Oh, because it's not mutable otw15:42
Xliff Yeah.15:42
bob_birdrock <duh>15:42
Xliff Ongoing issue.15:42
bob_birdrock So Int() $n is rw should work too15:42
Xliff m: sub foo(Int() $n is rw) { ++$n }; my $x = 1; foo($x).say;15:42
camelia rakudo-moar a643b8be1: OUTPUT: «2␤»15:42
Xliff So it does.15:42
Note that the problem occurs if the type is different.15:43
m: sub foo(Int() $n is rw) { ++$n }; my $x = 1e0; foo($x).say;15:43
camelia rakudo-moar a643b8be1: OUTPUT: «Cannot resolve caller prefix:<++>(Int:D); the following candidates␤match the type but require mutable arguments:␤ (Mu:D $a is rw)␤ (Int:D $a is rw --> Int:D)␤␤The following do not match for other reasons:␤ (Bool $a is rw)␤ (M…»15:43
bob_birdrock aahhh15:43
tobs bob_birdrock: the thing here is that Int() coerces the argument if it has to. This potentially creates another object. No what do you expect from mutating that other object with respect to the argument that was passed to the call?15:43
bob_birdrock But but but but....15:43
Ohhhh15:43
Xliff tobs: I'd expect it to work because { my $x = 1 } does not specify type.15:44
bob_birdrock So Int() coerces a scientific(?) number in this case...15:44
1e015:44
Sgeo_ left15:44
Xliff 1e0 is a Num literal15:44
bob_birdrock Int doesn't want to coerce a Num15:45
Xliff Now... { my Num $x = 1e0 } should not work.15:45
Num and Int are Cool, so they can convert between each other just fine.15:45
bob_birdrock Auto-boxing/unboxing15:46
Xliff One fix....15:46
m: sub foo($n is rw) { $n .= Int if $n.^can('Int').elems; ++$n }; my $x = 1e0; foo($x).say;15:46
camelia rakudo-moar a643b8be1: OUTPUT: «2␤»15:46
Xliff But I shouldn;'t have to do all that!!15:46
bob_birdrock In other words, Perl should know when and how to do this automagically15:47
Xliff Yep.15:47
bob_birdrock So what is actually happening? Is Perl creating a new object during coercion, which happens to not be mutable?15:50
jmerelo joined15:51
jmerelo squashable6: status15:52
yoleaux 11:50Z <woolfy> jmerelo: I want to discuss your latest action with you in private discussion please.15:52
squashable6 jmerelo, 🍕🍕 SQUASHathon is in progress! The end of the event in 1 day and ≈22 hours. See https://github.com/rakudo/rakudo/wiki/Monthly-Bug-Squash-Day15:52
jmerelo, Log and stats: https://gist.github.com/48f452eb0663b35b09ed51bece7041fd15:52
yqt joined15:52
tobs bob_birdrock: this would be the most complete account of the issue, I think https://github.com/perl6/problem-solving/issues/2115:52
Sgeo_ joined15:52
jmerelo .tell AlexDaniel Are the bots ready for the squashathon?15:53
yoleaux jmerelo: I'll pass your message to AlexDaniel.15:53
tobs in Perl 6 you need a container holding a value to mutate that value. If I understood correctly, (Int() $x is rw) takes in the caller's container to make the value mutable, but then, if the value had to be coerced, you lose track of that container (which will still hold the old value) and can't modify the new value anymore.15:55
Sgeo__ left15:55
tobs jmerelo: yes https://colabti.org/irclogger/irclogger_log/perl6?date=2019-05-31#l23215:56
patrickb joined15:57
jmerelo tobs: ah, great. It's only that no one has done anything, yet...15:57
.tell AlexDaniel thanks!15:58
yoleaux jmerelo: I'll pass your message to AlexDaniel.15:58
tobs I have a workshop upcoming, too much other things to do…15:58
Manifest0 left16:03
mtg joined16:04
namibj tobs: sounds very reasonable, the container GC feeding. It would need to have types so you can't pass a mutable that gets coerced during the function call itself. Allow the callee's signature to force the caller to either manually cast and loose the reference, or otherwise be known not to have a reference anymore (escape analysis for converting heap to stack in the optimizer is at least closely relates).16:07
Allow footgun-protection.16:07
AlexDaniel .16:07
yoleaux 15:53Z <jmerelo> AlexDaniel: Are the bots ready for the squashathon?16:07
15:58Z <jmerelo> AlexDaniel: thanks!16:07
SmokeMachine m: sub foo(Int() $n is rw) { ++$n }; my $x = "1"; foo($x); say $x.^name16:09
camelia rakudo-moar a643b8be1: OUTPUT: «Cannot resolve caller prefix:<++>(Int:D); the following candidates␤match the type but require mutable arguments:␤ (Mu:D $a is rw)␤ (Int:D $a is rw --> Int:D)␤␤The following do not match for other reasons:␤ (Bool $a is rw)␤ (M…»16:09
SmokeMachine m: sub foo(Int() $n is rw) { $n }; my $x = "1"; foo($x); say $x.^name16:11
camelia rakudo-moar a643b8be1: OUTPUT: «Str␤»16:11
SmokeMachine m: sub foo(Int() $n is rw) { say $n.^name }; my $x = "1"; foo($x); say $x.^name16:11
camelia rakudo-moar a643b8be1: OUTPUT: «Int␤Str␤»16:11
Manifest0 joined16:12
namibj If there was an alternative way to allow polymorphism in a friendly way, where the callee operates on a non-coerced container with alk that entails.16:18
Manifest0 left16:26
Sgeo__ joined16:27
Sgeo_ left16:31
Manifest0 joined16:32
sena_kun left16:47
molaf joined16:52
nadim joined16:53
kaare_ left17:13
Sgeo_ joined17:13
Sgeo__ left17:17
squashable6 🍕 patzim++ opened pull request “ Fix non-reloc install &…”: https://github.com/rakudo/rakudo/pull/293917:20
🍕🍕🍕 First contribution by patzim++! ♥17:20
🍕 patzim++ requested a review on pull request “ Fix non-reloc install &…”: https://github.com/rakudo/rakudo/pull/293917:21
🍕 patzim++ requested a review on pull request “ Fix non-reloc install &…”: https://github.com/rakudo/rakudo/pull/293917:21
🍕 patzim++ opened pull request “Move the core comp unit repo to a separate folder”: https://github.com/rakudo/rakudo/pull/294017:25
🍕 patzim++ requested a review on pull request “Move the core comp unit repo to a separate folder”: https://github.com/rakudo/rakudo/pull/294017:25
🍕 patzim++ requested a review on pull request “Move the core comp unit repo to a separate folder”: https://github.com/rakudo/rakudo/pull/294017:25
🍕 patzim++ wrote a comment on “Move the core comp unit repo to a separate folder”: https://github.com/rakudo/rakudo/pull/2940#issuecomment-49779403117:27
kaare_ joined17:29
bfisher left17:34
Manifest0 left17:36
Manifest0 joined17:43
Sgeo__ joined17:48
squashable6 🍕 vrurg++ edited a review on pull request “ Fix non-reloc install &…”: https://github.com/rakudo/rakudo/pull/2939#pullrequestreview-24443697217:51
🍕🍕🍕 First contribution by vrurg++! ♥17:51
🍕 vrurg++ submitted a review on pull request “ Fix non-reloc install &…”: https://github.com/rakudo/rakudo/pull/2939#pullrequestreview-24443697217:51
🍕 vrurg++ wrote a comment on a review for “ Fix non-reloc install &…”: https://github.com/rakudo/rakudo/pull/2939#discussion_r28948962417:51
🍕 vrurg++ wrote a comment on a review for “ Fix non-reloc install &…”: https://github.com/rakudo/rakudo/pull/2939#discussion_r28948922717:51
🍕 vrurg++ wrote a comment on a review for “ Fix non-reloc install &…”: https://github.com/rakudo/rakudo/pull/2939#discussion_r28948889617:51
Sgeo_ left17:51
SmokeMachine vrurg: we could do something like: `red-do :version<0.0.1> {...}’ and make it use a “schema” instead of a “connection”...17:54
jmerelo notable6: weekly "Perl6 quick syntax reference" is ready for preorder and will be published in November 11th https://www.amazon.es/Perl-Quick-Syntax-Reference-Language/dp/1484249550/ref=sr_1_1?qid=1559325220&refinements=p_27%3AJ.J.+Merelo&s=books&sr=1-1&text=J.J.+Merelo17:54
notable6 jmerelo, Noted!17:54
vrurg SmokeMachine: I see. Yep, makes sense if the schema is what I think of it: a collection of connection and models. Is it?17:55
SmokeMachine vrurg: yes, that’s what’s on my mind currently...17:56
vrurg jmerelo: As you're the documentation person: 6.e.PREVIEW is available as of yesterday. Perhaps it shall be noted in the docs.17:56
jmerelo vrurg: thanks!17:57
vrurg SmokeMachine: you're moving towards big corporate projects. Sounds great!17:57
jmerelo vrurg: is it going to be in the next rakudo release? As I understand it, it's in master now, right?17:57
vrurg jmerelo: ping me if any help is needed. I have started some bits on building rakudo in its docs directory.17:58
jmerelo vrurg: at long last :-)17:58
vrurg jmerelo: yes, in master and gonna be released.17:58
jmerelo OK. I'll note that in an issue. Thanks for letting me know.17:58
vrurg jmerelo: Wait, wait, wait! I promised you nothing! ;)17:58
jmerelo: yw and thank you too!17:59
jmerelo vrurg++17:59
vrurg: https://github.com/perl6/doc/issues/283118:01
zxcvz left18:05
Sgeo_ joined18:13
ravenousmoose joined18:16
Sgeo__ left18:16
ravenous_ joined18:18
leont left18:19
vrurg jmerelo: I'll keep my eye on it.18:20
ravenousmoose left18:21
squashable6 🍕 vrurg++ closed issue “Need t/spectest.data.6.d”: https://github.com/rakudo/rakudo/issues/255718:24
🍕 vrurg++ wrote a comment on “Need t/spectest.data.6.d”: https://github.com/rakudo/rakudo/issues/2557#issuecomment-49781310418:24
zakharyas joined18:24
sauvin left18:31
Manifest0 left18:32
Manifest0 joined18:37
Sgeo__ joined18:49
domidumont left18:49
zakharyas left18:52
Sgeo_ left18:52
netrino__ joined18:58
squashable6 🍕 patzim++ synchronize pull request “ Fix non-reloc install &…”: https://github.com/rakudo/rakudo/pull/293919:01
jmerelo left19:07
kst`kst19:08
cpan-p6 New module released to CPAN! Gnome::Gdk (0.13.1) by MARTIMM 19:09
farcas82 joined19:14
leont joined19:14
cpan-p6 New module released to CPAN! Gnome::N (0.13.2) by MARTIMM 19:25
New module released to CPAN! Gnome::Gtk3 (0.13.1) by MARTIMM 19:25
New module released to CPAN! Gnome::Glib (0.13.2) by MARTIMM 19:25
New module released to CPAN! Gnome::GObject (0.13.2) by MARTIMM 19:25
Geth ¦ doc: 2d276d107c | Coke++ | xt/code.pws19:34
¦ doc: fix word. 19:34
¦ doc: review: https://github.com/perl6/doc/commit/2d276d107c19:34
mowcat left19:38
rindolf left19:42
yqt left19:47
pecastro joined19:53
Sgeo_ joined19:55
rindolf joined19:58
Sgeo__ left19:58
hythm_ joined20:00
hythm_ where does `gather` store the taken values, and can they be accessed from within the `gather` block?20:01
uzl joined20:02
hythm_ in this gist, i m trying to take a value only if it was not taken before. https://gist.github.com/hythm7/2f3308afb9401a6f510d8bef8936784520:03
uzl The "Here be dragons." in https://docs.perl6.org/type/Attribute#method_get_value had me chuckle ;-)20:05
Would anybody mind skimming over the following posts: https://uzluisf.gitlab.io/posts/2019/raku-attributes/? Mostly looking for inaccuracies :-)!20:08
ufobat_ joined20:11
ufobat__ left20:15
kaare_ left20:17
kaare_ joined20:17
uzl left20:17
feldspath joined20:26
tobs hythm_: a gather returns a Seq that is backed by the code block you provide. The taken values are stored nowhere as the block is lazily evaluated. The next value is only produced (by running the block until the next take) when someone asks for it from the Seq.20:28
veesh left20:29
feldspath left20:30
tobs you could of course keep a record of taken values yourself, but there is also a unique method which does the filtering for you20:34
m: say gather { .take xx 2 for ^10 }20:34
camelia rakudo-moar a643b8be1: OUTPUT: «(0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9)␤»20:34
Sgeo__ joined20:34
tobs m: say gather { .take xx 2 for ^10 }.unique20:34
camelia rakudo-moar a643b8be1: OUTPUT: «(0 1 2 3 4 5 6 7 8 9)␤»20:34
veesh joined20:34
Sgeo_ left20:38
ravenous_ left20:41
hythm_ thanks tobs20:43
ravenousmoose joined20:49
Sgeo_ joined21:00
Sgeo__ left21:03
skids left21:12
ravenousmoose left21:26
Manifest0 left21:27
hythm_ left21:30
Manifest0 joined21:33
Sgeo__ joined21:40
Sgeo_ left21:43
leont left21:51
Manifest0 left21:53
Manifest0 joined21:58
netrino__ left22:01
cpan-p6 left22:07
cpan-p6 joined22:09
cpan-p6 left22:09
cpan-p6 joined22:09
squashable6 🍕 ugexe++ wrote a comment on “Move the core comp unit repo to a separate folder”: https://github.com/rakudo/rakudo/pull/2940#issuecomment-49787713222:17
🍕🍕🍕 First contribution by ugexe++! ♥22:17
Manifest0 left22:18
patrickb left22:19
Manifest0 joined22:22
adu joined22:23
ijneb left22:27
netrino__ joined22:30
bob_birdrock left22:31
ijneb joined22:36
lizmat weekly: https://yakshavingcream.blogspot.com/2019/05/getting-started-developing-for-perl-6.html22:38
notable6 lizmat, Noted!22:38
Cabanossi left22:40
lizmat weekly: https://www.amazon.com/dp/1484249550/ref=cm_sw_r_tw_dp_U_x_5Nw8Cb4GSMCXH22:42
notable6 lizmat, Noted!22:42
lizmat weekly: https://www.amazon.com/dp/148424955022:42
notable6 lizmat, Noted!22:42
Manifest0 left22:48
Cabanossi joined22:52
Manifest0 joined22:53
Manifest0 left23:02
netrino__ left23:04
Manifest0 joined23:07
netrino__ joined23:09
Manifest0 left23:11
Geth ¦ problem-solving: AlexDaniel assigned to jnthn Issue The status of PREVIEW modifier. https://github.com/perl6/problem-solving/issues/3423:12
Manifest0 joined23:19
mtg left23:26
squashable6 🍕 vrurg++ submitted a review on pull request “ Fix non-reloc install &…”: https://github.com/rakudo/rakudo/pull/2939#pullrequestreview-24455500223:29
rindolf left23:37
Sgeo_ joined23:37
Sgeo__ left23:40
netrino__ left23:42
Manifest0 left23:47
netrino__ joined23:48
pecastro left23:48
Manifest0 joined23:53

Logs Search ←Prev date Next date→ Channels Documentation