| 2019-01-06 |
|
lucs
| Yep | 00:00 |
| → vrurg joined | 00:01 |
| → ChoHag joined | 00:02 |
| p6bannerbot set mode: +v | 00:02 |
| → Ven`` joined | 00:02 |
| p6bannerbot set mode: +v | 00:02 |
| p6bannerbot set mode: +v | 00:03 |
|
zachk
| whats a good perl6 editor, vim seems really slow out of the box | 00: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-311005718 | 00: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 left | 00:33 |
| → scovit joined | 00:33 |
| p6bannerbot set mode: +v | 00: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 left | 00:40 |
| ← zachk left | 00:55 |
| ← sena_kun left | 01:03 |
| ← sftp left | 01:03 |
| → kiwi_60 joined | 01:31 |
| p6bannerbot set mode: +v | 01:31 |
| ← kiwi_60 left | 01:32 |
| ← rindolf left | 01:40 |
| ← Cabanoss- left | 02:25 |
|
timotimo
| those are japanese-style corner brackets | 02:50 |
| ← SqrtNegInf left | 02:55 |
| ← molaf left | 02:57 |
| → molaf joined | 03:10 |
| p6bannerbot set mode: +v | 03:10 |
| ← leont left | 03:32 |
| → SqrtNegInf joined | 03:44 |
| p6bannerbot set mode: +v | 03:44 |
| → scovit joined | 04:03 |
| p6bannerbot set mode: +v | 04:04 |
| → kurahaupo_ joined | 04:08 |
| p6bannerbot set mode: +v | 04:09 |
| ← kurahaupo left | 04:09 |
| ← daotoad1 left | 04:16 |
| → daotoad joined | 04:44 |
| p6bannerbot set mode: +v | 04:45 |
|
buggable
| New CPAN upload: DOM-Tiny-0.5.2.tar.gz by HANENKAMP http://modules.perl6.org/dist/DOM::Tiny:cpan:HANENKAMP | 05:06 |
| ← reach_satori left | 05:07 |
| ← kurahaupo_ left | 05:21 |
| → reach_satori joined | 05:25 |
| p6bannerbot set mode: +v | 05:26 |
|
pony
| m: my $s = '; ls'; run qqw<echo $s> | 05:28 |
|
camelia
| rakudo-moar 64c88f919: OUTPUT: «; ls» | 05:28 |
| → kurahaupo joined | 05:28 |
| p6bannerbot set mode: +v | 05:29 |
| → kurahaupo_ joined | 05:40 |
| p6bannerbot set mode: +v | 05:40 |
| ← kurahaupo left | 05:41 |
|
squashable6
| 🍕 bugfood++ edited issue “duplicate stat() system calls on file tests”: https://github.com/rakudo/rakudo/issues/2584 | 05:49 |
|
| 🍕 bugfood++ wrote a comment on “duplicate stat() system calls on file tests”: https://github.com/rakudo/rakudo/issues/2584#issuecomment-451717713 | 05:55 |
| → m0ltar joined | 05:56 |
| p6bannerbot set mode: +v | 05: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 editor | 06:26 |
|
yoleaux
| Xliff_: I'll pass your message to zachk. | 06:26 |
| ← kurahaupo_ left | 06:26 |
| → kurahaupo joined | 06: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: +v | 06:27 |
|
Xliff_
| timotimo: Especially when it comes to function pointers. | 06:28 |
| → w17t joined | 06:40 |
| p6bannerbot set mode: +v | 06:40 |
|
Kaiepi
| m: my Int $a = 1; use MONKEY-SEE-NO-EVAL; try EVAL say $a | 06: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 1 | 06: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: 1 | 06:51 |
|
camelia
| rakudo-moar 64c88f919: OUTPUT: «1» | 06:52 |
|
Kaiepi
| hm | 06: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 happening | 07:05 |
|
| oh wait | 07:05 |
|
| never mind, i had another sub called say in the same file | 07:05 |
|
AlexDaniel
| squashable6: status | 07: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-Day | 07:27 |
|
| AlexDaniel, Log and stats: https://gist.github.com/44cd5523f8d8711b74a657d8ec158bb3 | 07:27 |
| ← evalable6 left | 07:40 |
| → evalable6 joined | 07:44 |
| p6bannerbot set mode: +v | 07:45 |
|
squashable6
| 🍕 AlexDaniel++ wrote a comment on “Hash.pick is very slow on big hashes.”: https://github.com/rakudo/rakudo/issues/2586#issuecomment-451722971 | 07:57 |
| ← daotoad left | 08:17 |
| ← vrurg left | 08:20 |
| ← w17t left | 08:24 |
| ← molaf left | 08:54 |
| → rindolf joined | 08:58 |
| p6bannerbot set mode: +v | 08: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.gz | 09:06 |
| ← scovit left | 09:08 |
| ← kurahaupo left | 09:17 |
| → sftp joined | 09:21 |
| p6bannerbot set mode: +v | 09: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 joined | 09:26 |
|
Kaiepi
| what am i doing wrong here? | 09:26 |
| p6bannerbot set mode: +v | 09:27 |
|
Kaiepi
| m: $_ = 'a'; m:i/a/ | 09:34 |
|
camelia
| rakudo-moar 64c88f919: ( no output ) | 09:34 |
|
Kaiepi
| oh | 09:34 |
| ← ChoHag left | 09:41 |
|
buggable
| New CPAN upload: App-Mi6-0.2.5.tar.gz by SKAJI http://modules.perl6.org/dist/App::Mi6:cpan:SKAJI | 09:56 |
|
AlexDaniel
| squashable6: status | 10: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-Day | 10:03 |
|
| AlexDaniel, Log and stats: https://gist.github.com/8ae53e9af86daad2b426848a2a348bb4 | 10: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.pod6 | 10:22 |
|
| ¦ doc: Rephrasing and reflow | 10:22 |
|
| ¦ doc: review: https://github.com/perl6/doc/commit/1bf6eac67d | 10:22 |
|
synopsebot
| Link: https://doc.perl6.org/language/operators | 10:22 |
| → w17t joined | 10:44 |
| p6bannerbot set mode: +v | 10:44 |
| → sena_kun joined | 10:50 |
| p6bannerbot set mode: +v | 10:50 |
| → Cabanossi joined | 11:07 |
| p6bannerbot set mode: +v | 11:07 |
|
squashable6
| 🍕 lizmat++ wrote a comment on “Hash.pick is very slow on big hashes.”: https://github.com/rakudo/rakudo/issues/2586#issuecomment-451734009 | 11:24 |
|
| 🍕 lizmat++ closed issue “Hash.pick is very slow on big hashes.”: https://github.com/rakudo/rakudo/issues/2586 | 11:24 |
|
| 🍕 AlexDaniel++ wrote a comment on “Hash.pick is very slow on big hashes.”: https://github.com/rakudo/rakudo/issues/2586#issuecomment-451734546 | 11:32 |
|
| 🍕 AlexDaniel++ edited wiki page “Ticket updates”: https://github.com/rakudo/rakudo/wiki/Ticket-updates | 11:51 |
|
| 🍕 AlexDaniel++ edited wiki page “Ticket updates”: https://github.com/rakudo/rakudo/wiki/Ticket-updates | 11:51 |
| → domidumont joined | 11:55 |
| p6bannerbot set mode: +v | 11:55 |
|
AlexDaniel
| squashable6: status | 12:09 |
|
squashable6
| AlexDaniel, The date for the next SQUASHathon is not set | 12:09 |
|
AlexDaniel
| oh | 12:09 |
|
| squashable6: log 2019-01-05 | 12:10 |
|
squashable6
| AlexDaniel, Log and stats: https://gist.github.com/9aeaf9d2aba148c0be80dd5f6e5c463d | 12:10 |
| → abraxxa joined | 12:13 |
| p6bannerbot set mode: +v | 12:13 |
|
AlexDaniel
| .tell jmerelo will you finalize the squashathon? Note that the log has a bunch of unrelated progress, so look carefully | 12:13 |
|
yoleaux
| AlexDaniel: I'll pass your message to jmerelo. | 12:13 |
| ← m0ltar left | 12:37 |
| → m0ltar joined | 12:40 |
| p6bannerbot set mode: +v | 12: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 work | 12:49 |
|
moritz
| PSA: the Perl 6 regex/grammar books is fore sale today, USD 9,99: https://www.apress.com/us/book/9781484232279 | 12: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 memcpy | 13:00 |
|
| but this is not really an issue | 13:00 |
|
| the real issue is when the error does not show up and instead you randomly get Internal error | 13:00 |
|
| Unwound entire stack and missed handler | 13:01 |
| → kurahaupo joined | 13:02 |
| p6bannerbot set mode: +v | 13:03 |
| ← Ven`` left | 13: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 Pointer | 13:11 |
|
| of course you can also use nativecast instead of typed pointer | 13:12 |
|
| but then one wonders what is the use of them | 13:12 |
|
| and to gain write access you are left with only memcpy | 13:12 |
| → caa51h joined | 13:12 |
|
scovit
| since you can do it with memcpy, one wonders why you cannot do it with nativecast? | 13:13 |
| p6bannerbot set mode: +v | 13:13 |
| → patrickb joined | 13:16 |
| → pmurias joined | 13:17 |
| p6bannerbot set mode: +v | 13:17 |
| p6bannerbot set mode: +v | 13:17 |
|
pmurias
| http://blogs.perl.org/users/pawel_murias/2019/01/rakudojs-update---hunting-down-failing-roast-tests.html - rakudo.js update | 13:17 |
| ← pmurias left | 13:18 |
|
lizmat
| weekly: http://blogs.perl.org/users/pawel_murias/2019/01/rakudojs-update---hunting-down-failing-roast-tests.html | 13:20 |
|
notable6
| lizmat, Noted! | 13:20 |
| → mowcat joined | 13:39 |
| p6bannerbot set mode: +v | 13: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 sizes | 13: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 joined | 13:56 |
| p6bannerbot set mode: +v | 13:57 |
| ← [particle] left | 14: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 called | 14:04 |
|
| I was thinking about parameter mangling problems pheraps | 14:05 |
| → [particle] joined | 14:05 |
| p6bannerbot set mode: +v | 14: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 joined | 14:12 |
| p6bannerbot set mode: +v | 14:13 |
| → scovit_ joined | 14:13 |
| p6bannerbot set mode: +v | 14:14 |
| ← scovit left | 14: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_ left | 14:21 |
| → lucasb joined | 14:22 |
| p6bannerbot set mode: +v | 14:22 |
| ← Praise left | 14:27 |
| → leont joined | 14:29 |
| p6bannerbot set mode: +v | 14:30 |
| → scovit joined | 14:33 |
|
scovit
| Xliff_ it is strange because what you propose is exacly what I did | 14:33 |
|
| and then i get the error, I will try to golf | 14: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.gz | 14:56 |
| ← leont left | 14: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.gz | 15:06 |
| ← qzix left | 15:07 |
| → leont joined | 15:11 |
| p6bannerbot set mode: +v | 15:12 |
| → Ven`` joined | 15:19 |
| p6bannerbot set mode: +v | 15: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 works | 15:47 |
|
Voldenet
| scovit: qsort has different signature | 15: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 register | 15:50 |
|
| nonsense | 15:51 |
|
| applying Perl6 semantics to C | 15:51 |
|
| please let me play a bit more | 15:52 |
|
| m: https://gist.github.com/scovit/7b529556e2c4a8b64e13c3af6da8b056 | 15: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`` left | 15:58 |
|
scovit
| m: https://gist.github.com/scovit/7b529556e2c4a8b64e13c3af6da8b056 | 16: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 size | 16:05 |
|
scovit
| good advice, but I am trying to golf my problem | 16:08 |
|
| m: https://gist.github.com/scovit/7b529556e2c4a8b64e13c3af6da8b056 | 16: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 revision | 16:09 |
|
Voldenet
| you can just use CArray instead http://ix.io/1xEo | 16:09 |
|
scovit
| but I am really not trying to workaround | 16: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 mind | 16:11 |
|
| and that, but apart, is supposed to work in the Perl 6 language | 16:12 |
|
| s/but apart/bugs apart/ | 16:12 |
|
| a part from this phylosophical discussion | 16:13 |
|
| m: http://ix.io/1xEo | 16:13 |
|
camelia
| rakudo-moar 64c88f919: OUTPUT: «=== SORRY!=== Error while compiling <tmp>Confusedat <tmp>:1------> http: ⏏ //ix.io/1xEo  expecting any of: colon pair» | 16:13 |
|
scovit
| substituting -> by sub make it work, which is wierd | 16:14 |
|
| m: https://gist.github.com/scovit/7b529556e2c4a8b64e13c3af6da8b056 | 16:15 |
|
camelia
| rakudo-moar 64c88f919: OUTPUT: «=== SORRY!=== Error while compiling <tmp>Variable '@initial' is not declaredat <tmp>:8------> my $data = Buf[uint8].new( ⏏ @initial); » | 16:15 |
|
scovit
| m: https://gist.github.com/scovit/7b529556e2c4a8b64e13c3af6da8b056 | 16: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 works | 16:17 |
|
| http://ix.io/1xEs | 16:17 |
|
| it's nice because it uses the original signature | 16:18 |
|
| but all those "nativecast"s are quite verbose | 16:18 |
|
scovit
| Ok found out why | 16:18 |
|
| Voldenet, yes, that is supposed to work | 16:19 |
|
| and does | 16:20 |
|
timotimo
| you know, a slang for less verbose nativecast could probably be made | 16:23 |
| → andrzejku joined | 16:30 |
| p6bannerbot set mode: +v | 16: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 elegant | 16:34 |
|
| however, I'm not very sure about its performance | 16:34 |
|
timotimo
| m: *1234 | 16:34 |
|
camelia
| rakudo-moar 64c88f919: OUTPUT: «=== SORRY!=== Error while compiling <tmp>Two terms in a rowat <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 *1234 | 16:35 |
|
camelia
| rakudo-moar 64c88f919: OUTPUT: «nativecasting 1234True» | 16:35 |
|
timotimo
| m: &123 | 16:35 |
|
camelia
| rakudo-moar 64c88f919: ( no output ) | 16:35 |
|
timotimo
| ah, sigil for subs | 16:35 |
| → Sgeo_ joined | 16:39 |
| p6bannerbot set mode: +v | 16:40 |
| → Sgeo joined | 16:41 |
| p6bannerbot set mode: +v | 16:41 |
| ← Sgeo__ left | 16:42 |
| ← Sgeo_ left | 16:43 |
|
cfa
| 👋 | 16:44 |
| → Sgeo_ joined | 16:44 |
| p6bannerbot set mode: +v | 16:45 |
| ← Sgeo left | 16:47 |
| ← MilkmanDan left | 16:55 |
| → MilkmanDan joined | 17:01 |
| p6bannerbot set mode: +v | 17:01 |
| ← domidumont left | 17: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.gz | 17:06 |
| ← andrzejku left | 17:09 |
| → Zoffix joined | 17:18 |
| p6bannerbot set mode: +v | 17:18 |
| → jmerelo joined | 17:18 |
| p6bannerbot set mode: +v | 17: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-buggable | 17: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-doc | 17: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 carefully | 17: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-doc | 17: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 files | 17:22 |
|
| ¦ infrastructure-doc: Remove Zoffix | 17:22 |
|
| ¦ infrastructure-doc: | 17:22 |
|
| ¦ infrastructure-doc: by own request | 17:22 |
|
| ¦ infrastructure-doc: review: https://github.com/perl6/infrastructure-doc/commit/6ae8734379 | 17:22 |
| → andrzejku joined | 17:22 |
|
moritz
| Zoffix: should I also delete your account on hack.p6c.org? | 17:23 |
|
jmerelo
| squashathon: status | 17:23 |
| p6bannerbot set mode: +v | 17:23 |
|
jmerelo
| squashable: status | 17: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-Day | 17:23 |
|
Zoffix
| moritz: yes | 17:26 |
|
Geth
| ¦ ecosystem: 9672c0cb49 | (Zoffix Znet)++ (committed using GitHub Web editor) | META.list | 17:27 |
|
| ¦ ecosystem: Transfer WWW/IO::Path::ChildSecure to perl6-community-modules | 17:27 |
|
| ¦ ecosystem: review: https://github.com/perl6/ecosystem/commit/9672c0cb49 | 17:27 |
|
moritz
| done | 17:29 |
| → Ven`` joined | 17:30 |
| p6bannerbot set mode: +v | 17:31 |
|
Zoffix
| eco: author:zoffix | 17: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 -Ofun | 17:40 |
|
Zoffix
| moritz: the project's direction and management style doesn't match my goals and I'll be happier elsewhere. | 17:41 |
| ← Zoffix left | 17:41 |
|
Xliff_
| Well.... fuck. | 17:41 |
|
Geth
| ¦ doc: c5cec61573 | cfa++ | 34 files | 17:53 |
|
| ¦ doc: (Partial) broken link sweep: /type -> /routine. | 17:53 |
|
| ¦ doc: review: https://github.com/perl6/doc/commit/c5cec61573 | 17:53 |
| → woolfy joined | 17:56 |
|
Ven``
| huh | 17:56 |
| p6bannerbot set mode: +v | 17: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 bounds | 17:57 |
|
| well, sadly also real life is often like this | 17:57 |
|
Xliff_
| scovit: Can you explain what happened? Was it the "Raku" stuff, or something more involved. | 17:58 |
|
scovit
| no idea | 17:58 |
|
Xliff_
| Fair nuff. :( | 17:58 |
|
scovit
| :( | 17:58 |
| ← woolfy left | 17: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 witness | 18:10 |
| ← lucasb left | 18:11 |
| → zakharyas joined | 18:12 |
|
jmerelo
| El_Che: although not totally unexpected... | 18:12 |
| p6bannerbot set mode: +v | 18:12 |
|
El_Che
| nevertheless | 18:13 |
| → Sgeo__ joined | 18:16 |
| → p6bannerbot joined | 18:16 |
| moon.freenode.net set mode: +o | 18:16 |
| → domidumont joined | 18:16 |
| p6bannerbot set mode: +v | 18:16 |
| p6bannerbot set mode: +v | 18:17 |
| ← Sgeo_ left | 18:19 |
| ← leont left | 18:24 |
|
lizmat
| Zoffix: for all of the disagreements that we've had, I'm sorry to see you leave the Perl 6 project | 18: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 work | 18:26 |
|
| Zoffix: more than you appear to be doing now. | 18:26 |
| ← lizmat left | 18:26 |
| → lizmat joined | 18:30 |
| p6bannerbot set mode: +v | 18:30 |
|
Geth
| ¦ doc: af50a526c6 | (JJ Merelo)++ | doc/Language/syntax.pod6 | 18:36 |
|
| ¦ doc: Adding colon pairs with numbers, including non-latin | 18:36 |
|
| ¦ doc: review: https://github.com/perl6/doc/commit/af50a526c6 | 18:36 |
|
synopsebot
| Link: https://doc.perl6.org/language/syntax | 18:36 |
| ← abraxxa left | 18:39 |
| → abraxxa joined | 18:39 |
| p6bannerbot set mode: +v | 18:40 |
| → Ven` joined | 18:43 |
| p6bannerbot set mode: +v | 18:43 |
| ← abraxxa left | 18:46 |
| ← andrzejku left | 18:47 |
|
Geth
| ¦ doc: f20690005c | cfa++ | 2 files | 18:48 |
|
| ¦ doc: Fix a couple more broken links. | 18:48 |
|
| ¦ doc: review: https://github.com/perl6/doc/commit/f20690005c | 18:48 |
| → abraxxa joined | 18:48 |
| p6bannerbot set mode: +v | 18:49 |
| → leont joined | 18:51 |
| p6bannerbot set mode: +v | 18: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-buggable | 18: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 feet | 18:57 |
|
yoleaux
| AlexDaniel: I'll remind you on 13 Jan 2019 18:57Z | 18: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 joined | 19:08 |
| p6bannerbot set mode: +v | 19:08 |
|
timotimo
| sad to see zoffix go, but i hope they'll find lots of happyness in their future endeavours | 19:12 |
|
| and i hope someone can pick up some of the marketing tasks | 19:13 |
| → andrzejku joined | 19:16 |
| p6bannerbot set mode: +v | 19:16 |
| ← jmerelo left | 19:17 |
|
AlexDaniel
| and, like, everything else… | 19:17 |
|
timotimo
| of which there is a lot | 19:18 |
|
AlexDaniel
| weekly: Thank you Zoffix | 19:21 |
|
notable6
| AlexDaniel, Noted! | 19:21 |
|
timotimo
| the v6.d review was really an awe-inspiring effort | 19: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 IMO | 19:28 |
|
| I looked at some messages on facebook and they were just cancer | 19:28 |
|
| really disgusting to read, and I guess especially so for someone who put so much effort into it | 19: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 back | 19:31 |
| → pmurias joined | 19:37 |
| p6bannerbot set mode: +v | 19:37 |
| ← Ven`` left | 19:39 |
| ← Ven` left | 19:40 |
| → Ven`` joined | 19:44 |
| p6bannerbot set mode: +v | 19: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 left | 19:53 |
| ← domidumont left | 19:55 |
| ← Ven`` left | 19:55 |
|
Altreus
| What's the test for definedness of a variable? | 20:04 |
|
sena_kun
| .defined | 20:04 |
|
Altreus
| danke | 20: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 feature | 20:05 |
|
Altreus
| oh I could do with $foo { return stuff } return 1 | 20:07 |
|
| that shortens it a lot actually | 20: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 operator | 20:09 |
|
| m: sub foo { 5.return; 99 }; say foo | 20:09 |
|
camelia
| rakudo-moar 6d58e0b0b: OUTPUT: «5» | 20:09 |
|
timotimo
| yes you can | 20:09 |
|
Altreus
| this language | 20:09 |
|
| :D | 20:09 |
|
timotimo
| though of course since it's a method, the object itself decides what will happen | 20:09 |
|
| so if you potentially have to deal with objects that want to do silly or nasty things, just use return %) | 20:10 |
| ← aindilis left | 20:13 |
| → aindilis joined | 20:14 |
| p6bannerbot set mode: +v | 20:15 |
|
robertle
| how would a .return method on an object look like that does the same as a regular return? | 20:18 |
| ← andrzejku left | 20:19 |
|
tobs
| s: "x", "return", \() | 20:20 |
|
| ah, it's gone | 20: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/2538 | 20:24 |
| ← zakharyas left | 20:29 |
| → Praise joined | 20:34 |
| p6bannerbot set mode: +v | 20:34 |
|
scovit
| What about this: Internal error: inconsistent bind result | 20:38 |
| → Ven`` joined | 20:42 |
| p6bannerbot set mode: +v | 20:43 |
|
scovit
| I am not sure I know how to use the sub EXPORT | 20:44 |
| ← patrickb left | 20:44 |
|
scovit
| can export be used to export an imported symbol? | 20:47 |
|
Xliff_
| m: use NativeCall; my $a = CArray[uint16].new; say $a.REPR | 20:47 |
|
camelia
| rakudo-moar 6d58e0b0b: OUTPUT: «CArray» | 20:47 |
|
scovit
| It doesn't immediately complains, but I am not sure it fully works | 20:47 |
|
sena_kun
| scovit, well, I can do https://gist.github.com/Altai-man/4d96c65d107c4927efdce92b1f10ad67 | 20:50 |
|
| although current issue I am facing is that you cannot export multipart names like `A::B`, only `B`. | 20:51 |
|
scovit
| yep | 20:56 |
|
| you can apparently declare a my constant is export for those | 20:56 |
|
| at least this is what I am trying to do | 20:56 |
| ← Ven`` left | 20:56 |
|
Xliff_
| m: use NativeCall; my $a = CArray[uint16].new; say $a.REPR | 20: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 joined | 21:01 |
| p6bannerbot set mode: +v | 21: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 either | 21:02 |
| ← Sgeo__ left | 21:04 |
| → Ven`` joined | 21:07 |
| p6bannerbot set mode: +v | 21:08 |
|
Xliff_
| moritz: ?? | 21:09 |
|
| I don't understand. | 21:09 |
|
| How do I know that CStruct doesn't support binding? | 21:09 |
| → devmikey joined | 21:09 |
| p6bannerbot set mode: +v | 21: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 sideat <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 work | 21:10 |
|
| which cstruct can't provide | 21: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.pod6 | 21:12 |
|
| ¦ doc: Fix a couple more broken links. | 21:12 |
|
| ¦ doc: review: https://github.com/perl6/doc/commit/cf5689bcc6 | 21:12 |
|
synopsebot
| Link: https://doc.perl6.org/language/numerics | 21: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.s | 21:13 |
|
camelia
| rakudo-moar 6d58e0b0b: OUTPUT: «=== SORRY!=== Error while compiling <tmp>Missing blockat <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.s | 21: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.s | 21:14 |
|
camelia
| rakudo-moar 6d58e0b0b: OUTPUT: «=== SORRY!=== Error while compiling <tmp>Missing blockat <tmp>:1------> s => 'WTF is this immutable' ); say $a.s ⏏ <EOL>  expecting any of: postfix statement end statement modifier stat…» | 21:14 |
| ← Ven`` left | 21:14 |
|
pmurias
| Xliff_: nqp:: ops aren't supposed to be use in user code | 21:14 |
|
| * used | 21: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.s | 21: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.pod6 | 21:15 |
|
| ¦ doc: One more broken NaN link. | 21:15 |
|
| ¦ doc: review: https://github.com/perl6/doc/commit/4a8b1c45df | 21:15 |
|
synopsebot
| Link: https://doc.perl6.org/language/numerics | 21: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.s | 21: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.say | 21: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.say | 21: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.say | 21:20 |
|
camelia
| rakudo-moar 6d58e0b0b: OUTPUT: «WTF is this immutable» | 21:20 |
|
Xliff_
| \o/. | 21:20 |
|
| .in 5h Bug CStruct/Str binding issue | 21:21 |
|
yoleaux
| Xliff_: I'll remind you on 7 Jan 2019 02:21Z | 21:21 |
| → Ven`` joined | 21:22 |
|
cfa
| er, sorry for the geth interruptions | 21:22 |
| p6bannerbot set mode: +v | 21:22 |
| → molaf joined | 21:25 |
| ← pmurias left | 21:25 |
| p6bannerbot set mode: +v | 21:25 |
|
Geth
| ¦ doc: cbc16fd4ed | cfa++ | doc/Language/glossary.pod6 | 21:27 |
|
| ¦ doc: Fix a couple of glossary links. | 21:27 |
|
| ¦ doc: review: https://github.com/perl6/doc/commit/cbc16fd4ed | 21:27 |
|
synopsebot
| Link: https://doc.perl6.org/language/glossary | 21:27 |
|
cfa
| okay, i think i'm done with that sweep | 21:27 |
| ← devmikey left | 21:28 |
| ← AlexDaniel left | 21:33 |
| → Sound joined | 21:33 |
| p6bannerbot set mode: +v | 21:33 |
| → andrzejku joined | 21:34 |
| p6bannerbot set mode: +v | 21:35 |
| → AlexDaniel joined | 21:35 |
| p6bannerbot set mode: +v | 21:35 |
| ← Sound left | 21:38 |
| ← andrzejku left | 21:50 |
| ← abraxxa left | 21:50 |
| ← leont left | 22:00 |
| → vendethiel- joined | 22:06 |
| p6bannerbot set mode: +v | 22:07 |
| → leont joined | 22:34 |
| p6bannerbot set mode: +v | 22:34 |
| → Sgeo_ joined | 22:37 |
| p6bannerbot set mode: +v | 22:38 |
| → loops joined | 22:38 |
| p6bannerbot set mode: +v | 22:39 |
| ← Sgeo left | 22:41 |
| → dct joined | 22:52 |
| p6bannerbot set mode: +v | 22:52 |
| → sjn__ joined | 23:08 |
| ← sjn left | 23:08 |
| sjn__ → sjn | 23:09 |
| p6bannerbot set mode: +v | 23:09 |
| → Sgeo__ joined | 23:16 |
| p6bannerbot set mode: +v | 23:17 |
| ← Sgeo_ left | 23:19 |
| → w_richard_w joined | 23:44 |
| p6bannerbot set mode: +v | 23:44 |