»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
Set by moritz on 22 December 2015.
00:00 edehont left, edehont joined
dalek kudo-star-daily: 34b84bc | coke++ | log/ (6 files):
today (automated commit)
00:01
00:05 edehont left 00:09 edehont joined 00:11 edehont left 00:12 edehont joined, edehont_ joined, edehont_ left, edehont left, edehont joined, cdg left 00:13 firstdayonthejob left, edehont left 00:17 itaipu joined 00:27 Guest32512 left 00:29 bowtie joined, bowtie is now known as Guest56914 00:31 regreg left 00:33 vendethiel left 00:34 Guest56914 left 00:35 bowtie_ joined 00:44 alber joined 00:55 SCHAAP137 left, Herby_ joined
Herby_ Evening, everyone! 00:56
\o
00:56 khw left
timotimo hey herb 00:56
Herby_ Hello, timotimo! 00:57
00:57 Sgeo_ left, Sgeo joined
timotimo since github's down for now and the last thing i wanted to do before bed relied on that, i suppose i'll go to bed now 01:00
01:00 Actualeyes joined
Herby_ m: if "bill-bob" ~~ / \W / { say "this has a character that isn't a word character" } 01:02
camelia rakudo-moar 86a90b: OUTPUT«this has a character that isn't a word character␤»
Herby_ m: if "bill bob" ~~ / \W / { say "this has a character that isn't a word character" }
camelia rakudo-moar 86a90b: OUTPUT«this has a character that isn't a word character␤»
Herby_ m: if "billbob" ~~ / \W / { say "this has a character that isn't a word character" }
camelia ( no output )
Herby_ found a small task at work today that I'm going to use Perl 6 for. Have a list of 1000+ names and I need to find the ones that have any "non-word" character. 01:03
Figured I'd start small :)
sorry, non-word character
01:04 Herby_ left 01:08 yeahnoob joined, khw joined 01:11 spider-mario left 01:14 vendethiel joined
ZoffixWin m: 'ǀǁǀǁǀǁǀǁǀǁǀǁǀǁ' ~~ /\W/ or say "No non-word characters here :P" 01:18
camelia rakudo-moar 86a90b: OUTPUT«No non-word characters here :P␤»
01:18 Zero_Dogg left 01:19 Zero_Dogg joined
AlexDaniel .u ǁ 01:24
yoleaux U+01C1 LATIN LETTER LATERAL CLICK [Lo] (ǁ)
sortiz m: use nqp; my $a=nqp::chr(0x20000); print $a; # Succeeds
camelia rakudo-moar 86a90b: OUTPUT«𠀀»
sortiz m: use nqp; my $a=nqp::chr(0x20000); print $a.perl; # Succeeds
camelia rakudo-moar 86a90b: OUTPUT«"𠀀"»
sortiz m: use nqp; my $a=nqp::chr(0x20000); print $a.gist; # Segfault! 01:25
camelia rakudo-moar 86a90b: OUTPUT«𠀀»
sortiz m: use nqp; my $a=nqp::chr(0x20000)~'a'; print $a 01:26
camelia rakudo-moar 86a90b: OUTPUT«𠀀a»
sortiz m: use nqp; my $a=nqp::chr(0x20000)~'a'; print $a.perl
camelia rakudo-moar 86a90b: OUTPUT«"𠀀a"»
sortiz m: use nqp; my $a=nqp::chr(0x20000)~'a'; print $a.gist
camelia rakudo-moar 86a90b: OUTPUT«𠀀a»
sortiz m: use nqp; my $a=nqp::chr(0x20000)~'a'; say $a
camelia rakudo-moar 86a90b: OUTPUT«𠀀a␤»
sortiz use nqp; my $a = nqp::chr(0x20000); put $a; 01:28
m: use nqp; my $a = nqp::chr(0x20000); put $a; 01:29
camelia rakudo-moar 86a90b: OUTPUT«(signal SEGV)»
sortiz m: use nqp; my $a = nqp::chr(0x20001); print $a;
camelia rakudo-moar 86a90b: OUTPUT«𠀁»
sortiz m: use nqp; my $a = nqp::chr(0x20001); put $a;
camelia rakudo-moar 86a90b: OUTPUT«(signal SEGV)»
diakopter boom 01:31
sortiz m: use nqp; my $a = nqp::chr(0x20001); print $a; 01:33
camelia rakudo-moar 86a90b: OUTPUT«𠀁»
sortiz m: use nqp; my $a = nqp::chr(0x20001); print $a~"\n";
camelia rakudo-moar 86a90b: OUTPUT«(signal SEGV)»
01:34 vendethiel left
sortiz m: use nqp; my $a = nqp::chr(0x20001)~"foo"; print $a; 01:35
camelia rakudo-moar 86a90b: OUTPUT«𠀁foo»
sortiz m: use nqp; my $a = nqp::chr(0x20001)~"foo"; $a ~ "\n"; say "I'm alive"; # The concant of "\n"? 01:36
camelia rakudo-moar 86a90b: OUTPUT«WARNINGS for /tmp/2h9kJ3Q4FR:␤Useless use of "~" in expression "$a ~ \"\\n\"" in sink context (line 1)␤I'm alive␤»
sortiz m: use nqp; my $a = nqp::chr(0x20001)~"foo"; my $b = $a ~ "\n"; say "I'm alive"; # The concant of "\n"? 01:37
camelia rakudo-moar 86a90b: OUTPUT«I'm alive␤»
sortiz m: use nqp; my $a = nqp::chr(0x20001)~"foo"; my $b = $a ~ "\n"; print $b;
camelia rakudo-moar 86a90b: OUTPUT«𠀁foo␤»
sortiz m: use nqp; my $a = nqp::chr(0x20001)~"foo"; my $b = $a ~ "\n"; say $b;
camelia rakudo-moar 86a90b: OUTPUT«𠀁foo␤␤»
sortiz m: use nqp; my $a = nqp::chr(0x20000); print $a~"\n"; 01:38
camelia rakudo-moar 86a90b: OUTPUT«(signal SEGV)»
sortiz Curios bug!
m: use nqp; my $a = nqp::chr(0x20000); print $a x 10; 01:39
camelia rakudo-moar 86a90b: OUTPUT«𠀀𠀀𠀀𠀀𠀀𠀀𠀀𠀀𠀀𠀀»
sortiz m: use nqp; my $a = nqp::chr(0x20000); print $a x 10 ~ "\n";
camelia rakudo-moar 86a90b: OUTPUT«(signal SEGV)»
diakopter m: use nqp; my $a = nqp::chr(0xF000000000000001); say $a
camelia rakudo-moar 86a90b: OUTPUT«␤»
diakopter wrong! 01:40
ZoffixWin m: use nqp; my $a = nqp::chr(2**63); say $a
camelia rakudo-moar 86a90b: OUTPUT«␀␤»
ZoffixWin heh
sortiz use nqp; my $a = nqp::chr(0x10fffff); say $a.uniname 01:41
m: use nqp; my $a = nqp::chr(0x10fffff); say $a.uniname
camelia rakudo-moar 86a90b: OUTPUT«<unassigned>␤»
ZoffixWin m: use nqp; my $a = nqp::chr( -1 + 2**63 ); say $a
camelia rakudo-moar 86a90b: OUTPUT«chr codepoint cannot be negative␤ in block <unit> at /tmp/rGRGSWqDeR line 1␤␤»
ZoffixWin :S
diakopter lol
sortiz m: use nqp; my $a = nqp::chr(0x10fffff-1); say $a.uniname
camelia rakudo-moar 86a90b: OUTPUT«<unassigned>␤»
sortiz m: use nqp; my $a = nqp::chr(0x20000); say $a.uniname
camelia rakudo-moar 86a90b: OUTPUT«<CJK Ideograph Extension B>␤»
sortiz m: use nqp; my $a = nqp::chr(0x20000-1); say $a.uniname 01:42
camelia rakudo-moar 86a90b: OUTPUT«<illegal>␤»
AlexDaniel yeah, sounds like an overflow somewhere
ZoffixWin calls the police
AlexDaniel possibly everywhere
diakopter popo
all over the place
time for a drink or 0xF
sortiz m: use nqp; my $a = nqp::chr(0x20000-1); print $a; 01:43
camelia rakudo-moar 86a90b: OUTPUT«\x{1FFFF}»
sortiz m: use nqp; my $a = nqp::chr(0x20000); print $a;
camelia rakudo-moar 86a90b: OUTPUT«𠀀»
AlexDaniel m: use nqp; my $a = nqp::chr(99999999999999999999999999999999); print $a;
camelia rakudo-moar 86a90b: OUTPUT«Cannot unbox 107 bit wide bigint into native integer␤ in block <unit> at /tmp/MQOFWD23sd line 1␤␤»
sortiz m: use nqp; my $a = nqp::chr(0x20000); print $a ~ "\n";
camelia rakudo-moar 86a90b: OUTPUT«(signal SEGV)»
sortiz m: use nqp; my $a = nqp::chr(0x20000); print $a ~ "ababasdaskaskasd";
camelia rakudo-moar 86a90b: OUTPUT«𠀀ababasdaskaskasd»
sortiz m: use nqp; my $a = nqp::chr(0x20000); print $a ~ "ababasdaskaskasd" ~ "\n"; 01:44
camelia rakudo-moar 86a90b: OUTPUT«𠀀ababasdaskaskasd␤»
sortiz m: use nqp; my $a = nqp::chr(0x20000); print $a ~ "" ~ "\n";
camelia rakudo-moar 86a90b: OUTPUT«(signal SEGV)»
AlexDaniel uh so, it does not always segfault?
sortiz Only when I appends a single NL 01:45
AlexDaniel m: use nqp; my $a = nqp::chr(0x20000); print $a ~ "" ~ "\r";
camelia rakudo-moar 86a90b: OUTPUT«(signal SEGV)»
01:45 yqt left
AlexDaniel m: use nqp; my $a = nqp::chr(0x20000); print $a ~ "" ~ "\t"; 01:45
camelia rakudo-moar 86a90b: OUTPUT«(signal SEGV)»
sortiz May be the escape? 01:46
AlexDaniel m: use nqp; my $a = nqp::chr(0x20000); print $a ~ "" ~ "\a";
camelia rakudo-moar 86a90b: OUTPUT«(signal SEGV)»
diakopter m: use nqp; my $a = nqp::chr(0x20000); print "$a\n\n";
camelia rakudo-moar 86a90b: OUTPUT«(signal SEGV)»
sortiz m: use nqp; my $a = nqp::chr(0x20000); print $a ~ "\xa0";
camelia rakudo-moar 86a90b: OUTPUT«𠀀 »
sortiz m: use nqp; my $a = nqp::chr(0x20000); print $a ~ "\x10"; 01:47
camelia rakudo-moar 86a90b: OUTPUT«(signal SEGV)»
sortiz m: use nqp; my $a = nqp::chr(0x20000); print $a ~ "\x20"; 01:48
camelia rakudo-moar 86a90b: OUTPUT«𠀀 »
sortiz m: use nqp; my $a = nqp::chr(0x20000); print $a ~ "\x1f";
camelia rakudo-moar 86a90b: OUTPUT«(signal SEGV)»
AlexDaniel m: use nqp; my $a = nqp::chr(0x20000); print $a ~ "" ~ "\c[10]"
camelia rakudo-moar 86a90b: OUTPUT«(signal SEGV)»
sortiz m: use nqp; my $a = nqp::chr(0x20000); print $a ~ "\x00"; 01:49
camelia rakudo-moar 86a90b: OUTPUT«(signal SEGV)»
sortiz A control char.
m: use nqp; my $a = nqp::chr(0x20000); print $a ~ "\x21";
camelia rakudo-moar 86a90b: OUTPUT«𠀀!»
sortiz m: use nqp; my $a = nqp::chr(0x20000-1); print $a ~ "\x10"; 01:50
camelia rakudo-moar 86a90b: OUTPUT«\x{1FFFF}»
sortiz m: use nqp; my $a = nqp::chr(0x20000+1000); print $a ~ "\x20";
camelia rakudo-moar 86a90b: OUTPUT«𠏨 »
AlexDaniel jeez. What code is responsible for that?
sortiz m: use nqp; my $a = nqp::chr(0x20000); my $b = $a ~ "\x10"; 01:51
camelia rakudo-moar 86a90b: OUTPUT«(signal SEGV)»
AlexDaniel rakudo: use nqp; my $a = nqp::chr(0x20000); print "\c[10]$a\c[10]"
camelia rakudo-moar 86a90b: OUTPUT«(signal SEGV)»
AlexDaniel jvm: use nqp; my $a = nqp::chr(0x20000); print "\c[10]$a\c[10]"
j: use nqp; my $a = nqp::chr(0x20000); print "\c[10]$a\c[10]"
camelia rakudo-jvm 6c0f93: OUTPUT«␤𠀀␤»
sortiz m: use nqp; my $a = nqp::chr(0x20000); my $b = $a ~ "\x10"; say "alive";
camelia rakudo-moar 86a90b: OUTPUT«(signal SEGV)»
sortiz And is at concat time, not print time. 01:52
AlexDaniel oh wow, GitHub shows a pink unicorn icon 01:54
“No server is currently available to service your request.”
yup, github down… 01:56
sortiz I'm golfing while waiting for it.
AlexDaniel ok I think that I have a copy of moarvm sources somewhere… 01:58
sortiz I'm suspecting of MVM_string_join, but is the first time that read that code. 01:59
AlexDaniel sortiz: but it could be anything? What about normalization? 02:00
that github issue reminds me once again that it is a good idea to have a mirror on bitbucket 02:01
or gitlab, or everywhere at the same time
because why not
git is distributed after all 02:02
sortiz Seems that the normalization is done in string_chr, the implementation of chr op.
ZoffixWin dam github is *still* down...
sortiz And faults when joining. 02:03
ZoffixWin Good thing there's Git Torrent: github.com/cjb/GitTorrent
i0.kym-cdn.com/photos/images/newsfe...1296494117
02:07 secwang joined 02:08 secwang left
AlexDaniel sortiz: nah, that requires some debugging 02:08
m: use nqp; my $a = nqp::chr(0x20000); say $a ~ "{say ‘hello’; ‘’}\c[10]{say ‘world’; ‘’}" 02:12
camelia rakudo-moar 86a90b: OUTPUT«(signal SEGV)hello␤world␤»
AlexDaniel m: use nqp; my $a = nqp::chr(0x20000); say $a ~ "{say ‘hello’; ‘’}\c[10]{say ‘world’; ‘’}" ~ "{say ‘another’}" 02:13
camelia rakudo-moar 86a90b: OUTPUT«(signal SEGV)hello␤world␤»
sortiz Indeed 02:14
02:14 llfourn joined, secwang joined
AlexDaniel m: say Buf.new(0x20000, 10).decode 02:18
camelia rakudo-moar 86a90b: OUTPUT«␀␤␤»
AlexDaniel m: say Buf.new(0x20000, 10).decode.ords 02:19
camelia rakudo-moar 86a90b: OUTPUT«(0 10)␤»
AlexDaniel m: say Buf.new(0x20000, 65).decode.ords
camelia rakudo-moar 86a90b: OUTPUT«(0 65)␤»
AlexDaniel “Sorry, we're down for maintenance” 02:20
ZoffixWin: ↑ does that sound fair?
02:20 secwang left
sortiz "We're working to address a widespread issue affecting all github.com services." 02:20
AlexDaniel sortiz: ten minutes ago the error was different
and now it is “maintenance” 02:21
like if it was planned, aha
02:21 secwang joined 02:22 xpen joined
sortiz status.github.com/messages 02:22
ZoffixWin AlexDaniel, fair with respect to what? :)
llfourn "We're continuing to address a widespread issue affecting all github.com services." # ah good now they're continuing
ZoffixWin NSA backdoors take time to install :) Just relax ^_^ 02:23
llfourn NSA backdoors shouldn't involve downtime this is 2016
sortiz Lol, see the message for Jan 28, 00:00 CST 02:24
ZoffixWin What about it? :) 02:28
sortiz In CST right now is Jan 27 yet 02:30
The have a pessimistic crystal ball!? 02:31
ZoffixWin Ah :) 02:32
llfourn it's back up
(for me)
ZoffixWin Great. RIGHT when I decide to go to bed :D
Yeah, up for me too. FAST too!
02:32 alber left 02:38 sufrostico left
sortiz m: use nqp; my $a := nqp::chr(0x20000); nqp::concat($a,"\n"); # For the record only 02:38
camelia rakudo-moar 86a90b: OUTPUT«(signal SEGV)»
02:39 kaare_ joined
sortiz o/ dinner time 02:49
dalek osystem: 497883e | thundergnat++ | META.list:
Add ACME::Vanish to the ecosystem

In the spirit of ACME::Bleach. See github.com/thundergnat/ACME-Vanish
02:52
02:57 kaare_ left 03:00 Actualeyes left, Upasaka left 03:03 addison_ left 03:06 skids joined 03:09 kid51_ joined 03:10 kid51 left
dalek osystem: a9233a3 | thundergnat++ | META.list:
Update meta list

Fix case of Acme::Vanish. sigh. thundergnat--
03:14
03:14 kid51_ left 03:24 secwang left 03:25 AW3i left
MadcapJake If I'm building a module that just has a binary, do I still need to include it in «provides» hash? 03:25
llfourn would like to know the answer to this too 03:26
03:29 fa left, yurivish joined
MadcapJake looks like some of the `App::*` do and some don't :/ 03:30
03:31 secwang joined 03:34 coetry joined
coetry how do I get the value of the last value in my repl? 03:34
is it a special variable like $*?
03:38 itaipu left 03:39 noganex_ joined
MadcapJake coetry: I don't think it's possible, can use linenoise or rlwrap to just go through history and prefix a variable assignment 03:39
03:42 noganex left 03:43 coetry left 03:45 nanis joined 03:48 nanis left
MadcapJake Anyone on able to handle ecosystem additions? 03:55
dalek osystem: af3a3ee | (Jake Russo)++ | META.list:
Add App::P6Dx
03:57
osystem: 7bcfe6d | LLFourn++ | META.list:
Merge pull request #137 from MadcapJake/master

Add App::P6Dx github.com/MadcapJake/p6dx
MadcapJake llfourn++ 03:58
llfourn MadcapJake: no worries :)
MadcapJake Can't wait to see it on the site!
03:58 bjz joined
MadcapJake is giddy with anticipation 03:58
How do you add a logo? just a `logotype` folder with a 32x32 img in it? 03:59
llfourn .tell moritz can you consider adding MadcapJake++ to Perl 6 org on github github.com/MadcapJake
yoleaux llfourn: I'll pass your message to moritz.
MadcapJake O_O
llfourn you don't want? :) 04:00
MadcapJake that'd be cool! just surprised! 04:01
llfourn well you have contributed a lot more than I had when I was firt added!
04:07 Actualeyes joined
diakopter added 04:07
llfourn diakopter++ thanks!
MadcapJake wow thanks diakopter llfourn ! so cool! B) 04:10
diakopter basically anyone can be added to the perl6 org if they ask 04:11
MadcapJake diakopter: oh! well still feels great! first real organization I'm a part of on github! 04:12
Man the ecosystem has really grown since last I've browsed it. So many cool modules! 04:15
llfourn .tell moritz nvm diakopter++ has done it
yoleaux llfourn: I'll pass your message to moritz.
llfourn is there a way to delete a .tell?
MadcapJake .help 04:16
yoleaux MadcapJake: I'm yoleaux. Type .commands to see what I can do, or see dpk.io/yoleaux for a quick guide.
MadcapJake doesn't look like it
llfourn hhmm cool thanks anyway 04:17
MadcapJake .tw MadcapJake
yoleaux Y Combinator would like to sponsor research on Basic Income: blog.ycombinator.com/basic-income (@steveklabnik, retweeted by @MadcapJake)
MadcapJake haha
diakopter what is .tw 04:18
oh
MadcapJake gets the last tweet of a handle
.tw perl6 04:19
yoleaux perl6.org/ perl6 - come and get it (@perl6)
MadcapJake .mangle Perl 6 is the greatest language in the history of all languages ever developed naturally or artificially. 04:22
yoleaux 6 treasures in all the languages ​​spoken in the natural or artificially created.
TimToady considers whether he's ever spoken Perl 6 in the natural... 04:23
04:23 coetry joined
MadcapJake Well we'd need to develop a system of phrases for all symbols, perhaps some shortcuts to ease speaking 04:23
.mangle Well we'd need to develop a system of phrases for all symbols, perhaps some shortcuts to ease speaking. 04:24
yoleaux Now we have all the characters, maybe some links to speaking easily is to create a system of registration.
MadcapJake lol
mangle is by far my favorite yoleaux feature
AlexDaniel this is actually required for github.com/perl6/doc/issues/155 04:25
MadcapJake . o 0 ( I should write a perl6 version of mangle! )
AlexDaniel perhaps we should borrow some names from INTERCAL 04:26
MadcapJake Why not just translate into html escape codes?
llfourn 04:27
AlexDaniel www.muppetlabs.com/~breadbox/interc...nsila.html
MadcapJake glazes over as he reads INTERCAL wikipedia article
lol "two-spot" 04:28
these names are amazing
AlexDaniel / – slat :) 04:29
MadcapJake mesh and half-mesh (#, =) xD 04:30
AlexDaniel every single one is funny :)
wow! what? :))
MadcapJake yes they are!
AlexDaniel any reason why we can't steal those? 04:31
skids "shark (or simply sharkfin)" erm... 04:32
AlexDaniel ¯ – overline??? It feels like a flying worm!
or “flyworm” 04:33
* Got any better ideas?
MadcapJake I think that would be a great idea! At least post it in for discussion.
AlexDaniel MadcapJake: already did 04:34
at least for issue 155
MadcapJake is struggling not to enter `:+1:` as a comment on #155 04:35
The added bonus is the confused face people will have when they read the url :P 04:36
AlexDaniel $/ – big-money-slat 04:38
MadcapJake I need to get my hands on one of these INTERCAL manuals
"Caution! Under no circumstances confuse the mesh with the interleave operator, except under confusing circumstances!"
AlexDaniel MadcapJake: yeah! It also feels a bit perl-ish sometimes :) 04:39
the style, I mean
+^ – intersection shark :* 04:40
oops
:D
04:41 secwang left 04:42 secwang joined
TimToady .tell cat_ note that variable return has been specced for some time, but not yet implemented; see S06:688 04:43
yoleaux TimToady: I'll pass your message to cat_.
MadcapJake TimToady: cool! I'd also like to see that. Not a C++ programmer but I've played around with Mozart/Oz which uses a similar pattern 04:45
04:47 bjz left
TimToady we already support it for definite constants, basically 04:47
m: sub foo (--> 42) { 43 }; say foo
camelia rakudo-moar 86a90b: OUTPUT«WARNINGS for /tmp/sb6DjZT2sY:␤Useless use of constant integer 43 in sink context (line 1)␤42␤»
AlexDaniel m: sub A(--> 42) {}; say &A.returns 04:49
camelia rakudo-moar 86a90b: OUTPUT«(Int)␤»
AlexDaniel m: sub A(--> (42 => 69)) {}; say &A.returns 04:51
camelia rakudo-moar 86a90b: OUTPUT«5===SORRY!5=== Error while compiling /tmp/kyxF_M6Ibw␤Malformed return value␤at /tmp/kyxF_M6Ibw:1␤------> 3sub A(-->7⏏5 (42 => 69)) {}; say &A.returns␤»
AlexDaniel hm, how can I return a pair? :)
sjn m: sub P(--> Pair) { :k("v") }; say P() 04:54
camelia rakudo-moar 86a90b: OUTPUT«k => v␤»
sjn m: sub P(--> Pair) { :k("v") }; say P(); say &P.returns;
camelia rakudo-moar 86a90b: OUTPUT«k => v␤(Pair)␤»
MadcapJake How often does the module site update?
04:55 psy left
AlexDaniel sjn: sure, but a fixed one? 04:55
m: sub A(--> 42) {}; say &A.returns 04:56
camelia rakudo-moar 86a90b: OUTPUT«(Int)␤»
AlexDaniel m: sub A(--> 42.0) {}; say &A.returns
camelia rakudo-moar 86a90b: OUTPUT«(Rat)␤»
AlexDaniel m: sub A(--> 42e0) {}; say &A.returns
camelia rakudo-moar 86a90b: OUTPUT«(Num)␤»
AlexDaniel great, I want a pair :)
MadcapJake m: constant pair = k => 'v'; sub p(--> pair) {}; say $p.returns 05:00
camelia rakudo-moar 86a90b: OUTPUT«5===SORRY!5=== Error while compiling /tmp/E30yIe2EXk␤Variable '$p' is not declared. Did you mean '&p'?␤at /tmp/E30yIe2EXk:1␤------> 3air = k => 'v'; sub p(--> pair) {}; say 7⏏5$p.returns␤»
MadcapJake m: constant pair = k => 'v'; sub p(--> pair) {}; say &p.returns
camelia rakudo-moar 86a90b: OUTPUT«(Pair)␤»
sjn yeah, that makes sense 05:01
if you only want to return one thing, make a constant
AlexDaniel okay
skids m: sub a (--> Thing.new) { }; &a.returns.say 05:02
camelia rakudo-moar 86a90b: OUTPUT«5===SORRY!5=== Error while compiling /tmp/jvG60KUaiY␤Type 'Thing' is not declared␤at /tmp/jvG60KUaiY:1␤------> 3sub a (--> Thing7⏏5.new) { }; &a.returns.say␤»
skids m: sub a (--> Pair.new) { }; &a.returns.say
camelia rakudo-moar 86a90b: OUTPUT«5===SORRY!5=== Error while compiling /tmp/qQi3i2Vu1o␤Type 'Pair' is not declared␤at /tmp/qQi3i2Vu1o:1␤------> 3sub a (--> Pair7⏏5.new) { }; &a.returns.say␤»
AlexDaniel skids: it's kinda interesting that you cannot put any piece of code there, hm 05:03
skids Wel, more that "type Pair is not declared" :-)
AlexDaniel skids: nah, that's a typical response
05:04 TEttinger left
AlexDaniel skids: it was reported many times in different places, I think that the fix would be global 05:04
(but honestly I have no idea)
05:04 TEttinger joined
AlexDaniel rt.perl.org/Public/Bug/Display.html?id=125902 05:04
at least one that I can find
MadcapJake it's a signature and it seems the --> only accepts types or constants, not objects/lists/maps apparently 05:05
sjn thinks that makes sense 05:06
AlexDaniel m: Pair $x where 42 => 69;
camelia rakudo-moar 86a90b: OUTPUT«5===SORRY!5=== Error while compiling /tmp/0vlPKzZ7vD␤Two terms in a row␤at /tmp/0vlPKzZ7vD:1␤------> 3Pair7⏏5 $x where 42 => 69;␤ expecting any of:␤ infix␤ infix stopper␤ statement end␤ statement mod…»
MadcapJake m: constant pair = Pair.new; sub p(--> pair) {}; say &p.returns
camelia rakudo-moar 86a90b: OUTPUT«(Pair)␤»
AlexDaniel m: constant pair = 42 => 69; Pair $x where pair;
camelia rakudo-moar 86a90b: OUTPUT«5===SORRY!5=== Error while compiling /tmp/4mKcMJjOL6␤Two terms in a row␤at /tmp/4mKcMJjOL6:1␤------> 3constant pair = 42 => 69; Pair7⏏5 $x where pair;␤ expecting any of:␤ infix␤ infix stopper␤ statement end…»
AlexDaniel m: constant pair = 42 => 69; my Pair $x where pair;
camelia ( no output )
AlexDaniel m: my Pair $x where 42 => 69; 05:07
camelia rakudo-moar 86a90b: OUTPUT«5===SORRY!5=== Error while compiling /tmp/qvSuuoGR2A␤Preceding context expects a term, but found infix > instead␤at /tmp/qvSuuoGR2A:1␤------> 3my Pair $x where 42 =>7⏏5 69;␤»
AlexDaniel m: constant pair = 42 => 69; my Pair $x where pair; $x = 42 => 69
camelia ( no output )
AlexDaniel m: constant pair = 42 => 69; my Pair $x where pair; $x = 42 => 68
camelia rakudo-moar 86a90b: OUTPUT«Type check failed in assignment to $x; expected <anon> but got Pair␤ in block <unit> at /tmp/RqNsvuRLae line 1␤␤»
AlexDaniel hehe
05:10 nige1 joined, coetry left 05:13 coetry joined 05:18 AlexDaniel left 05:20 wamba joined 05:21 coetry left 05:30 nige1 left 05:36 vendethiel joined 05:40 avenj left 05:41 Kogurr left 05:45 Cabanossi left 05:46 Cabanossi joined 05:56 khw left 06:10 sortiz left 06:11 nightfrog left 06:20 vendethiel left 06:21 vendethiel joined 06:23 _Gustaf_ joined 06:33 raiph left 06:35 cuonglm joined
cuonglm How can I get signal information base on OS 06:38
In Linux, SIGSTOP is 19
but perl6 -e 'for Signal.enums.kv -> $k, $v { say $v if $k ~~ "SIGSTOP"}'
give me 17
06:43 vendethiel left 06:47 darutoko joined 06:50 vendethiel joined 06:53 laz78 joined 06:55 sjoshi joined, skids left
diakopter m: say Signal::SIGSTOP.kv 06:55
camelia rakudo-moar 86a90b: OUTPUT«(SIGSTOP 17)␤»
cuonglm diakopter: Any ideal? 06:57
diakopter well, camelia is certainly on Linux 06:58
06:59 geraud left
diakopter but yeah, STOP as 17 seems more POSIX-y 07:00
07:02 laz78 left
cuonglm diakopter: Yeah, but how can I archive the right thing? Is there any OS dependent API? 07:03
It's painful if you use that information for parsing, example `/proc/<pid>/status`
There, if a process setup to catch signal 17, it's SIGCHLD 07:05
but perl6 give you SIGSTOP, which can't be caught as specified by POSIX 07:06
:|
07:08 bjz joined, babaj joined 07:13 CIAvash joined, vendethiel left 07:14 vendethiel joined 07:15 Actualeyes left
JimmyZ cuonglm : as per man7.org/linux/man-pages/man7/signal.7.html 07:16
Where three values are given, the first one is usually valid for alpha and sparc, the middle one for x86, arm, and most other architectures, and the last one for mips.
so we are using the first one
not sure what Perl6 spec wants 07:18
dalek osystem: 0e8a583 | (Jake Russo)++ | META.list:
Add Acme::Mangle

A libtranslate wrapper that mangles text similarly to yoleaux's `.mangle` command
07:19
osystem: 5544990 | (Jake Russo)++ | META.list:
Merge pull request #138 from MadcapJake/master

Add Acme::Mangle
JimmyZ cuonglm: maybe a send a RT or PR may help improving it
MadcapJake guess I didn't need to do it on my own fork now :P 07:20
07:22 domidumont joined, domidumont left
cuonglm JimmyZ: Most language I tried is OS dependent, Perl 5, too (via $Config{sig_name}) 07:23
07:23 domidumont joined
cuonglm I will, but RT process seems to be slow, I had submitted a ticket without much notice rt.perl.org/Public/Bug/Display.html?id=127370 07:25
JimmyZ cuonglm: maybe a PR could be faster? 07:26
07:27 domidumont left
JimmyZ cuonglm: only if jnthn++ agrees, we can merge it quickly 07:28
07:28 domidumont joined
cuonglm JimmyZ: Do you know Perl 6 documentation for Signal? 07:31
07:32 Kogurr joined 07:33 apathor left
JimmyZ cuonglm: no, I think patch always comes firstly, then docs 07:33
07:34 apathor joined 07:37 nakiro joined, avenj joined, avenj left, avenj joined, laz78 joined, laz78 left
nine cuonglm: it's not RT. It's that as with pretty much every free software project (or even commercial) there are more people reporting bugs than people fixing bugs. 07:40
07:41 laz78 joined 07:42 laz78 left 07:44 firstdayonthejob joined
cuonglm nine: Yeah, I know that. But I mean it seems that the maintainers did not look at it 07:45
07:45 laz78 joined 07:51 Actualeyes joined
moritz cuonglm: you can't know that, so please don't assume the worst 07:52
yoleaux 03:59Z <llfourn> moritz: can you consider adding MadcapJake++ to Perl 6 org on github github.com/MadcapJake
04:15Z <llfourn> moritz: nvm diakopter++ has done it
07:56 abaugher_ left, vendethiel left, abaugher_ joined
cuonglm moritz: Yeah, I don't assume anything, just my feeling. Anyway, I'm very happy with Perl community 07:57
[Tux] csv-ip5xs 18.596 07:58
test 22.378
test-t 12.139
csv-parser 49.195
07:59 RabidGravy joined 08:00 vendethiel joined 08:01 wamba left 08:03 FROGGS joined
RabidGravy marning! 08:05
08:09 zakharyas joined
masak morning, #perl6 08:13
08:14 laz78 left
RabidGravy erp 08:14
moritz \o 08:16
08:19 llfourn_ joined, llfourn left 08:20 Actualeyes left 08:21 secwang left 08:27 bowtie_ left
sjn good *, #perl6 08:29
moritz \o sjn 08:30
08:34 bowtie joined, bowtie is now known as Guest27803 08:40 firstdayonthejob left
lizmat good *, #perl6! 08:41
m: my $s = SetHash.new; $s{$s} = 1; dd $s # another case of recursive data structures we need to cover
08:41 Actualeyes joined
camelia rakudo-moar 86a90b: OUTPUT«Memory allocation failed; could not allocate 3984 bytes␤» 08:42
08:42 vendethiel left
moritz na, we just need more memory on the eval server :-) 08:44
08:46 labster joined 08:47 brrt joined
brrt good * #perl6 08:47
labster good * brrt
m: my $errors = 3; my @stuff = flat ("abc" xx 255) Z ("12" xx 128+$errors); for @stuff -> $line { unless $line ~~ m/1/ { say "seen: $line" if $line.index("2"); }; if $line ~~ m/9/ { }; } 08:48
camelia rakudo-moar 86a90b: OUTPUT«seen: 12␤seen: 12␤seen: 12␤»
08:48 dakkar_ joined
brrt [Tux]: that's not too good, is it? 08:48
08:57 Actualeyes left
lizmat m: my $s = set( $(<a b c>) ); dd $s.hash # argh, uncaught bug :-( 08:58
camelia rakudo-moar 86a90b: OUTPUT«Hash %e = {"a b c" => Bool::True}␤»
09:01 yeahnoob left 09:03 yeahnoob joined
lizmat I expected: Hash[Any,Any] % = (my Any %{Any} = (("a", "b", "c")) => 1) 09:04
well, => Bool::True 09:05
I rakudobugged both so that they don't fall through the cracks once we know how to continue developing 09:06
labster files rakudobug after an hour and a half of golfing 09:08
09:08 DrPete joined 09:09 labster left, labster joined 09:10 TEttinger left 09:11 TEttinger joined
lizmat labster: do any of them go away with MVM_SPESH_DISABLE=1 ? 09:14
labster maybe? How do I use that again? 09:15
lizmat MVM_SPESH_DISABLE=1 perl6 golf.pl 09:16
yup, no errors with MVM_SPESH_DISABLE=1 09:17
labster I'm entirely unsurprised -.- 09:18
09:19 abraxxa joined
lizmat labster: I added a note 09:19
labster Thank you lizmat++
brrt :-( 09:24
lizmat: what is the bug here?
09:24 leont joined
brrt and, sensitive to JIT or not? 09:25
cuonglm JimmyZ: Found it
lizmat no, SPESH, MVM_JIT_DISABLE doesn't make a difference
cuonglm :m $*KERNEL.signal("SIGSTOP")
brrt :-(
lizmat brrt: well, that would imply that it's not JIT that's to blame, no ? 09:26
cuonglm :m say $*KERNEL.signal("SIGSTOP") 09:27
brrt true, but JIT is often a smaller bug surface than spesh 09:29
09:29 bjz left 09:30 bjz joined
cuonglm camelia: help 09:32
camelia cuonglm: Usage: <(nqp-jvm|star-j|nqp-parrot|prof-m|niecza|rakudo-moar|std|debug-cat|nqp-moarvm|p5-to-p6|pugs|rakudo-jvm|nqp-js|star-m|rakudo-MOAR|rj|Prn|nqp-p|P|j|nr|m|rakudo|nqp-q|nqp-j|r-j|Pnr|M|nom|rPn|nqp|nPr|nqp-mvm|star|sm|nrP|sj|p56|nqp-m|rn|r-m|r-jvm|p6|n|rm|perl6|r|rnP)(?^::\s(?!OUTPUT))
..$perl6_program>
cuonglm perl6: say $*KERNEL.signal("SIGSTOP") 09:33
camelia rakudo-jvm 6c0f93: OUTPUT«Method 'signal' not found for invocant of class 'Kernel'␤ in block <unit> at /tmp/tmpfile:1␤␤»
..rakudo-moar 86a90b: OUTPUT«19␤»
09:36 Perleone joined, Zero_Dogg left
Perleone Greetings to the Perl 6 crew! 09:36
09:36 Zero_Dogg joined, Zero_Dogg left, Zero_Dogg joined 09:37 bjz left, bjz_ joined 09:39 pmurias joined
pmurias Perleone: hi 09:39
|Tux| brrt, 12.1 is fine. See tux.nl/Talks/CSV6/speed4.html 09:40
09:41 MARTIMM joined 09:42 adu joined
brrt ah, cool 09:42
fwiw, starting perl6-with-nativecall easily takes the better part of a second on $laptop 09:43
and $laptop is fast
autogen_ nice
that's pretty exciting
09:45 vendethiel joined 09:48 leont left
timotimo idly considers building The Great Github Mirrorwall Of Cameliand 09:59
09:59 lnrdo joined 10:02 labster left
dalek kudo/nom: 4b29d7e | ugexe++ | .travis.yml:
Add osx to travis test matrix
10:02
kudo/nom: 7801920 | FROGGS++ | .travis.yml:
Merge pull request #695 from ugexe/patch-1

Add osx to travis test matrix
10:05 dj_goku left 10:10 Kogurr left
Perleone I run Ubuntu 14.04 LTS with gcc version 4.8.4. Upon "rakudobrew build moar 2015.12" I get several warnings like these: travis-ci.org/cygx/p6-native-libc/...34517#L217 10:11
10:12 itaipu joined 10:13 ely-se joined, yeahnoob left
timotimo what kind of machine is that? 32bit machine? 10:16
geekosaur I think that's still right on 32 bit? my recollection is this kind of thing is mostly because windows 64 bit requires (long long int) for 64 bit values, and doing The Right Thing is annoying 10:19
Perleone timotimo: No, 64 bit kernel and userland. 3.13.0-74-generic #118-Ubuntu SMP Thu Dec 17 22:52:10 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux 10:20
The build itself runs successfully. It's just that the warnings annoy me somewhat. :)
geekosaur so the warnings are technically correct because (long long [unsigned] int) is allowed to be 128 bits, but in practice it never is, and otherwise it's hard to deal with win64 :/ 10:21
sadly, it's often the case that portability means you take some warnings, because pedantically correct means nonportable 10:23
(especially with printf format warnings because formats always seem to be missing a few portability options) 10:25
brrt (timotimo: whaddayamean?)
timotimo brrt: about what? 10:26
brrt The Great Github Mirrorwall of Cameliand 10:27
timotimo well, it'd have mirrors of all interesting perl6-related repositories that it'd refresh regularly
brrt printf warnings can be fixed by insertint "PRId64" etc everywhere 10:28
this is hardly ever worth it
oh, timotimo, i think that's a great idea
geekosaur ...a billion open source projects cried out in terror and were suddenly silenced... 10:29
10:29 wamba joined
brrt and then resurrected as developers pushed their repos to the next big thing 10:29
anyone recall repo.or.cz 10:30
timotimo yeah, i do
brrt :-)
timotimo you can tell by me having "timo" that i'm an "early adopter" of github
brrt wonders if he could have gotten brrt 10:31
jnthn was early enough to get jnthn on github 10:34
:)
geekosaur notes that he is actually a rather late adopter, but still got geekosaur :p
timotimo well, clearly getting a nick with that many graphemes isn't that hard :P 10:35
geekosaur dunno, it was taken already on gmail when I signed up and I *was* an early adopter there >.>
timotimo tells you something about how many people need email vs how many people need git hostang 10:36
hosting
geekosaur (that said, I only checked out of curiosity; wanted something closer to my wallet name anyway. there's this thing about sending e.g. job application mail from "weird" accounts... matters less these days then it did then) 10:37
"unprofessional"
timotimo [email@hidden.address] :P
10:42 MARTIMM left 10:43 brrt` joined 10:44 brrt left 10:46 nightfrog joined
geekosaur (these days there's a tension between "geekosaur" being the "well known" online ID vs. a more "professional" ID. and then I find myself remembering Vinge's "True Names" and wondering a bit...) 10:46
10:54 vendethiel left 10:55 TEttinger left 11:00 rindolf joined
brrt` fortunately for me there is no such thing as a professional 'brrt' :-) 11:03
yet, at least
11:03 ely-se left 11:04 adu left
timotimo wouldn't a backtick at the end of your name be considered "unprofessional"? :) 11:10
11:13 lnrdo left
El_Che geekosaur: I like to miss names. I like privacy and confussion :) 11:13
mix
profan timotimo: im sure it's there to confuse the lisp programmers ;)
timotimo ah
11:14 espadrine_ joined, cuonglm left 11:17 vendethiel joined 11:18 fireartist joined
fireartist Hi. What's the correct way to test whether a module is loaded after using `try require Foo` ? 11:20
yoleaux 26 Jan 2016 20:11Z <b2gills> fireartist: Please tell me that you aren't copying Games::Lacuna::Client wholesale to Perl 6. It is in desperate need of restructuring. I already did some of it. I would have done more, but I decided it would be easier to start from scratch (even in Perl 5). (never got a round tuit though)
moritz fireartist: check $! 11:21
fireartist ok, so maybe LWP::Simple needs a $var to track whether SSL is available...
it's currently testing: if ::('IO::Socket::SSL;) ~~ Failure 11:22
which isn't working as expected
dalek osystem: a5c0e64 | (LE Manh Cuong)++ | META.list:
Add Linux::Process::SignalInfo to ecosystem

See github.com/Gnouc/p6-linux-process-signalinfo
11:25
osystem: 9e1e42d | azawawi++ | META.list:
Merge pull request #139 from Gnouc/master

Add Linux::Process::SignalInfo to ecosystem
fireartist hmm, panda appeared to install IO::Socket::SSL fine, but perl6 isn't finding it - looks like it isn't LWP::Simple's fault - I'll investigate further 11:28
Perleone moritz: I noticed that perl6.org and www.perl6.org both serve the same stuff. Shouldn't one be a redirect to the other, like on perl.org? I don't much care wich version becomes canonical, as long as there is one.
moritz Perleone: could be. Should? Dunno 11:29
Perleone Well, actually www.perl6.org would be preferrable, since it was just highlighted by my IRC client, whereas perl6.org was not.
moritz prefers without the www
ZoffixWin too
moritz and here we are :-)
Perleone So just pick/vote for one. 11:30
moritz one more thing: It can't be a catch-all redirect; we can't get certificates for a subdomain that doesn't serve files
(via let's encrypt)
11:30 espadrine_ is now known as espadrine
Perleone Ooh, DNS wildcards. Why? :) 11:31
moritz because the domain is not under our control 11:32
Perleone perleone.perl6.org/ no no no
moritz if we didn't have DNS wildcards, we'd have to mail the ower back and force each time we want a subdomain
Perleone: I can give you access to improve the apache configuration if you ant 11:35
*want
Perleone So what valid subdomains are currently configured? www, doc, design
ZoffixWin docs too, there's tablet(s?) IIRC
modules.
Perleone moritz: I'd like that very much. Plus, it's my $DAYJOB :) 11:36
moritz irc,design,doc,ecosystem-api,examples,faq,gtk-dlls,modules,smoke,tablets,testers
Perleone: please /msg me an ssh pubkey
Perleone: and please make sure letsencrypt certificate refresh still works afterwards (run more-certs.sh in /root/letsencrypt) 11:37
timotimo i'm in the no-www camp :) 11:38
moritz also an open TODO in the apache config: the ssl versions are mostly copied and pasted from the non-ssl versions; unifying them (possibly through includes) would be awesome 11:39
11:40 lnrdo joined, kaare_ joined 11:42 edehont joined 11:47 Amendil left
fireartist ok, IO::Socket::SSL didn't install the first time I tried, not sure why - but I do have LWP::Simple working with https now 11:48
"I've found a bug!!" ... "oh, wait, never mind" :-) 11:49
11:55 lnrdo left, RabidGravy left 11:56 lnrdo joined 12:04 vendethiel left, Skarsnik joined 12:06 vendethiel joined 12:08 ely-se joined 12:09 itaipu left 12:14 CIAvash left 12:28 vendethiel left 12:32 vendethiel joined, AlexDaniel joined 12:39 kid51 joined 12:40 lnrdo left 12:42 MARTIMM joined 12:43 jameslenz left 12:44 brrt` is now known as brrt, mohae joined 12:47 mohae_ left 12:48 xpen left 12:53 vendethiel left 12:58 kid51 left 13:00 jameslenz joined, vendethiel joined 13:03 lnrdo joined, lnrdo left 13:05 itaipu joined 13:07 g4 joined, g4 left, g4 joined 13:24 vendethiel left 13:26 gfldex left, lnrdo joined 13:27 lnrdo left 13:29 gfldex joined 13:41 abaugher_ left 13:45 Actualeyes joined 13:50 Actualeyes left 13:52 sjoshi left, abaugher joined, abaugher left, abaugher_ joined
gfldex m: my %r; %r<a>.push(1); %r<a>.push(2); dd %r; 13:54
camelia rakudo-moar 780192: OUTPUT«Hash %r = {:a($[1, 2])}␤»
gfldex where does that .push actually come from?
jnthn Any
It's constrained to work only on :U things, and auto-vivs 13:55
dalek osystem: ab5e12c | (Zoffix Znet)++ | META.list:
Remove useless modules

Toss Acme::GiveUp and WWW::You'reDoingItWrong on account of being useless clutter.
gfldex i shall doc!
jnthn gfldex++ # docs
14:01 lokien_ joined
|Tux| jnthn, did you have a look at RT#127358 and/or formed an opinion? 14:02
14:04 cdg joined
jnthn |Tux|: I looked. My opinion is the default is correct, and will remain that way, and we'll implement an option to not get the default behavior. 14:04
14:05 Upasaka joined
jnthn (That is, to do no transformation.) 14:05
Probably :!transform-nl or so
|Tux| thumbs up. I'll just wait for a ping to use whatever is provided 14:06
14:09 sjoshi joined
fireartist If I have a hash in "$config<opts>" whose keys match the named params of a method - how do I pass the hash? 14:09
moritz $obj.themethod(|$config<opts>)
fireartist ah, thank you! 14:10
dalek c: 72e466e | (Wenzel P. P. Peppmeyer)++ | doc/Type/Any.pod:
doc Any.push
14:11
fireartist despite reading every* perl6 blog post in the past 10 years, making the switch from writing perl5 to perl6 is /hard/ (but I am enjoying it) 14:14
* almost
jast it's basically learning a new language :) 14:15
moritz you only learn a language by speaking/writing it 14:17
... as I've painfully learned many times myself :-)
14:21 Actualeyes joined, molaf joined 14:23 skids joined
Juerd fireartist: Having read too much doesn't help either, because a lot from 10 years ago has already changed. 14:27
14:27 g4 left
fireartist true, I'm making good use of 5to6-nutshell :) 14:30
14:31 gregf_ left 14:34 cschwenz joined
Perleone I've done "panda install Data::Dump" -- now I'd like to read its man page. But I cannot find the lib/Data/Dump.pm6 file. Or any perl6doc. 14:34
However, the module itself loads fine, no errors. But where does it live?
lizmat install/share/perl6/sources 14:39
.tell nine are multiple copies of source files suppose to exist in install/share/perl6/sources? 14:40
yoleaux lizmat: I'll pass your message to nine.
14:42 eyck left, gregf_ joined
Perleone lizmat: The only filenames there are sha1sums 14:48
lizmat and in there are source files :-)
I'm actually less sure now whether that is where your installed modules live 14:50
Perleone ./install/share/perl6/site/sources/93EDD1CA3BD55EC1ECC2ADDDA0D3A7B34F156165 -- good luck with locate ;-)
So currently the only way to find a module is grep -r ? 14:51
lizmat there seems to be a CompUnit::Util like module in the ecosystem, haven't tried it myself yet 14:52
[Coke] jdv79: some spectest is probably deadlocked. 14:53
yoleaux 27 Jan 2016 22:28Z <jdv79> [Coke]: would you mind keepin your node in check?
[Coke] oh, new failure mode, nqp-js is chewing a CPU on build. 14:54
[Coke] reminds folks testing code in camelia that you can do it in private messages, too. 14:57
14:58 lizmat left
Perleone perl6 --doc ./install/share/perl6/site/sources/93EDD1CA3BD55EC1ECC2ADDDA0D3A7B34F156165 would be what I am looking for -- except that Data::Dump does not contain any inline documentation. 14:59
tony-o_ Perleone: github.com/tony-o/perl6-data-dump/ 15:00
Perleone But Terminal::ANSIColor does! perl6 --doc ./install/share/perl6/site/sources/A943B421EC631806B1F4A31331671E87D637235C
tony-o_ it's all in MD
Perleone tony-o_: Yes, I know, but I'm so used to perldoc I'd like to keep it in the shell, preferrably with something like perl6doc
tony-o_ Perleone: are you on github? 15:01
15:01 cschwenz left
Perleone tony-o_: Yep 15:02
tony-o_ if you open an issue then i can add pod to the file (so that i can update you when it's done), otherwise i'll open the issue and add it
Perleone tony-o_: Very gracious, thank you. Done. 15:05
15:06 cschwenz joined, cschwenz left 15:07 lizmat joined 15:09 RabidGravy joined 15:10 lizmat left 15:11 lizmat joined 15:13 sftp left, sftp joined
Perleone unceremoniously buries __END__ and replaces it with =finish. (Turns out it's enough to prepend instead of replace.) 15:14
15:15 vike1 left
tony-o_ ZoffixWin: there is a :color(False) parameter you can pass to Dump(...) that I, apparently, forgot to document 15:15
i've added it to the readme, in response to issue #5 on Data::Dump
ZoffixWin: bit.ly/1ZVI19Y 15:17
15:26 MARTIMM left 15:28 raiph joined 15:30 _Gustaf_ left, sjoshi left 15:32 nanis joined
nanis Is there any chance MoarVM PR#5 might be looked at before the upcoming release? 15:33
pmurias [Coke]: during make or make test? 15:35
15:36 Upasaka left
pmurias [Coke]: there is one large CPU consuming test (for a whole bunch of different regexes) maybe it's the culprit? 15:39
15:41 vike joined
jnthn nanis: PR#5? 15:41
That's from 2013...
nanis: Is there any benefit in including it in today's release? 15:42
nanis jnthn: brain malfunction. I meant PR#337
jnthn As in, does it actually fix something that's broken now?
nanis Well, the warnings relating to the format specifier annoy me, but, no, there is no urgent need. I was just wondering, not trying to pressure. 15:43
jnthn nanis: OK, out of an abundance of caution I'll merge it after today's release, then it's got a whole month to make sure it doesn't have any adverse side-effects (though I agree it seems unlikely) 15:44
nanis Yeah, there is no reason to risk problems with an impending release. Good luck. 15:45
jnthn OK, cool. Thanks for the PR.
nanis Thanks for looking into it.
15:47 brrt left
[Coke] pmurias: it was running "node" something. it's dead now, I have no idea, sorry. 15:48
15:49 eyck joined
RabidGravy concludes he has irreversibly shagged up his rakudo installation nukes and reinstalls 15:50
15:54 cognominal left
arnsholt Mmmm. Smells like git clean -xdf =) 15:55
DrForr With a faint note of teen spirit.
ugexe fireartist: i think that happens (your ssl problem) when an optional module is installed *after* the module that uses it gets installed 15:56
sjn anyone here arrived in Brussels yet? :) 15:57
15:57 cognominal joined, ggoebel15 joined
DrForr Arriving tomorrow morning around 10am. 15:57
fireartist ugexe: hmm, can't remember for sure if I deleted .precomp - that may be it 15:58
15:58 ggoebel14 left
sjn is thinking about dinner tomorrow, and considering hemgies.be/ (fusion burger restaurant, close to Delirium) 15:59
ely-se What's happening in Brussels?
DrForr FOSDEM.
sjn biggest open source conference in Europe 16:00
ely-se dammit
I missed it last year and this year I miss it again 16:01
sjn ely-se: phone calendar events ftw :)
16:02 edehont left 16:03 nakiro left, Kogurr joined, fireartist left
RabidGravy there's something horribly, horribly shagged up here 16:04
something is segfaulting on the tests for META6 :( 16:05
16:06 mauke` joined
mauke` www.youtube.com/watch?v=i9oU7rfb-do 16:07
RabidGravy mmap(NULL, 1122, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f99caa14000 16:08
mprotect(0x7f99caa14000, 1122, PROT_READ|PROT_EXEC) = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x10} ---
+++ killed by SIGSEGV (core dumped) +++
boom
16:09 Actualeyes left, Guest27803 left, vendethiel joined 16:11 Upasaka joined 16:12 bowtie joined, bowtie is now known as Guest58338
tony-o_ Perleone: what is supposed to happen with --doc? 16:19
16:22 zengargoyle left
hoelzro o/ #perl6 16:22
tony-o_ ZoffixWin: docs updated and PR merged 16:23
16:25 lostinfog joined, alber joined 16:26 jojotus left 16:28 jojotus joined, ely-se left, Actualeyes joined 16:29 domidumont left 16:30 psy joined, psy left 16:31 psy joined 16:32 vendethiel left 16:35 Guest58338 left 16:36 bowtie_ joined, musiKk joined
perlpilot lizmat: I still have a few tuits (okay, a bunch :) that I got from you and woolfy at YAPC::NA 2013 that I'm handing out at $work this week. Getting people fired up about YAPC and Perl. lizmat++ woolfy++ 16:47
16:47 khw joined, laz78 joined, vendethiel joined, regreg joined
perlpilot (hopefully we send some people from $work to YAPC::NA this year) 16:48
16:49 lokien_ left 16:53 laz78 left 16:54 laz78 joined
Hotkeys Where is YAPC::NA this year? 16:57
(Does it change?)
RabidGravy ZoffixWin, you can stop sending those PRs now, I'll be fixing them as and when I make a new release 16:58
:)
perlpilot Hotkeys: Orlando, FL
Hotkeys: yes, it changes. Different venues bid on hosting it. 16:59
16:59 pmurias left, lokien_ joined
RabidGravy so the "Missing serialize REPR function for REPR VMException" has come back and I have no way of determing from where 17:00
:(
Hotkeys I'd like to vote for Toronto for YAPC::NA 2017
Hotkeys is Canadian :p
17:00 nanis left
perlpilot Hotkeys: you'd have to get someone with access to a venue in Toronto to bid for the privilege to host YAPC::NA 2017 (and they'd have to win the bid) 17:01
Hotkeys: note that hosting a YAPC is not easy and may not be fun for the hoster 17:02
Hotkeys Darn
17:02 musiKk left 17:07 TEttinger joined, FROGGS left 17:08 vendethiel left 17:15 vendethiel joined 17:17 donaldh joined
timotimo RabidGravy: could that segfault happen because of some security module preventing read/write + execute? could fix it by turning off the jit 17:22
RabidGravy possibly, I have a horrible feeling however that it is some horror hidden in the precomp stuff, I made it go away by changing the order of two "use" in the code 17:23
[Coke] ** 2016.01 compiler release (much) later today; please test the prep branch with modules and other code. 17:25
timotimo oof 17:27
dalek p: 175e8a7 | donaldh++ | src/vm/jvm/stage0/ (10 files):
Update the JVM stage0 to unbust the JVM build.
17:29
donaldh notes there's missing ops on jvm 17:30
17:31 regreg left
[Coke] donaldh: there's a test in nqp that tells you which ones! 17:31
17:31 domidumont joined
donaldh [Coke]: Yep, I'll hopefully find cycles to implement them soon 17:32
[Coke] donaldh++ I wanted a jvm perl 6 a while ago, but now I have docker, so I don't care so much. Thanks for keeping the lights on. :) 17:33
hoelzro donaldh++
thanks for doing what I couldn't!
is that all it took? updating stage0? 17:34
donaldh I don't know why it didn't complain about a missing op, instead giving a very obscure 'no method jast on NQPMu' error. I bisected it down to the nqp::readlinechompfh change.
So yeah, update stage0, stash it, checkout master unstash and build. 17:35
17:35 laz78 left
hoelzro donaldh: does that fix the "tried to serialize ContextRef" error? 17:35
donaldh Nope, we're back to "Missing serialize function for REPR ContextRef" in rakudo when trying to make install 17:36
hoelzro damn
well, at least my work over the last two nights hasn't been for nothing =)
moritz \o
moritz finally has his laptop back and working 17:37
donaldh I got to the bottom of that, but haven't figured a good solution.
hoelzro does it fix the my e := e; parse error?
donaldh: oh, you did? what was it?
donaldh From my notes: it serializes the CompUnit->CompUnit::Handle->CodeRef of the referenced precompiled module. 17:39
gist.github.com/donaldh/0cf1160b5fc87d4ba457
17:39 FROGGS joined
donaldh That was over a month ago tho. So I need to reproduce again and try to fix it. 17:40
What I couldn't explain was why it works on MoarVM. 17:41
[ptc] m: sub moo{ 42.say }; moo / 7 ; # / ; die "this dies" 17:42
camelia rakudo-moar 780192: OUTPUT«5===SORRY!5===␤Unrecognized regex metacharacter ; (must be quoted to match literally)␤at /tmp/yHxYkFM50X:1␤------> 3sub moo{ 42.say }; moo / 77⏏5 ; # / ; die "this dies"␤Unable to parse regex; couldn't find final '/'␤at /tmp/yHxYkFM50X:…»
llfourn_ donaldh: fwiw it doesn't in a BEGIN context rt.perl.org/Public/Bug/Display.html?id=127302
that is caused by trying to serialize a CompUnit::Handle 17:43
17:45 mithaldu_ joined
[ptc] m: sub moo(Bool) { return 42 }; moo True / 4 ; # / ; die "fätich" 17:47
camelia rakudo-moar 780192: OUTPUT«Type check failed in binding <anon>; expected Bool but got Rat␤ in sub moo at /tmp/W2OyDLxO2d line 1␤ in block <unit> at /tmp/W2OyDLxO2d line 1␤␤»
mithaldu_ m: sub moo(Int) { return 42 }; moo True / 4 ; # / ; die "fätich" 17:48
camelia rakudo-moar 780192: OUTPUT«Type check failed in binding <anon>; expected Int but got Rat␤ in sub moo at /tmp/NNbqy_XWmM line 1␤ in block <unit> at /tmp/NNbqy_XWmM line 1␤␤»
donaldh Looks a lot like CompUnit shouldn't keep CompUnit::Handles or something
mithaldu_ m: sub moo(Rat) { return 42 }; moo True / 4 ; # / ; die "fätich"
camelia ( no output )
donaldh will keep investigating later& 17:49
17:49 donaldh left
mithaldu_ m: sub moo(Mu) { return 42 }; moo / 4 ; # / ; die "fätich" 17:50
camelia rakudo-moar 780192: OUTPUT«5===SORRY!5===␤Unrecognized regex metacharacter ; (must be quoted to match literally)␤at /tmp/S9gk36GIVq:1␤------> 3sub moo(Mu) { return 42 }; moo / 47⏏5 ; # / ; die "fätich"␤Unable to parse regex; couldn't find final '/'␤at /tmp/S9gk3…»
hoelzro .tell donaldh godspeed, sir
yoleaux hoelzro: I'll pass your message to donaldh.
hoelzro I will continue to investigate myself
17:51 abraxxa left 17:52 SCHAAP137 joined, ely-se joined
mithaldu_ m: sub moo { return 42 }; moo / 4 ; # / ; die "fätich" 17:52
camelia rakudo-moar 780192: OUTPUT«5===SORRY!5===␤Unrecognized regex metacharacter ; (must be quoted to match literally)␤at /tmp/w7Yee3ITar:1␤------> 3sub moo { return 42 }; moo / 47⏏5 ; # / ; die "fätich"␤Unable to parse regex; couldn't find final '/'␤at /tmp/w7Yee3ITa…»
mithaldu_ m: sub moo() { return 42 }; moo / 4 ; # / ; die "fätich" 17:53
camelia rakudo-moar 780192: OUTPUT«5===SORRY!5===␤Unrecognized regex metacharacter ; (must be quoted to match literally)␤at /tmp/axco32Xckr:1␤------> 3sub moo() { return 42 }; moo / 47⏏5 ; # / ; die "fätich"␤Unable to parse regex; couldn't find final '/'␤at /tmp/axco32X…»
mithaldu_ hmm, apparently i can't tell if to take 0 arguments
17:53 ely-se left
geekosaur I think you want either constant or, if it's not, term:foo 17:55
17:57 leont joined, vendethiel left
tony-o_ m: sub moo { 42; }; moo() / 4 ; # / ; die "fätich" 17:57
camelia rakudo-moar 780192: OUTPUT«WARNINGS for /tmp/dxkxbxcFZZ:␤Useless use of "/" in expression "moo() / 4" in sink context (line 1)␤»
17:57 vendethiel joined 17:58 xinming left, dakkar_ left 17:59 xinming joined 18:01 dha joined 18:03 firstdayonthejob joined, sjoshi joined 18:04 zengargoyle joined 18:05 ajr_ joined 18:06 rindolf left 18:08 zengargoyle left
ugexe m: sub moo { 42; }; say moo() / 4 ; # / ; die "fätich" 18:11
camelia rakudo-moar 780192: OUTPUT«10.5␤»
RabidGravy m: sub term:<moo> { 42 }; say moo / 4 ; # alternatively :) 18:12
camelia rakudo-moar 780192: OUTPUT«10.5␤»
tony-o_ m: sub moo { 42; }; (moo / 4).say; 18:16
camelia rakudo-moar 780192: OUTPUT«5===SORRY!5=== Error while compiling /tmp/sBc5E42NR6␤Unable to parse regex; couldn't find final '/'␤at /tmp/sBc5E42NR6:1␤------> 3sub moo { 42; }; (moo / 47⏏5).say;␤ expecting any of:␤ argument list␤ infix stopper␤ …»
RabidGravy somewhat LTA 18:17
AlexDaniel huh… that's not cool 18:18
m: sub moo { 42; }; (moo ÷ 4).say;
camelia rakudo-moar 780192: OUTPUT«5===SORRY!5=== Error while compiling /tmp/GPCzLzXson␤Preceding context expects a term, but found infix ÷ instead␤at /tmp/GPCzLzXson:1␤------> 3sub moo { 42; }; (moo ÷7⏏5 4).say;␤»
AlexDaniel m: sub moo { 42; }; (moo * 4).say;
camelia rakudo-moar 780192: OUTPUT«5===SORRY!5=== Error while compiling /tmp/q8f8S2Aa9h␤Two terms in a row␤at /tmp/q8f8S2Aa9h:1␤------> 3sub moo { 42; }; (moo *7⏏5 4).say;␤ expecting any of:␤ infix␤ infix stopper␤ postfix␤ statement e…»
tony-o_ weird
m: sub moo { 42; }; $(moo / 4).say;
camelia rakudo-moar 780192: OUTPUT«5===SORRY!5=== Error while compiling /tmp/Gv1hjIO6e4␤Unable to parse regex; couldn't find final '/'␤at /tmp/Gv1hjIO6e4:1␤------> 3sub moo { 42; }; $(moo / 47⏏5).say;␤ expecting any of:␤ argument list␤ infix stopper␤…»
jnthn No, that's how listop syntax works
AlexDaniel I've always thought that it is supposed to work 18:19
tony-o_ m: sub moo { 42; }; $(moo * 4).say;
camelia rakudo-moar 780192: OUTPUT«5===SORRY!5=== Error while compiling /tmp/gRcXbSf8wI␤Two terms in a row␤at /tmp/gRcXbSf8wI:1␤------> 3sub moo { 42; }; $(moo *7⏏5 4).say;␤ expecting any of:␤ infix␤ infix stopper␤ postfix␤ statement …»
AlexDaniel seems like I was wrong :/
jnthn m: sub moo { 42; }; (moo() * 4).say;
camelia rakudo-moar 780192: OUTPUT«168␤»
jnthn It's the reason you can write things like: is $foo, 'bar'
Instead of having to put the parens
tony-o_ maybe interesting is more appropriate than 'weird' 18:20
AlexDaniel is there really no way to make it figure it out?
jnthn Perl 6 always knows whether it's expecting a term of an infix (and by extension, you can too)
term *or* an infix 18:21
AlexDaniel: No, because "we know if we're expecting a term or an infix" is one of the most basic parsing rules in Perl 6; without it, it's ambiguous whether / is division or the start of a regex, for example 18:22
AlexDaniel jnthn: ÷ is a division 18:23
18:23 mauke` left
flussence m: sub moo() { 42 }; $(moo * 4).say; # shouldn't it know to DTRT if the signature specifies 0 args? 18:23
camelia rakudo-moar 780192: OUTPUT«5===SORRY!5=== Error while compiling /tmp/rHgPgm3KBA␤Two terms in a row␤at /tmp/rHgPgm3KBA:1␤------> 3sub moo() { 42 }; $(moo *7⏏5 4).say; # shouldn't it know to DTRT if ␤ expecting any of:␤ infix␤ infix stopper␤ …»
tony-o_ m: sub moo() { 42; }; (moo/2).say;' 18:25
camelia rakudo-moar 780192: OUTPUT«5===SORRY!5=== Error while compiling /tmp/CQ7VBKLqKi␤Unable to parse expression in single quotes; couldn't find final "'" ␤at /tmp/CQ7VBKLqKi:1␤------> 3sub moo() { 42; }; (moo/2).say;'7⏏5<EOL>␤ expecting any of:␤ single quote…»
tony-o_ m: sub moo() { 42; }; (moo/2).say;
camelia rakudo-moar 780192: OUTPUT«21␤»
18:27 yurivish_ joined 18:28 jast left, jast joined
jnthn flussence: No, that doesn't factor in to it 18:29
Just define a term if that's what you want.
m: sub term:<moo>() { 42 }; (moo/2).say
camelia rakudo-moar 780192: OUTPUT«21␤»
jnthn m: my \moo = 42; (moo/2).say
camelia rakudo-moar 780192: OUTPUT«21␤»
18:30 laz78 joined
RabidGravy or turn the expression around ;-) 18:32
m: sub moo { 42 }; ( 1/4 * moo ).say
camelia rakudo-moar 780192: OUTPUT«10.5␤»
18:34 laz78 left, itaipu left 18:39 laz78 joined
AlexDaniel m: sub moo { 42; }; (moo R* 4).say; 18:44
camelia rakudo-moar 780192: OUTPUT«5===SORRY!5=== Error while compiling /tmp/UKA7zqeje_␤Undeclared name:␤ R used at line 1␤␤»
18:46 alber left
sjoshi x`/quit 18:48
18:48 sjoshi left 18:51 gtodd left 19:00 ChoHag joined 19:07 gtodd joined 19:09 leont left 19:11 addison_ joined, abraxxa joined 19:19 musiKk joined 19:24 raiph left 19:25 cdg left, lnrdo joined 19:32 musiKk left 19:37 leont joined, espadrine left, abraxxa left 19:38 frobisher joined, dha left 19:39 frobisher is now known as dha 19:43 tmtowtdi joined 19:50 lnrdo left 19:51 abraxxa joined, yqt joined, ely-se joined 19:52 musiKk joined 19:54 tmtowtdi left, rindolf joined, tmtowtdi joined 19:58 Actualeyes left 19:59 lokien_ left 20:02 bowtie_ left 20:03 bowtie joined, bowtie is now known as Guest11695
Hotkeys I enjoy doing project euler stuff in one line in p6 20:04
20:04 gtodd left
Hotkeys m: say elems 1, 1, * + * ... *.Str.chars == 1000 # index of first fib number with 1000 digits 20:04
20:04 lokien_ joined
camelia rakudo-moar 780192: OUTPUT«4782␤» 20:04
20:07 addison_ left 20:09 gtodd joined
tony-o_ m: say elems 1, 1, * + * ... *.log(10).ceiling == 1000 20:09
camelia rakudo-moar 780192: OUTPUT«Memory allocation failed; could not allocate 1304 bytes␤»
20:12 yurivish_ left
AlexDaniel m: say elems 1, 1, * + * … *.log(10).ceiling > 1000 20:13
camelia rakudo-moar 780192: OUTPUT«1477␤»
AlexDaniel m: say elems 1, 1, * + * ... * == -1
camelia rakudo-moar 780192: OUTPUT«Memory allocation failed; could not allocate 944 bytes␤»
AlexDaniel tony-o_: ↑ ? 20:14
tony-o_ too many bytes
20:14 domidumont left
AlexDaniel well :D 20:14
tony-o_ probably because that sequence never hits -1
AlexDaniel tony-o_: just like it never hits *.log(10).ceiling == 1000 20:16
tony-o_ yea 20:17
20:21 abraxxa left 20:25 laz78 left 20:31 pmqs__ left 20:34 darutoko left 20:37 labster joined 20:42 lizmat left
tony-o_ i have a rakudo build with sample .travis.yml file that seems to work pretty well (along with zef + panda pre built) in case anyone is interested in faster travis testing, you won't need to build rakudo every go around. github.com/tony-o/perl6-travis-bin 20:42
20:44 lizmat joined
DrForr Perl 6 runs internally in UTF-16, correct? At least as far as NativeCall is concerned? 20:46
nine UTF-32
yoleaux 14:40Z <lizmat> nine: are multiple copies of source files suppose to exist in install/share/perl6/sources?
DrForr Thanks.
jnthn NativeCall isn't concerned about our interanl string representation, because we encode the strings at the NativeCall boundaries. 20:47
Skarsnik DrForr, depend x)
jnthn The actual representation of str is opaque.
nine .tell lizmat multiple copies of a source file are possible if you have multiple versions of the dist installed 20:48
yoleaux nine: I'll pass your message to lizmat.
lizmat computer: messages
yoleaux 20:48Z <nine> lizmat: multiple copies of a source file are possible if you have multiple versions of the dist installed
20:49 ELBeavers left
lizmat nine: things like Test.pm ? 20:49
20:49 sortiz joined
DrForr Well, let me rephrase then. What encoding will a C function receive a char* string in? Looks like UTF-8 so far :) 20:49
sortiz \o #perl6
lizmat multiple copies of newline.pm ?
vendethiel o/ 20:50
DrForr really needs to find something to knock this cold onto its ass before Sunday :/
nine lizmat: how many files are in your install/share/perl6/dist? 20:51
[Coke] the perl6 tag on stackexchange is growing 20:52
8 new questions on my last email.
RabidGravy cool
lizmat nine: 2 20:53
AlexDaniel [Coke]: so what does it mean?
RabidGravy any actually interesting questions?
nine lizmat: probably version 6.c and sooome other one
lizmat 2 x "name" : "CORE", 20:54
[Coke] AlexDaniel: so what does what mean? 20:55
AlexDaniel [Coke]: perl6 tag on stackexchange is growing, so what?
lizmat nine: ah, 2015.11-746-g47e04b6 and 2015.12-214-g775271d
[Coke] ... er, stackoverflow, btw, not stackexchange. probably combining the former with experts exchange or something
it means more people are using perl6 in the wild. 20:56
DrForr I actually had two PRs for Inline:{Scheme::}Guile in the last few days.
lizmat nine: yeah, 6.b and 6.c
RabidGravy must get a grip before he turns this couchdb into some kind of crack induced ORM thingamujig 20:57
AlexDaniel [Coke]: somehow I don't think that it is an accurate measure, especially when the number of questions is so low
20:58 spider-mario joined, zakharyas left
nine lizmat: there you go :) 20:58
[Coke] AlexDaniel: Then ignore and stop giving me a hard time. :)
dha Wild Perl 6
[Coke] ignore *it
AlexDaniel [Coke]: sorry :)
tony-o_ perl6 - buck wild
lizmat but "module NativeCall" occurs 4 times in install/share/perl6/sources 20:59
hmmm... actually 5 times
21:00 addison joined
AlexDaniel it would be interesting to count the total amount of PRs, issues and commits in the whole ecosystem. If that was graphed over time, perhaps it could give a couple of interesting figures 21:01
jnthn lizmat: Is this in a "clean" install, or maybe they are left over from the last weeks?
AlexDaniel I'm not volunteering for that yet though :D
21:03 kaare_ left
AlexDaniel m: my @l is default(die) 21:04
camelia rakudo-moar 780192: OUTPUT«===SORRY!===␤Died␤»
jnthn You asked for it :P
AlexDaniel jnthn: true but it didn't tell me where it died
lizmat nine jnthn dates are Dec 23 (2x) / 27 / Jan 3 / 28 21:05
AlexDaniel m: my @l is default(*) 21:06
camelia ( no output )
AlexDaniel m: my @l is default(*); say @l[100]
camelia rakudo-moar 780192: OUTPUT«*␤»
AlexDaniel m: my @l is default(*); say @l[100].WHAT
camelia rakudo-moar 780192: OUTPUT«(Whatever)␤»
AlexDaniel m: my @l is default(*); say @l[100](5)
camelia rakudo-moar 780192: OUTPUT«Cannot find method 'CALL-ME'␤ in block <unit> at /tmp/E_sXhXWRYu line 1␤␤»
lizmat m: *(5) # AlexDaniel: golfed 21:07
camelia rakudo-moar 780192: OUTPUT«Cannot find method 'CALL-ME'␤ in block <unit> at /tmp/sYS_noYlDW line 1␤␤»
AlexDaniel lizmat: yeah, I've seen that many times 21:08
lizmat: didn't feel that it was worth a bug report though
lizmat perhaps Whatever and HyperWhatever need a CALL-ME with a better error message 21:09
AlexDaniel ok I'll submit that
jnthn I don't like adding methods just to report errors
Breaks introspection
Any smarts want to go into X::Method::NotFound.
moritz would be fine with * being used as a function being the identity function 21:10
AlexDaniel m: my $x = 5; my @l is default($x); say @l[100] 21:11
camelia rakudo-moar 780192: OUTPUT«(Any)␤»
anthk_ why shifting 8 bytes to the left on 0x6a doesnt't yield to 0x6a00? 21:12
moritz anthk_: bits or bytes?
anthk_ bits sorry 21:13
DrForr m: say 0x6a << 8
camelia rakudo-moar 780192: OUTPUT«5===SORRY!5=== Error while compiling /tmp/GbbQcWUhJ0␤Unsupported use of << to do left shift; in Perl 6 please use +< or ~<␤at /tmp/GbbQcWUhJ0:1␤------> 3say 0x6a <<7⏏5 8␤»
DrForr m: say 0x6a +< 8
camelia rakudo-moar 780192: OUTPUT«27136␤»
moritz m: say (0x6a +< 8).fmt('%x')
camelia rakudo-moar 780192: OUTPUT«6a00␤»
DrForr m: say sprintf "%x, 0x6a +< 8
camelia rakudo-moar 780192: OUTPUT«5===SORRY!5=== Error while compiling /tmp/AFFiXxkU8l␤Unable to parse expression in double quotes; couldn't find final '"' ␤at /tmp/AFFiXxkU8l:1␤------> 3say sprintf "%x, 0x6a +< 87⏏5<EOL>␤ expecting any of:␤ postfix␤»
moritz anthk_: looks like it does what you want 21:14
DrForr shuts up before typoing more :)
21:14 lnrdo joined
moritz m: say (0x6a +< 8).base(16) 21:14
camelia rakudo-moar 780192: OUTPUT«6A00␤»
anthk_ then why " @memory[$PC] +< 8 " being @memory[$PC] = 0x6a doesn't add two zeros? 21:15
it gives me 0100 in all operations, no matter the hex value in that value of the array
21:16 rindolf left
AlexDaniel m: my @memory = 0x6a; say (@memory[0] +< 8).base: 16 21:16
camelia rakudo-moar 780192: OUTPUT«6A00␤»
moritz anthk_: at least one of your assumptions is wrong 21:17
DrForr anthk_: Maybe your data isn't what youtink it is?
*you think
moritz or maybe you're not printing the result in hex?
AlexDaniel m: my @memory = 0x6a; @memory[0] +<= 8; say @memory[0].base: 16
camelia rakudo-moar 780192: OUTPUT«6A00␤»
anthk_ say "MEM0 :", (@memory[$PC] ).list.fmt("%02x");
that's how I print the initial value
say "MEM0<<8:", (@memory[$PC] +< 8 ).list.fmt("%04x"); 21:18
and that's the shifted one
AlexDaniel m: my @memory = 0x6a; say @memory[0].fmt(‘%02x’); @memory[0] +<=8; say @memory[0].fmt(‘%04x’) 21:19
camelia rakudo-moar 780192: OUTPUT«6a␤6a00␤»
anthk_ obviously, the last opcode value gets wrong
this
sha-bang.de/18_nethack/nethack-1.3d...014.tar.gz
ops sorry
$opcode = ((@memory[$PC] +< 8) +| (@memory[$PC+1]));
this
timotimo it could very well be @memory[$PC] ends up being a list accidentally 21:20
moritz anthk_: please show a minimal, runnable example that produces the wrong value
timotimo so with +< 8 you'd just shift the number of elements in the list to the left
and that'd probably give you the same result every time
moritz try to say @memory.perl
anthk_ too long to post, moritz 21:21
[Coke] so, one of your assumptions is wrong, if you can't reduce the code required to duplicate it, and you can't use the samples provided above to help, I'm not sure what else can be done. 21:22
I would dump your data right before the offending section with .perl so you can see exactly what it is you're operating on.
moritz anthk_: that's why I'm asking for a *minimal* example
[Coke] then you can move that into a short example where you set a variable to that .perl output, and run the one line and dump the results. 21:23
moritz anthk_: fill the array with constants; if that makes the problem go away, the array contents aren't what you think they are
[Coke] We need to put together a "how to ask for help so we can help you" doc.
moritz anthk_: when you try to golf the problem to something smaller, you usually stumble about the actual problem very quickly; if not, we have a minimal example to run and examine
[Coke] (something friendly. not like Perl programmers on FB where every thread ends with "YOU'RE DOING IT WRONG GO READ THIS" 21:24
DrForr *cough* :)
timotimo someone on twitter posted "I have strong belief that Perl6 will come out..." 21:25
AlexDaniel [Coke]: so far there were no problems with that. But it would be cool to have a quick guide on “how to find a problem in your code” or something. That could suggest --ll-exception, .perl and other stuff
21:26 cdg joined
[Coke] timotimo: like, of the closet? or that we'll do a release someday? 21:26
timotimo i wonder if i'll reply with something like "i have strong belief that humans will walk on the moon" or so
[Coke] AlexDaniel: also a section on just basic debugging. 21:27
stmuk faq entries?
anthk_ the type of each value of the array is uint8 :|
timotimo ah, so @memory is a native array, i see. and $PC is a single value, not a list of some kind? 21:28
now the output of @memory[$PC] is interesting
the .perl of that
anthk_ $PC is 512 by default, it gets incremented over a cycle
twice 21:29
AlexDaniel m: my uint8 @memory = 0x6a; say @memory[0].list.fmt(‘%02x’); @memory[0] +<=8; say @memory[0].list.fmt(‘%04x’)
camelia rakudo-moar 780192: OUTPUT«6a␤0000␤»
AlexDaniel ta-daa!
21:29 rindolf joined
anthk_ :Buf[uint8].new(106) 21:29
masak timotimo: "I have a strong belief that we will some day be able to harness water power for electricity"
DrForr timotimo: But not strong enough to actually take 2 minutes to see if it has been.
anthk_ say "MEM0 :", (@memory[$PC]).perl; 21:31
MEM0 :Buf[uint8].new(106)
and then say "MEM0<<8:", (@memory[$PC] +< 8).perl; 21:32
MEM0<<8:256
DrForr notes that uint8 shifted by 8 bits is 0. Maybe it's not shifting into the previous byte as you wantd?
masak m: say 1 +< 8
camelia rakudo-moar 780192: OUTPUT«256␤»
masak anthk_: it's numifying the 1-element Buf to 1 21:33
anthk_: it's a bit unintuitive to me why indexing a Bug wouldn't yield a uint8 rather than a Buf[uint8] -- but maybe there's a good explanation for that 21:34
lizmat m: 42 / 0 # shouldn't this at least complain about values used in sink context 21:36
camelia ( no output )
lizmat m: 42
camelia rakudo-moar 780192: OUTPUT«WARNINGS for /tmp/hpZHgNSaBt:␤Useless use of constant integer 42 in sink context (line 1)␤»
lizmat m: use fatal; 42 / 0 # or throw ? 21:37
camelia ( no output )
lizmat m: say 42 / 0 # like this?
camelia rakudo-moar 780192: OUTPUT«Attempt to divide 42 by zero using div␤ in block <unit> at /tmp/UzHo1juUsd line 1␤␤Actually thrown at:␤ in block <unit> at /tmp/UzHo1juUsd line 1␤␤»
geekosaur I think that if you are looking for "something that works", "perl5 will come out" means star 21:39
[Coke] m: say Bug
camelia rakudo-moar 780192: OUTPUT«5===SORRY!5=== Error while compiling /tmp/u2gj8CtpKL␤Undeclared name:␤ Bug used at line 1. Did you mean 'Bag', 'Buf'?␤␤»
geekosaur works out of the box, that is
sortiz anthk_, In your example, @memory[$PC] isn't an uint8 but a Buf[uint], not the same thing, so @memory[$PC] +< 8 is coercing the Buf to 1 before the shift.
anthk_ sortiz: could I cast uint to Int in Perl6? 21:40
ZoffixWin m: my unit8 $x = 0; --$x for ^10; say $x
camelia rakudo-moar 780192: OUTPUT«5===SORRY!5===␤Type 'unit8' is not declared. Did you mean 'uint8'?␤at /tmp/55fJgPnKOm:1␤------> 3my unit87⏏5 $x = 0; --$x for ^10; say $x␤Malformed my␤at /tmp/55fJgPnKOm:1␤------> 3my7⏏5 unit8 $x = 0; --$x for ^10; say $x␤␤»
ZoffixWin m: my uint8 $x = 0; --$x for ^10; say $x
camelia rakudo-moar 780192: OUTPUT«246␤»
ZoffixWin m: my uint64 $x = 0; --$x for ^10; say $x 21:41
camelia rakudo-moar 780192: OUTPUT«-10␤»
[Coke] jnthn: how feasible is 127395 ?
sortiz anthk_, in generañ you don't need that. Why are you using a Buf in the first case? 21:42
anthk_ the memory is composed of the contents of a file 21:43
I've just used ' while not $fh.eof {memory[$PC + $i] = $fh.read(1);$i++;} ' 21:44
ZoffixWin Interesting. The above bug only affects the 64 variant :/
anthk_ that's just the raw contents of the file, byte per byte
21:46 lnrdo left
sortiz anthk_, But your read don't returns ints, returns Bufs, so in your array are the objects not ints 21:46
anthk_ In theory, using (@memory[$PC].Int +< 8) should work :|
oh, I understand 21:47
21:47 xlat joined
ZoffixWin m: my num64 $x = Num.new: -2**60; --$x for ^3; say $x 21:47
camelia rakudo-moar 780192: OUTPUT«-1.15292150460685e+18␤»
sortiz You see the ints bc you are using .list that returns the ints in the Buf, but you are not modifying the Buf contents. 21:48
anthk_ I am reading about .unpack from Buf
sortiz: yes, I realized now 21:49
sortiz You can see a Buf as a list on ints of some size, uint8 in your case.
21:50 lnrdo_ joined
anthk_ .list.Int will cast the contents to Int? 21:50
at least while taking the value and shifting it a byte 21:51
21:51 telex left
sortiz anthk_, Now, if you want the content of your file, you can read it in one Buf, not an array of Bufs. 21:51
21:52 telex joined
xlat m: my $string="é"; $string ~~ / </ $<base>=<:Letter> $<marks>=[<:Mark>+] /> /; say $<> #S15.html#Grapheme_Explosion 21:54
camelia rakudo-moar 780192: OUTPUT«5===SORRY!5===␤Unrecognized regex metacharacter < (must be quoted to match literally)␤at /tmp/asNLrtLqQA:1␤------> 3my $string="é"; $string ~~ / <7⏏5/ $<base>=<:Letter> $<marks>=[<:Mark>+] ␤Two terms in a row␤at /tmp/asNLrtLqQA:1␤---…»
anthk_ So I have to use $fh.read with the entire content of bytes? 21:55
I mean, read the whole file at once 21:56
sortiz anthk_, Yes, and Buf does Positional, so you can index individual elements of it.
21:56 bjz_ left
anthk_ the difficult stuff is to map the file from the 512th place of the @memory array because is the standard for the chip8 21:57
sortiz anthk_, So don't need any array.
RabidGravy subbuf
21:57 sufrostico joined
anthk_ I mean, a position in the memory array from the 512th byte holds another one from the file, until it finishes 21:58
sortiz anthk_, ^^^^ read what RabidGravy wrote about subbufs 21:59
jnthn [Coke]: My gut feeling says yes :) 22:00
AlexDaniel fucking stackoverflow does not let me use my full name. Who said that the name has to be <= 30 characters?
jnthn [Coke]: (as in, should be doable)
AlexDaniel: StackOverfl did :) 22:01
22:01 addison left
[Coke] jnthn: has to switch to a runtime exception, I assume. 22:02
xlat Hi, is there a way to use Grapheme Explosion in regex? 22:05
22:05 skids left 22:06 sufrostico left 22:10 addison joined 22:11 abraxxa joined
abraxxa Skarsnik: I'm updating my rakudo now to find out why panda doesn't find Data::Dump 22:11
Skarsnik Na it's travis 22:12
the travis build fail
ZoffixWin m: my uint8 $num = 0; say $num--;
camelia rakudo-moar 780192: OUTPUT«256␤»
Skarsnik because it does not have data::dump
it's not from you
ZoffixWin I kinda expected that to give me 0 :S
jnthn ZoffixWin: *native* int :)
abraxxa Skarsnik: travis-ci.org/perl6/DBIish/builds/...2237#L1056
anthk_ could .splice work with blobs?
ZoffixWin jnthn, what's the implication? The post-decrement/increment operators are broken? 22:13
Skarsnik and why does itneed data::dump? x)
abraxxa Skarsnik: you suggested it to show the type/values failures
jnthn ZoffixWin: The implication is that we compile a -- into the same kind of thing your C compiler does 22:14
Skarsnik Yes to debug or test localy, but I am not sure we want the user to have it x)
uint8 does not work
some other unsigned type work
ZoffixWin m: my int8 $num = 0; say $num--; 22:15
camelia rakudo-moar 780192: OUTPUT«0␤»
ZoffixWin m: my uint $num = 0; say $num--;
camelia rakudo-moar 780192: OUTPUT«0␤»
ZoffixWin jnthn, um :/ the rest of them seem to work fine
jnthn ZoffixWin: oh, I misread...hmmmm
ZoffixWin: Yeah, something is off there 22:16
I thought you were looking at the result
ZoffixWin Nah :)
jnthn Also I'm doing too many things at once
ZoffixWin :D
jnthn stops answering things wrong and tries to get the MoarVM release right :)
ZoffixWin wooo \o/
abraxxa Skarsnik: I don't think there is already a way to specify test-only deps 22:18
ugexe test-depends
22:19 laz78 joined
Skarsnik m: my uint32 $a = 2**32 - 1; say $a; say ++$a; 22:19
camelia rakudo-moar 780192: OUTPUT«4294967295␤0␤»
22:19 FROGGS left
Skarsnik it work for uint32 22:20
but not uint8
oh wait you --
abraxxa ugexe: just instead of depends? 22:21
ugexe yes 22:22
abraxxa ugexe: thanks!
ZoffixWin Skarsnik, there's an inconsistency with overflows too. I think I'll rakudobug a "inconsitencises with natives" ticket later today 22:24
22:24 FROGGS joined
Skarsnik and it should probably give 255 22:25
Like you expect to get back at max value like C will do
22:25 lnrdo_ left
anthk_ ok, I created a buffer from a file 22:27
my Buf $rom = slurp $file, :bin;
but still the contents of each element in the buffer is uint
22:28 ely-se left
anthk_ ok, it was a Int with $rom.list.[$value] , sorry 22:31
my bad
22:31 spider-mario left 22:32 spider-mario joined
abraxxa Please remove leading 'v' from perl version in JSON::Fast's meta info. 22:32
just seens in my Travis log
sortiz abraxxa, I see too when building Panda from R* RC2 yesterday. 22:35
22:38 rindolf left 22:39 laz78 left
abraxxa Skarsnik: do i need a 'panda update' 22:40
Skarsnik In travis? 22:41
abraxxa yes
Skarsnik Why lol?
travis rebuild rakudo/panda
everytime 22:42
abraxxa and does panda fetch the module list on install/first use?
22:43 alpha123 left
abraxxa sortiz: same for Data::Dump 22:43
22:43 laz78 joined
anthk_ ok, now it works, thanks. 22:46
22:47 FROGGS left 22:48 xlat left
sortiz Panda includes in ext/ its own JSON__Fast, but not the one fixed. 22:52
22:52 dha left, cpage_ left
sortiz .seen tadzik 22:56
yoleaux I saw tadzik 25 Jan 2016 11:38Z in #perl6: <tadzik> Virtual Man?
tadzik I'm here
22:56 wamba left
masak 'night, #perl6 22:56
lizmat night masak 22:57
sortiz tadzik, Is panda using the included JSON_Fast, no?
jdv79 l8r
tadzik should
Skarsnik abraxxa, probably need some added stuff in DBIIsh .travis file, since it has not depandacy
abraxxa Skarsnik: hm?
Skarsnik well DBIish depend on nothing 22:58
sortiz That copy don't has the v thing fixed in Meta6.json
Skarsnik so that why panda is probably not installed in the script
23:00 kshannon joined, bpmedley joined 23:03 addison left 23:06 bpmedley left, vendethiel left 23:07 musiKk left 23:08 sena_kun joined 23:09 alpha123 joined 23:10 kshannon left, Skarsnik left, kshannon joined
timotimo moritz: a random comment, looking at your latest mail to the perl6-language went via a non-encrypted server (which gives me a red frowny face in my client): faui2k3 => la.mx.develooper.com; is there anything you can do about that? 23:12
23:13 vendethiel joined
lizmat m: my %h; %h{Str} # LTA error message 23:13
camelia rakudo-moar 780192: OUTPUT«Cannot unbox a type object␤ in block <unit> at /tmp/eCncIPTFji line 1␤␤»
timotimo probably not 23:20
sena_kun Are there any included type of list/vector/deque I can use to push elems from the beginning? reverse.push.reverse do the trick, but seems quite sad.
timotimo why not just ".shift"? :)
TimToady or unshift
timotimo there's also prepend as an equivalent to .append
er, yes, unshift, sorry
23:20 bpmedley joined
timotimo sometimes i get confused 23:20
Juerd That's as much equivalent as -42 == 42 ;)
TimToady prepend/append are for lists, unshift/push are for single things
sena_kun Thanks, unshift is right.
Need time to read more docs.
23:20 lostinfog left
japhb . 23:23
yoleaux 27 Jan 2016 23:41Z <lizmat> japhb: I am curious how you actually got Date subclassing to work: class A is Date { has $.a }; dd A.new(:2016year,:42a).a gives Any instead of 42
lizmat japhb o/ 23:24
japhb .tell lizmat I only ever tried making subclassing Date and mixing in a role at the same time. That used to work, and was broken.
yoleaux japhb: I'll pass your message to lizmat.
japhb Oh hai!
lizmat . 23:25
yoleaux 23:24Z <japhb> lizmat: I only ever tried making subclassing Date and mixing in a role at the same time. That used to work, and was broken.
japhb *making a subclass of Date
lizmat ok, I wonder what the opinion is about subclassing Date / Set / Bag / other composite builtin types 23:26
japhb lizmat: Which is to say, I never tried the precise case you have (direct subclass with added attribute, no role involved)
I think in general it's really useful to be able to do that. 23:27
lizmat I wonder what TimToady thinks about that
japhb Actually, come to think of it, here's my exact invocation:
class BusinessDate is Date does BusinessDateish { }
BusinessDateish being a role that adds four new attributes and a pile of methods. 23:28
And is reused for:
class BusinessDateTime is DateTime does BusinessDateish { }
lizmat gotcha
23:31 perlawhirl joined, skids joined 23:33 vendethiel left
perlawhirl hi perlers 23:34
lizmat perlawhirl o/
perlawhirl hi liz. i actually came to ask a question but just figured it out 23:35
i'll ask anyway in case there's a "better" way (choose your own definition of better :D ) 23:36
i was just trying to remove a random element from an Array... landed on: @a.=pick(*).shift
m: my @a = 1..10; say @a.=pick(*).shift; say @a.perl
camelia rakudo-moar 780192: OUTPUT«5␤[7, 8, 2, 10, 1, 9, 4, 6, 3]␤»
23:37 tmtowtdi left, RabidGravy left
lizmat perlawhirl: that works if you don't care about the order 23:37
in which the values live in the array
perlawhirl yeah, i don't... and if i did i could always sort after the shift 23:38
lizmat but then you only need to do the pick(*) once
and then just shift
perlawhirl yeah, true
ZoffixWin m: my $a = BagHash.new: <foo bar ber>; $a.grab; say $a
camelia rakudo-moar 780192: OUTPUT«BagHash.new(ber, foo)␤»
perlawhirl ahh, thanks Zoffix
ZoffixWin That's not an array tho :P 23:39
perlawhirl i am yet to play with Bags/Sets/etc
Hotkeys Ber isn't a standard placeholder silly
perlawhirl wonders why Array doesn't have a grab method 23:40
timotimo you should also be able to .pick(*-1), no?
lizmat m: my $a = SetHash.new: <foo bar ber>; say $a.grab; say $a # doesn't need to be a Bag
camelia rakudo-moar 780192: OUTPUT«(bar)␤SetHash.new(ber, foo)␤»
ZoffixWin Is there much difference between a set and a bag though? I only see the Integer vs. Real weights.
m: my $a = SetHash.new: <foo foo bar ber>; say $a.grab; say $a
camelia rakudo-moar 780192: OUTPUT«(ber)␤SetHash.new(foo, bar)␤»
Hotkeys m: my @foo = 1..10; say @foo.pick(*-1)
camelia rakudo-moar 780192: OUTPUT«Cannot call Numeric(WhateverCode: ); none of these signatures match:␤ (Mu:U \v: *%_)␤ in block <unit> at /tmp/PzqAu_QVFc line 1␤␤»
lizmat Set doesn't have weights, only has truthiness 23:41
Hotkeys timotimo:
timotimo mix has the Real weights
you must be thinking of that
heyo Hotkeys
lizmat ZoffixWin: you're mixing up Bags and Mixes :0)
ZoffixWin Ah :D
Hotkeys Doesn't work timotimo, just makes it angry
timotimo oh 23:42
too bad
lizmat m: my @a = <foo bar baz>; say @a.grab # too bad, would make sense to me
camelia rakudo-moar 780192: OUTPUT«Method 'grab' not found for invocant of class 'Array'␤ in block <unit> at /tmp/BSf9IFHGVc line 1␤␤»
timotimo should we perhaps allow that?
pick and roll to accept WhateverCode?
Hotkeys Seems reasonable
ZoffixWin m: my @foo = 1..10; @foo.splice: @foo.elems.rand, 1; say @foo; 23:43
camelia rakudo-moar 780192: OUTPUT«[1 2 4 5 6 7 8 9 10]␤»
timotimo you sure you want .rand?
only works because it casts to Int, eh?
lizmat perhaps rakudobug it so it won't fall through the cracks
timotimo too lazy :)
distracted*
ZoffixWin m: 5.rand.say
camelia rakudo-moar 780192: OUTPUT«4.0167080428932␤»
ZoffixWin eh :) it works :)
sortiz pick uses rand.floor 23:46
23:46 bpmedley left
timotimo oh 23:47
well, yeah
23:47 bpmedley joined, bpmedley left, bpmedley joined, vendethiel joined 23:51 addison_ joined 23:54 SCHAAP137 left
ZoffixWin m: my str $foo = "bar"; $foo = "42"; say $foo 23:57
camelia rakudo-moar 780192: OUTPUT«42␤»
ZoffixWin What's the difference between str and Str?
perlawhirl m: my str $foo = 'bar'; $foo.WHAT.say 23:58
camelia rakudo-moar 780192: OUTPUT«(Str)␤»
perlawhirl seems nothing
lizmat str is native string, Str is a HLL string 23:59
perlawhirl ahh of course... lc types are native