»ö« 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 ksn00b joined
ksn00b How is it possible to use enum within 'given'/'when' scope? 00:01
00:01 adu left 00:03 Dee22 joined
ksn00b This is my code: pastebin.com/QKXKdJay 00:04
00:05 AndyDee left 00:15 adu joined 00:19 Dee22 left 00:20 AndyDee joined 00:21 AndyDee left, sammers joined
MasterDuke tbrowder: something like this perhaps? `for $pod -> $_ is rw { $_ = pod2text($_) }; my $string = $pod.join("\n\n");` 00:24
00:30 ne_robot left 00:32 adu left 00:39 [1]Jarryd98 joined 00:40 mcmillhj joined, Jarryd98 left, [1]Jarryd98 is now known as Jarryd98
tbrowder thanks, MasterDuke, I'll try that! 00:43
00:48 mcmillhj left 00:54 Actualeyes left 00:56 sammers left 01:01 zapwai joined
Zoffix .tel ksn00b yes, `when` can smartmatch one an Enum. Your issue was you used commas inside the `<...>`. The angle brackets already separate on space; no need for commas. Also, enums can start at values other than 0. Also, `when` can be used without a `give`. It smartmatches against the topic (the $_ variable). gist.github.com/zoffixznet/1fe5397...0785b0dd87 01:01
.tell ksn00b yes, `when` can smartmatch one an Enum. Your issue was you used commas inside the `<...>`. The angle brackets already separate on space; no need for commas. Also, enums can start at values other than 0. Also, `when` can be used without a `give`. It smartmatches against the topic (the $_ variable). gist.github.com/zoffixznet/1fe5397...0785b0dd87
yoleaux Zoffix: I'll pass your message to ksn00b.
01:01 Zoffix left 01:06 ksn00b left 01:08 [1]Jarryd98 joined 01:10 Jarryd98 left, [1]Jarryd98 is now known as Jarryd98 01:33 mcmillhj joined
zengargoyle gist.github.com/zengargoyle/5a14f0...0e9b85a22a 01:36
01:36 zacts left
zengargoyle if somebody could tell me whether this is a bug or just some other misunderstanding i would much appreciate it. :) 01:36
01:38 ksn00b joined 01:42 mcmillhj left, Cabanossi left 01:43 araraloren_ joined, [1]Jarryd98 joined, Cabanossi joined
ksn00b Zoffix: ah.. That was my mistake, thanks. 01:44
yoleaux 01:01Z <Zoffix> ksn00b: yes, `when` can smartmatch one an Enum. Your issue was you used commas inside the `<...>`. The angle brackets already separate on space; no need for commas. Also, enums can start at values other than 0. Also, `when` can be used without a `give`. It smartmatches against the topic (the $_ variable). gist.github.com/zoffixznet/1fe5397...0785b0dd87
01:45 mcmillhj joined, Jarryd98 left, [1]Jarryd98 is now known as Jarryd98 01:46 araraloren left, ilbot3 left, araralonre__ joined 01:47 araraloren_ left
timotimo zengargoyle: not only does the one with the whatever star match "only the last", it'll match the last as many times as there are matchers 01:48
01:48 ilbot3 joined, ChanServ sets mode: +v ilbot3
timotimo looks like it's not closing over the $r as much as you were expecting, and i'm not sure what amount of closing is to be expected here 01:48
more likely the regex compilation isn't closing over the $r as much as you're expecting it to 01:50
i should really go to sleep before the damn birds start yelling at me again
01:51 Actualeyes joined 01:52 [1]Jarryd98 joined
zengargoyle so the additional -> code is somehow makes $r more closed. why doesn't this affect the eq version as well or is it just some regex thing. hrm... 01:53
01:54 Jarryd98 left, [1]Jarryd98 is now known as Jarryd98, mcmillhj_ joined 01:57 mcmillhj left 01:59 mcmillhj_ left
zengargoyle heh, maybe it's just a fluke that the eq version works in the first place. :) 02:00
02:00 araralonre__ left 02:03 AlexDaniel left 02:05 mcmillhj joined 02:14 mcmillhj left 02:15 mcmillhj joined, adu joined
tbrowder all: thanks to kurahaupo's word description and MasterDuke's hint, I think a long-standing bug in Pod::To::Text may be fixed. it now successfully extracts pod from S26-documention.pod without error. I will submit PR tomorrow. 02:19
committable6 tbrowder, gist.github.com/0ae5466dc9480c3326...6b176d29e1 02:20
tbrowder going to bed a happy camper... 02:21
02:23 mcmillhj_ joined 02:26 mcmillhj left 02:27 Cabanossi left 02:28 mcmillhj_ left, Cabanossi joined 02:29 cyphase left 02:34 cyphase joined 02:39 adu left
dwarring ksn00b: how about starting the enum at zero 02:42
enum MyEnum <zero one two three>
02:45 adu joined
BenGoldberg Deliberately misnaming enum constants is a hilarious way to confuse your readers. 02:46
dwarring ksn00b: gist.github.com/dwarring/84be2b06d...90f429512c
BenGoldberg: yup 02:47
BenGoldberg m: enum MyEnum <zero one two three>; say one;
camelia one
dwarring m: enum MyEnum <zero one two three>.pick; say one; 02:48
camelia one
BenGoldberg m: enum <one two three four five>; say two+three;
camelia 3
BenGoldberg m: enum <one two three four five>; say two+three==four; 02:49
camelia True
dwarring m: enum MyEnum <zero one two three>.pick(*); say one; 02:50
camelia one
dwarring m: enum MyEnum <zero one two three>.pick(*); say two+three==four;
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
four used at line 1
dwarring m: enum MyEnum <zero one two three four>.pick(*); say two+three==four;
camelia False
BenGoldberg m: enum M <one two three four five>; say M.pick; 02:51
camelia four
dwarring m: enum MyEnum <zero one two three four>.pick(*); say two+two==four;
camelia True
dwarring m: enum MyEnum <zero one two three four>.pick(*); say two+two==four;
camelia True
BenGoldberg m: enum M <one two three four five>; say M.pick(*);
camelia (three four one five two)
02:52 mcmillhj joined, noganex_ joined 02:55 noganex left, Ben_Goldberg joined, BenGoldberg left 02:56 Ben_Goldberg is now known as BenGoldberg, mcmillhj left 02:57 Cabanossi left 02:58 Cabanossi joined 03:04 adu left 03:05 ksn00b left 03:06 mcmillhj joined 03:11 Cabanossi left 03:12 adu joined, Cabanossi joined, adu left, mcmillhj_ joined 03:17 mcmillhj_ left 03:26 Actualeyes left 03:34 mcmillhj left 03:38 Actualeyes joined 03:42 pilne left 03:48 khw left, mcmillhj joined 03:49 zapwai left 03:55 cgfbee left 03:56 emeric left, nowan left, emeric joined 03:57 nowan joined, mcmillhj left 04:00 mcmillhj joined, cgfbee joined 04:04 mcmillhj left
Geth doc: a3e0260565 | (Gabor Szabo)++ | 2 files
run accepting :err as well; How to fetch error from the resulting Proc object
04:18
04:34 travis-ci joined
travis-ci Doc build errored. Gabor Szabo 'run accepting :err as well; How to fetch error from the resulting Proc object' 04:34
travis-ci.org/perl6/doc/builds/237377477 github.com/perl6/doc/compare/856e8...e026056583
04:34 travis-ci left 04:37 bwisti left 04:39 mcmillhj joined 04:41 Cabanossi left 04:42 Cabanossi joined 04:43 mcmillhj left, curan joined 04:44 sivoais left 04:46 BenGoldberg left 04:53 sivoais joined, araraloren joined 04:59 Actualeyes left, Herby_ left 05:08 mcmillhj joined 05:12 mcmillhj left 05:15 aborazmeh joined, aborazmeh left, aborazmeh joined 05:17 aborazmeh left 05:18 pegop joined 05:27 ufobat joined 05:43 xtreak joined 05:47 cpage left, cpage joined 05:53 domidumont joined, cpage_ left 05:54 cpage_ joined, Cabanossi left 05:57 Cabanossi joined, mcmillhj joined, xtreak left 05:58 wamba joined, domidumont left 05:59 domidumont joined 06:01 mcmillhj left 06:03 skids left 06:11 mcmillhj joined 06:16 rindolf joined, mcmillhj left 06:20 domidumont left 06:25 mcmillhj joined 06:29 mcmillhj left 06:48 mr-foobar left 07:01 Actualeyes joined, xtreak joined 07:13 mcmillhj joined 07:14 darutoko joined
Geth Inline-Perl5: 693e576416 | (Stefan Seifert)++ | 2 files
Do not import pragmas when loading Perl 5 modules.

Lower case module names are reserved for pragmas. It doesn't make sense to import them and the names may interfere with Perl 6' CORE subs. Fixes GH #92
07:17
07:17 mcmillhj left 07:28 mcmillhj joined 07:32 mcmillhj left 07:35 dakkar joined 07:37 parv joined 07:41 Cabanossi left, mcmillhj joined 07:42 Cabanossi joined 07:44 domidumont joined 07:46 mcmillhj left, g4 joined, g4 left, g4 joined 07:48 darutoko left 07:49 Jarryd98 left, Jarryd98 joined 07:52 darutoko joined 08:01 Jarryd98 left, jonas2 joined 08:02 Jarryd98 joined 08:03 wamba left 08:04 jonas2 left 08:06 fatguy joined 08:09 mcmillhj joined 08:13 mcmillhj left 08:16 zakharyas joined 08:22 pmurias joined 08:27 [1]Jarryd98 joined, mcmillhj joined 08:29 Jarryd98 left, [1]Jarryd98 is now known as Jarryd98 08:32 mcmillhj left 08:37 jonas2 joined 08:42 mcmillhj joined 08:47 mcmillhj left 08:54 wamba joined, Cabanossi left 08:56 gregf_ joined 08:57 Cabanossi joined 09:01 mcmillhj joined 09:05 mcmillhj left 09:22 vimal2012 joined 09:23 vimal2012 left, vimal2012 joined
vimal2012 p6: say 3 09:23
camelia 3
09:27 moritz left, freeze left, vcv left, [Coke] left, jonas2 left, xtreak left, nowan left, noganex_ left, ilbot3 left, araujo left, ChoHag left, pelev left, xinming_ left, aindilis left, movl left, jast left, hythm left, risou left, LeCamarade left, kst`` left, dogbert17 left, perlpilot left, esh left, Grrrr left, giraffe left, breinbaas left, jdv79 left, cxreg left, Kaffe left 09:29 AlexDaniel joined
AlexDaniel greppable6: all\: 09:30
greppable6 AlexDaniel, gist.github.com/35e1df904a40be02dc...dae0487539
AlexDaniel oh no wait, wrong bot…
quotable6: ‘all:’
quotable6 AlexDaniel, gist.github.com/2ca292ff95a5145277...d8fe74e631 09:31
AlexDaniel quotable6: ^ ‘all:’ 09:32
quotable6 AlexDaniel, gist.github.com/0f0ae62506e02599b6...88336ab3c7
AlexDaniel okay… so people do this too often 09:33
09:42 fatguy left 09:49 [Coke] joined, vcv joined, moritz joined 09:51 luis left 09:54 luis joined 10:02 nowan joined, mcmillhj joined
Geth doc: dca7b697d1 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Type/Proc.pod6
Fix errors in example code
10:05
doc: 9c1951e7c9 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Type/Proc.pod6
Remove proc runs from example testing
10:06
10:06 mcmillhj left 10:11 margeas joined 10:13 jonas2 joined, noganex_ joined, ilbot3 joined, araujo joined, ChoHag joined, pelev joined, xinming_ joined, aindilis joined, dogbert17 joined, movl joined, jast joined, hythm joined, risou joined, LeCamarade joined, kst`` joined, perlpilot joined, esh joined, Grrrr joined, giraffe joined, breinbaas joined, jdv79 joined, cxreg joined, Kaffe joined, gensym joined, obra joined, alnewkir1 joined, pm5 joined, weber.freenode.net sets mode: +v ilbot3, xtreak joined 10:14 xtreak left 10:15 pecastro left, xtreak joined, Exodist left 10:16 pecastro joined 10:18 Celelibi left, parv left, Exodist joined 10:21 ne_robot joined 10:24 travis-ci joined
travis-ci Doc build errored. Zoffix Znet 'Remove proc runs from example testing' 10:24
travis-ci.org/perl6/doc/builds/237453972 github.com/perl6/doc/compare/dca7b...1951e7c95b
10:24 travis-ci left
ne_robot ugexe: when I try to do the request to spys.ru/proxies with Net::HTTP::GET (pastebin.com/TMWcM99e), the website gives me 503; if I do the same thing with Python, it works - pastebin.com/xb9CnLT3 10:25
ugexe: what am I doing wrong with Perl6? 10:26
10:29 colomon joined 10:33 TEttinger left 10:41 pmurias left, travis-ci joined
travis-ci Doc build passed. Zoffix Znet 'Fix errors in example code' 10:42
travis-ci.org/perl6/doc/builds/237453698 github.com/perl6/doc/compare/a3e02...a7b697d1bf
10:42 travis-ci left 10:44 AlexDaniel left 10:47 vimal2012 left 10:49 vimal2012 joined 10:51 mcmillhj joined 10:55 vimal2012 left 10:56 mcmillhj left 11:04 mcmillhj joined 11:05 travis-ci joined
travis-ci Doc build passed. Zoffix Znet 'Remove proc runs from example testing' 11:05
travis-ci.org/perl6/doc/builds/237453972 github.com/perl6/doc/compare/dca7b...1951e7c95b
11:05 travis-ci left 11:08 parv joined, mcmillhj left 11:11 robertle joined 11:16 aborazmeh joined, aborazmeh left, aborazmeh joined 11:18 Celelibi joined 11:25 mr-foobar joined 11:37 mcmillhj joined 11:42 mcmillhj left 11:47 Jarryd98 left 11:48 mcmillhj joined 11:53 mcmillhj left 11:55 Cabanossi left 11:57 Cabanossi joined 12:01 itaylor57 left 12:02 cpage left 12:03 mcmillhj joined, pmurias joined 12:08 mcmillhj left 12:09 xtreak left 12:17 mcmillhj joined, dogbert11 joined 12:19 itaylor57 joined 12:21 pilne joined 12:22 mcmillhj left, parv left 12:25 Cabanossi left 12:27 Cabanossi joined 12:30 mcmillhj joined 12:33 raschipi joined, xtreak joined 12:35 mcmillhj left 12:51 xtreak left 12:52 curt_ joined, nadim joined 12:53 mcmillhj joined 13:05 Zoffix joined
Zoffix How to get symbols the module exports via EXPORT sub? 13:05
m: require Test; dd ::('UNIT::Test::EXPORT::DEFAULT::&is') 13:06
camelia Sub is = sub is (;; Mu | is raw) { #`(Sub|75608552) ... }
Zoffix $ perl6 -Irepo/lib -e 'require Benchy; dd ::("UNIT::Benchy::EXPORT::DEFAULT::&b")'
Failure.new(exception => X::NoSuchSymbol.new(symbol => "UNIT::Benchy::EXPORT::DEFAULT::\&b"), backtrace => Backtrace.new)
Seems the above way only works for routines marked with `is export`
ufobat is tehre a better way for sub a($a where {$a ~~ Int|Callable}) { ... } 13:08
Zoffix ufobat: $a where Int|Callable 13:09
`where` smartmatches already
also: multi a (Int $a) {}; multi a (&a) {} 13:10
Geth doc: 6a49dcccca | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Language/modules.pod6
Remove note about Rakudo and EXPORT

AFAIK current way is the it's meant to work and the note implies it's a bug looking to be fixed.
13:12
13:15 pmurias left
ufobat thanks! 13:16
Zoffix ufobat: now you help me :D
13:16 pmurias joined
ufobat oh my.. how? :D 13:17
Zoffix ufobat: answer my question about require above
ufobat i am afraid i cant :/ 13:19
Zoffix :)
13:28 dwarring left
Zoffix Well, don't know how to do above, but solved what I was /actually/ trying to do with this concoction: (try require ::("IRC::Client")) === Nil and (qx{git clone github.com/zoffixznet/perl6-IRC-Client/ repo}, (require ::("IRC::Client"))); my \IRC = ::("IRC::Client"); dd IRC.new 13:28
loading a module, with cloning a repo if the module fails to load, and loading from that 13:29
araraloren m: dd UNIT::.keys 13:35
camelia ("\$=pod", "\$_", "\$/", "!UNIT_MARKER", "\$=finish", "EXPORT", "\$!", "::?PACKAGE", "GLOBALish", "\$¢", "\$?PACKAGE").Seq
araraloren m: require Test; dd UNIT::.keys
camelia ("\$=pod", "\$_", "\$/", "!UNIT_MARKER", "\$=finish", "EXPORT", "\$!", "::?PACKAGE", "GLOBALish", "\%REQUIRE_SYMBOLS", "Test", "\$¢", "\$?PACKAGE").Seq
13:36 khw joined 13:37 daxim left, daxim joined 13:39 Cabanossi left
araraloren m: require Test; dd UNIT::.keys; dd UNIT::{"\$?PACKAGE"}; 13:41
camelia ("\$=pod", "\$_", "\$/", "!UNIT_MARKER", "\$=finish", "EXPORT", "\$!", "::?PACKAGE", "GLOBALish", "\%REQUIRE_SYMBOLS", "Test", "\$¢", "\$?PACKAGE").Seq
GLOBAL
13:42 Cabanossi joined 13:49 pecastro left 13:51 pecastro joined 14:10 ne_robot left 14:12 Zoffix left 14:13 skids joined 14:19 mcmillhj left 14:21 mcmillhj joined 14:23 avuserow joined
tbrowder AlexDaniel: excuse the 'all', please, wasn't aware of consequences 14:24
14:33 cdg joined, cdg left 14:34 cdg joined
[Coke] (specify perl 6 fund); note that if you do that, it'll probably go to jnthn's fund, not the general purpose fund which was used to fund zoffix's own grant. 14:40
yoleaux 29 May 2017 22:37Z <Zoffix> [Coke]: My final report for the IO grant is now available. I believe I've completed all of the grant's goals. Let me know what the next steps are: blogs.perl.org/users/zoffix_znet/20...grant.html
29 May 2017 22:38Z <Zoffix> [Coke]: the Markdown format for the report is available in github.com/zoffixznet/IOwesomeness...ay-2017.md
Geth doc: 1dc0eff496 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Type/IO.pod6
Close pipes in the example
14:45
doc: a5d0383884 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Type/IO.pod6
Fix typos; Fixes #1349
14:46
14:54 Cabanossi left 14:55 cdg_ joined, cdg left 14:57 Cabanossi joined 15:02 CacoS joined 15:05 Actualeyes left 15:08 Actualeyes joined 15:09 curan left, Actualeyes left
Geth doc: 8a3d6d4bda | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Type/IO.pod6
Remove duplicate word
15:17
15:23 aborazmeh left
Geth doc: 10502173fe | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Type/IO.pod6
Fix up &spurt example

  - Uncomment commented code
  - Fixup outputs
  - Don't CATCH to demonstrate Failure; this isn't how Failure mechanism is meant to be used
15:25
15:27 AlexDaniel joined 15:32 araraloren left 15:35 bwisti joined 15:42 zakharyas left
[Coke] not ok 189 - doc/Type/Thread.pod6 had duplicate words: the the 15:50
(looks like the other 50+ failures in my experiment there are all false positives. 15:51
15:51 jonas2 left 15:55 domidumont left 15:57 travis-ci joined
travis-ci Doc build errored. Zoffix Znet 'Remove duplicate word' 15:57
travis-ci.org/perl6/doc/builds/237559186 github.com/perl6/doc/compare/a5d03...3d6d4bda50
15:57 travis-ci left
Geth doc: fca615c5de | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Type/Thread.pod6
Fix duplicate word
15:59
15:59 fatguy joined
[Coke] ooh, I didn't realize it was on a line boundary. nice. 16:10
16:16 travis-ci joined
travis-ci Doc build errored. Zoffix Znet 'Fix up &spurt example 16:16
travis-ci.org/perl6/doc/builds/237562447 github.com/perl6/doc/compare/8a3d6...502173fe0c
16:16 travis-ci left 16:17 raschipi left 16:22 wamba left 16:27 zakharyas joined
AlexDaniel tbrowder: well, according to quotable6, people do that very often 16:33
so IMO committable6 is wrong and people are right :) 16:34
16:39 robertle left
tony-o ingy: Slang::SQL works still - need to figure out some deprecated use of %*LANG 16:41
16:41 travis-ci joined
travis-ci Doc build passed. Zoffix Znet 'Fix duplicate word' 16:41
travis-ci.org/perl6/doc/builds/237576913 github.com/perl6/doc/compare/10502...a615c5de6b
16:41 travis-ci left
tony-o but that shouldn't affect syntax/use 16:41
16:46 dakkar left 16:51 bwisti left 16:52 st_elmo joined 16:59 bwisti joined 17:06 itaipu joined, mcmillhj left 17:07 mcmillhj joined
AlexDaniel m: say #`X 17:21
camelia 5===SORRY!5===
Argument to "say" seems to be malformed
at <tmp>:1
------> 3say7⏏5 #`X
Other potential difficulties:
Unsupported use of bare "say"; in Perl 6 please use .say if you meant to call it as a method on $_, or use an expl…
17:21 wamba joined
AlexDaniel m: #`X 17:22
camelia ( no output )
AlexDaniel what's that :o
17:24 Cabanossi left, mcmillhj left 17:27 mcmillhj joined, Cabanossi joined
geekosaur I suspect it's a comment extending to the next X 17:29
AlexDaniel ummm 17:30
m: #`{{{
camelia 5===SORRY!5=== Error while compiling <tmp>
Couldn't find terminator }}} (corresponding {{{ was at line 1)
at <tmp>:1
------> 3#`{{{7⏏5<EOL>
expecting any of:
}}}
AlexDaniel m: say #`X hello X 42
camelia 5===SORRY!5===
Argument to "say" seems to be malformed
at <tmp>:1
------> 3say7⏏5 #`X hello X 42
Other potential difficulties:
Unsupported use of bare "say"; in Perl 6 please use .say if you meant to call it as a method on $_, or …
AlexDaniel no? 17:31
well, maybe, but? 17:32
17:33 setty1 joined
AlexDaniel m: dd #`X 17:33
camelia block <unit>
AlexDaniel ah right, indeed, looks like a comment
17:35 committable6 left, committable6 joined, ChanServ sets mode: +v committable6 17:36 TeamBlast left
AlexDaniel m: #`X hello␤ say 42 17:36
camelia 42
AlexDaniel ah-ha
it's parsed as a regular comment
okay
so you can do this 17:37
m: #`“ say 42 ” say 42
camelia 42
AlexDaniel but can't do that
m: #`" say 42 " say 42
camelia ( no output )
Geth doc: 95bd16012d | (Zoffix Znet)++ (committed using GitHub Web editor) | app.pl
Debitrot Mojolicious app

Fixes #1332
17:38
17:39 TeamBlast joined 17:41 lichtkind joined 17:42 grondilu_ joined, domidumont joined 17:43 espadrine_ joined 17:45 grondilu left
perlpilot debit-rot? ;-) 17:56
17:57 TeamBlast left
[Coke] debitrot13 17:58
17:59 TeamBlast joined 18:01 mr-foobar left 18:03 mr-foobar joined 18:11 buggable left, buggable joined, ChanServ sets mode: +v buggable, buggable left 18:12 buggable joined, ChanServ sets mode: +v buggable 18:16 TeamBlast left 18:18 zakharyas left 18:19 TeamBlast joined, cbk_ left 18:35 mcmillhj left 18:36 mcmillhj joined 18:37 TeamBlast left 18:39 TeamBlast joined 18:42 ufobat left 18:51 kyan joined 18:55 grondilu_ left
Geth doc: 5ff5574e76 | (Jan-Olof Hendig)++ | doc/Language/subscripts.pod6
Adjusted some OUTPUT: messages

Since the document was written, error messages have changed and so has the format output by dd.
18:56
18:56 Cabanossi left 18:57 Cabanossi joined, pilne left 19:03 cdg joined 19:07 cdg_ left, dwarring joined 19:14 darutoko left 19:15 cdg left, cdg joined 19:25 itaipu left 19:28 domidumont left 19:30 pilne joined 19:45 ne_robot joined 19:52 yqt joined 19:55 Cabanossi left 19:57 Cabanossi joined 20:01 cdg_ joined 20:04 cdg left 20:05 nebuchadnezzar left, nebuchadnezzar joined 20:17 Celelibi left, CacoS left 20:20 ne_robot left 20:21 Celelibi joined
Geth doc: f4582a441d | (Jan-Olof Hendig)++ | doc/Language/variables.pod6
Touched up ^ twigil example

Closes #1353
20:29
20:35 raschipi joined 20:36 yqt left 20:40 raiph joined 20:49 setty1 left
raiph NativeCall question on SO with no comment/answer stackoverflow.com/questions/442664...all-struct 20:50
20:50 cdg_ left 20:53 cdg joined 21:00 pmurias left 21:02 skids left 21:08 raschipi left
raiph bisectable: help 21:10
bisectable6 raiph, Like this: bisectable6: old=2015.12 new=HEAD exit 1 if (^∞).grep({ last })[5] // 0 == 4 # See wiki for more examples: github.com/perl6/whateverable/wiki/Bisectable
AlexDaniel is also ready to help 21:12
21:12 mcmillhj left
raiph bisectable6: 2016.02 use NativeCall; CArray[int]; say CArray[Pointer] 21:13
bisectable6 raiph, On both starting points (old=2015.12 new=5e33934) the exit code is 1 and the output is identical as well
raiph, gist.github.com/01237e5b4ae5d876e8...5935ca5c76
raiph commitable6: 2016.02 use NativeCall; CArray[int]; say CArray[Pointer]
committable6 raiph, ¦2016.02: «WARNINGS for /tmp/QbB0hy1ANM:␤Useless use of constant value CArray[int] in sink context (line 1)␤(Pointer])»
AlexDaniel bisectable6: use NativeCall; CArray[int]; say CArray[Pointer] 21:14
bisectable6 AlexDaniel, On both starting points (old=2015.12 new=5e33934) the exit code is 0 and the output is identical as well
AlexDaniel, Output on both points: «WARNINGS for /tmp/Ist4tcRZUR:␤Useless use of constant value CArray[int] in sink context (line 1)␤(Pointer])»
21:14 troys joined
AlexDaniel bisectable6: old=2016.02 use NativeCall; CArray[int]; say CArray[Pointer] 21:14
bisectable6 AlexDaniel, On both starting points (old=2016.02 new=5e33934) the exit code is 0 and the output is identical as well
AlexDaniel, Output on both points: «WARNINGS for /tmp/k7WMB1qXOg:␤Useless use of constant value CArray[int] in sink context (line 1)␤(Pointer])»
raiph AlexDaniel: nice bot and nice bot docs too :) 21:15
AlexDaniel \o/
raiph: by the way 21:16
raiph use NativeCall; say CArray[Pointer] # .gist is screwed up and has been since at least 2015.12
m: use NativeCall; say CArray[Pointer] # .gist is screwed up and has been since at least 2015.12
camelia (Pointer])
AlexDaniel committable6: 2015.11 use NativeCall; CArray[int]; say CArray[Pointer]
committable6 AlexDaniel, ¦2015.11: «(TypedCArray[Pointer])»
AlexDaniel bisectable6: old=2015.11 use NativeCall; CArray[int]; say CArray[Pointer] 21:17
bisectable6 AlexDaniel, Bisecting by output (old=2015.11 new=5e33934) because on both starting points the exit code is 0
raiph er, since at least 2016.02 I mean
21:18 TEttinger joined
AlexDaniel nice bot just got stuck… 21:18
AlexDaniel slaps bisectable6
this feels like it is a change in rakudo, by the way 21:19
unless adding .close to the pipe in between breaks something (sometimes)
21:19 committable6 left, bisectable6 left 21:20 committable6 joined, ChanServ sets mode: +v committable6
raiph bisectable6: old=2015.11 use NativeCall; exit +(CArray[Pointer].gist ne 'CArray[Pointer]') 21:20
AlexDaniel one second
21:20 bisectable6 joined, ChanServ sets mode: +v bisectable6
AlexDaniel bisectable6: old=2015.11 use NativeCall; exit +(CArray[Pointer].gist ne 'CArray[Pointer]') 21:20
bisectable6 AlexDaniel, On both starting points (old=2015.11 new=5e33934) the exit code is 1 and the output is identical as well
AlexDaniel, Output on both points: «»
AlexDaniel bisectable6: old=2015.11 use NativeCall; CArray[int]; say CArray[Pointer]
bisectable6 AlexDaniel, Bisecting by output (old=2015.11 new=5e33934) because on both starting points the exit code is 0
AlexDaniel, bisect log: gist.github.com/9aa863ab0a2aa77102...cb8ccf6c05 21:21
AlexDaniel, (2015-12-01) github.com/rakudo/rakudo/commit/cd...e09d031b07
AlexDaniel c: cdc3fb041^,cdc3fb041 use NativeCall; CArray[int]; say CArray[Pointer]
committable6 AlexDaniel, ¦cdc3fb041^: «(TypedCArray[Pointer])» ¦cdc3fb0: «(CArray[Pointer])»
AlexDaniel wait, both are okay, no? 21:22
21:22 f1ro joined
AlexDaniel bisectable6: old=cdc3fb041 use NativeCall; CArray[int]; say CArray[Pointer] 21:22
bisectable6 AlexDaniel, Bisecting by output (old=cdc3fb0 new=5e33934) because on both starting points the exit code is 0
AlexDaniel, bisect log: gist.github.com/41303c58170332075c...c48980bb59 21:23
AlexDaniel, (2015-12-01) github.com/rakudo/rakudo/commit/51...b9fbb01016
raiph bisectable6: old=2015.11 use NativeCall; exit +(CArray[Pointer].gist ne 'CArray[Pointer]') # AlexDaniel, is this correct usage?
AlexDaniel c: 518b46feb^,518b46feb use NativeCall; CArray[int]; say CArray[Pointer]
bisectable6 raiph, On both starting points (old=2015.11 new=5e33934) the exit code is 1 and the output is identical as well
raiph, Output on both points: «»
committable6 AlexDaniel, ¦518b46feb^: «(CArray[Pointer])» ¦518b46f: «(Pointer])»
AlexDaniel raiph: I'd say no. It will compare the output anyway if you just say it
raiph: something like this would be correct for ‘git bisect’ on command line 21:24
raiph gotchya
AlexDaniel but for bisectable it is too much thinking on your side :)
the reason it didn't work is because it should be “ne '(CArray[Pointer])'” I think (with parens) 21:25
c: cdc3fb041^,cdc3fb041,518b46feb^,518b46feb use NativeCall; CArray[int]; say CArray[Pointer]
committable6 AlexDaniel, ¦cdc3fb041^: «(TypedCArray[Pointer])» ¦cdc3fb0,518b46feb^: «(CArray[Pointer])» ¦518b46f: «(Pointer])»
AlexDaniel raiph: ↑ this is basically the whole history of that thing changing :)
raiph that's amazing
AlexDaniel (where sha^ is a parent of the commit) 21:26
21:28 f1ro left
raiph m: use NativeCall; say CArray[CPointer] 21:33
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared name:
CPointer used at line 1. Did you mean 'Pointer'?
21:51 troys is now known as troys_
timotimo that got renamed a while back 21:52
21:52 st_elmo left
timotimo but CArray is always of pointers to structs if they aren't of native nums or ints 21:52
21:53 espadrine_ left
raiph m: use NativeCall; put gist CArray[Pointer] # timotimo: this is the tangent I'm chasing right now 21:54
camelia (Pointer])
raiph note the missing `CArray[`
timotimo interesting 21:56
m: use NativeCall; put CArray[Pointer].^name; put CArray[Pointer].^long_name
camelia NativeCall::Types::CArray[NativeCall::Types::Pointer]
No such method 'long_name' for invocant of type 'Perl6::Metamodel::ClassHOW+{<anon>}+{<anon>}'
in block <unit> at <tmp> line 1
timotimo is it perhaps actually shortname?
m: use NativeCall; put CArray[Pointer].^shortname;
camelia Pointer]
timotimo right, that's b0rked
timotimo spits hot debug printfs 21:57
21:58 nadim left
timotimo ah, interesting 21:59
in set_name it spits by :: and sets the shortname to be only the stuff after the last ::
that's in Naming.nqp
22:01 pecastro left 22:06 beginner joined
beginner how to create own data type in perl6? 22:07
22:08 drrho_ left, drrho_ joined 22:09 rindolf left 22:12 ne_robot joined
AlexDaniel beginner: like a class? 22:15
raiph beginner: create a new class with whatever attributes and/or methods you want
timotimo beginner: what do you consider a "data type"?
raiph m: enum my-enum <a b c>; role my-role {}; class my-class {}; grammar my-grammar {}; # etc. 22:16
camelia ( no output )
AlexDaniel so everyone was quiet for 8 minutes, and then we all decided to reply in one second? :)
raiph heh 22:17
beginner timotimo : suppose a need a type that contains underscore and digits
MasterDuke or like the examples from the discussion from yesterday. subset My-Int of Int where ... . constant My-Array = Array of Int 22:18
raiph m: subset MyType of Str where / '_' / & / \d ** {2..Inf} / 22:19
camelia ( no output )
jnthn m: subset MyType of Str where /^ <[0..9_]>+ $/; my MyType $x = '123_456'
camelia ( no output )
jnthn m: subset MyType of Str where /^ <[0..9_]>+ $/; my MyType $x = '123_456!!!'
camelia Type check failed in assignment to $x; expected MyType but got Str ("123_456!!!")
in block <unit> at <tmp> line 1
22:20 pecastro joined
jnthn Heh, I see raiph and I took the alternative interpretations of the problem. :) 22:20
beginner AlexDaniel : we have built in types like int for numbers ,str for characters. I need to create a type that is combination of number and symbols
22:21 ne_robot left
raiph beginner: if a dynamically checked type is OK then I think creating a subset type as demo'd above is the natural solution 22:23
22:23 AlexDaniel left
beginner thanks all...that helps 22:24
22:29 shmibs joined 22:36 mcmillhj joined 22:41 mcmillhj left, mscha joined
mscha m: sub foo(Int @bar = (1,2,3)) { say @bar }; foo; 22:41
camelia Type check failed in binding to parameter '@bar'; expected Positional[Int] but got List ($(1, 2, 3))
in sub foo at <tmp> line 1
in block <unit> at <tmp> line 1
22:43 mcmillhj joined 22:44 AndroUser2 joined 22:45 wamba left 22:50 mcmillhj_ joined 23:03 AndroUser2 left 23:06 AndroUser2 joined 23:14 BenGoldberg joined 23:15 kurahaupo left 23:17 margeas left 23:18 mcmillhj left 23:21 beginner left 23:23 Rawriful joined 23:28 cdg left 23:38 mr-foobar left 23:40 mscha left 23:41 mr-foobar joined 23:49 skids joined 23:52 mcmillhj_ is now known as mcmillhj 23:58 Rawriful left