IRCloggy #perl6 2019-01-06

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-01-06

lucs Yep00:00
vrurg joined00:01
ChoHag joined00:02
p6bannerbot set mode: +v00:02
Ven`` joined00:02
p6bannerbot set mode: +v00:02
p6bannerbot set mode: +v00:03
zachk whats a good perl6 editor, vim seems really slow out of the box00:03
sena_kun emacs has perl6-mode. :P also, there is Atom, Comma(in beta though) and others. You can find a list at https://github.com/perl6/user-experience/issues/19#issue-31100571800:05
at least I see also Sublime Text, Neovim|Spacemacs too.00:07
tobs zachk: if you want to stay with vim, be sure to check out the vim-perl6 listed in sena_kun's link. That's sufficiently faster (for me) than what came with vim.00:07
scovit left00:33
scovit joined00:33
p6bannerbot set mode: +v00:34
zachk i am getting {a => 「1」, b => 「2」, c => 「3」} in my output from regex matches, i am guessing those funny symbols are supposed to be quotes, is there an option i can pass to perl6 to just use regular quotes for output?00:34
scovit left00:40
zachk left00:55
sena_kun left01:03
sftp left01:03
kiwi_60 joined01:31
p6bannerbot set mode: +v01:31
kiwi_60 left01:32
rindolf left01:40
Cabanoss- left02:25
timotimo those are japanese-style corner brackets02:50
SqrtNegInf left02:55
molaf left02:57
molaf joined03:10
p6bannerbot set mode: +v03:10
leont left03:32
SqrtNegInf joined03:44
p6bannerbot set mode: +v03:44
scovit joined04:03
p6bannerbot set mode: +v04:04
kurahaupo_ joined04:08
p6bannerbot set mode: +v04:09
kurahaupo left04:09
daotoad1 left04:16
daotoad joined04:44
p6bannerbot set mode: +v04:45
buggable New CPAN upload: DOM-Tiny-0.5.2.tar.gz by HANENKAMP http://modules.perl6.org/dist/DOM::Tiny:cpan:HANENKAMP05:06
reach_satori left05:07
kurahaupo_ left05:21
reach_satori joined05:25
p6bannerbot set mode: +v05:26
pony m: my $s = '; ls'; run qqw<echo $s>05:28
camelia rakudo-moar 64c88f919: OUTPUT: «; ls␤»05:28
kurahaupo joined05:28
p6bannerbot set mode: +v05:29
kurahaupo_ joined05:40
p6bannerbot set mode: +v05:40
kurahaupo left05:41
squashable6 🍕 bugfood++ edited issue “duplicate stat() system calls on file tests”: https://github.com/rakudo/rakudo/issues/258405:49
🍕 bugfood++ wrote a comment on “duplicate stat() system calls on file tests”: https://github.com/rakudo/rakudo/issues/2584#issuecomment-45171771305:55
m0ltar joined05:56
p6bannerbot set mode: +v05:57
Xliff_ .tell zachk Atom also has plugins for Perl6 syntax highlighting. I find Atom + perl6-le + sublime column sorting + line sort makes for a great Perl6 editor06:26
yoleaux Xliff_: I'll pass your message to zachk.06:26
kurahaupo_ left06:26
kurahaupo joined06:27
Xliff_ timotimo: If you are around, can you tell me the best strategy for debugging perl6 nativecall errors where its reporting "return type not CPointer representation"06:27
p6bannerbot set mode: +v06:27
Xliff_ timotimo: Especially when it comes to function pointers.06:28
w17t joined06:40
p6bannerbot set mode: +v06:40
Kaiepi m: my Int $a = 1; use MONKEY-SEE-NO-EVAL; try EVAL say $a06:50
camelia rakudo-moar 64c88f919: OUTPUT: «1␤»06:50
Kaiepi m: sub foo(Int $a) { use MONKEY-SEE-NO-EVAL; try EVAL say $a; }; foo 106:51
camelia rakudo-moar 64c88f919: OUTPUT: «1␤»06:51
Kaiepi m: class Foo { method eval(Int $a) { use MONKEY-SEE-NO-EVAL; try EVAL say $a; } }; Foo.new.eval: 106:51
camelia rakudo-moar 64c88f919: OUTPUT: «1␤»06:52
Kaiepi hm06:52
Calling say(Str) will never work with declared signature (Str $target, PSBot::User $user, PSBot::Room $room, PSBot::StateManager $state, PSBot::Connection $connection --> Str)07:03
what?07:03
it's complaining about the lines with say in https://pastebin.com/rjzgRuEc but i have no idea why this error is happening07:05
oh wait07:05
never mind, i had another sub called say in the same file07:05
AlexDaniel squashable6: status07:27
squashable6 AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event in ≈4 hours. See https://github.com/rakudo/rakudo/wiki/Monthly-Bug-Squash-Day07:27
AlexDaniel, Log and stats: https://gist.github.com/44cd5523f8d8711b74a657d8ec158bb307:27
evalable6 left07:40
evalable6 joined07:44
p6bannerbot set mode: +v07:45
squashable6 🍕 AlexDaniel++ wrote a comment on “Hash.pick is very slow on big hashes.”: https://github.com/rakudo/rakudo/issues/2586#issuecomment-45172297107:57
daotoad left08:17
vrurg left08:20
w17t left08:24
molaf left08:54
rindolf joined08:58
p6bannerbot set mode: +v08:59
buggable New CPAN upload: File-Metadata-Libextractor-0.0.1.tar.gz by FRITH https://cpan.metacpan.org/authors/id/F/FR/FRITH/Perl6/File-Metadata-Libextractor-0.0.1.tar.gz09:06
scovit left09:08
kurahaupo left09:17
sftp joined09:21
p6bannerbot set mode: +v09:21
Kaiepi m: m:i/a/09:26
camelia rakudo-moar 64c88f919: OUTPUT: «Use of uninitialized value of type Any in string context.␤Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.␤ in block <unit> at <tmp> line 1␤»09:26
scovit joined09:26
Kaiepi what am i doing wrong here?09:26
p6bannerbot set mode: +v09:27
Kaiepi m: $_ = 'a'; m:i/a/09:34
camelia rakudo-moar 64c88f919: ( no output )09:34
Kaiepi oh09:34
ChoHag left09:41
buggable New CPAN upload: App-Mi6-0.2.5.tar.gz by SKAJI http://modules.perl6.org/dist/App::Mi6:cpan:SKAJI09:56
AlexDaniel squashable6: status10:03
squashable6 AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event in ≈1 hour. See https://github.com/rakudo/rakudo/wiki/Monthly-Bug-Squash-Day10:03
AlexDaniel, Log and stats: https://gist.github.com/8ae53e9af86daad2b426848a2a348bb410:03
scovit Hello, can anybody help me to debug "MoarVM panic: Internal error: Unwound entire stack and missed handler", it happens quite often when using NativeCall and normally it is due to a stupid mistake on my side. But now I have no clue..10:07
how do you get a backtrace?10:12
AlexDaniel timotimo: ↑10:12
Geth ¦ doc: 1bf6eac67d | (JJ Merelo)++ | doc/Language/operators.pod610:22
¦ doc: Rephrasing and reflow 10:22
¦ doc: review: https://github.com/perl6/doc/commit/1bf6eac67d10:22
synopsebot Link: https://doc.perl6.org/language/operators10:22
w17t joined10:44
p6bannerbot set mode: +v10:44
sena_kun joined10:50
p6bannerbot set mode: +v10:50
Cabanossi joined11:07
p6bannerbot set mode: +v11:07
squashable6 🍕 lizmat++ wrote a comment on “Hash.pick is very slow on big hashes.”: https://github.com/rakudo/rakudo/issues/2586#issuecomment-45173400911:24
🍕 lizmat++ closed issue “Hash.pick is very slow on big hashes.”: https://github.com/rakudo/rakudo/issues/258611:24
🍕 AlexDaniel++ wrote a comment on “Hash.pick is very slow on big hashes.”: https://github.com/rakudo/rakudo/issues/2586#issuecomment-45173454611:32
🍕 AlexDaniel++ edited wiki page “Ticket updates”: https://github.com/rakudo/rakudo/wiki/Ticket-updates11:51
🍕 AlexDaniel++ edited wiki page “Ticket updates”: https://github.com/rakudo/rakudo/wiki/Ticket-updates11:51
domidumont joined11:55
p6bannerbot set mode: +v11:55
AlexDaniel squashable6: status12:09
squashable6 AlexDaniel, The date for the next SQUASHathon is not set12:09
AlexDaniel oh12:09
squashable6: log 2019-01-0512:10
squashable6 AlexDaniel, Log and stats: https://gist.github.com/9aeaf9d2aba148c0be80dd5f6e5c463d12:10
abraxxa joined12:13
p6bannerbot set mode: +v12:13
AlexDaniel .tell jmerelo will you finalize the squashathon? Note that the log has a bunch of unrelated progress, so look carefully12:13
yoleaux AlexDaniel: I'll pass your message to jmerelo.12:13
m0ltar left12:37
m0ltar joined12:40
p6bannerbot set mode: +v12:41
scovit Is there an alternative way of creating a typed pointer? resp. to my $ptr = nqp::box_i(nqp::unbox_i(nqp::decont(calloc(1, 8))), Pointer[uint64]);12:48
Pointer[uint64].new does not work12:49
moritz PSA: the Perl 6 regex/grammar books is fore sale today, USD 9,99: https://www.apress.com/us/book/978148423227912:56
Xliff_ scovit: I've found that typed pointers outside of CStructs are unreliable.12:57
So I've been using (converted to your case) CArray[uint64]12:57
scovit sometime you need to extract some data from a pointer, then the only reliable solution I found is using a specifically created CArray and a memcpy13:00
but this is not really an issue13:00
the real issue is when the error does not show up and instead you randomly get Internal error13:00
Unwound entire stack and missed handler13:01
kurahaupo joined13:02
p6bannerbot set mode: +v13:03
Ven`` left13:06
scovit Xliff_: what I mean is that in the example above calloc could be anything, and you really need to access the content of a Pointer13:11
of course you can also use nativecast instead of typed pointer13:12
but then one wonders what is the use of them13:12
and to gain write access you are left with only memcpy13:12
caa51h joined13:12
scovit since you can do it with memcpy, one wonders why you cannot do it with nativecast?13:13
p6bannerbot set mode: +v13:13
patrickb joined13:16
pmurias joined13:17
p6bannerbot set mode: +v13:17
p6bannerbot set mode: +v13:17
pmurias http://blogs.perl.org/users/pawel_murias/2019/01/rakudojs-update---hunting-down-failing-roast-tests.html - rakudo.js update13:17
pmurias left13:18
lizmat weekly: http://blogs.perl.org/users/pawel_murias/2019/01/rakudojs-update---hunting-down-failing-roast-tests.html13:20
notable6 lizmat, Noted!13:20
mowcat joined13:39
p6bannerbot set mode: +v13:39
Xliff_ scovit: Ah! Those old gems. "Unwound entire stack and missed handler" can be caused by a lot of things.13:45
Things I've found that trigger it: 1) Mismatched sizes between C and NativeCall object sizes13:46
2) C-based exceptions (including perl exceptions inside C callbacks)13:46
scovit: So I really do feel your pain.13:47
For #2, sometimes the best thing is to hold the exception and rethrow it when you are fully back into Perl.13:47
sena_kun if I have a class A::B in file Foo.pm6, I can re-export it using sub EXPORT into e.g. `ShortB` to use from file Bar.pm6, but I it seems that cannot export `Foo::Bar`, i.e. any multipart name gives me `Could not find symbol '&Bar'`. Is there a way to still do it?13:49
I still can change a symbol's name with e.g. `class Foo::Bar is A::B`, but it doesn't work with e.g. enums and creates additional overhead(which should be fairly small tbh, but still).13:52
ChoHag joined13:56
p6bannerbot set mode: +v13:57
[particle] left14:01
scovit Xliff_ now I am exacly fighting with a problem in C callbacks..14:03
but it dies before the callback is even called, but while it is called14:04
I was thinking about parameter mangling problems pheraps14:05
[particle] joined14:05
p6bannerbot set mode: +v14:06
scovit can callbacks take as arguments user classes is repr('CPointer'), same as Pointer definition, or is it all handled by pattern matching on the names of the classes?14:11
molaf joined14:12
p6bannerbot set mode: +v14:13
scovit_ joined14:13
p6bannerbot set mode: +v14:14
scovit left14:16
Xliff_ scovit: Yes, you can class A is repr('CPointer') { method($arg1, $arg2) is native('lib') { * } ... };14:17
if the method above takes the A * equivalent, then it will work just fine.14:19
s/A * equivalent/A * equivalent as $arg0/14:19
scovit_ left14:21
lucasb joined14:22
p6bannerbot set mode: +v14:22
Praise left14:27
leont joined14:29
p6bannerbot set mode: +v14:30
scovit joined14:33
scovit Xliff_ it is strange because what you propose is exacly what I did14:33
and then i get the error, I will try to golf14:34
not even able to golf :(14:55
what is wrong in this: use NativeCall; sub qsort(Buf $base, size_t $nel, size_t $width, &compar (Pointer, Pointer --> Pointer)) is native { * }; my $data = Buf[uint64].new(1..10, |(1..5)); say $data; qsort $data, 15, 8, -> (Pointer $a, Pointer $b --> Pointer) { Pointer.new(1) };14:55
??14:55
buggable New CPAN upload: XML-Archive-0.3.0.tar.gz by MARTIMM https://cpan.metacpan.org/authors/id/M/MA/MARTIMM/Perl6/XML-Archive-0.3.0.tar.gz14:56
leont left14:56
scovit m: use NativeCall; sub qsort(Buf $base, size_t $nel, size_t $width, &compar (Pointer, Pointer --> Pointer)) is native { * }; my $data = Buf[uint64].new(1..10, |(1..5)); say $data; qsort $data, 15, 8, -> (Pointer $a, Pointer $b --> Pointer) { Pointer.new(1) };14:57
camelia rakudo-moar 64c88f919: OUTPUT: «Buf[uint64]:0x<01 02 03 04 05 06 07 08 09 0A 01 02 03 04 05>␤MoarVM panic: Internal error: Unwound entire stack and missed handler␤»14:57
scovit m: use NativeCall; sub qsort(Buf $base, size_t $nel, size_t $width, &compar (Pointer, Pointer --> Pointer)) is native { * }; my $data = Buf[uint64].new(1..10, |(1..5)); say $data; qsort $data, 15, 8, -> (Pointer $a, Pointer $b --> Pointer) { return Pointer.new(1) };15:00
camelia rakudo-moar 64c88f919: OUTPUT: «Buf[uint64]:0x<01 02 03 04 05 06 07 08 09 0A 01 02 03 04 05>␤MoarVM panic: Internal error: Unwound entire stack and missed handler␤»15:00
scovit m: use NativeCall; sub qsort(Buf $base, size_t $nel, size_t $width, &compar (Pointer, Pointer --> Pointer)) is native { * }; my $data = Buf[uint64].new(1..10, |(1..5)); qsort $data, 15, 8, -> (Pointer $a, Pointer $b --> Pointer) { say "Not even here" };15:00
camelia rakudo-moar 64c88f919: OUTPUT: «MoarVM panic: Internal error: Unwound entire stack and missed handler␤»15:00
scovit m: use NativeCall; sub qsort(Buf $base, size_t $nel, size_t $width, Pointer) is native { * }; my $data = Buf[uint64].new(1..10, |(1..5)); qsort $data, 15, 8, Pointer.new(0); # <--- This is much more easy to debug!!!15:02
camelia rakudo-moar 64c88f919: OUTPUT: «(signal SEGV)»15:02
buggable New CPAN upload: gtk-glade-0.3.0.tar.gz by MARTIMM https://cpan.metacpan.org/authors/id/M/MA/MARTIMM/Perl6/gtk-glade-0.3.0.tar.gz15:06
qzix left15:07
leont joined15:11
p6bannerbot set mode: +v15:12
Ven`` joined15:19
p6bannerbot set mode: +v15:20
scovit m: my @initial = (1..15).List.pick(15); use NativeCall; sub malloc(size_t --> Pointer) is native { * }; sub memcpy_A(Buf, Pointer, size_t) is native is symbol("memcpy") { }; sub memcpy_B(Pointer, Buf, size_t) is native is symbol("memcpy") { }; sub qsort(Pointer, size_t, size_t, &compar (Pointer[uint8], Pointer[uint8] --> int32)) is native { * }; my $data = Buf[uint8].new(@initial); my $ptr = malloc(15);15:47
camelia rakudo-moar 64c88f919: ( no output )15:47
scovit memcpy_B($ptr, $data, 15); say [$ptr, $data]; sub malafemmena(Pointer[uint8] $first, Pointer[uint8] $second --> int32) { $first.deref - $second.deref }; qsort $ptr, 15, 1, &malafemmena; memcpy_A($data, $ptr, 15); say [$ptr, $data]; # this works15:47
Voldenet scovit: qsort has different signature15:48
not: &compar (Pointer, Pointer --> Pointer)15:49
it's &compar (Pointer, Pointer --> int32)15:49
scovit Voldenet guess what: qsort is a C function and Pointer and int32 both fit in rax register15:50
nonsense15:51
applying Perl6 semantics to C15:51
please let me play a bit more15:52
m: https://gist.github.com/scovit/7b529556e2c4a8b64e13c3af6da8b05615:54
camelia rakudo-moar 64c88f919: OUTPUT: «[NativeCall::Types::Pointer<0x4683460> Buf[uint8]:0x<0E 07 0F 0A 03 0B 09 06 0C 05 01 04 0D 08 02>]␤[NativeCall::Types::Pointer<0x4683460> Buf[uint8]:0x<01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F>]␤»15:54
Ven`` left15:58
scovit m: https://gist.github.com/scovit/7b529556e2c4a8b64e13c3af6da8b05616:01
camelia rakudo-moar 64c88f919: OUTPUT: «[NativeCall::Types::Pointer<0x41756c0> Buf[uint8]:0x<0A 07 04 08 05 0C 03 01 0E 09 0F 0D 02 06 0B>]␤[NativeCall::Types::Pointer<0x41756c0> Buf[uint8]:0x<01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F>]␤»16:01
scovit this still work, Voldenet, see :)16:01
Voldenet Pointers can be of any size, I wouldn't assume any specific size16:05
scovit good advice, but I am trying to golf my problem16:08
m: https://gist.github.com/scovit/7b529556e2c4a8b64e13c3af6da8b05616:08
camelia rakudo-moar 64c88f919: OUTPUT: «[NativeCall::Types::Pointer<0x46e74e0> Buf[uint8]:0x<01 07 0B 05 0A 06 09 03 08 02 0E 0D 0C 0F 04>]␤MoarVM panic: Internal error: Unwound entire stack and missed handler␤»16:08
scovit this is the first issue I face, note how the code is functionally the same as the previous revision16:09
Voldenet you can just use CArray instead http://ix.io/1xEo16:09
scovit but I am really not trying to workaround16:10
imagine that inside a bigger interface that does want to be defined in a certain way that corresponds to what I have in my mind16:11
and that, but apart, is supposed to work in the Perl 6 language16:12
s/but apart/bugs apart/16:12
a part from this phylosophical discussion16:13
m: http://ix.io/1xEo16:13
camelia rakudo-moar 64c88f919: OUTPUT: «=== SORRY!=== Error while compiling <tmp>␤Confused␤at <tmp>:1␤------> http: //ix.io/1xEo ␤ expecting any of:␤ colon pair␤»16:13
scovit substituting -> by sub make it work, which is wierd16:14
m: https://gist.github.com/scovit/7b529556e2c4a8b64e13c3af6da8b05616:15
camelia rakudo-moar 64c88f919: OUTPUT: «=== SORRY!=== Error while compiling <tmp>␤Variable '@initial' is not declared␤at <tmp>:8␤------> my $data = Buf[uint8].new( @initial); ␤»16:15
scovit m: https://gist.github.com/scovit/7b529556e2c4a8b64e13c3af6da8b05616:16
camelia rakudo-moar 64c88f919: OUTPUT: «[NativeCall::Types::Pointer<0x46cb500> Buf[uint8]:0x<0E 08 09 01 04 0A 0C 0B 03 07 0D 05 0F 06 02>]␤[NativeCall::Types::Pointer<0x46cb500> Buf[uint8]:0x<01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F>]␤»16:16
Voldenet in fact, this works16:17
http://ix.io/1xEs16:17
it's nice because it uses the original signature16:18
but all those "nativecast"s are quite verbose16:18
scovit Ok found out why16:18
Voldenet, yes, that is supposed to work16:19
and does16:20
timotimo you know, a slang for less verbose nativecast could probably be made16:23
andrzejku joined16:30
p6bannerbot set mode: +v16:31
Voldenet I bet using `qsort nativecast(Pointer, $data), $data.elems, nativesizeof($data.of), sub (Pointer $first, Pointer $second --> int32) { nativecast(Pointer[$data.of], $first).deref - nativecast(Pointer[$data.of], $second).deref };` would be even more elegant16:34
however, I'm not very sure about its performance16:34
timotimo m: *123416:34
camelia rakudo-moar 64c88f919: OUTPUT: «=== SORRY!=== Error while compiling <tmp>␤Two terms in a row␤at <tmp>:1␤------> * 234 ␤ expecting any of:␤ infix␤ infix stopper␤ statement end␤ statement modifier␤ statement modifi…»16:34
timotimo m: sub prefix:<*>($value) { say "nativecasting $value" }; say *123416:35
camelia rakudo-moar 64c88f919: OUTPUT: «nativecasting 1234␤True␤»16:35
timotimo m: &12316:35
camelia rakudo-moar 64c88f919: ( no output )16:35
timotimo ah, sigil for subs16:35
Sgeo_ joined16:39
p6bannerbot set mode: +v16:40
Sgeo joined16:41
p6bannerbot set mode: +v16:41
Sgeo__ left16:42
Sgeo_ left16:43
cfa 👋16:44
Sgeo_ joined16:44
p6bannerbot set mode: +v16:45
Sgeo left16:47
MilkmanDan left16:55
MilkmanDan joined17:01
p6bannerbot set mode: +v17:01
domidumont left17:05
buggable New CPAN upload: Xml-Archive-0.3.1.tar.gz by MARTIMM https://cpan.metacpan.org/authors/id/M/MA/MARTIMM/Perl6/Xml-Archive-0.3.1.tar.gz17:06
andrzejku left17:09
Zoffix joined17:18
p6bannerbot set mode: +v17:18
jmerelo joined17:18
p6bannerbot set mode: +v17:19
Zoffix .tell AlexDaniel if you want to run the bots, huggable's db is at https://temp.perl6.party/factoids.db sources at https://github.com/zoffixznet/huggable https://github.com/zoffixznet/perl6-buggable17:19
yoleaux Zoffix: I'll pass your message to AlexDaniel.17:19
Zoffix .tell moritz please remove my keys from all Perl 6 infrastructure and remove me from documents in https://github.com/perl6/infrastructure-doc17:20
yoleaux Zoffix: I'll pass your message to moritz.17:20
jmerelo Zoffix: welcome back.17:20
yoleaux 12:13Z <AlexDaniel> jmerelo: will you finalize the squashathon? Note that the log has a bunch of unrelated progress, so look carefully17:20
moritz Zoffix: will do :(17:20
yoleaux 17:20Z <Zoffix> moritz: please remove my keys from all Perl 6 infrastructure and remove me from documents in https://github.com/perl6/infrastructure-doc17:20
jmerelo .tell AlexDaniel I just came back from a holiday trip...17:21
yoleaux jmerelo: I'll pass your message to AlexDaniel.17:21
Geth ¦ infrastructure-doc: 6ae8734379 | (Moritz Lenz)++ | 2 files17:22
¦ infrastructure-doc: Remove Zoffix 17:22
¦ infrastructure-doc:17:22
¦ infrastructure-doc: by own request17:22
¦ infrastructure-doc: review: https://github.com/perl6/infrastructure-doc/commit/6ae873437917:22
andrzejku joined17:22
moritz Zoffix: should I also delete your account on hack.p6c.org?17:23
jmerelo squashathon: status17:23
p6bannerbot set mode: +v17:23
jmerelo squashable: status17:23
squashable6 jmerelo, Next SQUASHathon in 25 days and ≈16 hours (2019-02-02 UTC-12⌁UTC+14). See https://github.com/rakudo/rakudo/wiki/Monthly-Bug-Squash-Day17:23
Zoffix moritz: yes17:26
Geth ¦ ecosystem: 9672c0cb49 | (Zoffix Znet)++ (committed using GitHub Web editor) | META.list17:27
¦ ecosystem: Transfer WWW/IO::Path::ChildSecure to perl6-community-modules 17:27
¦ ecosystem: review: https://github.com/perl6/ecosystem/commit/9672c0cb4917:27
moritz done17:29
Ven`` joined17:30
p6bannerbot set mode: +v17:31
Zoffix eco: author:zoffix17:33
buggable Zoffix, Found 44 results: Acme::Anguish, IRC::Client, WWW, CoreHackers::Sourcery, Twitter. See https://modules.perl6.org/s/author%3Azoffix 17:33
Zoffix .tell AlexDaniel I gave you push perms to all my modules: https://modules.perl6.org/s/author%3Azoffix I don't give a shit what you do with them. I have no plans to delete the repos, but I have no plans to preserve them either, so you may wish to transfer them to another org.17:34
yoleaux Zoffix: I'll pass your message to AlexDaniel.17:34
moritz Zoffix: what happened?17:34
jmerelo moritz: about to ask the same, myself...17:35
Zoffix .tell AlexDaniel the perl6.party domain won't be renewed (expies April 28th). If anyone wants to host the articles elsewhere, the repo is at https://github.com/zoffixznet/perl6.party . Same as with modules, I don't have plans to preserve the repo, so you may wish to transfer it.17:36
yoleaux Zoffix: I'll pass your message to AlexDaniel.17:36
Xliff_ Zoffix: This sounds like an ending.17:40
FWIW, I hope your next endeavour is -Ofun17:40
Zoffix moritz: the project's direction and management style doesn't match my goals and I'll be happier elsewhere.17:41
Zoffix left17:41
Xliff_ Well.... fuck.17:41
Geth ¦ doc: c5cec61573 | cfa++ | 34 files17:53
¦ doc: (Partial) broken link sweep: /type -> /routine. 17:53
¦ doc: review: https://github.com/perl6/doc/commit/c5cec6157317:53
woolfy joined17:56
Ven`` huh17:56
p6bannerbot set mode: +v17:57
scovit what just happened with Zoffix is exactly the reason why the Internet is not a place for people like me, that are strongly affected by drastic ruptures in human bounds17:57
well, sadly also real life is often like this17:57
Xliff_ scovit: Can you explain what happened? Was it the "Raku" stuff, or something more involved.17:58
scovit no idea17:58
Xliff_ Fair nuff. :(17:58
scovit :(17:58
woolfy left17:59
jmerelo Don't know if the reference about "management style" is sarcastic. People is mostly self-managed here...18:08
El_Che This is sad to witness18:10
lucasb left18:11
zakharyas joined18:12
jmerelo El_Che: although not totally unexpected...18:12
p6bannerbot set mode: +v18:12
El_Che nevertheless18:13
Sgeo__ joined18:16
p6bannerbot joined18:16
moon.freenode.net set mode: +o18:16
domidumont joined18:16
p6bannerbot set mode: +v18:16
p6bannerbot set mode: +v18:17
Sgeo_ left18:19
leont left18:24
lizmat Zoffix: for all of the disagreements that we've had, I'm sorry to see you leave the Perl 6 project18:25
Zoffix: I would like to thank you for all the work that you've done and hope there'll be a time when you at least can appreciate the fruit of your work18:26
Zoffix: more than you appear to be doing now.18:26
lizmat left18:26
lizmat joined18:30
p6bannerbot set mode: +v18:30
Geth ¦ doc: af50a526c6 | (JJ Merelo)++ | doc/Language/syntax.pod618:36
¦ doc: Adding colon pairs with numbers, including non-latin 18:36
¦ doc: review: https://github.com/perl6/doc/commit/af50a526c618:36
synopsebot Link: https://doc.perl6.org/language/syntax18:36
abraxxa left18:39
abraxxa joined18:39
p6bannerbot set mode: +v18:40
Ven` joined18:43
p6bannerbot set mode: +v18:43
abraxxa left18:46
andrzejku left18:47
Geth ¦ doc: f20690005c | cfa++ | 2 files18:48
¦ doc: Fix a couple more broken links. 18:48
¦ doc: review: https://github.com/perl6/doc/commit/f20690005c18:48
abraxxa joined18:48
p6bannerbot set mode: +v18:49
leont joined18:51
p6bannerbot set mode: +v18:52
AlexDaniel .18:57
yoleaux 17:19Z <Zoffix> AlexDaniel: if you want to run the bots, huggable's db is at https://temp.perl6.party/factoids.db sources at https://github.com/zoffixznet/huggable https://github.com/zoffixznet/perl6-buggable18:57
17:21Z <jmerelo> AlexDaniel: I just came back from a holiday trip...18:57
17:34Z <Zoffix> AlexDaniel: I gave you push perms to all my modules: https://modules.perl6.org/s/author%3Azoffix I don't give a shit what you do with them. I have no plans to delete the repos, but I have no plans to preserve them either, so you may wish to transfer them to another org.18:57
17:36Z <Zoffix> AlexDaniel: the perl6.party domain won't be renewed (expies April 28th). If anyone wants to host the articles elsewhere, the repo is at https://github.com/zoffixznet/perl6.party . Same as with modules, I don't have plans to preserve the repo, so you may wish to transfer it.18:57
AlexDaniel .in 7d get huggable back on its feet18:57
yoleaux AlexDaniel: I'll remind you on 13 Jan 2019 18:57Z18:57
AlexDaniel Zoffix: OK, I'll do my best. Thank you for your work!18:57
wow that's a lot of modules :)18:58
jmerelo AlexDaniel: what did you want me to do with the squashathon?19:05
AlexDaniel: need any help, just let me know.19:06
vrurg joined19:08
p6bannerbot set mode: +v19:08
timotimo sad to see zoffix go, but i hope they'll find lots of happyness in their future endeavours19:12
and i hope someone can pick up some of the marketing tasks19:13
andrzejku joined19:16
p6bannerbot set mode: +v19:16
jmerelo left19:17
AlexDaniel and, like, everything else…19:17
timotimo of which there is a lot19:18
AlexDaniel weekly: Thank you Zoffix19:21
notable6 AlexDaniel, Noted!19:21
timotimo the v6.d review was really an awe-inspiring effort19:21
AlexDaniel yeah.19:23
Xliff_: “Raku” itself is irrelevant in this case, I think, but the reaction of the community to the Raku announcement is what played a bigger role IMO19:28
I looked at some messages on facebook and they were just cancer19:28
really disgusting to read, and I guess especially so for someone who put so much effort into it19:28
El_Che Yeah, we pretty much failed as a community on this one. But the lack of decisions also plays a role.19:30
I hope Zoffix comes back once he finds his drive back19:31
pmurias joined19:37
p6bannerbot set mode: +v19:37
Ven`` left19:39
Ven` left19:40
Ven`` joined19:44
p6bannerbot set mode: +v19:45
AlexDaniel .tell jmerelo I guess the winner should be announced? Or something…19:50
yoleaux AlexDaniel: I'll pass your message to jmerelo.19:50
molaf left19:53
domidumont left19:55
Ven`` left19:55
Altreus What's the test for definedness of a variable?20:04
sena_kun .defined20:04
Altreus danke20:04
sena_kun $foo // 'default-value'20:04
Altreus thought so, but hard to google :)20:04
sena_kun also `with $foo {} else {}`20:04
Altreus, you can use docs site search for such a thing, I think. :)20:05
leont with is a good example of a small but very welcome feature20:05
Altreus oh I could do with $foo { return stuff } return 120:07
that shortens it a lot actually20:07
timotimo if it's $foo that you return, you could probably also ".return with $foo"20:07
Altreus it ain't :)20:09
timotimo or based on $foo i guess :)20:09
Altreus wait, you can call return on things?20:09
timotimo hum. i never ended up making a module out of my cool tunnel operator20:09
m: sub foo { 5.return; 99 }; say foo20:09
camelia rakudo-moar 6d58e0b0b: OUTPUT: «5␤»20:09
timotimo yes you can20:09
Altreus this language20:09
:D20:09
timotimo though of course since it's a method, the object itself decides what will happen20:09
so if you potentially have to deal with objects that want to do silly or nasty things, just use return %)20:10
aindilis left20:13
aindilis joined20:14
p6bannerbot set mode: +v20:15
robertle how would a .return method on an object look like that does the same as a regular return?20:18
andrzejku left20:19
tobs s: "x", "return", \()20:20
ah, it's gone20:20
Geth ¦ doc: cfa++ created pull request #2538: Add a note about coercion overhead to Any.pick (addresses #2537). 20:24
¦ doc: review: https://github.com/perl6/doc/pull/253820:24
zakharyas left20:29
Praise joined20:34
p6bannerbot set mode: +v20:34
scovit What about this: Internal error: inconsistent bind result20:38
Ven`` joined20:42
p6bannerbot set mode: +v20:43
scovit I am not sure I know how to use the sub EXPORT20:44
patrickb left20:44
scovit can export be used to export an imported symbol?20:47
Xliff_ m: use NativeCall; my $a = CArray[uint16].new; say $a.REPR20:47
camelia rakudo-moar 6d58e0b0b: OUTPUT: «CArray␤»20:47
scovit It doesn't immediately complains, but I am not sure it fully works20:47
sena_kun scovit, well, I can do https://gist.github.com/Altai-man/4d96c65d107c4927efdce92b1f10ad6720:50
although current issue I am facing is that you cannot export multipart names like `A::B`, only `B`.20:51
scovit yep20:56
you can apparently declare a my constant is export for those20:56
at least this is what I am trying to do20:56
Ven`` left20:56
Xliff_ m: use NativeCall; my $a = CArray[uint16].new; say $a.REPR20:57
camelia rakudo-moar 6d58e0b0b: OUTPUT: «CArray␤»20:57
Xliff_ Ooos! ;)20:57
m: class A is repr('CStruct') { has Str $.s is rw; }; my $a = A.new( s => 'WTF is this immutable' );20:59
camelia rakudo-moar 6d58e0b0b: OUTPUT: «Cannot assign to an immutable value␤ in block <unit> at <tmp> line 1␤␤»20:59
Xliff_ ?!???21:00
Sgeo joined21:01
p6bannerbot set mode: +v21:02
moritz Xliff_: if think that CStruct doesn't support binding, and so some of the meta model things that usually work don't work with it either21:02
Sgeo__ left21:04
Ven`` joined21:07
p6bannerbot set mode: +v21:08
Xliff_ moritz: ??21:09
I don't understand.21:09
How do I know that CStruct doesn't support binding?21:09
devmikey joined21:09
p6bannerbot set mode: +v21:09
Xliff_ m: class A is repr('CStruct') { has Str $.s is rw; }; my $a = A.new; my $a.s := "HALP!"21:10
camelia rakudo-moar 6d58e0b0b: OUTPUT: «=== SORRY!=== ␤Cannot use bind operator with this left-hand side␤at <tmp>:1␤------> rw; }; my $a = A.new; my $a.s := "HALP!" <EOL> ␤Other potential difficulties:␤ Redeclaration of symbol '$a'␤ at <tmp>:1␤ ------> s…» 21:10
moritz binding needs a layer of indirection to work21:10
which cstruct can't provide21:10
Xliff_ Ah.21:10
This is a long standing problem.21:10
So...21:11
"use nqp; nqp::bindattr( nqp::decont(self), MiniSvg, '$!path', nqp::unbox_s(~$new) );"21:11
That is really hard to remember.21:11
Geth ¦ doc: cf5689bcc6 | cfa++ | doc/Language/numerics.pod621:12
¦ doc: Fix a couple more broken links. 21:12
¦ doc: review: https://github.com/perl6/doc/commit/cf5689bcc621:12
synopsebot Link: https://doc.perl6.org/language/numerics21:12
Xliff_ m: class A is repr('CStruct') { has Str $!s; method s is rw ( Proxy.new: FETCH => -> {$!s}, STORE => -> $, $new { nqp::bindattr( nqp::decont(self), MiniSvg, '$!path', nqp::unbox_s(~$new) );}; my $a = A.new( s => 'WTF is this immutable' ); say $a.s21:13
camelia rakudo-moar 6d58e0b0b: OUTPUT: «=== SORRY!=== Error while compiling <tmp>␤Missing block␤at <tmp>:1␤------> 'CStruct') { has Str $!s; method s is rw ( Proxy.new: FETCH => -> {$!s}, STORE = ␤»21:13
Xliff_ m: class A is repr('CStruct') { has Str $!s; method s is rw { Proxy.new: FETCH => -> {$!s}, STORE => -> $, $new { nqp::bindattr( nqp::decont(self), MiniSvg, '$!path', nqp::unbox_s(~$new) ); }; }; my $a = A.new( s => 'WTF is this immutable' ); say $a.s21:13
camelia rakudo-moar 6d58e0b0b: OUTPUT: «=== SORRY!=== Error while compiling <tmp>␤Could not find nqp::decont, did you forget 'use nqp;' ?␤at <tmp>:1␤------> $new { nqp::bindattr( nqp::decont(self) , MiniSvg, '$!path', nqp::unbox_s(~$new) ␤»21:13
Xliff_ m: class A is repr('CStruct') { has Str $!s; method s is rw { use nqp; Proxy.new: FETCH => -> {$!s}, STORE => -> $, $new { nqp::bindattr( nqp::decont(self), MiniSvg, '$!path', nqp::unbox_s(~$new) ); }; }; my $a = A.new( s => 'WTF is this immutable' ); say $a.s21:14
camelia rakudo-moar 6d58e0b0b: OUTPUT: «=== SORRY!=== Error while compiling <tmp>␤Missing block␤at <tmp>:1␤------> s => 'WTF is this immutable' ); say $a.s <EOL> ␤ expecting any of:␤ postfix␤ statement end␤ statement modifier␤ stat…»21:14
Ven`` left21:14
pmurias Xliff_: nqp:: ops aren't supposed to be use in user code21:14
* used21:14
Xliff_ m: class A is repr('CStruct') { has Str $!s; method s is rw { use nqp; Proxy.new: FETCH => -> {$!s}, STORE => -> $, $new { nqp::bindattr( nqp::decont(self), MiniSvg, '$!path', nqp::unbox_s(~$new) ); }; }; }; my $a = A.new( s => 'WTF is this immutable' ); say $a.s21:14
camelia rakudo-moar 6d58e0b0b: OUTPUT: «=== SORRY!=== Error while compiling <tmp>␤Undeclared name:␤ MiniSvg used at line 1␤␤»21:14
Geth ¦ doc: 4a8b1c45df | cfa++ | doc/Language/numerics.pod621:15
¦ doc: One more broken NaN link. 21:15
¦ doc: review: https://github.com/perl6/doc/commit/4a8b1c45df21:15
synopsebot Link: https://doc.perl6.org/language/numerics21:15
Xliff_ m: class A is repr('CStruct') { has Str $!s; method s is rw { use nqp; Proxy.new: FETCH => -> {$!s}, STORE => -> $, $new { nqp::bindattr( nqp::decont(self), A, '$!path', nqp::unbox_s(~$new) ); }; }; }; my $a = A.new( s => 'WTF is this immutable' ); say $a.s21:15
camelia rakudo-moar 6d58e0b0b: OUTPUT: «Too many positionals passed; expected 0 arguments but got 1␤ in block <unit> at <tmp> line 1␤␤»21:15
Xliff_ pmurias: I keep hearing that and my response is that if it doesn't then solve this problem .21:15
Until then, if they fix the problem, they will be used.21:15
pmurias Xliff_: you have made a ticket?21:17
Xliff_ pmurias: You know, I can golf this now, so maybe I should.21:18
But I have never been able to golf it before.21:18
m: class A is repr('CStruct') { has Str $!s; method s is rw { use nqp; Proxy.new: FETCH => -> {$!s}, STORE => -> $, $new { nqp::bindattr( nqp::decont(self), A, '$!path', nqp::unbox_s(~$new) ); }; }; }; my $a = A.new; $a.s = 'WTF is this immutable'; $a.s.say21:19
camelia rakudo-moar 6d58e0b0b: OUTPUT: «Can not bind non-existent attribute '$!path'␤ in block <unit> at <tmp> line 1␤␤»21:19
Xliff_ m: class A is repr('CStruct') { has Str $!s; method s is rw { use nqp; Proxy.new: FETCH => -> {$!s}, STORE => -> $, $new { nqp::bindattr( nqp::decont(self), A, '$!s', nqp::unbox_s(~$new) ); }; }; }; my $a = A.new; $a.s = 'WTF is this immutable'; $a.s.say21:19
camelia rakudo-moar 6d58e0b0b: OUTPUT: «Too many positionals passed; expected 0 arguments but got 1␤ in block <unit> at <tmp> line 1␤␤»21:19
Xliff_ m: class A is repr('CStruct') { has Str $!s; method s is rw { use nqp; Proxy.new: FETCH => -> $ {$!s}, STORE => -> $, $new { nqp::bindattr( nqp::decont(self), A, '$!s', nqp::unbox_s(~$new) ); }; }; }; my $a = A.new; $a.s = 'WTF is this immutable'; $a.s.say21:20
camelia rakudo-moar 6d58e0b0b: OUTPUT: «WTF is this immutable␤»21:20
Xliff_ \o/.21:20
.in 5h Bug CStruct/Str binding issue21:21
yoleaux Xliff_: I'll remind you on 7 Jan 2019 02:21Z21:21
Ven`` joined21:22
cfa er, sorry for the geth interruptions21:22
p6bannerbot set mode: +v21:22
molaf joined21:25
pmurias left21:25
p6bannerbot set mode: +v21:25
Geth ¦ doc: cbc16fd4ed | cfa++ | doc/Language/glossary.pod621:27
¦ doc: Fix a couple of glossary links. 21:27
¦ doc: review: https://github.com/perl6/doc/commit/cbc16fd4ed21:27
synopsebot Link: https://doc.perl6.org/language/glossary21:27
cfa okay, i think i'm done with that sweep21:27
devmikey left21:28
AlexDaniel left21:33
Sound joined21:33
p6bannerbot set mode: +v21:33
andrzejku joined21:34
p6bannerbot set mode: +v21:35
AlexDaniel joined21:35
p6bannerbot set mode: +v21:35
Sound left21:38
andrzejku left21:50
abraxxa left21:50
leont left22:00
vendethiel- joined22:06
p6bannerbot set mode: +v22:07
leont joined22:34
p6bannerbot set mode: +v22:34
Sgeo_ joined22:37
p6bannerbot set mode: +v22:38
loops joined22:38
p6bannerbot set mode: +v22:39
Sgeo left22:41
dct joined22:52
p6bannerbot set mode: +v22:52
sjn__ joined23:08
sjn left23:08
sjn__sjn23:09
p6bannerbot set mode: +v23:09
Sgeo__ joined23:16
p6bannerbot set mode: +v23:17
Sgeo_ left23:19
w_richard_w joined23:44
p6bannerbot set mode: +v23:44

Logs Search ←Prev date Next date→ Channels Documentation