»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_log/perl6 | UTF-8 is our friend! 🦋
Set by Zoffix on 25 July 2018.
Xliff \o 04:19
Why is rakudobrew slow?
moritz slow doing what? 05:11
lizmat weekly: perl6.eu/squared-ranking.html 05:34
notable6 lizmat, Noted!
lizmat weekly: www.reddit.com/r/programming/comme...ve_perl_6/ 06:01
notable6 lizmat, Noted!
jmerelo Reddit unavailable right now. The end is nigh 06:16
Xliff Oh noes! Ppl will have to actually do something with other ppl! 06:18
jmerelo Xliff: there's always Twitter... And IRC!
lizmat works for me
Xliff Oh gawd. When Twitter dies... that's when Prince comes back to life and we party like it's 1999.
lizmat www.reddit.com/r/perl6/comments/bt...n_jvm_how/ # question on Reddit 06:19
jmerelo Xliff: :-) 06:20
lizmat: so, what's the state of the JVM now? I'm not really sure 06:22
lizmat neither
I guess bartolin knows best
and maybe pmurias
jmerelo Last Saturday I also went to a presentation about GraalVM. I checked out the repo for Perl 6 on GraalVM and it seems to be somewhat advanced 06:23
lizmat that's what pmurias is also working on, no ?
jmerelo lizmat: right. And Rakudo.js as well, which is totally different, right? 06:24
Xliff Actually...what is the state of PERL6 right now? 06:26
I cannot use rakudobrew to build moar-master. Only moar-blead seems to work.
Also...noticing HUGE increase in compile time for moar-blead on my VM 06:27
By a factor of like... 2
jmerelo Xliff: it's on its way to 2019.06, I guess... 06:27
lizmat Xliff: compile time of the setting, or of modules ? 06:28
Xliff Compile times of my modules.
lizmat do you recompile rakudo regularly ? 06:28
Xliff Yes 06:29
lizmat if so, you may want to purge your .precomp directories
Xliff OK.
lizmat every re-compile of rakudo, will cause a fresh batch of your modules precomp files
Xliff lizmat: I know. 06:30
lizmat oki :-)
lizmat not sure if that's the reason, but it definitely doesn't help 06:30
Xliff This is the second time I've had a performance degredation like this. Fortunately doesn't appear to factor in to runtime.
Just parse
I will bug the build errors with rakudobrew, then. 06:31
lizmat www.reddit.com/r/perl/comments/bth...h_arduino/ # another question on Reddit 06:36
holyghost hello 06:41
noisegul Good morning 06:55
holyghost .tell Xliff I've sent you some email, it includes a new public key (my other email adress though) 07:26
yoleaux holyghost: I'll pass your message to Xliff.
lizmat weekly: lobste.rs/s/v4b40v 08:29
notable6 lizmat, Noted!
antoniogamiz o/ 10:00
noisegul Hello Antonio :) 10:07
antoniogamiz noisegul: :D 10:08
Ven`` o/ 10:16
holyghost .tell Xliff thanks, the login is alive ! :o) 10:40
yoleaux holyghost: I'll pass your message to Xliff.
holyghost ;lo Ven` 11:08
I'm feasting and smoking, so perl6 on wednesday probably :-) 11:10
sena_kun lizmat++ 13:12
patrickb m: class A {method a() {}}; class B {method b() {A.new}}; class C {method c() {B.new}}; my $x = C.new; $x .= c.b; $x.WHAT; 13:59
camelia ( no output )
patrickb m: class A {method a() {}}; class B {method b() {A.new}}; class C {method c() {B.new}}; my $x = C.new; $x .= c.b; say $x.WHAT;
camelia (B)
patrickb Intuitively I would have expected this to print "(C)". A quick search through roast didn't yield a test for the behavior. Is the current intended? 14:05
* to print "(A)"
lizmat and another Perl 6 Weekly hits the Net: p6weekly.wordpress.com/2019/05/27/...thats-why/ 14:07
Ven`` lizmat++ 14:09
sjn awesome! lizmat++ 14:10
timotimo lizmat++
timotimo hum. modules.perl6.org doesn't render ```blah``` as code, we should perhaps find out why that is (since the Result dist uses it in its readme and that is linked from the weekly, it'll have some visibility) 14:14
ugexe patrickb: looks right to me? my $x = C.new ($x is C). $x .= c.b ($x is assigned the result of $x.c, and then .b is called on that) 14:22
ugexe m: my $str = "123"; $str .= Int.Str; say $str.WHAT 14:22
camelia (Int)
ugexe m: my $str = "123"; $str .= (Int.Str); say $str.WHAT 14:23
camelia Use of uninitialized value of type Int 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
No such method '' for invocant of type 'Str'. Did you mean any…
ugexe m: my $str = "123"; ($str .= Int).Str; say $str.WHAT
camelia (Int)
patrickb ugexe: I do understand what it's doing. I was just wondering whether it's intended behavior, as my intuition points in a different direction. 14:26
patrickb I guess I expected that `$x .= c.b` somehow desugars to / is equivalent to `$x = $x.c.b` 14:28
antoniogamiz o/ 14:30
moritz: could you explain to me how Perl6::Documentable::Registry lookup method works please? 14:31
ugexe i suppose that might be more useful than being able to if($x .= child("myfile.txt").e) { ... } 14:32
antoniogamiz I dont understand how it is initialized
ugexe i avoid mutating usually so i suppose my opinion should be taken with a grain of salt
moritz antoniogamiz: that's the "unless %!cache{$by}:exists {
}" part
antoniogamiz yep, but I still dont know how that code initializes the cache :( 14:33
moritz which part is unclear to you?
if $by is "kind" 14:34
then it goes through all documentables
and adds the documentable $d to %!cache{"kind"}{$d.kind()} 14:35
antoniogamiz aaahhhh that the second pair of curly braces initializes that key? 14:36
I did not know that :p
antoniogamiz ty moritz 14:41
jmerelo squashable6: status 15:33
squashable6 jmerelo, ⚠🍕 Next SQUASHathon in 3 days and ≈12 hours (2019-06-01 UTC-14⌁UTC+20). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
jmerelo just a few days!
cpan-p6 New module released to CPAN! Constants::Netinet::In (0.0.1) by 03GARLANDG 15:35
New module released to CPAN! Constants::Net::If (0.0.1) by 03GARLANDG
New module released to CPAN! Constants::Sys::Socket (0.0.1) by 03GARLANDG
Geth doc: 54fd057eb5 | (JJ Merelo)++ | doc/Language/traps.pod6
Revises :skip-test; refs #2738
15:54
doc: b8b8af2267 | (JJ Merelo)++ | doc/Type/Hash.pod6
sigil-() is no longer magical since 6.d

Includes an example, definitely closes #2113
synopsebot Link: doc.perl6.org/language/traps
Link: doc.perl6.org/type/Hash
cpan-p6 New module released to CPAN! Smack (0.3.0) by 03HANENKAMP 16:37
xinming_ IIRC it's recommend to use for @arr[] -> $item { } instead of for @arr -> $item { } Am I right? 17:51
As for @arr[] it decont operation
tobs m: my @a = ^10; for @a { .say }; my $a = ^10; for $a { .say }; for $a[] { .say } 17:55
camelia 0
1
2
3
4
5
6
7
8
9
^10
0
1
2
3
4
5
6
7
8
9
tobs I don't see why you would need to decont an @-sigiled variable, but a scalar yes ^ 17:56
jmerelo xinming_: if you don't know what's in there, you might want to use a sigilless variable, which is deconted by default 17:58
m: my \a = ^10; for a { .say }
camelia 0
1
2
3
4
5
6
7
8
9
xinming_ What I mean is, with array like var, Maybe seq, When we use decont operation, There will be no result saved. 18:08
I just confused with these.
Geth ¦ problem-solving: AlexDaniel assigned to rba Issue perl6-infra: Host the Toaster github.com/perl6/problem-solving/issues/32 18:16
¦ problem-solving: AlexDaniel assigned to maettu Issue perl6-infra: Host the Toaster github.com/perl6/problem-solving/issues/32 18:17
Xliff . 18:50
yoleaux 07:26Z <holyghost> Xliff: I've sent you some email, it includes a new public key (my other email adress though)
10:40Z <holyghost> Xliff: thanks, the login is alive ! :o)
Xliff m: use NativeCall; my role R { method a { 1 }; method b { 2 }; method c { 3 }; }; class A is repr('CStruct') does R { has uint32 $.a }; A.new.say 19:06
camelia A.new(a => 0)
Xliff m: use NativeCall; my role R { method a { 1 }; method b { 2 }; method c { 3 }; }; class A is repr('CStruct') { also does R; has uint32 $.a }; A.new.say 19:07
camelia A.new(a => 0)
nadim_ hi all, two questions, one of them pretty serious, #1 am I the only one that gets tests failing sometimes but at the next run they work just fine! And it's quite often. 19:14
#2 what's "New type Stash for Str is not a mixin type"?
newtoperl hoy 19:15
nadim_ the error points at this code: if $clone.flat && (try require Data::Dump::Tree::LayHorizontal <&lay_horizontal>) !=== Nil but it happens when I modify code_after_ that line 19:16
Xliff What's the best way to populate a CUnion from Perl6? 19:50
[Sno] Xliff: can you describe a little bit more detailed what you plan to do? I think I don't get the core of your question. 20:06
Xliff [Sno]: Well, I have a CUnion of several different structs. 20:29
And I want to know the best way to assign one of those member structs back to the CUnion.
Xliff It's been a while since I've used unions, so I don't know if $union = nativecast(UnionType, $memberstruct) will "just work" 20:31
jnthn Xliff: Hm, I wonder if it's just a case of making the attribute `is rw` in the union type decl and then assigning into it?
Xliff jnthn: For CStucts, using "is rw" is still problematic. I have an open ticket about that. 20:34
Anyting not a float-based or int-based member will throw an immutable error.
github.com/rakudo/rakudo/issues/2589 20:35
class A is repr('CStruct') { has Str $.s is rw; }; 20:36
my $a = A.new( s => 'Hello' );
m: class A is repr('CStruct') { has Str $.s is rw; }; my $a = A.new( s => 'Hello' );
camelia assign requires a concrete object (got a Str type object instead)
in block <unit> at <tmp> line 1
Xliff Ah! New error message.
jnthn m: class A is repr('CStruct') { has Str $.s; }; my $a = A.new( s => 'Hello' ) 20:43
camelia assign requires a concrete object (got a Str type object instead)
in block <unit> at <tmp> line 1
jnthn Not about the `is rw` even. Hmm 20:44
tadzik m: class A is repr('CStruct') { has str $.s; }; my $a = A.new( s => 'Hello' ) 20:45
camelia ( no output )
tadzik m: class A is repr('CStruct') { has str $.s; }; my $a = A.new( s => 'Hello' ); say $a.s
camelia Hello
tadzik I guess that works, unless you really want a proper Str ;) 20:46
Xliff tadzik: "str"? 20:48
What's the diff?
m: my Str $a = "Hello"; my str $b; $b = $a; $b.say 20:49
camelia Hello
tadzik it's like int vs Int, one of them is a native type, the other is boxed
Xliff tadzik: Ah!
Now I have LOADS of code to go over and change... LOL!
tadzik :D 20:50
Xliff tadzik: While you are here. I am having trouble getting latest rakudobrew to compile moar-master. Is this a known error? 20:54
tadzik Xliff: not to me. To be fair, I'm very active in rakudobrew atm, but I'd rather put the blame on rakudo/moar than rakudobrew, it's pretty dumb when it comes to building things :P 20:55
what's the errorr/
Xliff Trying to reproduce
Geth doc: 465e0f82ba | Coke++ | xt/words.pws
learn new word
20:57
doc: a01e5a5687 | Coke++ | doc/Type/Hash.pod6
Clarify the brace type
synopsebot Link: doc.perl6.org/type/Hash
Xliff tadzik: LOL! Looks like the latest changes did the trick! 20:59
Xliff Wasn't able to do this last night. 20:59
tadzik oh, cool :)