Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2016-10-11

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:06 pierre__ joined #perl6
00:28 pierre__ joined #perl6
00:32 pierre_ joined #perl6
00:39 ka joined #perl6
00:43 seatek joined #perl6
00:49 rgrinberg joined #perl6
01:02 Derperperd joined #perl6
01:06 ka joined #perl6
01:09 pierre_ joined #perl6
01:19 ka joined #perl6
01:26 ka joined #perl6
01:30 metalman5 joined #perl6
01:33 Actualeyes joined #perl6
01:35 Herby_ joined #perl6
01:35 Herby_ o/
01:36 seatek joined #perl6
01:36 Herby_ \o
01:38 TEttinger joined #perl6
01:47 ilbot3 joined #perl6
01:47 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:51 seatek All my coding time was sucked into jury duty. I'm just going to judge everything from now on.
01:53 seatek laywers are like weak programmers with all kinds of fuzzy going on
01:53 seatek i liked the judge though - she likes gardens
01:54 Herby_ lawyer is latin for 'liar'
01:54 seatek is it really?
01:54 Herby_ lol probably not
01:54 seatek oh see, i'll belileve anything. i'll make a terrible juror.
01:59 cyphase joined #perl6
02:00 ka joined #perl6
02:11 sufrostico joined #perl6
02:11 cyphase joined #perl6
02:14 AlexDaniel committable6: 2014.01 say [Z] <a b>,
02:14 committable6 AlexDaniel, ¦«2014.01»: ===SORRY!=== Error while compiling /tmp/aVYaZ0C2TY␤Two terms in a row␤at /tmp/aVYaZ0C2TY:1␤------> say [Z] <a b>,⏏<EOL>␤    expecting any of:␤        postfix␤        infix stopper␤        infix or meta-infix «exit code = 1»
02:14 AlexDaniel committable6: 2014.01 say [Z] <a b>
02:14 committable6 AlexDaniel, ¦«2014.01»: a b
02:19 Herby_ is there an appreciable difference between:  %data = $parser.get_line();    and %data = %($parser.get_line());
02:19 Herby_ ?
02:23 cyphase joined #perl6
02:25 seatek Herby_, is that that CSV parser?
02:26 Herby_ yeah. pulled it from CSV::Parser github
02:26 seatek because if it is I think I remember it saying that if you told it to do a named column something (like I remember seen you did) then it would create hashes on that routine.
02:26 seatek instead of just a list
02:27 seatek but my memory may be damaged
02:27 Herby_ hmm
02:27 seatek try it and see!
02:28 Herby_ there was no appreciable difference that I could see
02:28 Herby_ but its always possible that i'm missing something
02:29 seatek if get_line() is returning a hash already (which I think I remember reading yesterday, saying it would) then you don't need to make it into a hash again.
02:30 seatek if it's working still as before, that' sprobabaly what it's doing and  you're fine
02:30 seatek i would think
02:31 Herby_ i'll stick with my philosophy of: when in doubt, assume!
02:31 cyphase joined #perl6
02:31 Herby_ i'll keep using it till it stops working :)
02:33 Herby_ i'll keep using it till it stops working :)
02:33 Herby_ whoops!
02:35 vytas joined #perl6
02:41 cyphase joined #perl6
02:49 noganex joined #perl6
03:08 sufrostico joined #perl6
03:09 Lucas_One Hi all
03:09 Lucas_One what is extension correct of Perl 6?
03:09 Lucas_One .pl6 or p6
03:12 Lucas_One here .p6: https://docs.perl6.org/language/modules
03:13 Lucas_One here .pl6: http://perl6intro.com/#_running_perl_6_code
03:15 b2gills I usually use .p6
03:18 Herby_ hello!
03:18 Herby_ I'm now using .p6 too
03:19 Lucas_One understand
03:20 * p3rln00b likes to use .blah
03:20 Lucas_One Visual Studio Code is .p6
03:20 BenGoldberg You don't actually need an extension, you know.
03:20 Lucas_One yes
03:21 p3rln00b Lucas_One: there's no real "correct" answer. You can run perl6 some-script with whatever exception you like. And on Linux, the shebang dictates what program executes the script, not extention. So it comes down to Windows, and there's probably a way to get it to use whatever as well
03:21 p3rln00b s/exception/extension/;
03:21 p3rln00b For modules, use .pm6
03:22 BenGoldberg The more important thing is that (A) you name your files so you know what they are, and (ii) you name your files so your editor/ide knows what they are and syntax highlights / indents correctly.
03:24 Lucas_One thanks
03:33 Averna joined #perl6
03:43 pierre_ joined #perl6
04:05 frudas joined #perl6
04:05 frudas hello ,
04:06 frudas how i can check which  operating system i am, in perl5 i can do this "system $^O eq 'MSWin32' ? 'cls' : 'clear';"
04:06 samcv left #perl6
04:07 samcv joined #perl6
04:10 geekosaur m: say $*DISTRO.name
04:10 camelia rakudo-moar f117a6: OUTPUT«opensuse␤»
04:10 geekosaur m: say so $*DISTRO.is-win
04:10 camelia rakudo-moar f117a6: OUTPUT«False␤»
04:11 frudas thankx
04:33 jcallen joined #perl6
04:35 ewet joined #perl6
04:36 pierre_ joined #perl6
04:37 mniip joined #perl6
04:49 Cabanossi joined #perl6
04:54 pierre_ joined #perl6
04:54 wamba joined #perl6
05:10 geekosaur joined #perl6
05:17 mohae_ joined #perl6
05:35 domidumont joined #perl6
05:39 domidumont joined #perl6
05:50 dj_goku joined #perl6
05:55 pierre_ joined #perl6
05:55 Sgeo__ joined #perl6
05:58 brrt left #perl6
06:02 domidumont joined #perl6
06:03 pierre_ joined #perl6
06:04 ufobat joined #perl6
06:08 neuraload joined #perl6
06:13 Actualeyes1 joined #perl6
06:23 abraxxa joined #perl6
06:23 Khisanth joined #perl6
06:27 firstdayonthejob joined #perl6
06:32 abraxxa joined #perl6
06:44 bbkr joined #perl6
06:46 smash joined #perl6
06:46 Sgeo__ joined #perl6
06:49 brillenfux joined #perl6
06:49 darutoko joined #perl6
06:53 brillenfux joined #perl6
06:54 wamba joined #perl6
06:54 xiaomiao joined #perl6
06:57 bjz joined #perl6
06:59 CIAvash joined #perl6
07:03 jervo joined #perl6
07:08 brillenfux joined #perl6
07:12 kenh83_ joined #perl6
07:20 arnsholt .u U+0301
07:20 yoleaux U+0301 COMBINING ACUTE ACCENT [Mn] (◌́)
07:25 Sgeo_ joined #perl6
07:34 RabidGravy joined #perl6
07:35 ka joined #perl6
07:36 dataange` joined #perl6
07:42 bjz joined #perl6
07:46 e1 joined #perl6
07:50 [particle] joined #perl6
07:51 wamba joined #perl6
07:52 Lucas_One joined #perl6
07:53 Actualeyes joined #perl6
07:55 djbkd joined #perl6
07:56 andrewalker joined #perl6
08:05 ocbtec joined #perl6
08:08 RabidGravy boom!
08:10 DrForr Boom today? Yay!
08:11 * lizmat clickbaits https://p6weekly.wordpress.com/2016/10/10/2016-41-the-answer-is-near/
08:12 RabidGravy Jam tomorrow!
08:22 dakkar joined #perl6
08:24 maybekoo2 joined #perl6
08:31 Xliff_ joined #perl6
08:33 jargan joined #perl6
08:35 shmibs_ joined #perl6
08:36 sunnavy_ joined #perl6
08:36 decent_ joined #perl6
08:36 lucs_ joined #perl6
08:36 psch_ joined #perl6
08:36 sjn__ joined #perl6
08:36 atacama_ joined #perl6
08:36 huf_ joined #perl6
08:37 kst` joined #perl6
08:39 Timbus_ joined #perl6
08:39 salva00 joined #perl6
08:40 silug__ joined #perl6
08:41 Urchin joined #perl6
08:43 hanekomu joined #perl6
08:45 cgfbee joined #perl6
08:47 RabidGravy joined #perl6
08:47 brrt joined #perl6
08:49 labster joined #perl6
08:49 kent\n joined #perl6
08:49 huggable joined #perl6
08:49 edenc joined #perl6
08:49 dalek joined #perl6
08:49 flaviusb joined #perl6
08:49 Undercover joined #perl6
08:49 SourceBaby joined #perl6
08:49 NeuralAnomaly joined #perl6
08:49 buggable joined #perl6
08:49 bisectable6 joined #perl6
08:49 synopsebot6 joined #perl6
08:49 hobbs joined #perl6
08:49 timeless joined #perl6
08:49 Spot__ joined #perl6
08:49 w4and0er96 joined #perl6
08:49 peteretep joined #perl6
08:49 TeamBlast joined #perl6
08:49 stigo joined #perl6
08:49 xfix joined #perl6
08:49 JimmyZ joined #perl6
08:49 BinGOs joined #perl6
08:49 dylanwh joined #perl6
08:54 w4and0er96 joined #perl6
08:54 Spot__ joined #perl6
08:55 g4 joined #perl6
08:55 g4 joined #perl6
08:56 lco joined #perl6
09:01 bjz joined #perl6
09:02 Actualeyes joined #perl6
09:04 wamba joined #perl6
09:32 rindolf joined #perl6
09:42 erdic joined #perl6
09:45 telex joined #perl6
09:53 nowan_ joined #perl6
09:58 nowan joined #perl6
10:06 SevenWolf joined #perl6
10:25 jonas1 joined #perl6
10:26 dalek doc: 64a0721 | (Luca Ferrari)++ | doc/Language/typesystem.pod6:
10:26 dalek doc: Link to the classtut in the class explaination.
10:26 dalek doc: From suggestion via https://github.com/perl6/doc/pull/961
10:26 dalek doc: review: https://github.com/perl6/doc/commit/64a0721bf1
10:26 dalek doc: 563d63b | RabidGravy++ | doc/Language/typesystem.pod6:
10:26 dalek doc: Merge pull request #962 from fluca1978/master
10:26 dalek doc:
10:26 dalek doc: Link to the classtut in the class explaination.
10:26 dalek doc: review: https://github.com/perl6/doc/commit/563d63baeb
10:28 neuraload joined #perl6
10:34 bpmedley joined #perl6
10:36 FROGGS joined #perl6
10:38 b2gills joined #perl6
10:44 pmurias joined #perl6
10:44 pmurias hi
10:46 lambd0x joined #perl6
10:46 lambd0x Hi everyone!
10:47 RabidGravy erp
10:48 RabidGravy haha, the perils of testing against a live MQ broker
10:48 RabidGravy # expected: 'Hello, World'
10:48 RabidGravy #      got: 'Hello World!'
10:49 jnthn The broker makes things more exciting? :P
10:50 pmurias RabidGravy: the broker is mangling your data?
10:51 lambd0x Want to know the right way to measure time spent by a code snippet?
10:51 RabidGravy No, the test worked fine the next time
10:52 RabidGravy I guess there was already a queue called "hello" with the slightly different message on it
10:52 lambd0x m: $a = time; say "a {time - $a}";
10:52 camelia rakudo-moar f117a6: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Variable '$a' is not declared␤at <tmp>:1␤------> 3<BOL>7⏏5$a = time; say "a {time - $a}";␤»
10:52 psch_ m: no strict; $a = time; say "a {time - $a}";
10:52 lambd0x m: my $a = time; say "a {time - $a}";
10:52 camelia rakudo-moar f117a6: OUTPUT«a 0␤»
10:52 camelia rakudo-moar f117a6: OUTPUT«a 0␤»
10:53 lambd0x m: my $a = time; say "a {$a - INIT time}";
10:53 camelia rakudo-moar f117a6: OUTPUT«a 0␤»
10:54 psch m: my $a = time; say "a {$a - BEGIN time}";
10:54 camelia rakudo-moar f117a6: OUTPUT«a 0␤»
10:57 jnthn RabidGravy: hah...guess can generate a uuid-ish thingy for the queue name in the test :)
10:59 lambd0x psch: thank you.
11:01 * psch wasn't really aware of having helped
11:01 psch lambd0x: what were you looking for anyway?
11:01 canopus joined #perl6
11:02 jnthn Note that using `now` instead of `time` will get you sub-second accuracy
11:03 jnthn m: for ^10000 { }; say now - INIT now
11:03 camelia rakudo-moar f117a6: OUTPUT«0.0040719␤»
11:07 RabidGravy jnthn, I'm just going for a PID, it's actually in the test of Net::AMQP so I don't really want to bring in more modules
11:08 jnthn Well, just generating a big enough random number would do in a pinch
11:09 jnthn m: say (1000000000..9999999999).pick
11:09 camelia rakudo-moar f117a6: OUTPUT«4208110422␤»
11:09 lambd0x psch: I was looking for a proper way to measure time spent by a code snippet
11:09 jnthn I'm guessing if you're working on Net::AMQP you decided not to do the STOMP thing for accessing ActiveMQ?
11:09 psch lambd0x: well, best take the suggestion by jnthn++ :)
11:10 RabidGravy jnthn, no, no, it's just I've been tending it for the last while and I thought it was time for a test :)
11:11 RabidGravy I still haven't got a working ActiveMQ instance here
11:11 lambd0x psch: gotcha
11:11 jnthn Ah, OK :)
11:12 lambd0x thanks jnthn
11:12 Actualeyes joined #perl6
11:16 RabidGravy m: say ((0 .. 2**32).pick + ($*PID +< 32) + time).base(16)
11:16 camelia rakudo-moar f117a6: OUTPUT«338DD0B2A6C7␤»
11:16 RabidGravy there
11:18 CIAvash joined #perl6
11:19 gregf_ joined #perl6
11:27 pmurias [Coke]: I'm writing a progress update on the rakudo.js grant, I'll post it tommorow once I'll think a bit about what's left/a rough estimate when it will be done
11:31 stmuk_ joined #perl6
11:39 pierre_ joined #perl6
11:50 wamba joined #perl6
12:00 rindolf joined #perl6
12:06 timotimo pmurias++
12:09 pmurias pmurias-- # recently neglecting progress reports on rakudo.js
12:09 kaare_ joined #perl6
12:09 gfldex i consider the progress more important then the report
12:12 timotimo isn't this part of the grant's deliverables, though?
12:14 pmurias it's part of the grant process
12:15 timotimo i'm akoy with not so many reports, though
12:16 pmurias they also are important in keeping up peoples interest, hopefully once I get to enough of the setting compiling to reach &say, they will be interesting once tests start passing
12:17 [Coke] pmurias: thanks!
12:23 RabidGravy well I finally got activeMQ going, I did have to stop rabbitmq though
12:25 rgrinberg joined #perl6
12:26 RabidGravy we also found two smartphones and two walkmans under the "leg" of the coffee table
12:27 Urchin joined #perl6
12:27 timotimo wow
12:27 DrForr Hopefully they weren't Galaxy Notes.
12:31 tadzik "break a leg!" "break? I'm going to blow it up!"
12:32 timotimo fire up the leg ...
12:32 timotimo literally, fire ... up the leg
12:33 jnthn .oO( I listened to your mixtape on my galaxy note and it was really fire )
12:49 zakharyas joined #perl6
12:49 tadzik . o O ( Samsung Galaxy C4 )
12:50 * p3rln00b hugs his Galaxy Note...
12:50 p3rln00b so... warm
12:51 tadzik no llama nooo
12:53 p3rln00b How can I prevent it from referencing foo:
12:53 p3rln00b m: sub foo { warn 'foo' }; sub bar { foo; }; sub meow { bar; }()
12:53 camelia rakudo-moar f117a6: OUTPUT«foo␤  in sub foo at <tmp> line 1␤»
12:53 p3rln00b m: sub foo { warn 'foo' }; sub bar { foo; CONTROL { when CX::Warn { .rethrow } } }; sub meow { bar; }()
12:53 camelia rakudo-moar f117a6: OUTPUT«foo␤  in sub foo at <tmp> line 1␤Trying to unwind over wrong handler␤»
12:53 p3rln00b ^ that doesn't seems to be the answer.
12:54 psch well if you're rethrowing the CX::Warn...
12:54 p3rln00b Well, I'm just out of ideas :)
12:54 psch anyway, what does "refering foo" mean there?
12:54 psch don't invoke it because it will only warn..?
12:55 p3rln00b Mentioning sub foo in the output
12:55 tadzik you probably want is hidden_from_backtrace
12:55 psch m: sub foo { warn 'foo' }; sub bar { foo; CONTROL { when CX::Warn {  } } }; sub meow { bar; }()
12:55 camelia rakudo-moar f117a6: ( no output )
12:55 tadzik m: sub foo is hidden_from_backtrace { warn 'foo' }; sub bar { foo; }; sub meow { bar; }()
12:55 camelia rakudo-moar f117a6: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Can't use unknown trait 'is hidden_from_backtrace' in a sub declaration.␤at <tmp>:1␤    expecting any of:␤        rw raw hidden-from-backtrace hidden-from-USAGE␤        pure default DEPRECATED inlina…»
12:55 psch oh 'sub foo'
12:55 tadzik fak
12:55 psch yeah i get it now
12:55 p3rln00b m: sub foo { warn 'foo' }; sub bar { foo; CONTROL { when CX::Warn { warn $_ } } }; sub meow { bar; }()
12:55 camelia rakudo-moar f117a6: OUTPUT«foo␤  in block  at <tmp> line 1␤»
12:55 tadzik how do you spell that again? :)
12:55 p3rln00b maybe that...
12:56 tadzik m: sub foo is hidden-from-backtrace { warn 'foo' }; sub bar { foo; }; sub meow { bar; }()
12:56 camelia rakudo-moar f117a6: OUTPUT«foo␤  in sub bar at <tmp> line 1␤»
12:56 psch tadzik: probably a victim of the tr/_/-/ refactor
12:56 tadzik ha
12:56 psch tadzik++
12:56 tadzik yeah
12:56 tadzik I'm Rusty these days
12:56 tadzik pun indented
12:56 timotimo oh rusty
12:57 psch so, yeah, if you don't want warnings from a given sub to mention that specific sub in their output, you trait it with hidden-from-backtrace
12:58 psch rethrowing a CATCH/CX::Warn block means you're starting a new Backtrace in that CATCH block
12:58 psch s/g a /g in a /
12:59 p3rln00b Not an option for me: Trait 'hidden-from-backtrace' not implemented
12:59 telex joined #perl6
12:59 p3rln00b I'm gonna try the rethrowing thing
12:59 timotimo huh? why is that not an option?
12:59 p3rln00b Perl6/Actions.
12:59 timotimo oh
12:59 timotimo you can probably mix in a role with the same method that signals it
13:00 psch well, it's not actually rethrowing :/
13:00 psch i misspoke
13:01 psch it's just a new &warn call with the existing CX::Warn, which i think only takes the payload/message..?
13:02 psch p3rln00b: did you try $*W.apply_trait(...)?
13:02 psch not sure if that runs at the right moment for a sub declared in Actions
13:03 psch alternative the mixin should work -- it really only needs a method is-hidden-from-backtrace that returns something truthy i suppose
13:07 * p3rln00b tries something entirely different :}
13:11 p3rln00b ...and fails.
13:11 p3rln00b m: q:to/x/;␤y␤ x
13:11 camelia rakudo-moar f117a6: OUTPUT«Asked to remove 1 spaces, but the shortest indent is 0 spaces␤  in any trim_heredoc at gen/moar/m-Perl6-Actions.nqp line 499␤»
13:12 ilmari joined #perl6
13:12 p3rln00b Was gonna fix that, but the more I hide the more I get... like Perl6/Grammar, now Grammar.moarvm.
13:12 pmurias http://paste.debian.net/865143/
13:12 * p3rln00b knocks it on the head. If anyone wants to give it a go: https://rt.perl.org/Ticket/Display.html?id=129838
13:12 pmurias ^^ paste # if I call a multi method at BEGIN time it resolves incorrectly at runtime
13:13 psch p3rln00b: maybe expand the is-setting solution to Actions, Grammar, and World?
13:13 p3rln00b psch: in Backtrace.is-setting? Yeah, that's what I was doing. Got it to three files and gave up, 'cause it kinda smells.
13:14 Urchin joined #perl6
13:14 psch ah, okay
13:14 psch i think it's probably the cleanest we can do, fwiw
13:14 skids joined #perl6
13:23 RabidGravy jnthn, it's possible that the Stomp module *doesn't* work with the ActiveMQ, just trying to work out why it is crapping out
13:23 jnthn Hm, curious. Also, patches very welcome ;)
13:26 ptolemarch joined #perl6
13:32 RabidGravy it doesn't like the connect message
13:32 RabidGravy got >CONNECTED
13:32 RabidGravy server:ActiveMQ/5.14.1
13:32 RabidGravy heart-beat:0,0
13:32 RabidGravy session:ID:coriolanus-39355-1476187339674-4:19
13:32 RabidGravy version:1.2
13:32 RabidGravy <
13:32 RabidGravy there are blank lines in there
13:42 nadim joined #perl6
13:52 khw joined #perl6
13:52 awwaiid joined #perl6
13:53 RabidGravy ah, got it
13:56 RabidGravy it's the colons in the session "session:ID:coriolanus-40279-1476193934907-3:1" in ActiveMQ vs "session:session-uTCNCJvn-zjhaW8WHI6pTQ" for RabbitMQ
13:58 pierre_ joined #perl6
13:58 jnthn Ah, and we don't allow :s in the value?
13:59 dalek Heuristic branch merge: pushed 16 commits to doc/spellcheck by coke
13:59 RabidGravy nope, just taking that out of the header-value regex and it at least connects
14:00 jnthn Nice
14:04 RabidGravy yep that works, let me take the debuggery out and  check again
14:08 [Coke] https://github.com/perl6/doc/pull/964/files#diff-0 - that's not a twigil.
14:09 [Coke] ... ah.
14:09 [Coke] perhaps using ^ in the example not as a twigil when it's about the ^ twigil is confusing. :)
14:10 psch ah, the Ranges
14:10 p3rln00b Yeah :)
14:10 psch yeah, i agree with that
14:10 timotimo hehe.
14:10 p3rln00b .oO( yo dawg, I heard you liked traps about ^ )
14:11 gregf_ joined #perl6
14:13 RabidGravy you can throw in the "^ as method prefix", while you're there ;-)
14:16 RabidGravy m: class Foo { method ^parameterize(*@a) { say "boo ", @a } };  my $a = Foo[Int].new; # for reference
14:16 camelia rakudo-moar f117a6: OUTPUT«boo [(Foo) (Int)]␤»
14:16 psch huh, we have that too
14:16 psch m: with "foo" { { say $^a } for ^(.^name.chars)
14:16 camelia rakudo-moar f117a6: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Missing block␤at <tmp>:1␤------> 3 "foo" { { say $^a } for ^(.^name.chars)7⏏5<EOL>␤»
14:16 psch m: with "foo" { { say $^a } for ^(.^name.chars) }
14:16 camelia rakudo-moar f117a6: OUTPUT«0␤1␤2␤»
14:16 psch that was what i was thinking, but that's a different method op, not a method prefix
14:17 psch wait a second, is the prefix shadowing the methodop..?
14:17 psch m: class A { method ^name { "foo" } }; say A.^name
14:17 camelia rakudo-moar f117a6: OUTPUT«Too many positionals passed; expected 1 argument but got 2␤  in method name at <tmp> line 1␤  in block <unit> at <tmp> line 1␤␤»
14:17 * psch walks away slowly
14:18 p3rln00b :D
14:18 cdg joined #perl6
14:19 jnthn method ^foo is for declaring a meta-method
14:19 psch m: class A { method ^name { "foo" } }; say A.^name("bar")
14:19 camelia rakudo-moar f117a6: OUTPUT«Too many positionals passed; expected 1 argument but got 3␤  in method name at <tmp> line 1␤  in block <unit> at <tmp> line 1␤␤»
14:19 psch oh, okay, so the other way around
14:19 psch hm, we still get the HOW calling convention automatically though, that's interesting
14:19 jnthn The are automatically placed into a role that is mixed into meta-object
14:19 jnthn Well, you're calling it with .^name
14:20 jnthn So it's doing A.HOW.name(A)
14:20 psch yeah, right.  it makes sense
14:20 jnthn And you aren't taking the object
14:20 psch as in, i thought it from the wrong side
14:20 jnthn m: class A { method ^name($) { "foo" } }; say A.^name
14:20 camelia rakudo-moar f117a6: OUTPUT«foo␤»
14:25 perlpilot joined #perl6
14:25 ka joined #perl6
14:28 Woodi joined #perl6
14:29 eliasr joined #perl6
14:39 ilmari joined #perl6
14:44 cygx joined #perl6
14:45 cygx did something recently-ish change with precompilation or fiel operations that would lead to CompUnit::PrecompilationStore::File!file dying?
14:45 cygx my Rakudo build dies during the install-core-dist.pl step...
14:46 cygx (win64/mingw)
14:47 p3rln00b Yeah, there were changes. Does it show any errors?
14:47 timotimo did you perl Configure.pl recently?
14:48 Derperperd joined #perl6
14:48 p3rln00b cygx: a lot of changes were made to fix this bug. So you could try a build with some commit before the bug was filed: https://rt.perl.org/Ticket/Display.html?id=129776#ticket-history
14:49 cygx error is Failed to mkdir: 2 (aka file not found) when trying to create lib\.precomp\2FBB8D60D7C...
14:49 cygx I'll nuke some stuff and try again
14:52 neuraload joined #perl6
14:52 dalek doc: fb3d06c | (Zoffix Znet)++ | doc/Type/List.pod6:
14:52 dalek doc: Document List.[from|to]
14:52 dalek doc: review: https://github.com/perl6/doc/commit/fb3d06c92c
14:57 seatek joined #perl6
14:59 pierre_ joined #perl6
15:00 optikalmouse joined #perl6
15:01 cygx no dice :(
15:02 RabidGravy jnthn, another thing I learned from this testing the Stomp module with ActiveMQ was that Net::AMPQ doesn't work with ActiveMQ either
15:03 RabidGravy which is due to the version of AMQP it uses, may have to look at doing that loadable spec thing that all the cool kids use
15:06 FROGGS joined #perl6
15:07 FROGGS o/
15:11 optikalmouse ,o/
15:21 girafe joined #perl6
15:23 RabidGravy yo FROGGS
15:30 ocbtec joined #perl6
15:34 zacts joined #perl6
15:35 harmil_wk joined #perl6
15:35 yqt joined #perl6
15:38 rindolf joined #perl6
15:54 Derperperd joined #perl6
15:55 optikalmouse joined #perl6
16:19 AlexDaniel joined #perl6
16:26 araujo joined #perl6
16:26 araujo joined #perl6
16:27 wamba joined #perl6
16:30 xinming joined #perl6
16:40 hassoub joined #perl6
17:02 pierre__ joined #perl6
17:16 RabidGravy somebody be a love and make a really fast XML parser
17:17 BinGOs sounds like a contradiction in terms.
17:17 optikalmouse joined #perl6
17:19 Derperperd joined #perl6
17:22 mohae joined #perl6
17:26 mspo a few jobs ago we had hardware xml parsers
17:26 mspo IBM boxes; I forget the name
17:30 timotimo to be fair, a pure-perl6 xml parser is quite likely a few orders of magnitude slower than any regular xml parser library you can find for C or something
17:30 timotimo well, maybe not a few, but at least one
17:30 FROGGS RabidGravy: the libxml2 C bindings are not that advanced yet, but perhaps usable for your use case
17:31 domidumont joined #perl6
17:32 DrForr BinGOs: Welcome!
17:33 DrForr I've just checked the internals. does anyone have an issue if I rename Perl6::Tidy to what it really is, namely Perl6::Parser, and just release the d*mn thing to the ecosystem?
17:34 DrForr There's a TAP::Parser, HLL::CommandLine::Parser and comments about the NQP parser, but no seeming conflicts.
17:35 gfldex DrForr: you can check this file for collisions: http://ecosystem-api.p6c.org/projects.json
17:36 DrForr Thanks.
17:36 BinGOs DrForr: I've been here for years, I am just silent.
17:37 [Coke] DrForr: Seems reasonable to me.
17:38 lucasb joined #perl6
17:39 DrForr Thanks. Just not wanting to step on toes.
17:40 DrForr It's not at full coverage, but it does non-trivial hunks of code, which in my book means it's at least ready for public vieing.
17:40 DrForr *viewing
17:41 p3rln00b Public vieing seems like a good way to get full coverage :P
17:41 markk_ BinGOs is everywhere, watching, waiting, silent, like a ninja
17:42 DrForr I was thinking more like Kibo.
17:42 DrForr But that's probably too obscure :)
17:42 markk_ I am also everywhere... watching... waiting... silent... deeply. deepy confused
17:43 p3rln00b :o
17:44 dalek doc: e19b4d1 | coke++ | t/tabs.t:
17:44 dalek doc: Make test show line numbers.
17:44 dalek doc:
17:44 dalek doc: Suggested in #964
17:44 dalek doc: review: https://github.com/perl6/doc/commit/e19b4d1f35
17:49 wamba joined #perl6
17:52 ptolemarch joined #perl6
17:52 Possum joined #perl6
17:53 setty1 joined #perl6
17:56 timotimo https://twitter.com/krisajenkins/status/785479254872039424
17:56 timotimo m: say Date.new("2016-07-15")
17:56 camelia rakudo-moar bfe621: OUTPUT«2016-07-15␤»
17:57 timotimo m: say DateTime.new("2016-07-15")
17:57 camelia rakudo-moar bfe621: OUTPUT«Invalid DateTime string '2016-07-15'; use an ISO 8601 timestamp (yyyy-mm-ddThh:mm:ssZ or yyyy-mm-ddThh:mm:ss+01:00) instead␤  in block <unit> at <tmp> line 1␤␤»
17:57 timotimo *shrugs*
17:58 skids joined #perl6
17:59 p3rln00b m: say Date.new("2016-7-15")
17:59 camelia rakudo-moar bfe621: OUTPUT«Invalid Date string '2016-7-15'; use yyyy-mm-dd instead␤  in block <unit> at <tmp> line 1␤␤»
17:59 p3rln00b All in order
17:59 p3rln00b m: say Date.new("2016-7-15").DateTime
17:59 camelia rakudo-moar bfe621: OUTPUT«Invalid Date string '2016-7-15'; use yyyy-mm-dd instead␤  in block <unit> at <tmp> line 1␤␤»
17:59 p3rln00b m: say Date.new("2016-07-15").DateTime
17:59 camelia rakudo-moar bfe621: OUTPUT«No such method 'DateTime' for invocant of type 'Date'␤  in block <unit> at <tmp> line 1␤␤»
17:59 moritz .oO( be strict in what you accept )
17:59 p3rln00b :o
17:59 moritz m: say DateTime(Date.new("2016-07-15"))
17:59 camelia rakudo-moar bfe621: OUTPUT«Cannot find method 'DateTime' on object of type Date␤  in block <unit> at <tmp> line 1␤␤»
18:00 moritz that's something worth adding, IMHO
18:00 p3rln00b m: say DateTime.new: Date.new("2016-07-15")
18:00 camelia rakudo-moar bfe621: OUTPUT«Cannot resolve caller new(DateTime: Date); none of these signatures match:␤    (DateTime $: \y, \mo, \d, \h, \mi, \s, :$timezone = 0, :&formatter, *%_)␤    (DateTime $: :$year!, :$month = 1, :$day = 1, :$hour = 0, :$minute = 0, :$second = 0, :$timezone…»
18:00 p3rln00b Agreed
18:01 dalek doc: c40978d | (Zoffix Znet)++ | doc/Type/Map.pod6:
18:01 dalek doc: Correct Map.new
18:01 dalek doc: review: https://github.com/perl6/doc/commit/c40978d060
18:02 Derperperd joined #perl6
18:17 hankache joined #perl6
18:21 dalek doc: 76bfdd9 | coke++ | doc/Type/Map.pod6:
18:21 dalek doc: remove trailing ws
18:21 dalek doc: review: https://github.com/perl6/doc/commit/76bfdd966a
18:21 dalek doc/spellcheck: fb3d06c | (Zoffix Znet)++ | doc/Type/List.pod6:
18:21 dalek doc/spellcheck: Document List.[from|to]
18:21 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/fb3d06c92c
18:21 dalek doc/spellcheck: e19b4d1 | coke++ | t/tabs.t:
18:21 dalek doc/spellcheck: Make test show line numbers.
18:21 dalek doc/spellcheck:
18:21 dalek doc/spellcheck: Suggested in #964
18:21 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/e19b4d1f35
18:21 dalek doc/spellcheck: c40978d | (Zoffix Znet)++ | doc/Type/Map.pod6:
18:21 dalek doc/spellcheck: Correct Map.new
18:21 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/c40978d060
18:21 dalek doc/spellcheck: 76bfdd9 | coke++ | doc/Type/Map.pod6:
18:21 dalek doc/spellcheck: remove trailing ws
18:21 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/76bfdd966a
18:21 dalek doc/spellcheck: ed948d2 | coke++ | / (3 files):
18:21 dalek doc/spellcheck: Merge branch 'master' into spellcheck
18:21 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/ed948d2963
18:22 hankache hoal #perl6
18:22 hankache hola*
18:24 p3rln00b hoal hoal
18:25 hankache howdy Zoffix
18:26 p3rln00b :(
18:26 hankache why sad?
18:29 p3rln00b It's hard to stay anonymous :)
18:29 p3rln00b I should start using a wipable VM, so I have a new IP each time :)
18:30 geekosaur you'll have to do something about the domain as well :)
18:31 p3rln00b Well, yeah :D
18:31 stmuk_ tor? unless freenode block it
18:31 jonadab New VPN every day?
18:32 p3rln00b tor is sloow :P
18:32 geekosaur freenode re-enabled tor recently
18:32 mst IRC is not a high-bandwidth protocol
18:32 mst slowness really shouldn't be a problem
18:32 p3rln00b OK. I'll try tor :)
18:33 geekosaur yu do want to read up on what they allow in terms of authentication
18:45 skids joined #perl6
18:49 timotimo it'll only be a problem if you ssh into your vm via tor
18:50 moritz p3rln00b: other idea: use IPv6 address that doesn't have a reverse lookup
18:56 jonadab Someone could still infer a lot about geographical location from the necessarily public routing info.
18:59 geekosaur also some of us are adept at patterns. I started recognizing 2001:780:101:ff00::2:9 some time back
18:59 geekosaur (dalek and various p6 folk)
19:00 moritz jonadab: sure, that idea was just "minimal effort, small effect" :-)
19:03 pierre__ joined #perl6
19:03 dalek doc: d32a024 | Nic++ | doc/Language/traps.pod6:
19:03 dalek doc: Add ^ twigil to traps. Fixes #364 (#964)
19:04 dalek doc:
19:04 dalek doc: This commit adds documentation to help clarify troubles with the ^ twigil.
19:04 dalek doc: review: https://github.com/perl6/doc/commit/d32a024712
19:11 labster joined #perl6
19:13 dalek doc: ad2ff17 | (Zoffix Znet)++ | doc/Type/Date.pod6:
19:13 dalek doc: Document Date.[DateTime|Date]
19:13 dalek doc: review: https://github.com/perl6/doc/commit/ad2ff174c8
19:14 dalek doc: 50196f5 | (Zoffix Znet)++ | doc/Type/DateTime.pod6:
19:14 dalek doc: Reword
19:14 dalek doc: review: https://github.com/perl6/doc/commit/50196f523b
19:15 Derperperd joined #perl6
19:20 setty1 joined #perl6
19:20 dalek doc: 2a9ef6a | (Zoffix Znet)++ | doc/Type/DateTime.pod6:
19:20 dalek doc: Update DateTime.[Date|DateTime]
19:20 dalek doc:
19:20 dalek doc: Document new additions/modifications added[^1] today.
19:20 dalek doc:
19:20 dalek doc: [1] https://github.com/rakudo/rakudo/commit/e5df7a7bef
19:20 dalek doc: review: https://github.com/perl6/doc/commit/2a9ef6a242
19:45 dalek ecosystem: 0a2eca4 | (Tom Browder)++ | README.install-template.md:
19:45 dalek ecosystem: add a template file
19:45 dalek ecosystem: review: https://github.com/perl6/ecosystem/commit/0a2eca4b32
19:45 dalek ecosystem: c53db2f | (Tom Browder)++ | README.install-template.md:
19:45 dalek ecosystem: Merge pull request #260 from perl6/readme.install
19:45 dalek ecosystem:
19:45 dalek ecosystem: add an installation template file for consideration
19:45 dalek ecosystem: review: https://github.com/perl6/ecosystem/commit/c53db2f176
20:00 dalek doc/spellcheck: 6661428 | coke++ | xt/.aspell.pws:
20:00 dalek doc/spellcheck: more words
20:00 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/6661428fcf
20:01 dalek doc/spellcheck: d32a024 | Nic++ | doc/Language/traps.pod6:
20:01 dalek doc/spellcheck: Add ^ twigil to traps. Fixes #364 (#964)
20:01 dalek doc/spellcheck:
20:01 dalek doc/spellcheck: This commit adds documentation to help clarify troubles with the ^ twigil.
20:01 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/d32a024712
20:01 dalek doc/spellcheck: ad2ff17 | (Zoffix Znet)++ | doc/Type/Date.pod6:
20:01 dalek doc/spellcheck: Document Date.[DateTime|Date]
20:01 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/ad2ff174c8
20:01 dalek doc/spellcheck: 50196f5 | (Zoffix Znet)++ | doc/Type/DateTime.pod6:
20:01 dalek doc/spellcheck: Reword
20:01 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/50196f523b
20:01 dalek doc/spellcheck: 2a9ef6a | (Zoffix Znet)++ | doc/Type/DateTime.pod6:
20:01 dalek doc/spellcheck: Update DateTime.[Date|DateTime]
20:01 dalek doc/spellcheck:
20:01 dalek doc/spellcheck: Document new additions/modifications added[^1] today.
20:01 dalek doc/spellcheck:
20:01 dalek doc/spellcheck: [1] https://github.com/rakudo/rakudo/commit/e5df7a7bef
20:01 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/2a9ef6a242
20:01 dalek doc/spellcheck: 5ea1941 | coke++ | doc/ (3 files):
20:01 dalek doc/spellcheck: Merge branch 'master' into spellcheck
20:01 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/5ea1941fdc
20:11 nicq20 joined #perl6
20:12 labster joined #perl6
20:12 nicq20 Hello
20:13 gfldex m: say "ohai nicq20!"
20:13 camelia rakudo-moar e2cd7a: OUTPUT«ohai nicq20!␤»
20:14 nicq20 gfldex: Hey-o
20:22 RabidGravy ooh first one of those I've had in a while
20:22 RabidGravy *** Error in `/home/jonathan/.rakudobrew/moar-nom/install/bin/moar': double free or corruption (out): 0x000000000603dbf0 **
20:24 cdg joined #perl6
20:27 cdg joined #perl6
20:30 dj_goku joined #perl6
20:30 dj_goku joined #perl6
20:30 p3rln00b I see them fairly regularly when stresstesting on 24-core box
20:30 DrForr Doing a travis run, then it's going into the ecosystem.
20:37 bioduds :)
20:39 dalek ecosystem/add-Perl6-Parser: 0345a3a | (Jeffrey Goff)++ | META.list:
20:39 dalek ecosystem/add-Perl6-Parser: Add Perl6-Parser (after passing Travis checks)
20:39 dalek ecosystem/add-Perl6-Parser: review: https://github.com/perl6/ecosystem/commit/0345a3a45b
20:40 dalek ecosystem: 0345a3a | (Jeffrey Goff)++ | META.list:
20:40 dalek ecosystem: Add Perl6-Parser (after passing Travis checks)
20:40 dalek ecosystem: review: https://github.com/perl6/ecosystem/commit/0345a3a45b
20:40 dalek ecosystem: 0fa278b | drforr++ | META.list:
20:40 dalek ecosystem: Merge pull request #262 from perl6/add-Perl6-Parser
20:40 dalek ecosystem:
20:40 dalek ecosystem: Add Perl6-Parser (after passing Travis checks)
20:40 dalek ecosystem: review: https://github.com/perl6/ecosystem/commit/0fa278bcda
20:44 El_Che DrForr: will it also reformat code?
20:45 rindolf joined #perl6
20:49 nadim nine: how's baby raccoon doing?
20:49 rindolf joined #perl6
21:03 firstdayonthejob joined #perl6
21:04 TEttinger joined #perl6
21:08 surya joined #perl6
21:17 rindolf joined #perl6
21:23 ka joined #perl6
21:23 DrForr El_Che: No, I renamed it to Perl6::Parser in order to emphasize the fact that it's "just" the parser layer. Other tools need to be built on top of that to achieve that goal, and while I am going to get there, you can look at the code and see that it's going to take a while to tweeze yak hairs off this particular project.
21:32 dj_goku joined #perl6
21:43 cdg_ joined #perl6
21:51 bjz joined #perl6
21:51 Lucas_One left #perl6
21:51 sufrostico joined #perl6
22:10 Aleister joined #perl6
22:13 ka joined #perl6
22:17 MasterDuke joined #perl6
22:18 Aleister joined #perl6
22:22 Aleister left #perl6
22:35 dj_goku joined #perl6
22:35 dj_goku joined #perl6
22:38 pecastro joined #perl6
22:55 Herby_ joined #perl6
22:55 Herby_ o/
22:55 rindolf Herby_: \o
23:01 canopus joined #perl6
23:02 dj_goku joined #perl6
23:09 timotimo o/
23:18 BenGoldberg joined #perl6
23:20 sftp joined #perl6
23:21 cooper joined #perl6
23:29 skids joined #perl6
23:47 ilmari[m] joined #perl6
23:53 tadzik joined #perl6
23:53 Guest61697 joined #perl6
23:53 Matthew[m] joined #perl6
23:53 Herby_ i'm trying to grab all CSV files in a folder, using:  my @csv-files = './'.IO.dir(test => / '.csv' /)>>.Str
23:54 Herby_ that gives me the CSV files, but they look like "./\test_file.csv"
23:54 Matias[m] joined #perl6
23:54 Herby_ is there a way to grab just the file names, or do i have to manually scrub off the leading "./\"
23:54 Herby_ following the example found here: https://docs.perl6.org/routine/dir
23:54 M-Illandan joined #perl6
23:55 timotimo if you just want the filename, maybe basename is what you need?
23:55 timotimo m: say "./whatthefile.csv".IO.basename
23:55 camelia rakudo-moar e2cd7a: OUTPUT«whatthefile.csv␤»
23:55 timotimo m: say "./whatthefile.csv".basename
23:55 camelia rakudo-moar e2cd7a: OUTPUT«No such method 'basename' for invocant of type 'Str'␤  in block <unit> at <tmp> line 1␤␤»
23:55 timotimo needs the .IO, so put it before the .Str instead of adding a .IO
23:55 timotimo because you already get IOs out of dir, if i remember correctly
23:57 Herby_ thats why they pay you the big bucks :)
23:57 Herby_ that worked, thanks
23:57 cpage_ joined #perl6
23:58 timotimo i wish they did …
23:58 khw joined #perl6

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

Perl 6 | Reference Documentation | Rakudo