Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2017-05-30

Perl 6 | Reference Documentation | Rakudo

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:00 ksn00b joined #perl6
00:01 ksn00b How is it possible to use enum within 'given'/'when' scope?
00:03 Dee22 joined #perl6
00:04 ksn00b This is my code: https://pastebin.com/QKXKdJay
00:15 adu joined #perl6
00:20 AndyDee joined #perl6
00:21 sammers joined #perl6
00:24 MasterDuke tbrowder: something like this perhaps? `for $pod -> $_ is rw { $_ = pod2text($_) }; my $string = $pod.join("\n\n");`
00:39 [1]Jarryd98 joined #perl6
00:40 mcmillhj joined #perl6
00:43 tbrowder thanks, MasterDuke, I'll try that!
00:54 Actualeyes left #perl6
01:01 zapwai joined #perl6
01:01 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). https://gist.github.com/zoffixznet/1fe539715b0332be7361990785b0dd87
01:01 Zoffix .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). https://gist.github.com/zoffixznet/1fe539715b0332be7361990785b0dd87
01:01 yoleaux Zoffix: I'll pass your message to ksn00b.
01:01 Zoffix left #perl6
01:08 [1]Jarryd98 joined #perl6
01:33 mcmillhj joined #perl6
01:36 zengargoyle https://gist.github.com/zengargoyle/5a14f01a35918f6c3391b90e9b85a22a
01:36 zengargoyle if somebody could tell me whether this is a bug or just some other misunderstanding i would much appreciate it. :)
01:38 ksn00b joined #perl6
01:47 araraloren_ joined #perl6
01:47 [1]Jarryd98 joined #perl6
01:47 Cabanossi joined #perl6
01:47 ksn00b Zoffix: ah.. That was my mistake, thanks.
01:47 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). https://gist.github.com/zoffixznet/1fe539715b0332be7361990785b0dd87
01:47 mcmillhj joined #perl6
01:48 ilbot3 joined #perl6
01:48 Topic for #perl6 is now »ö« Welcome to Perl 6! | https://perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:,  or /msg camelia p6: ... | irclog: http://irc.perl6.org or http://colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
01:48 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:50 timotimo more likely the regex compilation isn't closing over the $r as much as you're expecting it to
01:50 timotimo i should really go to sleep before the damn birds start yelling at me again
01:51 Actualeyes joined #perl6
01:52 [1]Jarryd98 joined #perl6
01:53 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:54 mcmillhj_ joined #perl6
02:00 zengargoyle heh, maybe it's just a fluke that the eq version works in the first place. :)
02:05 mcmillhj joined #perl6
02:15 mcmillhj joined #perl6
02:15 adu joined #perl6
02:19 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:20 committable6 tbrowder, https://gist.github.com/0ae5466dc9480c3326953a6b176d29e1
02:21 tbrowder going to bed a happy camper...
02:23 mcmillhj_ joined #perl6
02:28 Cabanossi joined #perl6
02:34 cyphase joined #perl6
02:42 dwarring ksn00b: how about starting the enum at zero
02:42 dwarring enum MyEnum <zero one two three>
02:45 adu joined #perl6
02:46 BenGoldberg Deliberately misnaming enum constants is a hilarious way to confuse your readers.
02:46 dwarring ksn00b: https://gist.github.com/dwarring/84be2b06ddf73c7d02f68090f429512c
02:46 dwarring BenGoldberg: yup
02:47 BenGoldberg m: enum MyEnum <zero one two three>; say one;
02:47 camelia rakudo-moar 608e88: OUTPUT: «one␤»
02:48 dwarring m: enum MyEnum <zero one two three>.pick; say one;
02:48 camelia rakudo-moar 608e88: OUTPUT: «one␤»
02:48 BenGoldberg m: enum <one two three four five>; say two+three;
02:48 camelia rakudo-moar 608e88: OUTPUT: «3␤»
02:49 BenGoldberg m: enum <one two three four five>; say two+three==four;
02:49 camelia rakudo-moar 608e88: OUTPUT: «True␤»
02:50 dwarring m: enum MyEnum <zero one two three>.pick(*); say one;
02:50 camelia rakudo-moar 608e88: OUTPUT: «one␤»
02:50 dwarring m: enum MyEnum <zero one two three>.pick(*); say two+three==four;
02:50 camelia rakudo-moar 608e88: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Undeclared routine:␤    four used at line 1␤␤»
02:50 dwarring m: enum MyEnum <zero one two three four>.pick(*); say two+three==four;
02:50 camelia rakudo-moar 608e88: OUTPUT: «False␤»
02:51 BenGoldberg m: enum M <one two three four five>; say M.pick;
02:51 camelia rakudo-moar 608e88: OUTPUT: «four␤»
02:51 dwarring m: enum MyEnum <zero one two three four>.pick(*); say two+two==four;
02:51 camelia rakudo-moar 608e88: OUTPUT: «True␤»
02:51 dwarring m: enum MyEnum <zero one two three four>.pick(*); say two+two==four;
02:51 camelia rakudo-moar 608e88: OUTPUT: «True␤»
02:51 BenGoldberg m: enum M <one two three four five>; say M.pick(*);
02:51 camelia rakudo-moar 608e88: OUTPUT: «(three four one five two)␤»
02:52 mcmillhj joined #perl6
02:52 noganex_ joined #perl6
02:55 Ben_Goldberg joined #perl6
02:58 Cabanossi joined #perl6
03:06 mcmillhj joined #perl6
03:12 adu joined #perl6
03:12 Cabanossi joined #perl6
03:12 mcmillhj_ joined #perl6
03:26 Actualeyes left #perl6
03:38 Actualeyes joined #perl6
03:48 mcmillhj joined #perl6
03:56 emeric joined #perl6
03:57 nowan joined #perl6
04:00 mcmillhj joined #perl6
04:00 cgfbee joined #perl6
04:18 Geth ¦ doc: a3e0260565 | (Gabor Szabo)++ | 2 files
04:18 Geth ¦ doc: run accepting :err as well; How to fetch error from the resulting Proc object
04:18 Geth ¦ doc: review: https://github.com/perl6/doc/commit/a3e0260565
04:34 travis-ci joined #perl6
04:34 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 https://travis-ci.org/perl6/doc/builds/237377477 https://github.com/perl6/doc/compare/856e8465096f...a3e026056583
04:34 travis-ci left #perl6
04:39 mcmillhj joined #perl6
04:42 Cabanossi joined #perl6
04:43 curan joined #perl6
04:53 sivoais joined #perl6
04:53 araraloren joined #perl6
05:08 mcmillhj joined #perl6
05:15 aborazmeh joined #perl6
05:15 aborazmeh joined #perl6
05:18 pegop joined #perl6
05:27 ufobat joined #perl6
05:43 xtreak joined #perl6
05:47 cpage joined #perl6
05:53 domidumont joined #perl6
05:54 cpage_ joined #perl6
05:57 Cabanossi joined #perl6
05:57 mcmillhj joined #perl6
05:58 wamba joined #perl6
05:59 domidumont joined #perl6
06:11 mcmillhj joined #perl6
06:16 rindolf joined #perl6
06:25 mcmillhj joined #perl6
07:01 Actualeyes joined #perl6
07:01 xtreak joined #perl6
07:13 mcmillhj joined #perl6
07:14 darutoko joined #perl6
07:17 Geth ¦ Inline-Perl5: 693e576416 | (Stefan Seifert)++ | 2 files
07:17 Geth ¦ Inline-Perl5: Do not import pragmas when loading Perl 5 modules.
07:17 Geth ¦ Inline-Perl5:
07:17 Geth ¦ Inline-Perl5: Lower case module names are reserved for pragmas. It doesn't make sense to
07:17 Geth ¦ Inline-Perl5: import them and the names may interfere with Perl 6' CORE subs.
07:17 Geth ¦ Inline-Perl5: Fixes GH #92
07:17 Geth ¦ Inline-Perl5: review: https://github.com/niner/Inline-Perl5/commit/693e576416
07:28 mcmillhj joined #perl6
07:35 dakkar joined #perl6
07:37 parv joined #perl6
07:41 mcmillhj joined #perl6
07:42 Cabanossi joined #perl6
07:44 domidumont joined #perl6
07:46 g4 joined #perl6
07:46 g4 joined #perl6
07:49 Jarryd98 joined #perl6
07:52 darutoko joined #perl6
08:01 jonas2 joined #perl6
08:02 Jarryd98 joined #perl6
08:06 fatguy joined #perl6
08:09 mcmillhj joined #perl6
08:16 zakharyas joined #perl6
08:22 pmurias joined #perl6
08:27 [1]Jarryd98 joined #perl6
08:27 mcmillhj joined #perl6
08:37 jonas2 joined #perl6
08:42 mcmillhj joined #perl6
08:54 wamba joined #perl6
08:56 gregf_ joined #perl6
08:57 Cabanossi joined #perl6
09:01 mcmillhj joined #perl6
09:22 vimal2012 joined #perl6
09:23 vimal2012 joined #perl6
09:23 vimal2012 p6: say 3
09:23 camelia rakudo-moar 608e88: OUTPUT: «3␤»
10:13 margeas joined #perl6
10:13 nowan joined #perl6
10:13 luis joined #perl6
10:13 moritz joined #perl6
10:13 vcv joined #perl6
10:13 [Coke] joined #perl6
10:13 AlexDaniel joined #perl6
10:13 vimal2012 joined #perl6
10:13 Cabanossi joined #perl6
10:13 gregf_ joined #perl6
10:13 wamba joined #perl6
10:13 Jarryd98 joined #perl6
10:13 pmurias joined #perl6
10:13 zakharyas joined #perl6
10:13 darutoko joined #perl6
10:13 g4 joined #perl6
10:13 domidumont joined #perl6
10:13 parv joined #perl6
10:13 dakkar joined #perl6
10:13 Actualeyes joined #perl6
10:13 rindolf joined #perl6
10:13 cpage_ joined #perl6
10:13 cpage joined #perl6
10:13 ufobat joined #perl6
10:13 pegop joined #perl6
10:13 araraloren joined #perl6
10:13 sivoais joined #perl6
10:13 curan joined #perl6
10:13 cgfbee joined #perl6
10:13 emeric joined #perl6
10:13 cyphase joined #perl6
10:13 TEttinger joined #perl6
10:13 Util joined #perl6
10:13 greppable6 joined #perl6
10:13 Possum joined #perl6
10:13 llfourn_ joined #perl6
10:13 llfourn joined #perl6
10:13 dwarring joined #perl6
10:13 dj_goku joined #perl6
10:13 Praise joined #perl6
10:13 thundergnat joined #perl6
10:13 dalek joined #perl6
10:13 [2300mAh] joined #perl6
10:13 alimon joined #perl6
10:13 kurahaupo joined #perl6
10:13 jnthn joined #perl6
10:13 pecastro joined #perl6
10:13 revere joined #perl6
10:13 nebuchadnezzar joined #perl6
10:13 astj_ joined #perl6
10:13 committable6 joined #perl6
10:13 MilkmanDan joined #perl6
10:13 kybr joined #perl6
10:13 SCHAPiE joined #perl6
10:13 cognominal joined #perl6
10:13 vike joined #perl6
10:13 Khisanth joined #perl6
10:13 kaare__ joined #perl6
10:13 b2gills joined #perl6
10:13 xiaomiao joined #perl6
10:13 itaylor57 joined #perl6
10:13 yoleaux joined #perl6
10:13 statisfiable6 joined #perl6
10:13 unicodable6 joined #perl6
10:13 u-ou joined #perl6
10:13 CIAvash[m] joined #perl6
10:13 bisectable6 joined #perl6
10:13 evalable6 joined #perl6
10:13 bloatable6 joined #perl6
10:13 quotable6 joined #perl6
10:13 benchable6 joined #perl6
10:13 integral joined #perl6
10:13 mrsolo joined #perl6
10:13 labster joined #perl6
10:13 gdonald joined #perl6
10:13 riatre joined #perl6
10:13 stmuk joined #perl6
10:13 TimToady joined #perl6
10:13 Exodist joined #perl6
10:13 bpmedley joined #perl6
10:13 jeek joined #perl6
10:13 japhb joined #perl6
10:13 camelia joined #perl6
10:13 imcsk8 joined #perl6
10:13 geekosaur joined #perl6
10:13 samcv joined #perl6
10:13 zengargoyle joined #perl6
10:13 Sgeo joined #perl6
10:13 eater joined #perl6
10:13 drrho_ joined #perl6
10:13 dudz joined #perl6
10:13 grondilu joined #perl6
10:13 Mithaldu joined #perl6
10:13 mattp_ joined #perl6
10:13 kent\n joined #perl6
10:13 grumble joined #perl6
10:13 garu joined #perl6
10:13 Ulti joined #perl6
10:13 mst joined #perl6
10:13 rblackwe joined #perl6
10:13 pochi joined #perl6
10:13 eyck joined #perl6
10:13 silug joined #perl6
10:13 eythian joined #perl6
10:13 xxpor joined #perl6
10:13 jercos joined #perl6
10:13 rjbs joined #perl6
10:13 haxmeister joined #perl6
10:13 huf joined #perl6
10:13 nine joined #perl6
10:13 gfldex joined #perl6
10:13 brabo joined #perl6
10:13 avalenn joined #perl6
10:13 ribasushi joined #perl6
10:13 olinkl joined #perl6
10:13 chee joined #perl6
10:13 stux|RC-only joined #perl6
10:13 cbk_ joined #perl6
10:13 TeamBlast joined #perl6
10:13 erdic joined #perl6
10:13 xui_nya[m] joined #perl6
10:13 mienaikage joined #perl6
10:13 unclechu joined #perl6
10:13 ilmari[m] joined #perl6
10:13 Matthew[m] joined #perl6
10:13 M-Illandan joined #perl6
10:13 dp[m] joined #perl6
10:13 tadzik joined #perl6
10:13 notbenh joined #perl6
10:13 titsuki_ joined #perl6
10:13 charsbar joined #perl6
10:13 TreyHarris joined #perl6
10:13 daxim joined #perl6
10:13 atta joined #perl6
10:13 literal joined #perl6
10:13 tarski joined #perl6
10:13 MasterDuke joined #perl6
10:13 avar joined #perl6
10:13 awwaiid joined #perl6
10:13 hoelzro joined #perl6
10:13 shadowpaste joined #perl6
10:13 mephinet joined #perl6
10:13 abruanese joined #perl6
10:13 ccntrq joined #perl6
10:13 obfusk joined #perl6
10:13 diegok joined #perl6
10:13 Alikzus_ joined #perl6
10:13 leah2 joined #perl6
10:13 NeuralAnomaly joined #perl6
10:13 cbk joined #perl6
10:13 leedo joined #perl6
10:13 ugjka joined #perl6
10:13 gtodd joined #perl6
10:13 culb joined #perl6
10:13 perigrin joined #perl6
10:13 go|dfish joined #perl6
10:13 _kristian joined #perl6
10:13 lizmat joined #perl6
10:13 jsimonet joined #perl6
10:13 dustinm` joined #perl6
10:13 Voldenet joined #perl6
10:13 simcop2387 joined #perl6
10:13 k-man joined #perl6
10:13 ambs joined #perl6
10:13 Grauwolf joined #perl6
10:13 renormalist joined #perl6
10:13 [ptc] joined #perl6
10:13 jap6h joined #perl6
10:13 sjn joined #perl6
10:13 incredible joined #perl6
10:13 john51 joined #perl6
10:13 El_Che joined #perl6
10:13 Celelibi joined #perl6
10:13 ponbiki joined #perl6
10:13 robinsmidsrod joined #perl6
10:13 masak joined #perl6
10:13 jcallen_ joined #perl6
10:13 mls joined #perl6
10:13 Geth joined #perl6
10:13 ilbelkyr joined #perl6
10:13 klapperl joined #perl6
10:13 Bucciarati joined #perl6
10:13 cibs joined #perl6
10:13 matt_ joined #perl6
10:13 tyil joined #perl6
10:13 sftp joined #perl6
10:13 peteretep joined #perl6
10:13 zostay joined #perl6
10:13 perlawhirl joined #perl6
10:13 smash joined #perl6
10:13 buggable joined #perl6
10:13 mithaldu_ joined #perl6
10:13 m0ltar joined #perl6
10:13 skaji joined #perl6
10:13 SmokeMachine joined #perl6
10:13 kipd joined #perl6
10:13 BuildTheRobots joined #perl6
10:13 tbrowder joined #perl6
10:13 PotatoGim joined #perl6
10:13 isacloud joined #perl6
10:13 parisba joined #perl6
10:13 jnap_ joined #perl6
10:13 huggable joined #perl6
10:13 Spot__ joined #perl6
10:13 timeless joined #perl6
10:13 hobbs joined #perl6
10:13 mniip joined #perl6
10:13 pierrot joined #perl6
10:13 jantore joined #perl6
10:13 sQuEE joined #perl6
10:13 ZofBot joined #perl6
10:13 clkao joined #perl6
10:13 petercommand joined #perl6
10:13 ilmari joined #perl6
10:13 tinita joined #perl6
10:13 r3m joined #perl6
10:13 salva joined #perl6
10:13 ingy joined #perl6
10:13 jkva_ joined #perl6
10:13 f3ew joined #perl6
10:13 zoosha_ joined #perl6
10:13 [particle] joined #perl6
10:13 jhill__ joined #perl6
10:13 dg joined #perl6
10:13 ttkp6 joined #perl6
10:13 lucs joined #perl6
10:13 rodarmor joined #perl6
10:13 tardisx joined #perl6
10:13 w4and0er96 joined #perl6
10:13 ggherdov joined #perl6
10:13 pnu__ joined #perl6
10:13 chansen_ joined #perl6
10:13 damnlie joined #perl6
10:13 musca joined #perl6
10:13 SHODAN joined #perl6
10:13 spider-mario joined #perl6
10:13 mtj_ joined #perl6
10:13 ugexe joined #perl6
10:13 kshannon joined #perl6
10:13 ccakes joined #perl6
10:13 dylanwh joined #perl6
10:13 revdiablo joined #perl6
10:13 DrForr joined #perl6
10:13 sunnavy joined #perl6
10:13 bartolin_ joined #perl6
10:13 Juerd joined #perl6
10:13 baest joined #perl6
10:13 bhm joined #perl6
10:13 ecocode joined #perl6
10:13 andrewalker joined #perl6
10:13 BinGOs joined #perl6
10:13 timotimo joined #perl6
10:13 ilogger2 joined #perl6
10:13 eiro joined #perl6
10:13 protium joined #perl6
10:13 adrusi joined #perl6
10:13 Peter_R joined #perl6
10:13 hcit joined #perl6
10:13 mitchum joined #perl6
10:13 DarthGandalf joined #perl6
10:13 leego joined #perl6
10:13 plicease joined #perl6
10:13 shmibs joined #perl6
10:13 hahainternet joined #perl6
10:13 profan joined #perl6
10:13 zb joined #perl6
10:13 broquaint joined #perl6
10:13 wtw joined #perl6
10:13 ranguard joined #perl6
10:13 jervo joined #perl6
10:13 raydiak joined #perl6
10:13 Technaton joined #perl6
10:13 b^_^d joined #perl6
10:13 domm1 joined #perl6
10:13 tomaw joined #perl6
10:13 BooK joined #perl6
10:13 tony-o joined #perl6
10:13 KotH joined #perl6
10:13 arnsholt joined #perl6
10:14 xtreak joined #perl6
10:15 xtreak joined #perl6
10:16 pecastro joined #perl6
10:18 Exodist joined #perl6
10:21 ne_robot joined #perl6
10:24 travis-ci joined #perl6
10:24 travis-ci Doc build errored. Zoffix Znet 'Remove proc runs from example testing'
10:24 travis-ci https://travis-ci.org/perl6/doc/builds/237453972 https://github.com/perl6/doc/compare/dca7b697d1bf...9c1951e7c95b
10:24 travis-ci left #perl6
10:25 ne_robot ugexe: when I try to do the request to http://spys.ru/proxies with Net::HTTP::GET (https://pastebin.com/TMWcM99e), the website gives me 503; if I do the same thing with Python, it works - https://pastebin.com/xb9CnLT3
10:26 ne_robot ugexe: what am I doing wrong with Perl6?
10:29 colomon joined #perl6
10:41 travis-ci joined #perl6
10:41 travis-ci Doc build passed. Zoffix Znet 'Fix errors in example code'
10:41 travis-ci https://travis-ci.org/perl6/doc/builds/237453698 https://github.com/perl6/doc/compare/a3e026056583...dca7b697d1bf
10:41 travis-ci left #perl6
10:49 vimal2012 joined #perl6
10:51 mcmillhj joined #perl6
10:55 vimal2012 left #perl6
11:04 mcmillhj joined #perl6
11:05 travis-ci joined #perl6
11:05 travis-ci Doc build passed. Zoffix Znet 'Remove proc runs from example testing'
11:05 travis-ci https://travis-ci.org/perl6/doc/builds/237453972 https://github.com/perl6/doc/compare/dca7b697d1bf...9c1951e7c95b
11:05 travis-ci left #perl6
11:08 parv joined #perl6
11:10 robertle joined #perl6
11:16 aborazmeh joined #perl6
11:16 aborazmeh joined #perl6
11:18 Celelibi joined #perl6
11:25 mr-foobar joined #perl6
11:37 mcmillhj joined #perl6
11:48 mcmillhj joined #perl6
11:57 Cabanossi joined #perl6
12:03 mcmillhj joined #perl6
12:03 pmurias joined #perl6
12:17 mcmillhj joined #perl6
12:17 dogbert11 joined #perl6
12:19 itaylor57 joined #perl6
12:21 pilne joined #perl6
12:27 Cabanossi joined #perl6
12:30 mcmillhj joined #perl6
12:33 raschipi joined #perl6
12:33 xtreak joined #perl6
12:52 curt_ joined #perl6
12:52 nadim joined #perl6
12:53 mcmillhj joined #perl6
13:05 Zoffix joined #perl6
13:05 Zoffix How to get symbols the module exports via EXPORT sub?
13:05 Zoffix m: require Test; dd ::('UNIT::Test::EXPORT::DEFAULT::&is')
13:06 camelia rakudo-moar 608e88: OUTPUT: «Sub is = sub is (;; Mu | is raw) { #`(Sub|75608552) ... }␤»
13:06 Zoffix $ perl6 -Irepo/lib -e 'require Benchy; dd ::("UNIT::Benchy::EXPORT::DEFAULT::&b")'
13:06 Zoffix Failure.new(exception => X::NoSuchSymbol.new(symbol => "UNIT::Benchy::EXPORT::DEFAULT::\&b"), backtrace => Backtrace.new)
13:06 Zoffix Seems the above way only works for routines marked with `is export`
13:08 ufobat is tehre a better way for sub a($a where {$a ~~ Int|Callable}) { ... }
13:09 Zoffix ufobat: $a where Int|Callable
13:09 Zoffix `where` smartmatches already
13:10 Zoffix also: multi a (Int $a) {}; multi a (&a) {}
13:12 Geth ¦ doc: 6a49dcccca | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Language/modules.pod6
13:12 Geth ¦ doc: Remove note about Rakudo and EXPORT
13:12 Geth ¦ doc:
13:12 Geth ¦ doc: AFAIK current way is the it's meant to work and the note implies
13:12 Geth ¦ doc: it's a bug looking to be fixed.
13:12 Geth ¦ doc: review: https://github.com/perl6/doc/commit/6a49dcccca
13:16 ufobat thanks!
13:16 Zoffix ufobat: now you help me :D
13:16 pmurias joined #perl6
13:17 ufobat oh my.. how? :D
13:17 Zoffix ufobat: answer my question about require above
13:19 ufobat i am afraid i cant :/
13:19 Zoffix :)
13:28 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 https://github.com/zoffixznet/perl6-IRC-Client/ repo},  (require ::("IRC::Client"))); my \IRC = ::("IRC::Client"); dd IRC.new
13:29 Zoffix loading a module, with cloning a repo if the module fails to load, and loading from that
13:35 araraloren m: dd UNIT::.keys
13:35 camelia rakudo-moar 608e88: OUTPUT: «("\$=pod", "\$_", "\$/", "!UNIT_MARKER", "\$=finish", "EXPORT", "\$!", "::?PACKAGE", "GLOBALish", "\$¢", "\$?PACKAGE").Seq␤»
13:35 araraloren m: require Test; dd UNIT::.keys
13:35 camelia rakudo-moar 608e88: OUTPUT: «("\$=pod", "\$_", "\$/", "!UNIT_MARKER", "\$=finish", "EXPORT", "\$!", "::?PACKAGE", "GLOBALish", "\%REQUIRE_SYMBOLS", "Test", "\$¢", "\$?PACKAGE").Seq␤»
13:36 khw joined #perl6
13:37 daxim joined #perl6
13:41 araraloren m: require Test; dd UNIT::.keys; dd UNIT::{"\$?PACKAGE"};
13:41 camelia rakudo-moar 608e88: OUTPUT: «("\$=pod", "\$_", "\$/", "!UNIT_MARKER", "\$=finish", "EXPORT", "\$!", "::?PACKAGE", "GLOBALish", "\%REQUIRE_SYMBOLS", "Test", "\$¢", "\$?PACKAGE").Seq␤GLOBAL␤»
13:42 Cabanossi joined #perl6
13:51 pecastro joined #perl6
14:12 Zoffix left #perl6
14:13 skids joined #perl6
14:21 mcmillhj joined #perl6
14:23 avuserow joined #perl6
14:24 tbrowder AlexDaniel: excuse the 'all', please, wasn't aware of consequences
14:33 cdg joined #perl6
14:34 cdg joined #perl6
14:40 [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: http://blogs.perl.org/users/zoffix_znet/2017/05/completion-report-perl-6-io-tpf-grant.html
14:40 yoleaux 29 May 2017 22:38Z <Zoffix> [Coke]: the Markdown format for the report is available in https://github.com/zoffixznet/IOwesomeness/blob/master/reports/May-2017.md
14:45 Geth ¦ doc: 1dc0eff496 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Type/IO.pod6
14:45 Geth ¦ doc: Close pipes in the example
14:45 Geth ¦ doc: review: https://github.com/perl6/doc/commit/1dc0eff496
14:46 Geth ¦ doc: a5d0383884 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Type/IO.pod6
14:46 Geth ¦ doc: Fix typos; Fixes #1349
14:46 Geth ¦ doc: review: https://github.com/perl6/doc/commit/a5d0383884
14:55 cdg_ joined #perl6
14:57 Cabanossi joined #perl6
15:02 CacoS joined #perl6
15:05 Actualeyes left #perl6
15:07 Actualeyes joined #perl6
15:09 Actualeyes left #perl6
15:17 Geth ¦ doc: 8a3d6d4bda | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Type/IO.pod6
15:17 Geth ¦ doc: Remove duplicate word
15:17 Geth ¦ doc: review: https://github.com/perl6/doc/commit/8a3d6d4bda
15:25 Geth ¦ doc: 10502173fe | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Type/IO.pod6
15:25 Geth ¦ doc: Fix up &spurt example
15:25 Geth ¦ doc:
15:25 Geth ¦ doc: - Uncomment commented code
15:25 Geth ¦ doc: - Fixup outputs
15:25 Geth ¦ doc: - Don't CATCH to demonstrate Failure; this isn't how Failure mechanism is meant to be used
15:25 Geth ¦ doc: review: https://github.com/perl6/doc/commit/10502173fe
15:26 AlexDaniel joined #perl6
15:35 bwisti joined #perl6
15:50 [Coke] not ok 189 - doc/Type/Thread.pod6 had duplicate words: the the
15:51 [Coke] (looks like the other 50+ failures in my experiment there are all false positives.
15:57 travis-ci joined #perl6
15:57 travis-ci Doc build errored. Zoffix Znet 'Remove duplicate word'
15:57 travis-ci https://travis-ci.org/perl6/doc/builds/237559186 https://github.com/perl6/doc/compare/a5d0383884ed...8a3d6d4bda50
15:57 travis-ci left #perl6
15:59 Geth ¦ doc: fca615c5de | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Type/Thread.pod6
15:59 Geth ¦ doc: Fix duplicate word
15:59 Geth ¦ doc: review: https://github.com/perl6/doc/commit/fca615c5de
15:59 fatguy joined #perl6
16:10 [Coke] ooh, I didn't realize it was on a line boundary. nice.
16:16 travis-ci joined #perl6
16:16 travis-ci Doc build errored. Zoffix Znet 'Fix up &spurt example
16:16 travis-ci https://travis-ci.org/perl6/doc/builds/237562447 https://github.com/perl6/doc/compare/8a3d6d4bda50...10502173fe0c
16:16 travis-ci left #perl6
16:27 zakharyas joined #perl6
16:33 AlexDaniel tbrowder: well, according to quotable6, people do that very often
16:34 AlexDaniel so IMO committable6 is wrong and people are right :)
16:41 tony-o ingy: Slang::SQL works still - need to figure out some deprecated use of %*LANG
16:41 travis-ci joined #perl6
16:41 travis-ci Doc build passed. Zoffix Znet 'Fix duplicate word'
16:41 travis-ci https://travis-ci.org/perl6/doc/builds/237576913 https://github.com/perl6/doc/compare/10502173fe0c...fca615c5de6b
16:41 travis-ci left #perl6
16:41 tony-o but that shouldn't affect syntax/use
16:52 st_elmo joined #perl6
16:59 bwisti joined #perl6
17:06 itaipu joined #perl6
17:07 mcmillhj joined #perl6
17:21 AlexDaniel m: say #`X
17:21 camelia rakudo-moar ae891f: OUTPUT: «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 #perl6
17:21 AlexDaniel m: #`X
17:21 camelia rakudo-moar ae891f: ( no output )
17:22 AlexDaniel what's that :o
17:27 mcmillhj joined #perl6
17:27 Cabanossi joined #perl6
17:29 geekosaur I suspect it's a comment extending to the next X
17:30 AlexDaniel ummm
17:30 AlexDaniel m: #`{{{
17:30 camelia rakudo-moar ae891f: OUTPUT: «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:␤        }}}␤»
17:30 AlexDaniel m: say #`X hello X 42
17:30 camelia rakudo-moar ae891f: OUTPUT: «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 …»
17:31 AlexDaniel no?
17:32 AlexDaniel well, maybe, but?
17:33 setty1 joined #perl6
17:33 AlexDaniel m: dd #`X
17:33 camelia rakudo-moar ae891f: OUTPUT: «block <unit>␤»
17:33 AlexDaniel ah right, indeed, looks like a comment
17:35 committable6 joined #perl6
17:36 AlexDaniel m: #`X hello␤ say 42
17:36 camelia rakudo-moar ae891f: OUTPUT: «42␤»
17:36 AlexDaniel ah-ha
17:36 AlexDaniel it's parsed as a regular comment
17:36 AlexDaniel okay
17:37 AlexDaniel so you can do this
17:37 AlexDaniel m: #`“ say 42 ” say 42
17:37 camelia rakudo-moar ae891f: OUTPUT: «42␤»
17:37 AlexDaniel but can't do that
17:37 AlexDaniel m: #`" say 42 " say 42
17:37 camelia rakudo-moar ae891f: ( no output )
17:38 Geth ¦ doc: 95bd16012d | (Zoffix Znet)++ (committed using GitHub Web editor) | app.pl
17:38 Geth ¦ doc: Debitrot Mojolicious app
17:38 Geth ¦ doc:
17:38 Geth ¦ doc: Fixes #1332
17:38 Geth ¦ doc: review: https://github.com/perl6/doc/commit/95bd16012d
17:39 TeamBlast joined #perl6
17:41 lichtkind joined #perl6
17:42 grondilu_ joined #perl6
17:42 domidumont joined #perl6
17:43 espadrine_ joined #perl6
17:55 perlpilot debit-rot?  ;-)
17:58 [Coke] debitrot13
17:59 TeamBlast joined #perl6
18:03 mr-foobar joined #perl6
18:11 buggable joined #perl6
18:12 buggable joined #perl6
18:19 TeamBlast joined #perl6
18:36 mcmillhj joined #perl6
18:39 TeamBlast joined #perl6
18:51 kyan joined #perl6
18:56 Geth ¦ doc: 5ff5574e76 | (Jan-Olof Hendig)++ | doc/Language/subscripts.pod6
18:56 Geth ¦ doc: Adjusted some OUTPUT: messages
18:56 Geth ¦ doc:
18:56 Geth ¦ doc: Since the document was written, error messages have changed and
18:56 Geth ¦ doc: so has the format output by dd.
18:56 Geth ¦ doc: review: https://github.com/perl6/doc/commit/5ff5574e76
18:57 Cabanossi joined #perl6
19:03 cdg joined #perl6
19:07 dwarring joined #perl6
19:15 cdg joined #perl6
19:30 pilne joined #perl6
19:45 ne_robot joined #perl6
19:52 yqt joined #perl6
19:57 Cabanossi joined #perl6
20:01 cdg_ joined #perl6
20:05 nebuchadnezzar joined #perl6
20:21 Celelibi joined #perl6
20:29 Geth ¦ doc: f4582a441d | (Jan-Olof Hendig)++ | doc/Language/variables.pod6
20:29 Geth ¦ doc: Touched up ^ twigil example
20:29 Geth ¦ doc:
20:29 Geth ¦ doc: Closes #1353
20:29 Geth ¦ doc: review: https://github.com/perl6/doc/commit/f4582a441d
20:35 raschipi joined #perl6
20:40 raiph joined #perl6
20:50 raiph NativeCall question on SO with no comment/answer https://stackoverflow.com/questions/44266457/array-of-structs-as-an-attribute-of-a-perl-6-nativecall-struct
20:53 cdg joined #perl6
21:10 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: https://github.com/perl6/whateverable/wiki/Bisectable
21:12 * AlexDaniel is also ready to help
21:13 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
21:13 bisectable6 raiph, https://gist.github.com/01237e5b4ae5d876e8482a5935ca5c76
21:13 raiph commitable6: 2016.02 use NativeCall; CArray[int]; say CArray[Pointer]
21:13 committable6 raiph, ¦2016.02: «WARNINGS for /tmp/QbB0hy1ANM:␤Useless use of constant value CArray[int] in sink context (line 1)␤(Pointer])»
21:14 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
21:14 bisectable6 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 #perl6
21:14 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
21:14 bisectable6 AlexDaniel, Output on both points: «WARNINGS for /tmp/k7WMB1qXOg:␤Useless use of constant value CArray[int] in sink context (line 1)␤(Pointer])»
21:15 raiph AlexDaniel: nice bot and nice bot docs too :)
21:15 AlexDaniel \o/
21:16 AlexDaniel raiph: by the way
21:16 raiph use NativeCall; say CArray[Pointer] # .gist is screwed up and has been since at least 2015.12
21:16 raiph m: use NativeCall; say CArray[Pointer] # .gist is screwed up and has been since at least 2015.12
21:16 camelia rakudo-moar 5e3393: OUTPUT: «(Pointer])␤»
21:16 AlexDaniel committable6: 2015.11 use NativeCall; CArray[int]; say CArray[Pointer]
21:16 committable6 AlexDaniel, ¦2015.11: «(TypedCArray[Pointer])»
21:17 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
21:17 raiph er, since at least 2016.02 I mean
21:18 TEttinger joined #perl6
21:18 AlexDaniel nice bot just got stuck…
21:18 * AlexDaniel slaps bisectable6
21:18 AlexDaniel this feels like it is a change in rakudo, by the way
21:19 AlexDaniel unless adding .close to the pipe in between breaks something (sometimes)
21:19 committable6 joined #perl6
21:19 raiph bisectable6: old=2015.11 use NativeCall; exit +(CArray[Pointer].gist ne 'CArray[Pointer]')
21:20 AlexDaniel one second
21:20 bisectable6 joined #perl6
21:20 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
21:20 bisectable6 AlexDaniel, Output on both points: «»
21:20 AlexDaniel bisectable6: old=2015.11 use NativeCall; CArray[int]; say CArray[Pointer]
21:20 bisectable6 AlexDaniel, Bisecting by output (old=2015.11 new=5e33934) because on both starting points the exit code is 0
21:21 bisectable6 AlexDaniel, bisect log: https://gist.github.com/9aa863ab0a2aa77102b3f9cb8ccf6c05
21:21 bisectable6 AlexDaniel, (2015-12-01) https://github.com/rakudo/rakudo/commit/cdc3fb041abdf29b0d1981f89509bae09d031b07
21:21 AlexDaniel c: cdc3fb041^,cdc3fb041 use NativeCall; CArray[int]; say CArray[Pointer]
21:21 committable6 AlexDaniel, ¦cdc3fb041^: «(TypedCArray[Pointer])» ¦cdc3fb0: «(CArray[Pointer])»
21:22 AlexDaniel wait, both are okay, no?
21:22 f1ro joined #perl6
21:22 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
21:23 bisectable6 AlexDaniel, bisect log: https://gist.github.com/41303c58170332075c3a69c48980bb59
21:23 bisectable6 AlexDaniel, (2015-12-01) https://github.com/rakudo/rakudo/commit/518b46feb9ae179cf7a73220673da5b9fbb01016
21:23 raiph bisectable6: old=2015.11 use NativeCall; exit +(CArray[Pointer].gist ne 'CArray[Pointer]') # AlexDaniel, is this correct usage?
21:23 AlexDaniel c: 518b46feb^,518b46feb use NativeCall; CArray[int]; say CArray[Pointer]
21:23 bisectable6 raiph, On both starting points (old=2015.11 new=5e33934) the exit code is 1 and the output is identical as well
21:23 bisectable6 raiph, Output on both points: «»
21:23 committable6 AlexDaniel, ¦518b46feb^: «(CArray[Pointer])» ¦518b46f: «(Pointer])»
21:23 AlexDaniel raiph: I'd say no. It will compare the output anyway if you just say it
21:24 AlexDaniel raiph: something like this would be correct for ‘git bisect’ on command line
21:24 raiph gotchya
21:24 AlexDaniel but for bisectable it is too much thinking on your side :)
21:24 AlexDaniel the reason it didn't work is because it should be “ne '(CArray[Pointer])'” I think (with parens)
21:25 AlexDaniel c: cdc3fb041^,cdc3fb041,518b46feb^,518b46feb use NativeCall; CArray[int]; say CArray[Pointer]
21:25 committable6 AlexDaniel, ¦cdc3fb041^: «(TypedCArray[Pointer])» ¦cdc3fb0,518b46feb^: «(CArray[Pointer])» ¦518b46f: «(Pointer])»
21:25 AlexDaniel raiph: ↑ this is basically the whole history of that thing changing :)
21:25 raiph that's amazing
21:26 AlexDaniel (where sha^ is a parent of the commit)
21:28 f1ro left #perl6
21:33 raiph m: use NativeCall; say CArray[CPointer]
21:33 camelia rakudo-moar 5e3393: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Undeclared name:␤    CPointer used at line 1. Did you mean 'Pointer'?␤␤»
21:52 timotimo that got renamed a while back
21:52 timotimo but CArray is always of pointers to structs if they aren't of native nums or ints
21:54 raiph m: use NativeCall; put gist CArray[Pointer] # timotimo: this is the tangent I'm chasing right now
21:54 camelia rakudo-moar 5e3393: OUTPUT: «(Pointer])␤»
21:54 raiph note the missing `CArray[`
21:56 timotimo interesting
21:56 timotimo m: use NativeCall; put CArray[Pointer].^name; put CArray[Pointer].^long_name
21:56 camelia rakudo-moar 5e3393: OUTPUT: «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␤␤»
21:56 timotimo is it perhaps actually shortname?
21:56 timotimo m: use NativeCall; put CArray[Pointer].^shortname;
21:56 camelia rakudo-moar 5e3393: OUTPUT: «Pointer]␤»
21:56 timotimo right, that's b0rked
21:57 * timotimo spits hot debug printfs
21:59 timotimo ah, interesting
21:59 timotimo in set_name it spits by :: and sets the shortname to be only the stuff after the last ::
21:59 timotimo that's in Naming.nqp
22:06 beginner joined #perl6
22:07 beginner how to create own data type in perl6?
22:08 drrho_ joined #perl6
22:12 ne_robot joined #perl6
22:15 AlexDaniel beginner: like a class?
22:15 raiph beginner: create a new class with whatever attributes and/or methods you want
22:15 timotimo beginner: what do you consider a "data type"?
22:16 raiph m: enum my-enum <a b c>; role my-role {}; class my-class {}; grammar my-grammar {}; # etc.
22:16 camelia rakudo-moar 5e3393: ( no output )
22:16 AlexDaniel so everyone was quiet for 8 minutes, and then we all decided to reply in one second? :)
22:17 raiph heh
22:17 beginner timotimo : suppose a need a type that contains underscore and digits
22:18 MasterDuke or like the examples from the discussion from yesterday. subset My-Int of Int where ... . constant My-Array = Array of Int
22:19 raiph m: subset MyType of Str where / '_' / & / \d ** {2..Inf} /
22:19 camelia rakudo-moar 5e3393: ( no output )
22:19 jnthn m: subset MyType of Str where /^ <[0..9_]>+ $/; my MyType $x = '123_456'
22:19 camelia rakudo-moar 5e3393: ( no output )
22:19 jnthn m: subset MyType of Str where /^ <[0..9_]>+ $/; my MyType $x = '123_456!!!'
22:19 camelia rakudo-moar 5e3393: OUTPUT: «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 #perl6
22:20 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:23 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:24 beginner thanks all...that helps
22:29 shmibs joined #perl6
22:36 mcmillhj joined #perl6
22:41 mscha joined #perl6
22:41 mscha m: sub foo(Int @bar = (1,2,3)) { say @bar }; foo;
22:41 camelia rakudo-moar 5e3393: OUTPUT: «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 #perl6
22:44 AndroUser2 joined #perl6
22:50 mcmillhj_ joined #perl6
23:06 AndroUser2 joined #perl6
23:14 BenGoldberg joined #perl6
23:15 kurahaupo left #perl6
23:23 Rawriful joined #perl6
23:41 mr-foobar joined #perl6
23:49 skids joined #perl6

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

Perl 6 | Reference Documentation | Rakudo