Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2016-07-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:02 sammers joined #perl6
00:16 dalek doc: df30b11 | (Wenzel P. P. Peppmeyer)++ | doc/Language/variables.pod6:
00:16 dalek doc: remove supersede as it is NYI
00:16 dalek doc: review: https://github.com/perl6/doc/commit/df30b113a6
00:37 kurahaupo joined #perl6
00:44 Actualeyes joined #perl6
00:56 cooper_ joined #perl6
01:03 kalkin-_ joined #perl6
01:16 BenGoldberg_ joined #perl6
01:46 FROGGS_ joined #perl6
01:46 snarkyboojum joined #perl6
01:46 zacts joined #perl6
01:51 Senji joined #perl6
02:07 avenj joined #perl6
02:19 pmqs_ joined #perl6
02:22 avenj joined #perl6
02:35 robm joined #perl6
02:36 finanalyst joined #perl6
02:43 ssqq joined #perl6
02:48 ssqq joined #perl6
02:50 noganex joined #perl6
02:59 Ben_Goldberg joined #perl6
03:00 huggable joined #perl6
03:03 BenGoldberg joined #perl6
03:10 cooper joined #perl6
03:19 TEttinger joined #perl6
03:31 ambs joined #perl6
03:36 ugexe m: my %x; say (1 || %x<a>:exists)
03:36 camelia rakudo-moar de5d9e: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤You can't adverb &infix:<||>␤at <tmp>:1␤------> 3my %x; say (1 || %x<a>:exists7⏏5)␤    expecting any of:␤        pair value␤»
03:38 Madcap^Jake^ joined #perl6
03:40 MasterDuke m: my %x; say (1 || (%x<a>:exists))
03:40 camelia rakudo-moar de5d9e: OUTPUT«1␤»
03:41 MasterDuke adverbs bind very oddly
03:43 canopus joined #perl6
03:46 zacts joined #perl6
03:57 Ben_Goldberg joined #perl6
03:58 robm joined #perl6
04:20 zacts joined #perl6
04:40 Senji joined #perl6
04:45 Ben_Goldberg m: my %x; say (1 or %x<a>:exists)
04:45 camelia rakudo-moar de5d9e: OUTPUT«1␤»
04:46 Cabanossi joined #perl6
05:08 mohae joined #perl6
05:15 masak MasterDuke: an adverb binds to the "topmost" infix before it -- where "topmost" needs to be understood in terms of ASTs.
05:15 avenj joined #perl6
05:15 avenj joined #perl6
05:15 masak hm, or not even "infix" -- just the topmost operator, actually
05:16 masak take `(1 || %x<a>:exists)` as an example. there are two operators in there: `||` and `.<>`
05:16 masak `||` is the topmost in that expression. I guess another way to express it is that `||` is the one that binds the loosest.
05:53 moritz El_Che: I don't have any plans for Safari; but there'll be a print version at some point
05:57 sivoais joined #perl6
05:59 TeamBlast joined #perl6
06:02 rurban joined #perl6
06:02 rurban left #perl6
06:02 CIAvash joined #perl6
06:03 rurban1 joined #perl6
06:09 TeamBlast joined #perl6
06:10 apathor joined #perl6
06:10 rurban1 left #perl6
06:20 Ulti not sure if anyone linked to this before http://stackoverflow.com/questions/38122891/file-ctime-different-under-perl-5-and-perl-6 I have the same thing on OSX
06:23 TeamBlast joined #perl6
06:31 TimToady m: ‘1s²2s²2p⁶3s²3p⁶’.comb(/<:super>/)».unival.sum.say
06:31 camelia rakudo-moar afbb13: OUTPUT«18␤»
06:31 TimToady .tell killbill It's <:super>, not <:superscript>.
06:31 yoleaux TimToady: I'll pass your message to killbill.
06:36 ShimmerFairy You'd probably want <:super + :digit>, or however it's spelled exactly :)
06:37 TimToady but I don't think they are digits
06:38 ShimmerFairy m: say '²'.uniprop
06:38 camelia rakudo-moar afbb13: OUTPUT«No␤»
06:38 ShimmerFairy ah, right you are :)
06:39 TimToady given that looks like orbital notation, I doubt non-numeric supers would sneak in much
06:40 TimToady presumably you're trying to add up the number of electrons or so
06:40 ShimmerFairy true, I just thought it was worth considering anyway. I imagine many errors in coding happen because "like it'd ever _really_ happen".
06:41 TimToady troo
06:44 TimToady Ulti: I wonder if libuv just returns mtime when you ask for ctime, or maybe returns mtime if it's later than ctime, or something
06:44 TimToady anyway, could be libuv damage
06:58 TeamBlast joined #perl6
07:00 rurban_ joined #perl6
07:00 huggable joined #perl6
07:05 RabidGravy joined #perl6
07:08 abraxxa joined #perl6
07:13 darutoko joined #perl6
07:15 domidumont joined #perl6
07:18 nine -win 14
07:19 snarkyboojum joined #perl6
07:20 TeamBlast joined #perl6
07:20 domidumont joined #perl6
07:21 sivoais joined #perl6
07:28 bjz joined #perl6
07:34 sivoais joined #perl6
07:34 TeamBlast joined #perl6
07:36 zakharyas joined #perl6
07:44 sno joined #perl6
07:47 bjz joined #perl6
07:52 canopus joined #perl6
07:55 bjz joined #perl6
07:57 wamba joined #perl6
07:58 bjz joined #perl6
08:02 rurban joined #perl6
08:03 dakkar joined #perl6
08:08 rurban1 joined #perl6
08:09 rurban2 joined #perl6
08:16 rindolf joined #perl6
08:18 dalek doc: 6a592c2 | (Wenzel P. P. Peppmeyer)++ | doc/Type/Str.pod6:
08:18 dalek doc: mentioning Proxy in Str.substr-rw
08:18 dalek doc: review: https://github.com/perl6/doc/commit/6a592c283f
08:24 rurban joined #perl6
08:24 xiaomiao joined #perl6
08:25 rurban left #perl6
08:29 dalek doc: 2246390 | (Wenzel P. P. Peppmeyer)++ | doc/Language/unicode_texas.pod6:
08:29 dalek doc: add ∘ <-> o to texas list
08:29 dalek doc: review: https://github.com/perl6/doc/commit/2246390f49
08:29 dalek doc: b319862 | (Wenzel P. P. Peppmeyer)++ | doc/Type/Callable.pod6:
08:29 dalek doc: split X<> for ∘;o
08:29 dalek doc: review: https://github.com/perl6/doc/commit/b319862f37
08:35 user9 joined #perl6
08:37 matt_ joined #perl6
08:37 rurban joined #perl6
08:40 dalek doc: 49ab489 | (Wenzel P. P. Peppmeyer)++ | doc/Language/rb-nutshell.pod6:
08:40 dalek doc: @headings>>-- on rb-nutshell to get some structure into the ToC
08:40 dalek doc: review: https://github.com/perl6/doc/commit/49ab48925e
08:47 sno joined #perl6
08:49 mls_ joined #perl6
08:51 iH2O joined #perl6
08:56 dalek doc: b351406 | (Wenzel P. P. Peppmeyer)++ | doc/Type/Code.pod6:
08:56 dalek doc: correct Code.Str
08:56 dalek doc: review: https://github.com/perl6/doc/commit/b351406086
08:58 * gfldex wanders off with pockets full of long hanging fruits
09:00 iH2O like watermelons
09:02 gfldex i think potatos are hanging even lower
09:09 user9 joined #perl6
09:09 maybekoo2 joined #perl6
09:11 iH2O leaving food on the ground is risky think of the 1850 irish potato famine
09:18 TEttinger iH2O: damn christopher columbus, finding a route to get potatos to ireland...
09:31 iH2O tsk tsk hes the most famous man of the last millenium
09:39 dalek doc: 010af75 | (Wenzel P. P. Peppmeyer)++ | / (2 files):
09:39 dalek doc: make =head1 stand out more in ToC
09:39 dalek doc: review: https://github.com/perl6/doc/commit/010af75ef6
09:57 TEttinger iH2O: genghis khan?
09:57 TEttinger famous for longer, had more kids
09:57 TEttinger a LOT more
09:58 iH2O 1/200 folks on earth descends from him
09:59 iH2O Genghis Khan is the most infamous man of the last millenium
09:59 lizmat last millenium ?
10:00 lizmat hmmm... guess ILST  :-)
10:01 iH2O Genghis could have discovered america first if instead of invading Japan he had sent his ships along the asian coast up up to the Behring straight and Alaska
10:02 iH2O then hed be both the most famous and infamous man of the last millenium
10:02 TEttinger lol
10:03 dalek doc: 5621797 | (Wenzel P. P. Peppmeyer)++ | doc/Language/syntax.pod6:
10:03 dalek doc: doc unspace
10:03 dalek doc: review: https://github.com/perl6/doc/commit/562179787b
10:08 tbrowder please review specs PR 114: https://github.com/perl6/specs/pull/114
10:12 tbrowder ShimmerFairy: I know you want to review the spec PR 114
10:12 * ShimmerFairy looks
10:14 ShimmerFairy tbrowder: looks good :) . If you managed to penetrate SUPERNOVA yet, you may notice that I was starting down that path, essentially the table parsing is fixed to one style for the =table being parsed.
10:17 ShimmerFairy tbrowder: I know I need to write it up, but essentially my idea is to support three distinct styles: whitespace, ASCII, and unicode separators, with or without outside borders for the last two. I decided to do the unicode+outside one first, though I don't quite recall why.
10:18 tbrowder ShimmerFairy: I haven't penetrated SUPERNOVA yet, but I am losing sleep over correct table parsing and just realized early this morning that the two styles are practically not able to be mixed (without a genius progammer involved and lots of coffee).  I do agree with your long-range goal, though I think I would forego the unicode method (or make it the last
10:18 tbrowder priority).
10:18 moritz ShimmerFairy likes Unicode, that's why :-)
10:18 ShimmerFairy tbrowder: I think I chose to do that one first because it had the most unique characters to contend with, and is the style easiest to make look like a Real Table™ :P
10:19 ShimmerFairy and yes, I wrote the initial draft of S15 for a reason :P
10:20 ShimmerFairy Table parsing isn't fun though, especially the part where you have to parse them as implicit =para blocks. Ideally without violating one-pass parsing, which makes it harder (since only two(?) tiny places in Perl 6 break that otherwise).
10:20 tbrowder I don't mind unicode, but, especially for old eyes), my keyboard, OS, etc., don't make it easy to use at the moment.
10:22 ShimmerFairy tbrowder: I know, it's just an option that I didn't see any good reason not supporting (in context of P6's unicode support in general). When I get back to SUPERNOVA (hopefully soon), I'll be sure to worry about ASCII and ws tables before any improvements to the unicode style I already put in.
10:22 tbrowder Hm, the single parsing rule is for the grammar, correct, because currently, inside Pod.nqp, multiple passes are required, although I'm trying to reduce that as best as I can.
10:24 ShimmerFairy tbrowder: best I can tell, the main issue would likely involve "saving" where you were nested inside formatting codes when you run into the separator. But of course, that makes it super fun if you were inside a verbatim code, e.g. V<>
10:25 tbrowder So far I haven't seen that as a problem, especially since formatting codes seem not to be handled at the moment anyway.
10:26 tbrowder Or maybe it's the pod renderer.
10:26 ShimmerFairy tbrowder: Yeah, the handling codes is part of handling cells as implicit =paras. The issue with verbatim codes being wrapped in a cell is one I don't know the answer to. Right now I'm leaning towards "if you accidentally verbatim'd what should be the column separator, error".
10:27 tbrowder But, yeah, V<> I see is a problem to deal with.
10:27 DrForr Hey all, I'm well aware that this code is probably unnecessarily paranoid, but it's a first cut at the bottom layer for Perl6::Tidy, namely reconstructing the NQP-provided parse tree in a way that should scream bloody murder if the grammar or match tree changes under me. https://gist.github.com/drforr/92830eb9289df9424b012fe29ec3100e
10:27 yoleaux 8 Jul 2016 17:24Z <BrokenRobot> DrForr: can this be closed? It's mentioned to be a dupe of a recently-fixed ticket. I tried to test myself, but Linenoise is failing. https://rt.perl.org/Ticket/Display.html?id=128371
10:29 ShimmerFairy DrForr: aside from lines 28 and 34, which might be github's fault in wrapping, I'd say it's good to be paranoid if the phrase "reconstructing the NQP-provided parse tree" comes up :)
10:29 tbrowder DrForr: gfldex want pod nodes to have a parent, how does that affect your effort?
10:31 ShimmerFairy tbrowder: in general, I don't know how much SUPERNOVA will accomplish its pipe dream of replacing existing Pod handling in rakudo, but hopefully it'll eventually do something :) .
10:32 tbrowder ShimmerFairy: Well I applaud your efforts!
10:32 ufobat joined #perl6
10:32 ShimmerFairy In particular, Pod parsing should at least be its own component of the language braid (along with Q, Regex, etc.), instead of being awkwardly smushed into MAIN as it is now.
10:33 ShimmerFairy Thank you, tbrowder :) .
10:34 * ShimmerFairy has too many projects swimming around in her head, and should start considering getting organized about it all...
10:36 DrForr ShimmerFairy: Yeah, 28 and 34 are the fault of pasting.
10:37 ShimmerFairy I figured it was something like that.
10:39 tbrowder ShimmerFairy: ref pod: Hear, hear!
10:40 DrForr Well, as long as Perl6::Grammar has a rule for matching POD it'll get a node somewhere. Probably at the level of statementlist.
10:40 DrForr I'm also planning to (probably tonight) make sure that it properly collects whitespace between entries.
10:41 ShimmerFairy DrForr: my eventual idea is that it gets called into the same way other sub-languages are, so as long as you can handle string and regexes... :)
10:41 DrForr Oh, regex is already deeply parsed, you even get a nested CharSpec structure for <-[ a ] + foo - [-]>
10:41 moritz the problem with one-pass parsing POD is that we don't want an unclosed C<...> or so to run over and =end block, or whatever terminates the current POD streak
10:41 cognominal joined #perl6
10:42 cog_ joined #perl6
10:42 japanoise What filename should I give my perl6 sources? .pl6?
10:42 moritz japanoise: I tend to use .p6
10:42 moritz japanoise: and .pm6 for modules
10:43 ShimmerFairy I use .p6 and .pm6 myself
10:43 DrForr I can't show you the actual data structure at the moment because I'm going broad and not deep in testing, but it's probably going to be similar to PPI internally, though less of an API, and possibly no way to skip whitespace nodes for quite a while.
10:43 gfldex to elaborate a bit on the parent attr on Pod::Block. If I parse functional I end up with something like `multi sub parse(Pod::Parent $n, @context) { parse($n.contents, @context.push: $n) }`. That means I have to create an Array instance per call. Not the fastest possible way to do that.
10:44 BrokenRobot Ulti: it's been rakudobugged couple days ago: https://rt.perl.org/Ticket/Display.html?id=128506#ticket-history
10:45 DrForr I spent a few hours yesterday getting more-detailed output from an NQPMatch object, so I'm using that to debug.
10:45 DrForr And it's paranoid to the extreme, assert-hash-keys() there checks that exactly the hash keys listed and *only* the hash keys listed trigger a call.
10:46 DrForr Every time I read that I have to forcibly restrain myself from writing a 'with-hash-keys' macro and start writing a macro utility. Too many yaks, so few razors.
10:47 kaare_ joined #perl6
10:48 gfldex m: my %hash{'abc', 'def'}; # NYI :(
10:48 camelia rakudo-moar d075c8: OUTPUT«===SORRY!===␤Cannot find method 'value' on object of type QAST::Want␤»
10:59 Actualeyes joined #perl6
11:03 tbrowder ref nqp: any way to return two scalars from a sub? modify an array arg with two scalar elements?
11:03 jnthn NQP doesn't have scalars
11:04 tbrowder numbers then
11:04 jnthn (Which is why it also doesn't have assignment)
11:05 tbrowder roger, but i can kludge using an array arg of numbers?
11:05 jnthn nqp: sub foo() { return 1,2 }; my @a := foo(); say(@foo[0]); say(@foo[1])
11:05 camelia nqp-moarvm: OUTPUT«Use of undeclared variable '@foo' at line 2, near "[0]); say("␤   at gen/moar/stage2/NQPHLL.nqp:706  (/home/camelia/rakudo-m-inst-2/share/nqp/lib/NQPHLL.moarvm:panic)␤ from gen/moar/stage2/NQP.nqp:2716  (/home/camelia/rakudo-m-inst-2/share/nqp/lib/nqp.moarvm:v…»
11:05 jnthn nqp: sub foo() { return 1,2 }; my @a := foo(); say(@a[0]); say(@a[1])
11:05 camelia nqp-moarvm: OUTPUT«1␤2␤»
11:05 jnthn Can do that? :)
11:05 jnthn Or is it not what you meant?
11:06 tbrowder yes, thanks!
11:06 tbrowder that's even better, thnx jnthn
11:17 gfldex i'm tempted to turn all absolute links in the docs to relative paths. That way one would not need a web server to read the docs. Are there any security implications I missed?
11:19 moritz gfldex: not security, but there's no telling where a link can show up, so relative links are hard
11:20 gfldex i would leave them in the actual .pod files. We need better filename substitution anyway and that requires link rewriting. Could as well add relativation while I'm on it.
11:22 tbrowder ShimmerFairy: still here? I just had another thought and want to change the PR a bit
11:22 ShimmerFairy tbrowder: you can change it, but I'm going to bed now, so I won't be able to check until later :)
11:22 bjz_ joined #perl6
11:23 tbrowder I will say something like double-space col seps are ignored if any other col sep types are found
11:27 tbrowder ShimmerFairy: never mind. I think the PR can stand as is for now, no conflicts with my current plans
11:28 kid51 joined #perl6
11:30 rindolf joined #perl6
11:32 rurban_ joined #perl6
11:50 Actualeyes joined #perl6
12:09 tbrowder ref nqp: how can I do a binary op on two numbers? I've tried $c := $a +| $b and get an error, also with  $a | $b
12:13 psch tbrowder: those aren't in the grammar - you might want to look into nqp/docs/ops.markdown
12:13 psch nqp-m: say(nqp::bitand_i(3, 4))
12:13 camelia nqp-moarvm: OUTPUT«0␤»
12:13 psch nqp-m: say(nqp::bitand_i(3, 5))
12:13 camelia nqp-moarvm: OUTPUT«1␤»
12:16 kid511 joined #perl6
12:17 tbrowder psch: thanks, I hadn't read far enough!
12:23 tbrowder psch: is there a list of the nqp built-ins somewhere?
12:23 nine tbrowder: nqp/docs/ops.markdown
12:24 Senji joined #perl6
12:27 tbrowder I may be confusing things, I see sub subst used in Pod.nqp but I just found it in nqp/src/core/Regex.nqp but not in ops.markdown
12:28 nine Oh, you mean builtin subs. ops.markdown lists all those nqp::whatevers
12:29 tbrowder nine: yes, builtins, documented anywhere?
12:29 nine Not that I'm aware of. I tend to just ack the source
12:35 psch well, ops.markdown is for (at least on some level) vm-specific operators
12:35 tbrowder okay, thanks, I've filed an issue on RT
12:36 tbrowder okay, i'm just trying to hack on rakudo and it's slow slogging for a newbie looking for docs
12:37 perlpilot tbrowder: I wonder if ack 'sub\s+\w+' src/core would get them all.
12:37 perlpilot There aren't many built-ins like that as I recall.
12:37 japanoise Hmm. I can't get a recursive function working.
12:37 tbrowder maybe, i haven't tried fancy greps yet
12:38 japanoise it's giving me undeclared routine
12:38 psch generally i feel like NQP is small enough to just read the source
12:38 psch but i get that not everyone wants to go that way
12:38 ufobat heya :D
12:38 psch i do think that nqp docs probably don't belong on doc.perl6.org
12:38 perlpilot psch: I've tended to read the source too, but I haven't really looked at nqp in a while
12:38 perlpilot japanoise: put the code in a gist so we can see it
12:39 psch m: sub f($a) { $a < 5 ?? f($a + 1) !! $a }; say f(1)
12:39 camelia rakudo-moar d075c8: OUTPUT«5␤»
12:39 dalek doc: 4488e4e | (Zoffix Znet)++ | doc/Language/5to6-nutshell.pod6:
12:39 dalek doc: List repeat {} while/until in 5to6 nutshell
12:39 dalek doc:
12:39 dalek doc: Related to #688
12:39 dalek doc: review: https://github.com/perl6/doc/commit/4488e4ed86
12:39 dalek doc: 3df7839 | (Zoffix Znet)++ | doc/Language/control.pod6:
12:39 dalek doc: Explain repeat {} while/until block
12:39 dalek doc:
12:39 dalek doc: Closes #688
12:39 dalek doc: review: https://github.com/perl6/doc/commit/3df78390c4
12:40 DrForr Re: nqp vs. perl - If you're going to document anything, I'd focus on perl6, not NQP because we've got so little (relative to perl5) doco as it is.
12:40 psch right, that's another thing
12:40 japanoise https://gist.github.com/anonymous/6ebecb048aba59a0e0e6d08f324f2970
12:40 psch i mean, i occassionally want better core-dev docs, but that's mostly because i'm already up to my elbows in all that :P
12:41 psch japanoise: that should actually fail earlier than you say
12:41 psch m: use experimental :cached; sub f is cached{ } # consider this
12:41 camelia rakudo-moar d075c8: OUTPUT«5===SORRY!5===␤Trait 'is cached' needs whitespace before block␤at <tmp>:1␤------> 3experimental :cached; sub f is cached{ }7⏏5 # consider this␤Missing block (apparently claimed by 'is cached')␤at <tmp>:1␤------> 3ched; sub f is cache…»
12:41 perlpilot japanoise: ah, you need a space after "cached" and before the "{"
12:41 japanoise ahhh
12:42 tbrowder DrForr, I understand, and I've helped there a bit, but I'm trying to fix Pod.nqp for tables and need to use all the bullets provided; so a list of built-ins is needed, nothing fancy
12:42 dalek doc: bb78130 | (Wenzel P. P. Peppmeyer)++ | doc/Language/modules.pod6:
12:42 dalek doc: show how to query symbols exported by a module
12:42 dalek doc: review: https://github.com/perl6/doc/commit/bb78130554
12:43 DrForr tbrowder: I'm not trying to discourage, I'm just saying that if someone feels an urge to jump in and document stuff, NQP isn't where I'd start looking.
12:44 psch i'd like so that "there's no documentation, but i need it, so i'll write it" is admirable, but ultimately bad if you actually want to fix the thing that you think you need the documentation for
12:44 psch s/so that/to add/ # uhh
12:45 psch from a purely "get the thing fixed" perspective at least
12:45 psch but, yes, same disclamer, it's not meant to be discouraging, and maybe nqp-docs is the one thing we're missing for a sudden influx of people wanting to help with the backends
12:46 * psch .oO( doesn't seem to be good at "non-discouragin" :/ )
12:46 yqt joined #perl6
12:46 DrForr It was quite a while before illguts got written for perl5.
12:49 japanoise perlpilot: thanks! Impressed someone with it too ^^
12:49 jnthn fwiw, the interals course covers NQP quite a bit
12:49 Actualeyes joined #perl6
12:49 japanoise #perl6 is my trade secret
12:49 tbrowder Well, I'm scratching an itch that started when trying to fix Perl 6 docs, so I will try to at least create a simple list of nqp built-ins for my use, and offer it to the community.
12:50 DrForr And I'm creating a test suite for the nqp grammar, or at least figuring out how to get sufficient coverage.
12:50 tbrowder jnthn: I have used that course for getting started, and it's great, but it hasn't covered all I have needed.
12:51 tbrowder jnthn:  It dives into deeper territory than I have needed.
12:51 tbrowder jnthn:  ...sofar!
12:54 dasdasdas joined #perl6
12:59 TimToady if someone is hankering for some low-hanging fruit, the page at https://www.rosettacode.org/wiki/Category:Perl_6 could use some updating, since it still reads as if Perl 6 is not yet released
13:01 wamba m: unit sub MAIN (:$k1,:$k2,:$k3);callframe(1).my<$?USAGE>>>.say;say "--"
13:01 camelia rakudo-moar d075c8: OUTPUT«Usage:␤  <tmp> [--k1=<Any>] [--k2=<Any>] [--k3=<Any>] ␤--␤»
13:02 wamba unit sub MAIN (:$k1,:$k2,:$k3);callframe(1).my<$useage>>>.say;say "--"
13:02 BrokenRobot Created that as Issue on docs repo so we don't forget: https://github.com/perl6/doc/issues/689
13:02 BrokenRobot wamba: unit sub MAIN is broken ATM
13:02 wamba m: unit sub MAIN (:$k1,:$k2,:$k3);callframe(1).my<$usage>>>.say;say "--"
13:02 camelia rakudo-moar d075c8: OUTPUT«(Any)␤--␤»
13:03 wamba m: unit sub MAIN (:$k1,:$k2,:$k3);callframe(1).my.pairs.grep({.key ~~ /:i age/})>>
13:03 wamba .say;say "--"
13:03 camelia rakudo-moar d075c8: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Malformed postfix␤at <tmp>:1␤------> 3e(1).my.pairs.grep({.key ~~ /:i age/})>>7⏏5<EOL>␤    expecting any of:␤        postfix␤»
13:03 wamba m: unit sub MAIN (:$k1,:$k2,:$k3);callframe(1).my.pairs.grep({.key ~~ /:i age/})>>.say;say "--"
13:03 camelia rakudo-moar d075c8: OUTPUT«$?USAGE => Usage:␤  <tmp> [--k1=<Any>] [--k2=<Any>] [--k3=<Any>] ␤$usage => Usage:␤  <tmp> [--k1=<Any>] [--k2=<Any>] [--k3=<Any>] ␤&gen-usage => sub gen-usage () { #`(Sub|58331760) ... }␤--␤»
13:05 perlpilot wamba: camelia responds to /msg too  :)
13:06 wamba :)
13:09 rgrinberg joined #perl6
13:09 mcmillhj joined #perl6
13:10 DrForr woot, I think my paranoia just caught a change in Perl6::Grammar :) At least I don't remember that being thrown...
13:11 wamba m: sub MAIN (:$k1,:$k2,:$k3) { my $a=callframe(1).my; say $a.<$?USAGE>;say $a.<$us
13:11 camelia rakudo-moar d075c8: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Whitespace required before < operator␤at <tmp>:1␤------> 3rame(1).my; say $a.<$?USAGE>;say $a.<$us7⏏5<EOL>␤    expecting any of:␤        postfix␤»
13:11 wamba age>}
13:11 japanoise OK so i've got a lazy list and I'm map-ing through it
13:11 wamba m: sub MAIN (:$k1,:$k2,:$k3) { my $a=callframe(1).my; say $a.<$?USAGE>;say $a.<$usage>}
13:11 camelia rakudo-moar d075c8: OUTPUT«Usage:␤  <tmp> [--k1=<Any>] [--k2=<Any>] [--k3=<Any>] ␤Usage:␤  <tmp> [--k1=<Any>] [--k2=<Any>] [--k3=<Any>] ␤»
13:12 japanoise is there a way to quit when the element is greater than some value?
13:12 wamba m: sub MAIN (:$k1,:$k2,:$k3) { my $a=callframe(1).my; say $a.<$usage>; say $a.<$?USAGE>;}
13:12 camelia rakudo-moar d075c8: OUTPUT«(Any)␤Usage:␤  <tmp> [--k1=<Any>] [--k2=<Any>] [--k3=<Any>] ␤»
13:12 psch m: say ^10 .map({ last if $_ > 4; $_ })
13:12 camelia rakudo-moar d075c8: OUTPUT«(0 1 2 3 4)␤»
13:14 pierrot joined #perl6
13:14 psch japanoise: ^^^ last works inside .map
13:17 BrokenRobot m: say ^10 .grep({ last if $_ > 4; $_ })
13:17 camelia rakudo-moar d075c8: OUTPUT«(1 2 3 4 5 6 7 8 9)␤»
13:17 BrokenRobot bisect: say ^10 .grep({ last if $_ > 4; $_ })
13:17 bisectable BrokenRobot: exit code is 0 on both starting points, bisecting by using the output
13:17 bisectable BrokenRobot: (2016-03-18) https://github.com/rakudo/rakudo/commit/6d120ca
13:45 cdg joined #perl6
13:52 skids joined #perl6
13:55 acrussell joined #perl6
13:58 BrokenRobot Is there a way to "flatten" a Junction?
13:59 BrokenRobot m: my $x = "foo" & "bar"; say $x.List.map({"Status = $_"})
13:59 camelia rakudo-moar d075c8: OUTPUT«all((Status = foo), (Status = bar))␤»
13:59 BrokenRobot I want the above to give me a list of two strings "Status = foo" and "Status = bar"
14:00 tbrowder ref nqp: in ops.markdown, some things like for() are not shown as a builtin, but it is used as, e.g.,  "for @a -> $a {}" in Pod.nqp.  Is there a list of such exception (built-ins?) somewhere, or does that need to be mentioned in ops.markdown?
14:00 ugexe m: my $x = "foo" & "bar"; say $_ for $x.List.map({"Status = $_"});
14:00 camelia rakudo-moar d075c8: OUTPUT«Status = foo␤Status = bar␤»
14:02 psch tbrowder: nqp is a very limited subset of Perl 6.  as such, the basic statement modifiers (like for) work
14:02 BrokenRobot m: my $x = "foo" & "bar"; $x.List.map({"Status = $_"}).join(", ").say
14:02 camelia rakudo-moar d075c8: OUTPUT«all(Status = foo, Status = bar)␤»
14:03 psch tbrowder: the syntax of nqp should definitely not be described in ops.markdown
14:04 ugexe m: my $x = "foo" & "bar"; my @a = gather for $x.List { take "Status = $_"}; say @a.perl
14:04 camelia rakudo-moar d075c8: OUTPUT«["Status = foo", "Status = bar"]␤»
14:05 BrokenRobot Thanks, ugexe++
14:05 ptolemarch joined #perl6
14:07 MilkmanDan joined #perl6
14:08 Actualeyes joined #perl6
14:10 TimToady ooh, sneaky
14:10 psch m: my $x = "foo" & "bar"; my @a = do [ "Status = $_" for $x ]; say @a.perl
14:10 camelia rakudo-moar d075c8: OUTPUT«WARNINGS for <tmp>:␤Useless use of "Status = $_" in expression "Status = $_" in sink context (line 1)␤[all(("Status = foo",), ("Status = bar",))]␤»
14:10 jnthn m: my $x = "foo" & "bar"; my @a = gather for $x { take "Status = $_"}; say @a.perl
14:10 camelia rakudo-moar d075c8: OUTPUT«["Status = foo", "Status = bar"]␤»
14:10 TimToady but note you lose all sense of and/or-ness
14:11 psch oh, spurious "useless use", but no solution
14:11 jnthn Note that the .List doesn't actually contribute anything there
14:11 TimToady unless $_ is declared Mu
14:12 jnthn I think it's may be that take auto-threads :)
14:12 TimToady ymbr
14:12 ugexe m: my $x = "foo" & "bar"; my @a = gather $x.map({"Status = $_"})>>.&take; say @a.perl
14:12 camelia rakudo-moar d075c8: OUTPUT«["Status = foo", "Status = bar"]␤»
14:12 jnthn m: my $x = "foo" & "bar"; my @a = gather take "Status = $x"; say @a.perl
14:12 camelia rakudo-moar d075c8: OUTPUT«["Status = all(\"foo\", \"bar\")"]␤»
14:12 jnthn hm, no...
14:13 TimToady still, BrokenRobot should probably be using sets intead of junctions; pulling values out of junction is smelly
14:13 eugen joined #perl6
14:13 timotimo BrokenRobot: if you want to flatten a junction, you're using it wrong :)
14:13 jnthn Indeed...that's why there's no convenient way to do it :)
14:13 domm joined #perl6
14:15 BrokenRobot Yeah, I now went with just an array.
14:18 rindolf joined #perl6
14:25 Ulti BrokenRobot: thanks, if I ever work out how to login to RT I will add a comment about the OSX reproducability
14:27 Ulti TimToady: looks like the libuv timestamp situation is fairly complex https://github.com/joyent/libuv/issues/901
14:27 gnull joined #perl6
14:28 jkramer joined #perl6
14:28 jkramer Ahoy again!
14:28 BrokenRobot \o
14:29 jkramer I have a problem with laziness ;)
14:29 BrokenRobot Funny, I have a problem with being productive.
14:30 jkramer I want to generate a lazy list of primes using gather/take as an example. It's in a sub and if I access an element like primes[5] (primes is the sub) than it works fine.
14:30 ambs joined #perl6
14:31 khw joined #perl6
14:31 jkramer However when I assign the result of the sub to an array, it seems to calculate forever. I presume it's actually looping over all integers up to infinity looking for primes instead of going just to @primes[$n]
14:31 BrokenRobot m: my $lazy-list-of-primes = ^∞ .grep: *.is-prime; say $lazy-list-of-primes[^6]
14:31 camelia rakudo-moar d075c8: OUTPUT«(2 3 5 7 11 13)␤»
14:32 BrokenRobot jkramer: yeah, assign it to a $something instead of @something, like above
14:32 BrokenRobot m: ^∞.grep: *.is-prime # LTA
14:32 camelia rakudo-moar d075c8: OUTPUT«WARNINGS for <tmp>:␤Useless use of "^" in expression "^∞.grep: *.is-prime # LTA" in sink context (line 1)␤Method 'is-prime' not found for invocant of class 'Num'␤  in block <unit> at <tmp> line 1␤␤»
14:32 jkramer BrokenRobot: Hmm, works. It's magic :)
14:32 jkramer What's the difference?
14:33 BrokenRobot jkramer: no idea :)
14:33 timotimo @foo = blah is list assignment, which is eager. that's how i understand it
14:33 jkramer Hmm ok. :) Thanks anyway
14:33 jkramer Ah
14:33 psch m: my @lazy-list-of-primes = lazy ^∞ .grep: *.is-prime; say @lazy-list-of-primes[^6]
14:33 camelia rakudo-moar d075c8: OUTPUT«(2 3 5 7 11 13)␤»
14:33 [Coke] timotimo: @foo = lazy blah
14:33 [Coke] psch++
14:33 psch well, or := instead of = works too i think
14:33 BrokenRobot Ah, neat
14:34 yqt joined #perl6
14:35 timotimo fair enough
14:35 BrokenRobot m: my $x = ^∞.grep: *.is-prime # LTA
14:35 camelia rakudo-moar d075c8: OUTPUT«Method 'is-prime' not found for invocant of class 'Num'␤  in block <unit> at <tmp> line 1␤␤»
14:35 AlexDaniel joined #perl6
14:35 BrokenRobot m: Num.^can('is-prime').say
14:35 camelia rakudo-moar d075c8: OUTPUT«()␤»
14:36 BrokenRobot m: ∞.^name.say
14:36 camelia rakudo-moar d075c8: OUTPUT«Num␤»
14:36 BrokenRobot m: my $x = ^5.grep: *.is-prime # LTA
14:36 camelia rakudo-moar d075c8: OUTPUT«Potential difficulties:␤    Precedence of ^ is looser than method call; please parenthesize␤    at <tmp>:1␤    ------> 3my $x = ^57⏏5.grep: *.is-prime # LTA␤»
14:36 BrokenRobot m: my $x = ^Inf.grep: *.is-prime # LTA
14:36 camelia rakudo-moar d075c8: OUTPUT«Method 'is-prime' not found for invocant of class 'Num'␤  in block <unit> at <tmp> line 1␤␤»
14:37 jkramer It needs a space in front of .grep I guess
14:37 [Coke] m: my $x = (^Inf).grep: *.is-prime
14:37 camelia rakudo-moar d075c8: ( no output )
14:37 [Coke] precedence.
14:37 BrokenRobot Yeah, I know that, but the error is LTA.
14:38 [Coke] My take is that how is it supposed to know what you meant? Do you have a better error message it could generate there?
14:38 timotimo yeah, it's supposed to tell you about the precedence between ^ and method calls
14:38 BrokenRobot [Coke]: yes, the same it generates for Ints
14:38 timotimo just like with ^5.grep, but for some reason not with ^inf
14:40 TimToady okay, I couldn't stand it, and updated rosetttacode myself :)
14:40 BrokenRobot m: my $x = ^5.5.grep: *.is-prime # LTA
14:40 camelia rakudo-moar d075c8: OUTPUT«Method 'is-prime' not found for invocant of class 'Rat'␤  in block <unit> at <tmp> line 1␤␤»
14:40 BrokenRobot I guess it's just looking for an Int
14:41 BrokenRobot Ticket: https://rt.perl.org/Ticket/Display.html?id=128602#ticket-history
14:42 [Coke] m: my $x = ^5.5.grep: *.sin
14:42 camelia rakudo-moar d075c8: ( no output )
14:42 [Coke] it's looking for a method it can call
14:42 BrokenRobot m: my $x = ^5.5.grep: *.sin; say $x
14:42 camelia rakudo-moar d075c8: OUTPUT«^1␤»
14:43 [Coke] m: my $x = ^5.5.grep: *.badidea
14:43 camelia rakudo-moar d075c8: OUTPUT«Method 'badidea' not found for invocant of class 'Rat'␤  in block <unit> at <tmp> line 1␤␤»
14:43 [Coke] so, yes, method exists, and Int, maybe. dunno.
14:44 BrokenRobot m: my $x = ^5.5.grep(*.sin); say $x
14:44 camelia rakudo-moar d075c8: OUTPUT«^1␤»
14:47 snarkyboojum joined #perl6
14:55 gregf_ m: say ("foo" & "bar").^name
14:55 camelia rakudo-moar d075c8: OUTPUT«Junction␤»
14:56 rindolf joined #perl6
15:04 hoelzro parabolize: I managed to fix your bug in pygments before work today; I'll submit a PR to pygments-main after work
15:05 hoelzro I will probably try to knock out some of the other pygments issues that have been reported over the last two years or so =/
15:05 hoelzro as well as try to bring it up-to-date with the current language spec
15:07 lizmat Tux: also note that the .perl doesn't return a left value
15:07 lizmat oops, ww
15:21 rurban joined #perl6
15:22 rurban left #perl6
15:27 captain-adequate joined #perl6
15:38 BrokenRobot m: sub (Date(DateTime) $x) { say "$x" }(Date.today)
15:38 camelia rakudo-moar d075c8: OUTPUT«Type check failed in binding $x; expected DateTime but got Date (Date.new(2016,7,11))␤  in sub  at <tmp> line 1␤  in block <unit> at <tmp> line 1␤␤»
15:38 BrokenRobot m: sub (Date(DateTime|Date) $x) { say "$x" }(Date.today)
15:38 camelia rakudo-moar d075c8: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Unable to parse expression in typename; couldn't find final ')' ␤at <tmp>:1␤------> 3sub (Date(DateTime7⏏5|Date) $x) { say "$x" }(Date.today)␤»
15:39 BrokenRobot Is there a way to take either Date or DateTime and coerce to Date?
15:40 profan joined #perl6
15:41 psch a coercer without a coercee says "everything that can be coerced" instead of "coerce this to that"
15:41 BrokenRobot m: sub (Date() $x where Date|DateTime) { say "$x" }($_) for Date.today, DateTime.now
15:41 camelia rakudo-moar d075c8: OUTPUT«2016-07-11␤2016-07-11␤»
15:42 BrokenRobot Thanks.
15:43 MilkmanDan joined #perl6
15:49 TeamBlast joined #perl6
15:56 sivoais joined #perl6
15:56 gfldex m: constant @badchars = <$ / \ . % ? & = # + " ' :>; constant @goodnames = @badchars.map: '$' ~ *.uniname.subst(' ', '_'); note @goodnames;
15:56 camelia rakudo-moar d075c8: OUTPUT«($DOLLAR_SIGN $SOLIDUS $REVERSE_SOLIDUS $FULL_STOP $PERCENT_SIGN $QUESTION_MARK $AMPERSAND $EQUALS_SIGN $NUMBER_SIGN $PLUS_SIGN $QUOTATION_MARK $APOSTROPHE $COLON)␤»
15:59 jkramer left #perl6
16:00 BrokenRobot .seen timeless
16:00 yoleaux I saw timeless 24 Jun 2016 17:15Z in #perl6: <timeless> psch: right
16:01 gfldex i don't think he will be back in time
16:02 BrokenRobot And they were fixing it in htmlify.p6 while I see you mentioned doing it in Pod::To::HTML
16:05 BrokenRobot This appears to be their work on the topic: https://github.com/jsoref/perl6-doc/tree/human-links
16:09 gfldex i may not need to touch Pod::To::HTML
16:09 sivoais joined #perl6
16:14 abraxxa1 joined #perl6
16:14 TeamBlast joined #perl6
16:19 nicq20 joined #perl6
16:21 dalek rt-six-help: 5afa980 | coke++ | summary.p6:
16:22 dalek rt-six-help: remove trailing whitespace
16:22 dalek rt-six-help: review: https://github.com/coke/rt-six-help/commit/5afa980ca6
16:24 abraxxa joined #perl6
16:27 BrokenRobot "This type (QAST::WVal) does not support positional operations"
16:27 timotimo did you want to access its annotations?
16:27 BrokenRobot Man, I dream of a day when I will be able to write a complete Perl 6 program without needing to ask any questions or sumbling over bugs :)
16:27 dalek rt-six-help: a3d3577 | coke++ | summary.p6:
16:27 dalek rt-six-help: Extract the RT call into a sub
16:27 dalek rt-six-help: review: https://github.com/coke/rt-six-help/commit/a3d3577b5f
16:28 timotimo mh, AFK for cooking reasons
16:28 BrokenRobot timotimo: I've no idea what "QAST::WVal" is :/
16:28 timotimo oh
16:28 timotimo you aren't hacking inside rakudo
16:28 BrokenRobot No
16:28 timotimo well, show us your code, then :)
16:28 timotimo (also, AFK as said before)
16:29 BrokenRobot https://github.com/zoffixznet/perl6-RT-REST-Client
16:29 BrokenRobot Trying to run perl6 examples/recent-tickets.p6
16:32 BrokenRobot Ah
16:32 setty1 joined #perl6
16:33 BrokenRobot m: :foo:<bar>
16:33 camelia rakudo-moar d075c8: OUTPUT«===SORRY!===␤This type (QAST::WVal) does not support positional operations␤»
16:33 BrokenRobot Typoed an arg
16:36 BrokenRobot Don't know if it can be fixed, but I rakudobugged it as LTA error: https://rt.perl.org/Ticket/Display.html?id=128603
16:42 addison joined #perl6
16:42 psch nqp-m: :foo:<bar>
16:42 camelia nqp-moarvm: OUTPUT«Confused at line 2, near ":foo:<bar>"␤   at gen/moar/stage2/NQPHLL.nqp:706  (/home/camelia/rakudo-m-inst-2/share/nqp/lib/NQPHLL.moarvm:panic)␤ from gen/moar/stage2/NQP.nqp:927  (/home/camelia/rakudo-m-inst-2/share/nqp/lib/nqp.moarvm:comp_unit)␤ from gen/moar…»
16:42 psch well, 'Confused' is marginally better than leaking internals...
16:42 DrForr Ah, I've finally found the NQPMatch bug that's plaguing me, I think. And it's a bit odd. $matched.hash.elems returns an odd number.
16:43 DrForr (odd in both senses, as you can see :) )
16:43 psch nqp-m: my %h := nqp::hash(1,2,3,4,5,6); say(nqp::elems(%h))
16:43 camelia nqp-moarvm: OUTPUT«3␤»
16:44 DrForr It's a NQMatch object so I'm not expecting it to behave like Perl, still, it's odd enough that I thought I'd mention it.
16:45 DrForr Ah.
16:46 DrForr It's an X::Hash::Store::OddNumber exception though, so I guess I'm not testing it correctly.
16:46 psch nqp-m: say(nqp::elems(("foo" ~~ /$<foo>=(foo)/).hash))
16:46 camelia nqp-moarvm: OUTPUT«1␤»
16:47 psch DrForr: i think there's more behind it somewhere :)
16:47 psch DrForr: for starters, nqp::hash() doesn't even have .elems
16:47 psch DrForr: so i'm guessing it's hllizing somewhere..?
16:47 dalek rt-six-help: ce22e33 | coke++ | summary.p6:
16:47 dalek rt-six-help: fix scope of $cmd
16:47 dalek rt-six-help: review: https://github.com/coke/rt-six-help/commit/ce22e338b8
16:47 dalek rt-six-help: 74bc293 | coke++ | summary.p6:
16:47 dalek rt-six-help: Add -v to get verbose output
16:47 dalek rt-six-help:
16:47 dalek rt-six-help: include -all- fields in the output so we can easily see which
16:47 dalek rt-six-help: ones we might want to grab.
16:47 dalek rt-six-help: review: https://github.com/coke/rt-six-help/commit/74bc293e9b
16:48 DrForr Well, I'm doing the .elems call from Perl, so very likely. I'm more concerned that the low-level stuff is throwing an exception during parsing than the fact that I'm unable to easily trap the error.
16:49 DrForr I should be able to reproduce the bug easily though, let me give that a shot.
16:54 rindolf joined #perl6
16:55 DrForr Maybe not :( Well, if I run across the conditions that tickle it again I'll let y'all know.
16:57 xiaomiao joined #perl6
17:01 rindolf joined #perl6
17:11 gregf_ m: say "we are the champions my friend!!".split(/\s+/).map(&tclc) # \o/
17:11 camelia rakudo-moar d075c8: OUTPUT«(We Are The Champions My Friend!!)␤»
17:12 BrokenRobot m: say "we are the champions my friend!!".words>>.tclc
17:12 camelia rakudo-moar d075c8: OUTPUT«(We Are The Champions My Friend!!)␤»
17:16 dalek specs: be783f7 | (Tom Browder)++ | S26-documentation.pod:
17:16 dalek specs: prohibit mixing visible and non-visible column separator types in a table
17:16 dalek specs: review: https://github.com/perl6/specs/commit/be783f75c4
17:16 dalek specs: 837c3d8 | (Tom Browder)++ | S26-documentation.pod:
17:16 dalek specs: Merge pull request #114 from tbrowder/col-sep-restriction
17:16 dalek specs:
17:16 dalek specs: prohibit mixing visible and non-visible column separator types in a t…
17:16 dalek specs: review: https://github.com/perl6/specs/commit/837c3d8c77
17:18 fhorck joined #perl6
17:18 addison joined #perl6
17:24 psch m: say "we are the champions my friend!!".wordcase
17:24 camelia rakudo-moar d075c8: OUTPUT«We Are The Champions My Friend!!␤»
17:24 BrokenRobot :D
17:31 firstdayonthejob joined #perl6
17:32 rgrinberg joined #perl6
17:32 AlexDaniel m: say ‘foo-bar’.wordcase.say
17:32 camelia rakudo-moar d075c8: OUTPUT«Foo-bar␤True␤»
17:32 AlexDaniel m: say ‘foo–bar’.wordcase.say
17:32 camelia rakudo-moar d075c8: OUTPUT«Foo–Bar␤True␤»
17:33 grondilu joined #perl6
17:34 gfldex m: say ‘foo–bar’.uninames.join(',')
17:34 camelia rakudo-moar d075c8: OUTPUT«LATIN SMALL LETTER F,LATIN SMALL LETTER O,LATIN SMALL LETTER O,EN DASH,LATIN SMALL LETTER B,LATIN SMALL LETTER A,LATIN SMALL LETTER R␤»
17:35 gfldex you unicode cheats wont tick me!
17:35 AlexDaniel gfldex: by the way, thank you for your contributions
17:36 gfldex my leaky memories give me good reason to fill the gaps in the docs
17:36 AlexDaniel :)
17:37 dha joined #perl6
17:38 AlexDaniel turns out you cannot have more than one bot account on github… how great
17:38 gfldex you could employ your granny
17:40 nemo gfldex: that's pretty cool
17:41 nemo gfldex: for Hedgewars, we loaded the entire confusables list into mariadb as a collation ????
17:42 nemo gfldex: so nemö and nerno are considered equivalent to nemo and can't be registered
17:42 dalek rt-six-help: 886adb0 | coke++ | summary.p6:
17:42 dalek rt-six-help: fix non-debug code
17:42 dalek rt-six-help:
17:42 dalek rt-six-help: was missing -f
17:42 dalek rt-six-help: review: https://github.com/coke/rt-six-help/commit/886adb0731
17:42 dalek rt-six-help: d6da3e2 | coke++ | summary.p6:
17:42 dalek rt-six-help: Default to no debug.
17:42 dalek rt-six-help: review: https://github.com/coke/rt-six-help/commit/d6da3e26b8
17:42 dalek rt-six-help: 36f0407 | coke++ | summary.p6:
17:42 dalek rt-six-help: Track NEW tickets
17:42 dalek rt-six-help: review: https://github.com/coke/rt-six-help/commit/36f04079b0
17:42 dalek rt-six-help: 3ab1d97 | coke++ | summary.p6:
17:42 dalek rt-six-help: remove extra ()'s
17:42 dalek rt-six-help: review: https://github.com/coke/rt-six-help/commit/3ab1d97050
17:45 domidumont joined #perl6
17:48 ZoffixWin joined #perl6
17:54 AlexDaniel nemo: as well as 400 other unicode combiners? :) https://gist.github.com/AlexDaniel/0521bc38fe827bd7d37b
17:54 nemo AlexDaniel: it's a really really long list ☺
17:55 nemo AlexDaniel: I'm not saying it is totally complete, but it helps
17:56 japhb tbrowder: re: specs commit be783f7, the last sentence contradicts the previous sentence.  Or did you mean "row" instead of "table" as the fourth word from the end?
17:56 nemo AlexDaniel: ftp://ftp.unicode.org/Public/security/revision-02/confusables.txt we used a munged version of this w/ only BMP and ascii confusables
17:57 nemo hm. not sure if that's the most up to date version
17:57 AlexDaniel nemo: holy shit
17:58 nemo AlexDaniel: it was a good stress test of collations
17:58 nemo they filed a couple of bug reports against mariadb thanks to us
17:58 user9 joined #perl6
17:58 nemo still not usable in mysql last I checked
17:59 japhb nemo:
17:59 japhb Not usable how?
17:59 AlexDaniel nemo: that seems to be the last one: ftp://ftp.unicode.org/Public/security/revision-06/confusables.txt
18:00 mspo 〶 is a cool symbol
18:01 mspo ☸  shows up interestingly in my terminal
18:01 s_kilk joined #perl6
18:01 nemo japhb: just couldn't load the collation. due to a number of problems
18:02 nemo japhb: it's been a while since I looked into it, but it was like the mariadb problems only worse
18:02 nemo in terms of size of collation, number of bytes in a collation entry...
18:02 nemo japhb: if you like, I can share our Index.xml ☺
18:02 nemo if you're curious what it looks like now
18:02 AlexDaniel ok, does anybody want to write a reverse tool for this?
18:02 nemo I tried to keep it in a sub-xml file but the freakin' collation code is too fragile for that
18:03 AlexDaniel that is, give it a string and it gives you a list of similarly looking strings
18:03 nemo AlexDaniel: hm.. the unicode people have a search UI
18:03 nemo AlexDaniel: http://unicode.org/cldr/utility/confusables.jsp
18:04 AlexDaniel great
18:04 espadrine joined #perl6
18:05 nemo japhb: http://hedgewars.org/tmp/Index.xml  here, if you wanna try it on your mysql.  should be drop-in on your existing Index.xml
18:06 japhb nemo: thanks!
18:06 mspo m: say ௰ + ⑽
18:06 camelia rakudo-moar d075c8: OUTPUT«20␤»
18:06 TeamBlast joined #perl6
18:06 mspo that stuff never gets old to me
18:07 BrokenRobot m: ༳.say
18:07 camelia rakudo-moar d075c8: OUTPUT«-0.5␤»
18:07 mspo BrokenRobot: nice one
18:07 mspo what are those number-full-stop from?
18:08 mspo
18:08 sjoshi joined #perl6
18:10 sivoais joined #perl6
18:10 grondilu wth is '༳'?
18:11 BrokenRobot .u ༳
18:11 yoleaux U+0F33 TIBETAN DIGIT HALF ZERO [No] (༳)
18:11 grondilu http://vignette4.wikia.nocookie.net/community-sitcom/images/1/15/ACL_Chang_presents_to_the_class_the_crib_sheet.png
18:11 mspo half zero?
18:12 BrokenRobot You need to be a Tibetan monk to get that one ;)
18:12 mspo m: say ༲ + 1
18:12 camelia rakudo-moar d075c8: OUTPUT«9.5␤»
18:12 BrokenRobot .u  ༲
18:12 yoleaux U+0F32 TIBETAN DIGIT HALF NINE [No] (༲)
18:12 BrokenRobot :o
18:12 mspo wtf does this stuff mean :)
18:13 hahainternet i assume they're digits tibetans use
18:13 AlexDaniel m: say ༲
18:13 camelia rakudo-moar d075c8: OUTPUT«8.5␤»
18:13 AlexDaniel it means this ↑
18:13 AlexDaniel ah, already demonstrated above
18:13 BrokenRobot http://babelstone.blogspot.com/2007/04/numbers-that-dont-add-up-tibetan-half.html
18:14 * AlexDaniel should read a couple of lines above before replying
18:14 mspo so half-nine = 8.5?
18:15 BrokenRobot Yeah, they seem to be {NUM - 0.5}. And (reading that article) they wanted a combined char, but they got refused so they made separate digits
18:15 mspo thanks for the blog
18:17 brrt joined #perl6
18:18 mspo interesting stuff
18:19 tbrowder japhb: I'm not sure I see a conflict.  We now make a distinction between visible and non-visible col sep chars.  The col sep chars for the whole table must be either visible or invisible (the double-space).  Then, for a table with visible col sep chars, every content row must have only one type of visible  col sep char (either '|' or '+').
18:19 AlexDaniel so we don't even know why these “digits” are there…
18:19 spider-mario joined #perl6
18:26 cdg joined #perl6
18:27 mr-foobar joined #perl6
18:32 tbrowder japhb: I should have said every row must have only one type of visible  col sep char (either '|' or '+')
18:32 trnh joined #perl6
18:32 trnh joined #perl6
18:39 rgrinberg joined #perl6
18:42 itaipu joined #perl6
18:42 djbkd_ joined #perl6
18:49 nemo BrokenRobot: numbers in unicode are odd to me.  Some of them are explicitly flagged as numbers some are not
18:50 sno joined #perl6
18:50 nemo That is, in the unicode category digit
18:50 nemo so. some match on \d, some don't
18:50 BrokenRobot Right, some are digits and some are numbers.
18:51 nemo ok..
18:51 nemo
18:51 nemo number or digit?
18:51 BrokenRobot m: "六".uniprop.say
18:51 camelia rakudo-moar d075c8: OUTPUT«Lo␤»
18:51 nemo er wut
18:51 BrokenRobot Letter
18:51 nemo ah
18:51 BrokenRobot .u 六
18:51 yoleaux No characters found
18:51 BrokenRobot m: "六".uninames.say
18:51 camelia rakudo-moar d075c8: OUTPUT«(<CJK Ideograph>)␤»
18:51 * BrokenRobot shrugs
18:52 nemo U+516D CJK UNIFIED IDEOGRAPH-516D number six
18:52 BrokenRobot m: say 六
18:52 camelia rakudo-moar d075c8: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Undeclared routine:␤    六 used at line 1␤␤»
18:52 psch L is all valid terms
18:52 nemo BrokenRobot: as a result you get weird things like var 6x is illegal in, oh, JS but var 六x is legal
18:53 BrokenRobot heh
18:53 girafe joined #perl6
18:53 nemo var ٠x   also illegal
18:53 psch is 六 supposed to be No instead of Lo?
18:53 nemo since ٠ is a digit apparently but 六 is not
18:53 BrokenRobot Well, I don't speak... CJK... Maybe 六 as a number doesn't make sense.
18:53 nemo psch: well you'd think so, but I don't know how they reason
18:53 nemo unicode folks I mean
18:54 nemo liiiike why are all these random weird emoji in unicode, but still no tengwar ☹
18:54 nemo ????
18:54 psch nemo: actually, i have no idea what 六 means or where it's from, so, no, i specifically wouldn't think it should be No
18:54 psch but i trust that you mean to say "someone who knows it would say it should be No"
18:54 nemo https://en.wikipedia.org/wiki/Sugoroku
18:54 psch ah, i see
18:55 BrokenRobot ,: "
18:55 nemo https://en.wikipedia.org/wiki/Japanese_numerals#Basic_numbering_in_Japanese
18:55 BrokenRobot m: "๖".uniprop.say
18:55 camelia rakudo-moar d075c8: OUTPUT«Nd␤»
18:55 psch okay, yeah, that's unfortunate
18:55 nemo psch: anyway, I don't trust \d in regex really, apart from quick and dirty ones
18:56 nemo psch: I stick to [0-9] if I want those digits
18:56 psch m: say "十".uniprop
18:56 camelia rakudo-moar d075c8: OUTPUT«Lo␤»
18:56 psch hm, well, that's a unicode issue isn't it :/
18:56 nemo psch: and otherwise, if I need to match other things, well, I specify them explicitly too since I figure it won't match
18:56 psch nemo: fwiw, it's probably not our fault :/
18:56 nemo perl's you mean? ☺
18:56 psch yeah, rakudo specifically :)
18:57 nemo heh
18:57 nemo sure. although PCRE we can blame on perl
18:57 nemo abomination that it is ????
18:57 nemo awesome abomination
18:57 psch afaik jnthn++ and all the others that worked on moar and the NFG bits stick rather close to the released unicode standards
18:57 psch well, except NFG itself being somewhat made up as i understand it
18:58 BrokenRobot m: "万".uniprop.say
18:58 camelia rakudo-moar d075c8: OUTPUT«Lo␤»
18:58 psch fwiw, Perl 6 breaks with PCRE in quite a few ways :P
18:58 psch like, (?...) is just gone, which is great
18:58 psch and all it's subforms
18:58 psch -'
19:00 BrokenRobot I feel Perl 6's regex are waaay to verbose for short stuff, even if they are nicer for longer stuff
19:00 BrokenRobot s/to/too/;
19:02 psch /\( [^)]+ \)/ vs /<-[)]>+ '(' ~ ')'/ # is something that comes to mind and seems to fit the sentiment
19:02 BrokenRobot /o?b*/ v.s. /'o'? 'b'*/
19:02 psch although, well, we can still do the left one i guess
19:02 psch m: /o?b*/
19:02 camelia rakudo-moar d075c8: ( no output )
19:03 BrokenRobot With m:P5//?
19:03 psch no, just rephrased with <-[)]> and escaping
19:03 BrokenRobot m: say "foobar" ~~ /o?b*/
19:03 camelia rakudo-moar d075c8: OUTPUT«「」␤»
19:03 BrokenRobot m: say "foobar" ~~ /o?b**2/
19:03 camelia rakudo-moar d075c8: OUTPUT«Nil␤»
19:03 BrokenRobot m: say "foobar" ~~ /o?b**1/
19:03 camelia rakudo-moar d075c8: OUTPUT«「ob」␤»
19:04 psch like, /\(<-[)]>\)/ i suppose
19:04 psch (also the perl5 example is actually wrong, cause it doesn't have /x :S )
19:05 psch in general, quoting in regex only if you want to term group for quantifiers or if it isn't \w
19:05 psch although the latter you can also escape
19:05 psch m: say "(" ~~ /\(/
19:05 camelia rakudo-moar d075c8: OUTPUT«「(」␤»
19:05 psch well, "only *necessary* if"
19:05 psch also probably verb
19:06 BrokenRobot m: say "foobar" ~~ /o b/
19:06 camelia rakudo-moar d075c8: OUTPUT«Potential difficulties:␤    Space is not significant here; please use quotes or :s (:sigspace) modifier (or, to suppress this warning, omit the space, or otherwise change the spacing)␤    at <tmp>:1␤    ------> 3say "foobar" ~~ /o7⏏5 b/␤「ob…»
19:06 BrokenRobot I need more getting-used to it.
19:06 psch read Perl6/Grammar.nqp before going to bed ;)
19:07 psch or rather, *in* bed before falling asleep :)
19:07 BrokenRobot :)
19:08 psch i did that a lot with the synopses, actually...
19:11 psch m: say "abcd" ~~ /^(a | b | bc | cd)*?$/; my @a = < a b bc cd >; say "abcd" ~~ /^(@a)*?$/
19:11 camelia rakudo-moar d075c8: OUTPUT«「abcd」␤ 0 => 「a」␤ 0 => 「b」␤ 0 => 「cd」␤Nil␤»
19:11 psch that's a bucket of terrible, fwiw :|
19:11 psch i mean, it's bugged, yes
19:11 sortiz joined #perl6
19:11 psch but it's probably hiding somewhere really deep inside QRegex or something like that and, well, it's a fundamental feature :/
19:12 psch also already ticketed, by yours truly, as #126713
19:12 synopsebot6 Link:  https://rt.perl.org/rt3//Public/Bug/Display.html?id=126713
19:13 sortiz \o #perl6
19:13 labster joined #perl6
19:17 labster1 joined #perl6
19:21 BrokenRobot I've seen another ticket involving @array in regexes, I wonder if it's related.
19:22 yqt joined #perl6
19:22 * BrokenRobot tries to recall it or its code and fails.
19:24 rindolf sortiz: hi, sup?
19:24 psch m: my @a = < a b bc cd >; say "abcd" ~~ /^([||@a])*?$/
19:24 camelia rakudo-moar d075c8: OUTPUT«「abcd」␤ 0 => 「a」␤ 0 => 「b」␤ 0 => 「cd」␤»
19:25 psch m: my @a = < a b bc cd >; say "abcd" ~~ /^([|@a])*?$/
19:25 camelia rakudo-moar d075c8: OUTPUT«Nil␤»
19:25 psch so, yeah, i suppose it's "explicit or implicit LTM alternating interpolation of arrays matches differently than bareword LTM alternations"
19:26 psch but well, it's still about what S05 actually means, in a way :|
19:27 sortiz m: my $a = 'foo'; my $f =  $a.Int; say $f ~~ Failure;  my $nosink = $f.succ; # succ needs concrete, so should explode
19:27 camelia rakudo-moar d075c8: OUTPUT«True␤Cannot convert string to number: base-10 number must begin with valid digits or '.' in '3⏏5foo' (indicated by ⏏)␤  in block <unit> at <tmp> line 1␤␤Actually thrown at:␤  in any  at gen/moar/m-Metamodel.nqp line 3055␤  in block <unit…»
19:27 sortiz m: my $a = 'foo'; my $f =  $a.Int; say $f ~~ Failure;  my $nosink = $f.abs; # abs needs concrete, so should explode
19:27 camelia rakudo-moar d075c8: OUTPUT«True␤Cannot convert string to number: base-10 number must begin with valid digits or '.' in '3⏏5foo' (indicated by ⏏)␤  in block <unit> at <tmp> line 1␤␤Actually thrown at:␤  in block <unit> at <tmp> line 1␤␤»
19:27 sortiz m: my $a = 'foo'; my $f =  $a.Int; say $f ~~ Failure;  my $nosink = $f.min; # min needs concrete, so should explode
19:27 camelia rakudo-moar d075c8: OUTPUT«True␤»
19:27 psch m: *.abs;
19:27 camelia rakudo-moar d075c8: ( no output )
19:27 psch m: *.min;
19:27 camelia rakudo-moar d075c8: ( no output )
19:28 psch sortiz: i think &min was recently patched in some way wrt Failures
19:29 sortiz Yep, I work with BrokenRobot on that, but no agreement yet. Now I have a more clear idea.
19:30 sortiz m: say 'a'.Int.min
19:30 camelia rakudo-moar d075c8: OUTPUT«Inf␤»
19:30 BrokenRobot psch: there's a PR, but it's unmerged yet.
19:30 psch ah, alright
19:32 psch m: say min Nil
19:32 camelia rakudo-moar d075c8: OUTPUT«Inf␤»
19:32 sortiz BrokenRobot, I'm convinced now that the best approach is to throw as soon as possible, 'cus 'min' is a concrete use attempt of the failure.
19:32 psch m: say min Failure.new
19:32 camelia rakudo-moar d075c8: OUTPUT«Inf␤»
19:32 * psch is inclined to agree
19:32 BrokenRobot m: say min +'a', +'a'
19:32 camelia rakudo-moar d075c8: OUTPUT«Cannot convert string to number: base-10 number must begin with valid digits or '.' in '3⏏5a' (indicated by ⏏)␤  in block <unit> at <tmp> line 1␤␤Actually thrown at:␤  in block <unit> at <tmp> line 1␤␤»
19:32 psch i percieve Failure somewhat like Inf in IEEE754 - it eats all the following results
19:33 psch but it still keeps going
19:33 BrokenRobot m: say so min +'a', +'a'
19:33 camelia rakudo-moar d075c8: OUTPUT«Cannot convert string to number: base-10 number must begin with valid digits or '.' in '3⏏5a' (indicated by ⏏)␤  in block <unit> at <tmp> line 1␤␤Actually thrown at:␤  in block <unit> at <tmp> line 1␤␤»
19:33 psch ...actually, that doesn't really sound like i agree
19:33 psch i think i'll better step away from the thinking thing for today... :)
19:34 BrokenRobot sortiz: so basically the version of the PR where we threw in self!first-concrete?
19:34 addison joined #perl6
19:34 BrokenRobot Ugh, GitHub changes its fonts to something ugly :S
19:35 BrokenRobot *chaNGED
19:35 sortiz BrokenRobot, yes.
19:36 BrokenRobot k, I'll modify it when I get home
19:36 sortiz kk
19:38 BrokenRobot This is kinda annoying, 'cause GitHub was the only website whose layout fonts and colours I liked among all the websites I commonly use. They just had to go to the dark side ~_~
19:39 sortiz :P
19:40 BrokenRobot Looks totally different on Windows though. Linux: https://pbs.twimg.com/media/CnG6VncVIAAM-XS.jpg Win7: http://i.imgur.com/HkOcMPd.png
19:47 rurban joined #perl6
19:50 mspo BrokenRobot: thanks now the new fonts are all I can see
19:54 cdg joined #perl6
19:55 canopus joined #perl6
20:00 rurban1 joined #perl6
20:08 rurban1 left #perl6
20:10 * lizmat is working on the Perl 6 Weekly
20:10 lizmat let me know if you have anything of note that you think I may have missed
20:11 * sortiz trying to read lizmat mind for the missing things... ;-)
20:11 Xliff BrokenRobot: You do know that you can change those with Stylish if you use chrome?
20:12 lizmat sortiz: that's quite easy: there's not a whole lot there, so chances are I missed it  :-)
20:12 lizmat whatever "it" is
20:12 Xliff BrokenRobot: https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe?utm_source=chrome-app-launcher-info-dialog
20:13 iH2O joined #perl6
20:16 TEttinger joined #perl6
20:23 AlexDaniel lizmat: MasterDuke++ created committable bot. benchable is on its way also
20:24 brrt joined #perl6
20:26 ZoffixMobile joined #perl6
20:27 ZoffixMobile Xliff, yes, of course, but throughout the day I work on ~different computers, so anything regarding custom setup is annoying :)
20:27 dha joined #perl6
20:28 AlexDaniel lizmat: over the last 7 days gfldex++ pushed over 70 commits to the doc repo. By the way, the graph at https://github.com/perl6/doc/graphs/contributors looks very promising
20:29 ZoffixMobile lizmat, I can't objectively say if it's worth including in Weekly, but I wrote an RT interface that makes it easier--at least I find it so--to go through the ticket queue to find some tickets to potentially hack on: https://github.com/zoffixznet/perl6-Ticket-Trakr
20:29 AlexDaniel lizmat: Zoffix++ worked hard on older tickets. As a result, a bunch of stuff was closed (e.g. tests were written for testneeded tickets)
20:30 gfldex i'm quite sure the docs will be done by Christmas
20:30 AlexDaniel gfldex: I believe you
20:39 Util m: sub d3  ( $n -->  Bool        ) { return $n %% 3          }; say d3( 15).perl;
20:39 camelia rakudo-moar d075c8: OUTPUT«Bool::True␤»
20:39 Util m: sub d35 ( $n --> (Bool, Bool) ) { return $n %% 3, $d %% 5 }; say d35(15).perl;
20:39 camelia rakudo-moar d075c8: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Malformed return value␤at <tmp>:1␤------> 3sub d35 ( $n -->7⏏5 (Bool, Bool) ) { return $n %% 3, $d %% ␤»
20:39 Util How should I indicate the return types of a sub, when returning more than one value?
20:41 gfldex both --> and returns are not indicators of return values but runtime type checks. They are not a good substitute for documentation.
20:41 gfldex you can provide a subset of List tho
20:42 gfldex or you provide a class to hold the two values
20:45 gfldex m: sub f(-->Int) { gather { take 10; take 20 }}; .say for f;
20:45 camelia rakudo-moar d075c8: OUTPUT«Type check failed for return value; expected Int but got Seq ((10, 20).Seq)␤  in sub f at <tmp> line 1␤  in block <unit> at <tmp> line 1␤␤»
20:45 Util gfldex: thanks
20:46 dalek doc: c74572e | (Daniel Perrett)++ | doc/Language/variables.pod6:
20:46 dalek doc: Gloss obscure acronym NYI
20:46 dalek doc: review: https://github.com/perl6/doc/commit/c74572e611
20:48 lizmat I wonder whether we should have a "what's new" section on doc.perl6.org
20:48 AlexDaniel lizmat: isn't it what p6weekly is for?
20:49 lizmat well, yes, in a way... but it's really too much work to also track perl6/doc
20:54 kyclark joined #perl6
20:54 kyclark Given 'foo'.comb Z 'boo'.comb, how could I find the pairs of letters that are not the same?
20:55 kyclark Also, how can I interrogate Perl to find what it thinks this is?  E.g., I think it
20:55 dha I think a bullet-point kind of thing for "what's new" would be useful, as not everyone looks at p6weekly (I imagine). Not sure if doc.perl6.org is necessarily the right place for it, though. (note: this is right off the top of my head, and therefore may be stupid)
20:55 kyclark it's a list of pairs, but I'm not sure.
20:55 lizmat and another Perl 6 Weekly hits the Net: https://p6weekly.wordpress.com/2016/07/11/2016-28-show-your-papers/
20:55 hoelzro lizmat++
20:56 dha lizmat++
20:57 hoelzro and a big ++ to everyone involved in moving things forward
20:57 kyclark I think it's actually a list of lists
20:58 sortiz lizmat++
20:58 AlexDaniel m: say (‘foof’.comb Z ‘boob’.comb).grep: { [!eq] $_ }
20:58 camelia rakudo-moar d075c8: OUTPUT«((f b) (f b))␤»
21:02 psch kyclark: Z defaults to infix:<,>, so yes, it's a List of Lists
21:02 psch m: my $a = eager ('foo'.comb Z 'boo'.comb); say $a.WHAT; say $a[0].WHAT; say $a[0][0].WHAT
21:02 camelia rakudo-moar d075c8: OUTPUT«(List)␤(List)␤(Str)␤»
21:02 trnh joined #perl6
21:02 trnh joined #perl6
21:02 psch m: my $a = eager ('foo'.comb Z 'boo'.comb); say set($a)
21:02 camelia rakudo-moar d075c8: OUTPUT«set(((f b) (o o) (o o)))␤»
21:02 psch m: my $a = eager ('foo'.comb Z 'boo'.comb); say set(|$a)
21:02 camelia rakudo-moar d075c8: OUTPUT«set(b, f, o)␤»
21:03 psch ...and Sets of Lists are apparently weird
21:03 psch m: my @a = ('foo'.comb Z 'boo'.comb); say set(|@a)
21:03 camelia rakudo-moar d075c8: OUTPUT«set((o o), (f b), (o o))␤»
21:03 psch i'd guess List isn't a value type is why
21:04 kyclark So I should have said that I'm trying to find the Hamming Distance between two strings (number of edits to xform s1 -> s2).  I thought this might be a clever way to start, but perhaps others can see a simpler way?
21:05 psch m: my $a = StrDistance.new(:before("foo"), :after("bar")); say +$a
21:05 camelia rakudo-moar d075c8: OUTPUT«3␤»
21:06 psch m: my $a = StrDistance.new(:before("bookkeeper"), :after("bokeper")); say +$a
21:06 camelia rakudo-moar d075c8: OUTPUT«3␤»
21:06 psch actually, that's not hamming, but levenshtein vOv
21:08 psch note that StrDistance is actually also somewhat internal-ish - we use it for return sufficient information for the tr/// use cases
21:08 psch s/for/to/
21:08 psch i mean, it's clearly not explicitly internal... :)
21:10 psch afaiu, levenshtein is a generalized for of hamming..?
21:10 psch it's probably really too late for me to thing about these kinds of things... o/
21:11 ugexe Perl6::World has a levenshtein subroutine as well
21:12 iH2O what in perl6, is a levenshtein O_O subroutine O_O
21:12 ugexe ah its damerau levenshtein
21:12 iH2O thx for this speedy answer
21:13 ugexe a subroutine that calculates the levenshtein distance of 2 strings?
21:13 perlpilot It's what allows Rakudo to be fairly smart about those "did you mean ... ?" messages
21:13 iH2O good to know...
21:14 iH2O ill think about it next time i get one...
21:14 iH2O does google use that too?
21:14 iH2O i get "did you mean...?" all the time
21:15 perlpilot google has a different, much larger corpus but I bet it's similarish
21:16 AlexDaniel m: my $a = StrDistnce.new(:before("foo"), :after("bar")); say +$a
21:16 camelia rakudo-moar d075c8: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Undeclared name:␤    StrDistnce used at line 1. Did you mean 'StrDistance'?␤␤»
21:16 AlexDaniel :)
21:16 iH2O it can almost read my mind better than i can myself, surveillance progress never stops...
21:16 AlexDaniel m: my $a = StrDstnce.new(:before("foo"), :after("bar")); say +$a
21:16 camelia rakudo-moar d075c8: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Undeclared name:␤    StrDstnce used at line 1. Did you mean 'StrDistance'?␤␤»
21:16 AlexDaniel m: my $a = StrDstnc.new(:before("foo"), :after("bar")); say +$a
21:16 camelia rakudo-moar d075c8: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Undeclared name:␤    StrDstnc used at line 1␤␤»
21:16 AlexDaniel ok fair enough
21:21 perlpilot AlexDaniel: are you implying that we should also use soundex as well?  ;)
21:22 AlexDaniel why not :)
21:25 iH2O you do that folks,use soundex. bye for now
21:26 [Coke] lizmat++ only perl6 weekly person to not get burnt out yet since the first parrot one!
21:38 perlpilot lizmat++ and Zoffix++  because I only found out about the RT interface through p6weekly  :)
21:47 rurban joined #perl6
21:49 dalek doc: 2f0a39a | (Daniel Perrett)++ | doc/Type/Any.pod6:
21:49 dalek doc: spelling/grammar fix in duckmap
21:49 dalek doc: review: https://github.com/perl6/doc/commit/2f0a39a15f
21:50 kyclark joined #perl6
21:52 kyclark joined #perl6
22:10 profan joined #perl6
22:17 skids joined #perl6
22:22 kyclark joined #perl6
22:23 Util topic
22:24 Util (missed the slash)
22:25 gcole_ joined #perl6
22:30 zacts joined #perl6
22:31 labster joined #perl6
22:36 gfldex m: say (1..100000).join.chars; say now - BEGIN now;
22:36 camelia rakudo-moar d075c8: OUTPUT«488895␤0.13955107␤»
22:36 gfldex m: say ([~] 1..100000).chars; say now - BEGIN now;
22:36 camelia rakudo-moar d075c8: OUTPUT«488895␤2.1193073␤»
22:44 AlexDaniel m: say (1...100000).sum; say now - BEGIN now;
22:44 camelia rakudo-moar d075c8: OUTPUT«5000050000␤2.3975344␤»
22:44 AlexDaniel m: say ([+] 1...100000); say now - BEGIN now;
22:44 camelia rakudo-moar d075c8: OUTPUT«5000050000␤2.39794903␤»
22:44 AlexDaniel m: say (1..100000).sum; say now - BEGIN now;
22:44 camelia rakudo-moar d075c8: OUTPUT«5000050000␤0.01135205␤»
22:44 AlexDaniel m: say ([+] 1..100000); say now - BEGIN now;
22:44 camelia rakudo-moar d075c8: OUTPUT«5000050000␤0.01227345␤»
22:46 bjz joined #perl6
23:04 fhorck joined #perl6
23:34 kyclark joined #perl6
23:40 nn joined #perl6
23:40 nn kk
23:56 empT joined #perl6

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

Perl 6 | Reference Documentation | Rakudo