Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2016-05-20

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:18 kid511 joined #perl6
00:37 bdmatatu joined #perl6
00:51 tokuhirom joined #perl6
00:52 BenGoldberg joined #perl6
01:01 mr-foobar joined #perl6
01:01 cdg joined #perl6
01:26 astj joined #perl6
01:31 pierre_ joined #perl6
01:46 BenGoldberg 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:50 richi238 Hi
01:50 richi238 if there is a subtype special_list and i  want to know the exact where clause
01:50 richi238 is there a way to print it?
01:51 richi238 say special_list.WHAT doesn't tell enough info
01:52 geekosaur I think all it has at that point is compiled code, and there's nothing equivalent to perl 5's B::Deparse yet
01:56 zakharyas joined #perl6
01:58 richi238 geekosaur: I see, thanks
01:58 molaf joined #perl6
02:00 alva left #perl6
02:01 timotimo i think at some point we actually installed the code for a where clause in some place and made it be printed out
02:01 timotimo but i can't remember what that was exactly
02:06 DarthGandalf joined #perl6
02:13 cpage_ joined #perl6
02:26 mr-foobar joined #perl6
02:34 cdg joined #perl6
02:35 Amnez777 joined #perl6
02:38 dalek ecosystem: 2706026 | (Zoffix Znet)++ | META.list:
02:38 dalek ecosystem: Add Test::When
02:38 dalek ecosystem:
02:38 dalek ecosystem: Selectively run tests based on the environment and installed modules and C libs
02:38 dalek ecosystem: review: https://github.com/perl6/e​cosystem/commit/27060269f9
02:41 BenGoldberg joined #perl6
02:49 BenGoldberg joined #perl6
02:55 mr-foobar joined #perl6
02:57 noganex joined #perl6
02:59 Sgeo Why do unhandles Failures have to blow up on touching them? Why not turn that into the function that did that also Failing?
02:59 willthechill joined #perl6
03:00 geekosaur "Calling methods on unhandled failures propagates the failure. The specification says the result is another Failure, in Rakudo it causes the failure to throw."
03:01 geekosaur and the answer might be that keeping track of the path of such a transited Failure might be painful *and* might happen long after the initial Failure...
03:03 geekosaur s/might happen/it might eventually throw/
03:05 Khisanth joined #perl6
03:34 mr-foobar joined #perl6
03:47 BenGoldberg One possible partial solition: first, create a subclass of Failure, Failure::Propagated.  Next, add a FALLBACK method to Failure, which creates and returns a new instance of that subclass.  Failure::Propagated would have a attribute, $.failure-origin, which contains the original Failure.
04:02 pierre_ joined #perl6
04:09 cpage__ joined #perl6
04:13 mr-foobar joined #perl6
04:14 jjido joined #perl6
04:24 retup__ joined #perl6
04:24 hobbs joined #perl6
04:24 hobbs joined #perl6
04:24 dylanwh_ joined #perl6
04:25 drforr1 joined #perl6
04:34 xenowoolfy joined #perl6
04:41 magiczna_dupa joined #perl6
04:44 Sgeo "If the divisors are given as a lazy list, runs until the remainder is 0. Otherwise, returns one more item in the result than the number of given divisors."
04:44 Sgeo http://docs.perl6.org/routine/polymod
04:44 Sgeo Wait, does it literally check that? Like Perl 6 code can detect whether a list is lazy or not?
04:45 Cabanossi joined #perl6
04:49 Sgeo Apparently yes it can. That's creepy
04:50 * Sgeo is from Haskell-land where there's no real difference, except that infinite lists take infinitely long to tell you their size
04:55 jdv79 why wouldn't or couldn't it detect laziness?
04:56 grassass joined #perl6
04:56 jdv79 plus i thought the real distinction was about infinite vs not
05:12 Zoffix joined #perl6
05:13 Zoffix Sgeo, you think that's creepy? Check this out:
05:13 Zoffix m: say (-∞..∞).elems
05:13 camelia rakudo-moar e39ce3: OUTPUT«Inf␤»
05:13 Zoffix :)
05:14 Sgeo What would .elems give on a list containing every real number? ;)
05:15 Sgeo m: say 0 ~~ (-∞..∞)
05:15 camelia rakudo-moar e39ce3: OUTPUT«True␤»
05:16 Sgeo I don't know why I was thinking Perl6 would do the dumb thing there
05:16 Zoffix Isn't that what my eval above does?
05:16 Sgeo Zoffix, I thought it would be every integer, not every real
05:16 Sgeo m: say 0.5 ~~ (-∞..∞)
05:16 camelia rakudo-moar e39ce3: OUTPUT«True␤»
05:16 Zoffix m: say π ~~ (-∞..∞)
05:16 camelia rakudo-moar e39ce3: OUTPUT«True␤»
05:16 Zoffix m: say 1+i10 ~~ (-∞..∞)
05:16 camelia rakudo-moar e39ce3: OUTPUT«5===SORRY!5=== Error while compiling /tmp/wmds8PaFeQ␤Expected a term, but found either infix ~~ or redundant prefix ~␤  (to suppress this message, please use a space like ~ ~)␤at /tmp/wmds8PaFeQ:1␤------> 3say 1+i10 ~~7⏏5 (-∞..∞)␤»
05:17 Sgeo m: say (-∞..∞)[0]
05:17 camelia rakudo-moar e39ce3: OUTPUT«-Inf␤»
05:17 Sgeo m: say (-∞..∞)[∞]
05:17 camelia rakudo-moar e39ce3: OUTPUT«Cannot coerce Inf to an Int␤  in block <unit> at /tmp/RXMHMjECh9 line 1␤␤Actually thrown at:␤  in block <unit> at /tmp/RXMHMjECh9 line 1␤␤»
05:17 Zoffix I forget how to write complex numbers
05:17 Sgeo m: say (1+i10) ~~ (-∞..∞)
05:17 camelia rakudo-moar e39ce3: OUTPUT«5===SORRY!5=== Error while compiling /tmp/DfSo24yHK7␤Undeclared routine:␤    i10 used at line 1␤␤»
05:17 Sgeo m: say (1+10i) ~~ (-∞..∞)
05:17 camelia rakudo-moar e39ce3: OUTPUT«True␤»
05:18 Sgeo That's, um.
05:18 Zoffix m: say (1+10i) ~~ (5..∞)
05:18 camelia rakudo-moar e39ce3: OUTPUT«False␤»
05:18 Zoffix :o
05:20 Zoffix m: say @(5.5..10)
05:20 camelia rakudo-moar e39ce3: OUTPUT«(5.5 6.5 7.5 8.5 9.5)␤»
05:20 Zoffix m: say @((5.5+i10)..10)
05:20 camelia rakudo-moar e39ce3: OUTPUT«5===SORRY!5=== Error while compiling /tmp/7cwcr2b5Ja␤Undeclared routine:␤    i10 used at line 1␤␤»
05:21 Sgeo Maybe (-∞..∞) should contain every computable number, but not any non-computable numbers, so if you do $noncomputable ~~ (-∞..∞) you get False
05:21 Zoffix m: say @((5.5+10i)..10)
05:21 camelia rakudo-moar e39ce3: OUTPUT«Complex objects are not valid endpoints for Ranges␤  in block <unit> at /tmp/DnZG7K_oZL line 1␤␤»
05:21 Sgeo I wonder if that can be twisted into a halting oracle somehow
05:22 Sgeo My guess is that it's not even sensible to have $noncomputable... wait, it is. hmm
05:22 Sgeo (Some structure effectively stating that it's Chaitin's constant or something)
05:23 Zoffix if Complex objects can't be endpoints for Ranges then say (1+10i) ~~ (-∞..∞) should be false, since .. operator increases each item by 1, and if you can't start with a Complex, you can't get to a point where increments by 1 will lead you to 1+10i being inside that range
05:23 Zoffix </pedantry>
05:23 Sgeo m: say 0.5 ~~ (-2..2)
05:23 camelia rakudo-moar e39ce3: OUTPUT«True␤»
05:24 Zoffix hmmm
05:24 Sgeo m: (-2..2)[0]
05:24 camelia rakudo-moar e39ce3: ( no output )
05:24 Sgeo m: say (-2..2)[0]
05:24 camelia rakudo-moar e39ce3: OUTPUT«-2␤»
05:24 Sgeo m: say (-2..2)[1]
05:24 camelia rakudo-moar e39ce3: OUTPUT«-1␤»
05:24 Zoffix That's kinda bugging me, 'cause:
05:24 Sgeo m: say (-2..2)[1]
05:24 camelia rakudo-moar e39ce3: OUTPUT«-1␤»
05:24 Zoffix m: say @(-2..2)
05:24 camelia rakudo-moar e39ce3: OUTPUT«(-2 -1 0 1 2)␤»
05:24 Sgeo m: say (-2..2)[1].5
05:24 camelia rakudo-moar e39ce3: OUTPUT«5===SORRY!5=== Error while compiling /tmp/abQ4WnD65r␤Malformed postfix call␤at /tmp/abQ4WnD65r:1␤------> 3say (-2..2)[1].7⏏5␤»
05:24 Sgeo m: say (-2..2)[1.5]
05:24 camelia rakudo-moar e39ce3: OUTPUT«-1␤»
05:24 * Sgeo blinks
05:25 Zoffix 1.5 gets coerced into Int, which is 1
05:26 Zoffix m: say 0.5 ∈ (-2..2)
05:26 camelia rakudo-moar e39ce3: OUTPUT«False␤»
05:27 Sgeo Is there a texas version of that operator?
05:27 Zoffix m: say 0.5 (elem) (-2..2)
05:27 camelia rakudo-moar e39ce3: OUTPUT«False␤»
05:28 Zoffix http://docs.perl6.org/language/unicode_texas
05:28 Sgeo TY
05:28 Sgeo oops ty
05:28 Zoffix There are texas versions of everything.
05:31 woodruffw joined #perl6
05:31 woodruffw joined #perl6
05:32 mtj_ joined #perl6
05:33 ssotka joined #perl6
05:35 domidumont joined #perl6
05:36 zhmylove joined #perl6
05:40 domidumont joined #perl6
05:44 wamba joined #perl6
05:45 tokuhirom joined #perl6
05:48 sno joined #perl6
05:51 Zoffix left #perl6
05:55 domidumont joined #perl6
05:56 jjido joined #perl6
06:11 pierre_ joined #perl6
06:21 _mg_ joined #perl6
06:23 CIAvash joined #perl6
06:24 firstdayonthejob joined #perl6
06:27 japhb joined #perl6
06:28 khagan joined #perl6
06:28 tony-o joined #perl6
06:29 sivoais joined #perl6
06:31 Fleurety joined #perl6
06:33 azawawi joined #perl6
06:33 azawawi hi
06:35 brrt joined #perl6
06:42 edehont joined #perl6
06:42 jast joined #perl6
07:06 pierre_ joined #perl6
07:07 avalenn joined #perl6
07:23 zhmylove joined #perl6
07:23 RabidGravy joined #perl6
07:24 cpage_ joined #perl6
07:31 RabidGravy GOO MONIN
07:34 brrt \o RabidGravy
07:46 masak goo monin, #perl6
07:47 cpage_ joined #perl6
07:51 moritz \o
07:54 masak ostensibly Perl 6 day today, though I might need to leech some of it to deadline-related $work :/
08:08 ocbtec joined #perl6
08:12 darutoko joined #perl6
08:14 stromper joined #perl6
08:14 pierre_ joined #perl6
08:17 * stmuk submits perl6 to YAPC
08:18 stmuk (EU)
08:27 stmuk talk even .. need coffee
08:29 * RabidGravy concludes that whatever claims the GtkBuilder documentation about "being helpful to dynamic languages" they actual meant "how the python binding wanted to do it"
08:29 nine are you surprised?
08:31 pierre_ joined #perl6
08:32 huggable joined #perl6
08:34 wamba joined #perl6
08:36 RabidGravy not really, but if they had gone one step further and passed the widget name to the callback of "gtk_builder_connect_signals_full" we'd be golden
08:41 Relsak joined #perl6
08:46 Relsak left #perl6
08:48 zhmylove joined #perl6
09:03 g4 joined #perl6
09:04 domidumont joined #perl6
09:17 gregf_ joined #perl6
09:36 mr-foobar joined #perl6
09:46 mr-foobar joined #perl6
09:47 masak I finally figured out how to draw SVG comfortably with Perl 6
09:47 masak lots of named subs producing paths and SVG fragments, lots of heredocs; put it all together in the end into a small heredoc drawing the whole SVG scene
09:48 masak make the heredocs of the qq variety, and then interpolate exclusively in {} blocks
09:51 andrewalker joined #perl6
10:00 abraxxa joined #perl6
10:06 dalek gtk-simple/glade-app-supply: 3a4a4c8 | (Slobodan Mišković)++ | / (3 files):
10:06 dalek gtk-simple/glade-app-supply: Simplistic GTK::Simple::GladeApp
10:06 dalek gtk-simple/glade-app-supply:
10:06 dalek gtk-simple/glade-app-supply: * loads `$*PROGRAM`.glade
10:06 dalek gtk-simple/glade-app-supply: * shows `mainWindow`
10:06 dalek gtk-simple/glade-app-supply: * connects signals to `handle-signal(Str)`
10:06 dalek gtk-simple/glade-app-supply: review: https://github.com/perl6/gt​k-simple/commit/3a4a4c86e6
10:06 dalek gtk-simple/glade-app-supply: bacabad | RabidGravy++ | / (3 files):
10:06 dalek gtk-simple/glade-app-supply: Merge branch 'glade-app' of https://github.com/slobo/gtk-simple into slobo-glade-app
10:06 dalek gtk-simple/glade-app-supply: review: https://github.com/perl6/gt​k-simple/commit/bacabadb64
10:06 dalek gtk-simple/glade-app-supply: cd859ad | RabidGravy++ | / (2 files):
10:06 dalek gtk-simple/glade-app-supply: Very basic Builder handling with supply on signal
10:06 dalek gtk-simple/glade-app-supply:
10:06 dalek gtk-simple/glade-app-supply: Based on #16
10:06 dalek gtk-simple/glade-app-supply:
10:06 dalek gtk-simple/glade-app-supply: The actual end-state would be more like each "handler" having
10:06 dalek gtk-simple/glade-app-supply: an individual supply, and that would be able to receive an
10:06 dalek gtk-simple/glade-app-supply: actual Perl object.
10:06 dalek gtk-simple/glade-app-supply: review: https://github.com/perl6/gt​k-simple/commit/cd859ad347
10:17 RabidGravy sorry for the spam there should have squished slobo's stuff first
10:17 rindolf joined #perl6
10:25 RabidGravy right anyway off out to the supermarket
10:31 astj joined #perl6
10:42 kid51 joined #perl6
10:49 konobi joined #perl6
10:49 konobi howdy all... anyone know if there are any experiments with perl6 and nginx integration around?
10:55 wamba joined #perl6
11:03 nine konobi: in what way would they be integrated?
11:04 konobi nine: https://openresty.org/download/​agentzh-nginx-tutorials-en.pdf
11:04 psch m: my @a = 2, 2, 1, 1, 1, 1, .5, .5, .5, .5, .5, .5, .5, .5; say [eqv] @a.permutations[^10] # uhh
11:04 camelia rakudo-moar e39ce3: OUTPUT«True␤»
11:04 psch m: my @a = 2, 2, 1, 1, 1, 1, .5, .5, .5, .5, .5, .5, .5, .5; say @a.permutations[^3]
11:04 camelia rakudo-moar e39ce3: OUTPUT«((2 2 1 1 1 1 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5) (2 2 1 1 1 1 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5) (2 2 1 1 1 1 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5))␤»
11:04 konobi nine: openresty and nginx_lua are a really interesting read
11:06 konobi lots of interesting fp ideas
11:06 psch hm, so it probably starts shuffling identical elements at the end around
11:07 psch so, yeah, just gross misuse on my part vOv
11:07 psch it's probably way too slow for what i want to use it for anyway
11:08 psch aim was to get any combination of any number of each of 2, 1, 0.5 that sums to 4, but i'm clearly starting from the wrong end... :)
11:12 itaipu joined #perl6
11:15 psch ...that's not accidentally something NP-hard that i'm trying there, is it? :/
11:17 * psch curses spotty math knowledge *shakes fist*
11:22 _mg_ joined #perl6
11:30 stmuk_ joined #perl6
11:32 mr-foobar joined #perl6
11:33 rindolf joined #perl6
11:36 tomboy64 joined #perl6
11:37 llfourn Use of uninitialized value of type Instant in string context
11:37 llfourn Any of .^name, .perl, .gist, or .say can stringify undefined things, if needed.  in any load_module at src/Perl6/World.nqp line 1185
11:38 llfourn ^ this is with RAKUDO_MODULE_DEBUG=1
11:38 llfourn it goes along with: "Missing or wrong version of dependency"
11:39 llfourn which triggers with this particular lib when trying to run the second time (after precompiling)
11:42 nowan joined #perl6
11:52 rork joined #perl6
11:52 rork joined #perl6
11:56 psch hm, antipairs can't produce non-string-key'd hashes :/
12:04 xenthree3 joined #perl6
12:04 xenthree3 left #perl6
12:10 |2701 joined #perl6
12:10 [Coke] (texas versions of everything) except one thing.
12:18 AlexDaniel joined #perl6
12:20 moritz the cursor variable?
12:26 [Coke] Aye
12:26 [Coke]
12:45 domidumont1 joined #perl6
12:47 domidumont2 joined #perl6
12:48 bisectable joined #perl6
12:49 AlexDaniel *ding ding ding ding* Attention! ⚠⚠⚠
12:49 AlexDaniel say hello to our new bot
12:49 AlexDaniel it works like this
12:49 AlexDaniel bisect: exit 1 if (^∞).grep({ last })[5] // 0 == 4 # RT 128181
12:49 bisectable AlexDaniel: (2016-03-18) https://github.com/rakudo/rakudo/commit/6d120ca
12:49 AlexDaniel bisect: for ‘q b c d’.words -> $a, $b { }; CATCH { exit 0 }; exit
12:49 bisectable AlexDaniel: (2016-05-17) https://github.com/rakudo/rakudo/commit/2801780
12:49 AlexDaniel woah, that's wrong
12:50 AlexDaniel bisect: for ‘q b c d’.words -> $a, $b { }; CATCH { exit 0 }; exit 1
12:50 bisectable AlexDaniel: (2016-03-01) https://github.com/rakudo/rakudo/commit/1b6c901
12:50 AlexDaniel that's right
12:50 AlexDaniel so, basically I have built rakudo for every commit since v6.c
12:50 moritz woah.
12:50 AlexDaniel 1000 commits, averaging for about 50 seconds per build on my setup
12:50 AlexDaniel less than a day + writing the bot itself
12:51 AlexDaniel oh, and you can specify the starting points, if you want
12:51 AlexDaniel bisect: good=v6.c bad=HEAD exit 1 if (^∞).grep({ last })[5] // 0 == 4 # RT 128181
12:51 bisectable AlexDaniel: (2016-03-18) https://github.com/rakudo/rakudo/commit/6d120ca
12:51 AlexDaniel but it defaults to v6.c and HEAD
12:51 tadzik wow
12:51 RabidGravy OoOOOoooh
12:51 tadzik this is fantastic
12:51 moritz AlexDaniel: does it first check if the first and last commits are actually good and bad?
12:52 AlexDaniel moritz: nope
12:52 AlexDaniel moritz: but look
12:52 AlexDaniel bisect: exit 1
12:52 bisectable AlexDaniel: (2015-12-25) https://github.com/rakudo/rakudo/commit/07fecb5
12:52 AlexDaniel bisect: exit 0
12:52 bisectable AlexDaniel: (2016-05-17) https://github.com/rakudo/rakudo/commit/2801780
12:52 AlexDaniel moritz: that should be obvious, I guess
12:52 moritz AlexDaniel: ah yes, thanks
12:52 psch AlexDaniel: how would that have helped with e.g. the .grep thing you mentioned recently?
12:53 psch 'cause i'm not seeing it, honestly :/
12:53 psch oh, that's an example
12:53 psch yeah ok i do get it now sorry :P
12:53 psch was thinking in terms of "throw code in", not "write code that tests what you want to check for"
12:53 llfourn Cooooool
12:54 AlexDaniel psch: it's a regular git bisect
12:54 AlexDaniel exit 1 if bad, exit 0 if good, exit 125 if you want to skip it
12:54 psch AlexDaniel: yeah, i just didn't pay enough attention, no worries :)
12:54 AlexDaniel ah, by the way, there are about 20 commits that are skipped because no perl6 executable was generated
12:55 AlexDaniel that's alright I guess
12:55 moritz AlexDaniel: have published the sources of the bot?
12:56 AlexDaniel moritz: not yet, but I will in an hour or so
12:56 ocbtec joined #perl6
12:56 AlexDaniel moritz: ideally it would be great if it was integrated into camelia, but I don't know if anybody is willing to build rakudo for every commit
12:57 nine if it can be automated, why not?
12:57 moritz AlexDaniel: how much disk space does it need?
12:57 nine What's the storage requirements?
12:57 psch fwiw, i think it's seperate enough of a service to not put it into camelia vOv
12:57 AlexDaniel nine: 30 gb or so
12:57 nine reasonable
12:57 nine though that's just about half a year's worth of commits :)
12:57 AlexDaniel well, it is possible to compress every build
12:58 AlexDaniel then it is reduced like 6 times or so
12:58 AlexDaniel but then it gets a little bit slower
12:58 masak AlexDaniel: wow. kudos on the new bot.
12:58 masak AlexDaniel++
12:58 nine Are those only the installed files or are the source and git repos included?
12:58 AlexDaniel nine: no, just the install
12:59 AlexDaniel also, does anybody know how to move installed rakudo into another directory?
12:59 moritz indeed, AlexDaniel++
12:59 moritz AlexDaniel: not supported, afaict
12:59 AlexDaniel because I attempted to do it, but screwed it up, and ended up rebuilding all 1000 commits again
13:00 hoelzro o/ #perl6
13:01 AlexDaniel moritz: I don't think that disk space is a problem, but CPU time probably is. I have no idea what kind of servers you guys have
13:01 AlexDaniel bisectable: help
13:01 bisectable AlexDaniel: Like this: bisect: good=v6.c bad=HEAD exit 1 if (^∞).grep({ last })[5] // 0 == 4 # RT 128181
13:01 AlexDaniel ok
13:02 ri0t joined #perl6
13:02 moritz four i7-2600
13:02 moritz model name      : Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
13:03 moritz should be fine
13:05 hoelzro it looks like releases are just named after the $year.$month, and no longer PM groups - is that the case?
13:06 timotimo that's right
13:06 AlexDaniel moritz: Intel(R) Xeon(R) CPU E3-1245 V2 @ 3.40GHz here
13:07 AlexDaniel oh, it is with SSD, that counts as well
13:07 hoelzro ok, thanks for the sanity check timotimo
13:08 AlexDaniel by the way, I am not doing anything smart yet. That is, every commit I download and build nqp and moar from scratch… haha!
13:08 perlpilot hoelzro: There are too many releases and not enough PM groups :)
13:08 mr-foobar joined #perl6
13:08 hoelzro =)
13:08 moritz and too much stress coming up with release names
13:10 hoelzro heh, I'm feeling stressed enough already
13:10 perlpilot yeah, naming things is one of the 2 hard things in computer science.  Why did we ever put that as part of the release pipeline?
13:10 hoelzro I need to figure out what to do about https://rt.perl.org/Public/​Bug/Display.html?id=128069 - any ideas?
13:13 perlpilot special-case NaN.Rat and Inf.Rat?
13:13 moritz m: say NaN.Rat == NaN
13:13 camelia rakudo-moar e39ce3: OUTPUT«Cannot coerce NaN to a Rat␤  in block <unit> at /tmp/fzyI33dIqH line 1␤␤Actually thrown at:␤  in block <unit> at /tmp/fzyI33dIqH line 1␤␤»
13:13 raiph joined #perl6
13:14 moritz bisect: try { NaN.Rat == NaN; exit 0 }; exit 1
13:14 bisectable moritz: (2016-05-02) https://github.com/rakudo/rakudo/commit/949a7c7
13:14 moritz bisect: try { say NaN.Rat == NaN; exit 0 }; exit 1
13:14 bisectable moritz: (2016-05-02) https://github.com/rakudo/rakudo/commit/949a7c7
13:15 moritz hoelzro: either revert the commit above, or find a way to fix it
13:15 moritz or ask lizmat for input when she shows up again
13:15 AlexDaniel moritz: well… wow
13:15 sjn and write a test? :)
13:15 moritz AlexDaniel++ # *very* useful tool :-)
13:15 hoelzro ok, thanks perlpilot & moritz
13:16 mst now I want a signal like variable that starts off in a state of 'not yet a number' so we can have a NyaN type
13:16 timotimo AlexDaniel: impressive work
13:16 hoelzro I'll see what liz has to say - if it's simple for me to pull off when others are offline, I'll fix; otherwise I'll revert
13:16 moritz hoelzro: seems like lizmat TODOed the tests, see commit  61e65a493704467d94834357dc175c41ab0692aa in roast
13:16 sjn mst: and it should have a concatenation method, NyaN.cat
13:17 moritz if that was a conscious decision, maybe we should do the same in the 6.c-errata branch
13:17 hoelzro ok
13:17 hoelzro moritz++ good advice
13:21 masak hey, guess what `sub foo($x) { constant u = $x; say u }; foo(5); foo(42)` does. :)
13:21 masak try to guess without running it
13:22 mst ... I tried, I'd /msg'ed camelia, I was wrong
13:22 jnthn I'd guess (Any)\n(Any)\n :)
13:22 masak jnthn: you're close
13:22 perlpilot that's what I would have guessed too
13:22 perlpilot (Any any)
13:22 jnthn Oh, (Mu) of course.
13:23 masak right :)
13:23 masak I'm wondering if there's a way to get a warning in there for that case
13:23 masak where the compiler can detect that a runtime value is trying to be assigned to a compile-time constant
13:23 masak basically an assignment "against the flow of time"
13:23 masak there are probably other cases too, involving BEGIN etc
13:24 jnthn Yeah...some simple cases we can likely discover
13:24 masak \o/
13:24 jnthn And it's hard to imagine you'd do them on purpose.
13:24 masak right, that's my point
13:25 cdg joined #perl6
13:25 sufrostico joined #perl6
13:27 hoelzro moritz: upon further reflection - is TODOing 6.c-errata really the best move? 2016.05 should pass the same tests that 2016.04 did, right?
13:30 itaipu joined #perl6
13:31 AlexDaniel uh, let's try something evil
13:31 AlexDaniel bisect: exit 125
13:32 AlexDaniel alright, don't do that :D
13:32 bisectable AlexDaniel: (2016-04-20) https://github.com/rakudo/rakudo/commit/60550d1
13:32 AlexDaniel nvm the result, I killed it manually
13:33 b2gills perlpilot: I would suspect the reason for named releases may have come from Parrot doing named releases, and at one point in time they were in the same repository
13:34 Actualeyes joined #perl6
13:36 b2gills bisectable should probably fail early if both endpoints have the same exitval
13:40 moritz hoelzro: hence, ask lizmat
13:41 moritz hoelzro: or if you can't get hold of her early enough, revert the commit
13:42 hoelzro ok
13:43 [Coke] lizmat was looking for feedback.
13:43 [Coke] whoops, wrong issue.
13:43 AlexDaniel b2gills: yes, sure. Well, pull requests are welcome (I did not publish it yet though)
13:43 AlexDaniel b2gills: and I'll do that myself if it becomes a real problem
13:44 [Coke] the issue on the ticket was that we don't know what the right behavior is, only that it changed.
13:46 b2gills Since NaN isn't a Rat, and .Rat should return a Rat, NaN.Rat shouldn't return NaN, but that is exactly what it does in 6.c ( and unfortunately it is tested in ROAST )
13:48 hoelzro well, I guess that's why the branch is -errata, right?
13:48 hoelzro anyway, as the release manager for this month, it is my solemn duty to inform you all that there's a *release* tomorrow!
13:49 mst RELEASE THE HOUNDS
13:49 hoelzro so please don't break things today =)
13:49 Zoffix joined #perl6
13:49 * hoelzro .oO( let slip the dogs of Perl )
13:49 Zoffix AlexDaniel, what's your superbot written in?
13:49 AlexDaniel Zoffix: perl5 Bot::BasicBot
13:50 AlexDaniel Zoffix: yeah… :/
13:51 Zoffix AlexDaniel, ah :) good. It's just I'm blowing up IRC::Client and redesigning it from scratch. Glad you didn't use it.
13:53 Zoffix bisectable, bisect: exit 1 if 10.polymod(lazy 2, 2) eqv (0, 1, 2); exit 0
13:53 bisectable Zoffix: Sorry, it is too private here
13:53 Zoffix wat
13:54 AlexDaniel oh well!
13:54 AlexDaniel the point is, it does not reply to private messages
13:54 AlexDaniel Zoffix: just bisect:, without “bisectable,”
13:54 Zoffix bisect: exit 1 if 10.polymod(lazy 2, 2) eqv (0, 1, 2); exit 0
13:54 Zoffix Ah
13:54 bisectable Zoffix: (2016-05-17) https://github.com/rakudo/rakudo/commit/2801780
13:54 mst AlexDaniel: it ... can
13:54 mst well, could
13:55 Zoffix Hm.. That's a weird commit it returned.
13:55 AlexDaniel Zoffix: yes because
13:55 AlexDaniel bisect: exit 0
13:55 bisectable AlexDaniel: (2016-05-17) https://github.com/rakudo/rakudo/commit/2801780
13:55 Zoffix Oh
13:56 Zoffix It should probably detect when all it found is HEAD
13:56 AlexDaniel ok sounds like I'd have to implement some extra checks
13:56 nine new code meets reality...an old story :)
13:56 Zoffix :D
13:57 Zoffix AlexDaniel++ the bot's really neeat
13:57 b2gills no battle plan survives contact with the enemy
13:58 AlexDaniel mst: by that you mean that it should be allowed? I don't trust restricted setting very much, so if someone is going to run some scary things then at least do it in public :)
13:59 mst AlexDaniel: nah
13:59 mst AlexDaniel: just that the underlying code could do it, I misunderstood what you were saying
14:00 khw joined #perl6
14:02 * hoelzro commute &
14:10 itaipu joined #perl6
14:13 zzzzzzzzz joined #perl6
14:17 tokuhirom joined #perl6
14:18 masak ok, another one ;)
14:18 masak guess what this one does, without running it first: `sub foo($x = $x) { say $x }; foo()`
14:18 timotimo i expect Any
14:19 mst ideally, a small gnome exits the monitor and hits you with a mallet
14:19 timotimo alternatively, it could throw an error about $x not being defined?
14:19 jnthn I prefer the gnome, tbh... :P
14:19 jnthn Could be Mu again
14:20 * Zoffix ran it and was unexpectedly surprised :)
14:20 Zoffix jnthn, but is it expecting a Mu? :)
14:21 jnthn Oh...I guess we enforce a check on the default value :)
14:21 jnthn So it may well by a type check fail too :)
14:21 * jnthn didn't run it, and is trying to remember what code we generate :)
14:26 perlpilot timotimo: but $x is defined.
14:27 timotimo m: my $a = $a; say $a
14:27 camelia rakudo-moar e39ce3: OUTPUT«5===SORRY!5=== Error while compiling /tmp/uL37GRRjBA␤Cannot use variable $a in declaration to initialize itself␤at /tmp/uL37GRRjBA:1␤------> 3my $a = $7⏏5a; say $a␤    expecting any of:␤        term␤»
14:27 Zoffix perlpilot, defined by what?
14:29 perlpilot Zoffix: by you, the programmer :)    As soon as you declare a variable, it's available for use immediately, even before the end of the statement
14:29 perlpilot timotimo: I'd expect something like that if there were no other $a in scope at that point.
14:30 masak jnthn: yes, it's a type check fail. at runtime.
14:30 perlpilot timotimo: and if there was an $a in scope, I'd expect a warning
14:30 Zoffix perlpilot, oh, I thought you were replying to "i expect Any"
14:30 Zoffix m: say Any.defined
14:30 camelia rakudo-moar e39ce3: OUTPUT«False␤»
14:31 pierre___ joined #perl6
14:31 Zoffix m: sub foo($x = $x) { say $x }; foo()`
14:31 camelia rakudo-moar e39ce3: OUTPUT«5===SORRY!5=== Error while compiling /tmp/vffEKC4npA␤Bogus postfix␤at /tmp/vffEKC4npA:1␤------> 3sub foo($x = $x) { say $x }; foo()7⏏5`␤    expecting any of:␤        infix␤        infix stopper␤        statement end␤        statem…»
14:31 Zoffix m: sub foo($x = $x) { say $x }; foo()
14:31 camelia rakudo-moar e39ce3: OUTPUT«Type check failed in binding $x; expected Any but got Mu (Mu)␤  in sub foo at /tmp/aSLfrWb2eo line 1␤  in block <unit> at /tmp/aSLfrWb2eo line 1␤␤»
14:31 b2gills m: sub foo( Mu $x = $x) { say $x }; foo()`
14:31 camelia rakudo-moar e39ce3: OUTPUT«5===SORRY!5=== Error while compiling /tmp/BtgEnKLV3C␤Bogus postfix␤at /tmp/BtgEnKLV3C:1␤------> 3sub foo( Mu $x = $x) { say $x }; foo()7⏏5`␤    expecting any of:␤        infix␤        infix stopper␤        statement end␤        st…»
14:31 b2gills m: sub foo($x = $x) { say $x }; foo()
14:31 camelia rakudo-moar e39ce3: OUTPUT«Type check failed in binding $x; expected Any but got Mu (Mu)␤  in sub foo at /tmp/oTCFiFEDxA line 1␤  in block <unit> at /tmp/oTCFiFEDxA line 1␤␤»
14:31 b2gills m: sub foo( Mu $x = $x) { say $x }; foo()
14:31 camelia rakudo-moar e39ce3: OUTPUT«(Mu)␤»
14:31 jnthn masak: Yup, parameters end up with Mu in the static lexpad, and the lookup ends up finding that :)
14:32 daxim where are version numbers documented?  perl6 -e 'v6;' # compiles
14:32 timotimo m: say v999
14:32 camelia rakudo-moar e39ce3: OUTPUT«v999␤»
14:32 timotimo http://doc.perl6.org/type/Version
14:32 daxim oh, it's its own type
14:33 AlexDaniel is there any up to date version of this? http://howcaniexplainthis.blogspot.com.​ee/2009/11/what-perl6-irc-bots-do.html
14:33 AlexDaniel some parts of it are true, like about dalek and masak, but other parts not so much
14:34 tadzik oh, phenny :)
14:34 tadzik I'm curious about zaslon's name etymology
14:35 rindolf joined #perl6
14:37 Zoffix left #perl6
14:41 gregf_ m: sub foo(Mu $x = 100) { say [$x, $x.^name] }; <10 bar 1/2>.map({ foo($_) })
14:41 camelia rakudo-moar e39ce3: OUTPUT«[10 IntStr]␤[bar Str]␤[1/2 RatStr]␤»
14:42 timotimo you could .map(&foo) instead of .map({ foo($_) })
14:43 gregf_ oh - so & is for global subs
14:44 mst subs are lexical
14:44 mst no such thing as global subs AFAIK
14:45 timotimo the closest thing to "global subs" is "subs that are in the core setting"
14:45 gregf_ m: sub foo(Mu $x = 100) { say [$x, $x.^name] }; <10 bar 1/2>.map(&foo); CORE::.keys.grep({ /foo/ })
14:45 camelia rakudo-moar e39ce3: OUTPUT«[10 IntStr]␤[bar Str]␤[1/2 RatStr]␤»
14:45 timotimo gregf_: you're missing a "say" in there in order to get any result
14:45 brrt joined #perl6
14:45 geekosaur & refers to a sub by name instead of trying to call it immediately
14:45 konobi left #perl6
14:46 gregf_ ok
14:46 gregf_ m: sub foo(Mu $x = 100) { say [$x, $x.^name] }; &foo.^name.say
14:46 camelia rakudo-moar e39ce3: OUTPUT«Sub␤»
14:49 lizmat joined #perl6
15:07 mohae joined #perl6
15:08 _dolmen_ joined #perl6
15:19 Xliff joined #perl6
15:22 ssotka joined #perl6
15:24 mr-foobar joined #perl6
15:24 zhmylove joined #perl6
15:37 zhmylove joined #perl6
15:46 atir joined #perl6
15:48 llfourn nine: ping
15:50 llfourn .tell nine I think RT #128156 has something to do with one of your commits on the 13th. https://rt.perl.org/Public/​Bug/Display.html?id=128156
15:50 synopsebot6 Link:  https://rt.perl.org/rt3//Publ​ic/Bug/Display.html?id=128156
15:50 yoleaux llfourn: I'll pass your message to nine.
15:50 nine llfourn: pong
15:50 yoleaux 15:50Z <llfourn> nine: I think RT #128156 has something to do with one of your commits on the 13th. https://rt.perl.org/Public/​Bug/Display.html?id=128156
15:50 synopsebot6 Link:  https://rt.perl.org/rt3//Publ​ic/Bug/Display.html?id=128156
15:51 llfourn :)
15:53 nine llfourn: ah, yes. I actually was a bit surprised that no issues at all have come up since the merge.
15:54 domidumont joined #perl6
15:54 llfourn nine: I only hit it when I started developing one of my rather large projects again. I don't think module installation or anything is affected :)
15:54 nine llfourn: t/spec/S10-packages/precompilation.t contains some precomp tests
15:56 llfourn nine: sweet. I wonder if I can translate what I put in the RT into that file...
15:56 nine I hope so :)
15:57 llfourn I wonder if we have a platform independent way of doing a touch. I suppose writing an empty string will do it.
15:57 mst joined #perl6
16:00 kaare_ joined #perl6
16:18 nine I have an idea about what's going on
16:18 timotimo good start
16:21 nine I've probably been at the same point half a year ago. Only the solution I came up with then is just not good enough.
16:21 nine Seems like a Boolean just doesn't carry enough information for deciding whether to recompile or not
16:25 mst nine: you need a dailywtf multi-value boolean then
16:25 nine exactly!
16:26 llfourn Technically p6 Bools can have three values, Undefined, True or False :^)
16:26 mst CREATE TYPE boolean AS SQLish;
16:28 AlexDaniel m: my Bool $x is default(False); say $x
16:28 camelia rakudo-moar dfac26: OUTPUT«False␤»
16:30 nine Well defined, undefined and Failure seems to cover it better
16:32 nine And indeed it fixes llfourn++'s test :)
16:32 dalek gtk-simple/glade-app-supply: d686374 | RabidGravy++ | / (2 files):
16:32 dalek gtk-simple/glade-app-supply: Allow specifying specific Supply attribute for handler
16:32 dalek gtk-simple/glade-app-supply:
16:32 dalek gtk-simple/glade-app-supply: Part of #16
16:32 dalek gtk-simple/glade-app-supply: review: https://github.com/perl6/gt​k-simple/commit/d68637443c
16:32 llfourn :) # nine++
16:40 gregf_ m: my Bool $flag = Undefined;
16:40 camelia rakudo-moar dfac26: OUTPUT«5===SORRY!5=== Error while compiling /tmp/9iUU49pu_l␤Undeclared name:␤    Undefined used at line 1␤␤»
16:45 geekosaur the type object acts as "undefined"
16:45 nine m: my Bool $flag; say defined $flag;
16:45 camelia rakudo-moar dfac26: OUTPUT«False␤»
16:46 Emeric joined #perl6
16:50 gregf_ ah - ok
16:50 gregf_ m: my Bool $flag = Nil;
16:50 camelia rakudo-moar dfac26: ( no output )
16:55 gregf_ m: sub foo($x) { my Bool $y = $x; }; foo(Nil)
16:55 camelia rakudo-moar c59e4d: ( no output )
16:55 gregf_ that works, but for some reason when used with a map it coerces to Any :|
16:55 gregf_ m: sub foo($x) { say $x.^name; my Bool $y = $x; }; [ Nil ].map(&foo)
16:55 camelia rakudo-moar c59e4d: OUTPUT«Any␤Type check failed in assignment to $y; expected Bool but got Any (Any)␤  in sub foo at /tmp/PPW1klwFTA line 1␤  in block <unit> at /tmp/PPW1klwFTA line 1␤␤»
17:03 RabidGravy we must be doing something right if people want us to back-port our modules https://github.com/Perl6-Noise​-Gang/Audio-PortMIDI/issues/6 ;-)
17:04 bisectable joined #perl6
17:05 AlexDaniel bisectable: source
17:05 bisectable AlexDaniel: https://github.com/perl6/bisectbot
17:05 AlexDaniel moritz: ↑
17:06 timotimo does anything speak against running bisectable on hack?
17:07 jack_rabbit joined #perl6
17:07 AlexDaniel timotimo: ¯\_(ツ)_/¯
17:07 AlexDaniel timotimo: honestly, I have no idea what hack is
17:07 timotimo http://p6c.org
17:07 moritz AlexDaniel: thanks!
17:09 AlexDaniel timotimo: “Be reasonable in your resource usage.” – I think it is much easier if I just handle on my server
17:09 [Coke] AlexDaniel: please don't use v6.c as the starting version: use 2015.12
17:09 AlexDaniel it*
17:09 [Coke] v6.c was a mistake and will go away at some point
17:09 AlexDaniel [Coke]: OK
17:09 [Coke] danke.
17:10 [Coke] (mistake) I mean only as a tag on rakudo repo. :)
17:10 cdg joined #perl6
17:10 llfourn timotimo: it will need a space to fit the builds
17:10 AlexDaniel timotimo: unless someone is willing to actively work on it. But in that case you'd have to rebuild this thousand of commits
17:10 llfourn 30gb I think was said earlier
17:10 AlexDaniel yes, but it can be improved
17:10 AlexDaniel how much space do you have there?
17:11 timotimo http://collect.p6c.org/ - click on hack, then on df
17:11 AlexDaniel lots of space there :)
17:13 AlexDaniel timotimo: so what do you think? Should I move it there?
17:15 firstdayonthejob joined #perl6
17:16 jerme joined #perl6
17:17 timotimo it should be fine to copy the builds onto the server, eh?
17:18 AlexDaniel timotimo: well, if you manage to have exactly the same path, then yes
17:18 timotimo oh, well
17:18 timotimo that's a good point
17:18 AlexDaniel timotimo: it is currently in /home/bisectable/git/bisectable which is pretty reasonable
17:18 timotimo though our precomp is relocatable by now at least :)
17:19 timotimo yeah, we can have a "bisectable" user on hack
17:21 cognominal joined #perl6
17:21 pecastro joined #perl6
17:24 AlexDaniel timotimo: alright. Then I'll probably do some pre-2015.12 builds and once I'm done with my thesis (in like, er, 2 weeks) I'll move it to hack. If you wont change your mind by then, of course
17:25 timotimo cool
17:41 JustinHitla left #perl6
17:51 |2701 joined #perl6
18:01 jack_rabbit joined #perl6
18:01 raiph joined #perl6
18:05 raiph m: sub foo($x) { say $x.^name; my Bool $y = $x; }; ( Nil ).map(&foo) # gregf_: [...] is an array constructor; arrays put elements in Scalar containers; Scalar containers have a default default of Any; putting a Nil in such a container produces Any; so [Nil] immediately becomes [Any]
18:05 camelia rakudo-moar c59e4d: OUTPUT«Nil␤»
18:08 raiph .tell gregf_ [Nil] becomes [Any]; see http://irclog.perlgeek.de/p​erl6/2016-05-20#i_12517566
18:08 yoleaux raiph: I'll pass your message to gregf_.
18:13 * arnsholt <3 QuickCheck
18:16 arnsholt Just saved me from a lot of head-scratching algebra twiddling
18:22 dalek gtk-simple: 7f51c31 | RabidGravy++ | META6.json:
18:22 dalek gtk-simple: Add a proper version
18:22 dalek gtk-simple: review: https://github.com/perl6/gt​k-simple/commit/7f51c3143d
18:22 dalek gtk-simple: df20ddf | RabidGravy++ | lib/GTK/Simple.pm6:
18:22 dalek gtk-simple: Attempt to add version to the deprecations
18:22 dalek gtk-simple: review: https://github.com/perl6/gt​k-simple/commit/df20ddf1cc
18:25 kurahaupo joined #perl6
18:55 dalek doc: b500414 | (Aleks-Daniel Jakimenko-Aleksejev)++ | htmlify.p6:
18:55 dalek doc: “precomile” → “precompile” (@tbrowder++)
18:55 dalek doc: review: https://github.com/perl6/doc/commit/b50041465e
18:55 dalek doc: 208197f | (Aleks-Daniel Jakimenko-Aleksejev)++ | / (52 files):
18:55 dalek doc: No more trailing whitespace (EVERYWHERE!)
18:55 dalek doc: review: https://github.com/perl6/doc/commit/208197fc5b
18:55 dalek doc: cfc5152 | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Language/subscripts.pod:
18:55 dalek doc: Fixed mixed tabs and spaces in one of the code examples
18:55 dalek doc:
18:55 dalek doc: Perhaps we should replace all tabs with spaces? This will eliminate all such
18:55 dalek doc: occurances of mixed indentation styles.
18:55 dalek doc: review: https://github.com/perl6/doc/commit/cfc5152f7d
19:00 smls joined #perl6
19:04 mr-foobar joined #perl6
19:04 labster joined #perl6
19:06 Zoffix joined #perl6
19:08 Zoffix New post: Perl 6 Hands-On Workshop: Weatherapp (Part 1): http://perl6.party/post/Perl-6-Han​ds-On-Workshop--Weatherapp--Part-1
19:08 perlpilot Zoffix++
19:09 timotimo zoffix has the HOW, i should really get with the program and start work on the TPS reports
19:11 travis-ci joined #perl6
19:11 travis-ci Doc build passed. Aleks-Daniel Jakimenko-Aleksejev 'Fixed mixed tabs and spaces in one of the code examples
19:11 travis-ci https://travis-ci.org/perl6/doc/builds/131778678 https://github.com/perl6/doc/com​pare/7b411d36015e...cfc5152f7db6
19:11 travis-ci left #perl6
19:21 mst timotimo: in triplicate
19:21 timotimo aye
19:26 willthechill joined #perl6
19:31 Zoffix left #perl6
19:35 _dolmen_ joined #perl6
19:36 sno joined #perl6
19:41 dwarring joined #perl6
19:41 aries_liuxueyang joined #perl6
19:45 jdoege joined #perl6
19:47 zhmylove joined #perl6
19:47 jdoege Hi. I'm just starting to experiment with Perl 6 and I am seeing some odd behavior. Doing basic file munging, just reading a file line by line and writing it to a new file, a temp file of some sort is being created. Is this expected?
19:48 AlexDaniel jdoege: what's the name of that file?
19:48 jdoege Then, if I try to 'less' or 'tail' the file I am writing, it kills the run with an error: Failed to write bytes to filehandle: operation not supported on socket
19:49 jdoege The file was named:~gvfPPGQ.tmp
19:49 perlpilot jdoege: show your code?
19:49 perlpilot (use gist or pastebin or something please)
19:49 jdoege OK. JAS.
19:50 jdoege https://gist.github.com/jdoege/1​debfa44457d923806bf7902b6ff7092
19:52 jdoege Run like: ./Vx4.pl6 --mapfile=channelmap.txt --patfile=patfile.txt --outfile=result
19:53 tokuhirom joined #perl6
19:54 perlpilot So ... I'm going to guess that something else is going on
19:55 perlpilot jdoege: I guess that gist is an abbreviated version of your program and not the real thing?
19:55 jdoege Nope. That's the whole thing.
19:56 jdoege I am going step by step. First read, then write, then work on the mission code.
19:57 ugexe precomp creates .tmp files
19:57 jdoege patfile is fairly large. 375MB
19:57 jdoege The temp file contained the same data as the result file.
19:57 nine ugexe: the script doesn't load any modules
19:57 jdoege And it was erased when the job exited.
19:58 perlpilot well ... all I can give you is ... yep, that's some strange behavior.
19:58 AlexDaniel jdoege: I have just checked your code with inotify, I can't see any temp file
19:59 perlpilot jdoege: Are you sure one of those files isn't a Unix socket?
19:59 jdoege I think it is accessed via a samba mount.
19:59 jdoege I'll try running it in a local directory.
20:00 perlpilot ah, that might do it (but rakudo would have no control over it)
20:00 MadcapJake how do you use the Iterator role without the Positional role?
20:01 nine MadcapJake: those two are fairly unrelated?
20:02 perlpilot MadcapJake: why do you ask?
20:02 psch m: my $x = Seq.new(class :: does Iterator { method pull-one { rand } }.new); for @$x { .say; last if $++ > 10 }
20:02 camelia rakudo-moar c59e4d: OUTPUT«0.571905974997209␤0.498088993579892␤0.​41445895277352␤0.754383784210024␤0.9265435423​63107␤0.716141134170113␤0.227902881089729␤0.8​00703696170079␤0.53152387144962␤0.60142789213​2322␤0.0279277438688608␤0.943730805909535␤»
20:02 psch ...don't even need @ in the for i think
20:02 MadcapJake You have to wrap it in a sec?
20:02 MadcapJake Seq*
20:03 psch MadcapJake: well, you can of course .pull-one yourself :)
20:03 MadcapJake right, that's what I mean, how can you use it "as an iterator" or "where you'd use an iterator"
20:04 psch MadcapJake: i'd say that's with wrapping it in a Seq.  you really want a sequence of values, the iterator just produces that sequence
20:04 MadcapJake Kind of seems silly that you'd need to do anything more than integrate the role to use it like one, tbh...
20:04 psch mind, i'm not really deep into all that code, just explaining how i understand it
20:04 psch i think jnthn++ still has a gist somewhere that explains it in depth
20:04 nine MadcapJake: maybe we just use the terms slightly differently from what you expect?
20:04 jdoege perlpilot: Thanks for looking (and asking questions). It appears it is due to the mount. No issue running locally.
20:05 MadcapJake nine: I'm talking about the Iterator and Positional roles provided standard
20:05 jdoege TY all.
20:05 perlpilot jdoege: samba (CIFS) mounts are almost always evil IMHO  :)
20:06 MadcapJake If you use the Iterator role all it's doing is making sure you declare a pull-one method, but it won't actually work in control flow positions without wrapping it inside a Seq
20:07 nine MadcapJake: exactly! You seem to expect Iterator to be the thing understood by control flow like it is in maybe Python or C#. That's the part that's just not true in Perl 6, while an Iterator is an Iterator.
20:07 psch MadcapJake: sounds to me like you want something Iterable, not an Iterator
20:07 MadcapJake psch: o_O huh?
20:07 nine psch++
20:08 nine MadcapJake: control flow uses Iterables. Iterables provide Iterators for iteration
20:08 psch m: say Iterable ~~ Iterator; say Iterator ~~ Iterable
20:08 camelia rakudo-moar c59e4d: OUTPUT«False␤False␤»
20:08 MadcapJake nine: but why make the distinction there? Seems a trivial extra step that serves no purpose
20:08 psch m: say Seq ~~ Iterable; say Seq ~~ Iterator
20:08 camelia rakudo-moar c59e4d: OUTPUT«True␤False␤»
20:08 perlpilot MadcapJake: an iterator is the thing that does the iteration, not a thing to be iterated.
20:08 MadcapJake oi vey :P
20:09 psch semantic satiatiteration /o\
20:09 nine MadcapJake: some languages just mush those two different concepts together
20:11 perlpilot MadcapJake: It's a similar distinction with Supply.  You've got Supply and Supplier.
20:12 MadcapJake ok so, if one wanted to create a custom iterator, you'd need to either create a custom Iterable-roled class or use Seq.new
20:13 nine m: my @a = 1, 2, 3; my $i1 = @a.iterator; my $i2 = @a.iterator; say $i1.pull-one; say $i1.pull-one; say $i2.pull-one;
20:13 camelia rakudo-moar c59e4d: OUTPUT«1␤2␤1␤»
20:14 nine MadcapJake: that's ^^^ why Iterables must be different from Iterators
20:15 perlpilot nine++
20:15 MadcapJake ok that falls into place with how perlpilot described it as like a Supplier/Supply
20:17 MadcapJake 💡 It makes sense now, thanks nine, psch, perlpilot!
20:18 AlexDaniel how to piss everyone off: submit a bug report about perl 6 docs on RT. Moreover, do that in perl5 queue.
20:18 TEttinger joined #perl6
20:21 timotimo uh oh
20:21 timotimo that's a bad miss
20:23 [Coke] AlexDaniel: if that's real, tell me the ticket #
20:23 AlexDaniel [Coke]: #128174
20:23 synopsebot6 Link:  https://rt.perl.org/rt3//Publ​ic/Bug/Display.html?id=128174
20:23 AlexDaniel it was already moved
20:24 [Coke] tony c already moved it
20:24 [Coke] heh
20:26 slobo joined #perl6
20:27 jjido joined #perl6
20:27 [Coke] AlexDaniel: updated, rejected, ticket opened on perl6 doc
20:28 JustinHitla joined #perl6
20:28 JustinHitla here I am
20:28 [Coke] .seen JustinHitla
20:28 yoleaux I saw JustinHitla 20:28Z in #perl6: <JustinHitla> here I am
20:28 [Coke] so you are.
20:29 JustinHitla I use that code: "printf("--> seq: %-8x ack: %-8x\n",$seq,$ack_seq);" it prints something like: "<-- seq: 5f23e87c ack: 19214aaa", is there a way to make it look like "<-- seq: 5f-23-e8-7c ack: 19-21-4a-aa" ?
20:30 [Coke] m: "5f23e87c".split(2).join("-").say
20:30 camelia rakudo-moar c59e4d: OUTPUT«5f-3e87c␤»
20:30 [Coke] m: "5f23e87c".split(2,*).join("-").say
20:30 camelia rakudo-moar c59e4d: OUTPUT«5f-3e87c␤»
20:30 [Coke] m: "5f23e87c".comb(2).join("-").say
20:30 camelia rakudo-moar c59e4d: OUTPUT«5f-23-e8-7c␤»
20:30 [Coke] ^^
20:30 JustinHitla and where that code should go ?
20:31 [Coke] comb(int) is "split into chunks that are int long", then you stitch them back together with join
20:31 JustinHitla allright
20:32 [Coke] m: printf("---> %s ack" , "5f23e87c".comb(2).join("-"))
20:32 camelia rakudo-moar c59e4d: OUTPUT«---> 5f-23-e8-7c ack»
20:32 Actualeyes joined #perl6
20:32 [Coke] or make a sub if you're going to reuse it. ymmv.
20:34 JustinHitla is it possible to do it like: $temp=34023423; $temp.hex().comb(2).join("-") ?
20:34 JustinHitla so first make it into hex and then split and join
20:35 JustinHitla m: $test=123123; say $test.hex()
20:35 camelia rakudo-moar c59e4d: OUTPUT«5===SORRY!5=== Error while compiling /tmp/fMB5HV7_CN␤Variable '$test' is not declared␤at /tmp/fMB5HV7_CN:1␤------> 3<BOL>7⏏5$test=123123; say $test.hex()␤»
20:35 psch m: say 34023423.base(16)
20:35 camelia rakudo-moar c59e4d: OUTPUT«20727FF␤»
20:36 JustinHitla m: $test=1596188797; say $test.base(16)
20:36 camelia rakudo-moar c59e4d: OUTPUT«5===SORRY!5=== Error while compiling /tmp/5jKldFp1ZR␤Variable '$test' is not declared␤at /tmp/5jKldFp1ZR:1␤------> 3<BOL>7⏏5$test=1596188797; say $test.base(16)␤»
20:36 JustinHitla m: say 1596188797.base(16)
20:36 camelia rakudo-moar c59e4d: OUTPUT«5F23E87D␤»
20:36 arnsholt People's opinions about Open Source are weird. "Someone made this library I depend on, therefore they are now morally obliged to keep on developing it for me forever."
20:36 psch m: no strict; $test=1596188797; say $test.base(16)
20:36 camelia rakudo-moar c59e4d: OUTPUT«5F23E87D␤»
20:37 JustinHitla arnsholt: its like: "I once walked on that side walk therefore they are now morally obliged to keep on fixing it for me forever"
20:38 arnsholt Pretty much, yeah
20:38 jjido joined #perl6
20:39 smls m: say ("08" .. "12").List
20:39 camelia rakudo-moar c59e4d: OUTPUT«(08 07 06 05 04 03 02 18 17 16 15 14 13 12)␤»
20:39 smls # o_0  Please tell me that this^^ is a bug and not some "too smart for its own good" feature.
20:39 timotimo smls: if you have strings, you get strings behavior
20:39 timotimo .. is not a coercive operator
20:39 smls but how is that string behavior?
20:40 psch m: say ("08" .. 12).List
20:40 camelia rakudo-moar c59e4d: OUTPUT«(08 09 10 11 12)␤»
20:40 timotimo for strings of the same length, you get a per-character range
20:40 psch m: say (08 .. "12").List
20:40 camelia rakudo-moar c59e4d: OUTPUT«Potential difficulties:␤    Leading 0 does not indicate octal in Perl 6.␤    Please use 0o8 if you mean that.␤    at /tmp/xGnutCVsnn:1␤    ------> 3say (087⏏5 .. "12").List␤(8 9 10 11 12)␤»
20:40 smls oooh.
20:40 timotimo one is 0..1, the other is 8..2
20:40 psch m: say (8 .. "12").List
20:40 camelia rakudo-moar c59e4d: OUTPUT«(8 9 10 11 12)␤»
20:40 timotimo if that's not well documented, we should do that
20:40 JustinHitla m: say ("08" .. 12).Sort
20:40 camelia rakudo-moar c59e4d: OUTPUT«Method 'Sort' not found for invocant of class 'Range'␤  in block <unit> at /tmp/P0eMQAKTzi line 1␤␤»
20:40 smls that seems like a weird behavior, but ok
20:41 JustinHitla m: say ("08" .. 12).sort()
20:41 camelia rakudo-moar c59e4d: OUTPUT«(08 09 10 11 12)␤»
20:41 psch m: say "aa" .. "ff"
20:41 camelia rakudo-moar c59e4d: OUTPUT«"aa".."ff"␤»
20:41 psch m: say ("aa" .. "ff").List
20:41 camelia rakudo-moar c59e4d: OUTPUT«(aa ab ac ad ae af ba bb bc bd be bf ca cb cc cd ce cf da db dc dd de df ea eb ec ed ee ef fa fb fc fd fe ff)␤»
20:41 JustinHitla actually why ".List" gives such weird list "08 07 06 05 04 03 02 18 17 16 15 14 13 12" ?
20:42 timotimo i told you :)
20:42 JustinHitla because "08" is a string and 12 a number, I only now noticed
20:42 timotimo m: .say for "ag".."ca"
20:42 AlexDaniel m: say qqww<hello world test>
20:42 camelia rakudo-moar c59e4d: OUTPUT«ag␤af␤ae␤ad␤ac␤ab␤aa␤bg␤bf␤be​␤bd␤bc␤bb␤ba␤cg␤cf␤ce␤cd␤cc␤cb␤ca␤»
20:42 camelia rakudo-moar c59e4d: OUTPUT«(hello world test)␤»
20:42 smls Wouldn't it have been simpler to just let .. call .succ repeatedly until it reaches the endpoint?
20:43 smls I mean, we don't allow counting down using 3..1 either
20:43 [Coke] m: say "08".succ
20:43 camelia rakudo-moar c59e4d: OUTPUT«09␤»
20:43 timotimo m: .say for 3..1
20:43 camelia rakudo-moar c59e4d: ( no output )
20:43 psch m: say "z".succ
20:43 camelia rakudo-moar c59e4d: OUTPUT«aa␤»
20:43 psch m: say "az".succ
20:43 camelia rakudo-moar c59e4d: OUTPUT«ba␤»
20:44 smls m: say ("08", *.succ ... "12")
20:44 camelia rakudo-moar c59e4d: OUTPUT«(08 09 10 11 12)␤»
20:44 smls ^^ basically, that is what I expected "08".."12" and "08"..."12" to do
20:44 moritz reaching the endpoint won't always happen
20:44 smls so?
20:45 smls especially with the ... operator, that can happen a lot already
20:45 moritz when we tried it for ranges, it surprised quite many people
20:46 smls m: say ("08" ... "12").List
20:46 camelia rakudo-moar c59e4d: OUTPUT«(08 07 06 05 04 03 02 18 17 16 15 14 13 12)␤»
20:46 smls ^^ Same with the sequence op though
20:46 cognominal_ joined #perl6
20:47 cognominal joined #perl6
20:47 smls moritz: As for the range op, it could check if the endpoint will be reached, and return the empty list if not
20:47 smls As it already does for numbers
20:47 psch m: say (1..NaN).List
20:47 camelia rakudo-moar c59e4d: OUTPUT«(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 …»
20:48 smls psch: I meant the  5..2  case
20:48 psch smls: that's not "if it can be reached", it's explicitely a "are we higher than the endpoint" check
20:49 psch m: say 1 > NaN
20:49 camelia rakudo-moar c59e4d: OUTPUT«False␤»
20:49 moritz smls: how would the range operator determine whether the endpoint will be receached?
20:49 moritz *reached
20:49 smls It knows how .succ works :P
20:50 smls But I guess would break with subclassing or monkey-typing...
20:50 moritz or user-defined types, for that matter
20:50 smls Well, this whole behavior is special-cased for Str isn't it?
20:51 moritz ah right, I forgot
20:53 RabidGravy ye gods! libusb can go to bed without any supper right away
20:53 smls I still think that at least the ... operator would have been better off blindly calling .succ if given a LHS that is not a list of numbers
20:53 smls But oh well
20:54 psch m: say "A"..."a"
20:54 camelia rakudo-moar c59e4d: OUTPUT«(A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a)␤»
20:54 Emeric joined #perl6
20:55 psch m: say "Z".succ
20:55 camelia rakudo-moar c59e4d: OUTPUT«AA␤»
20:55 psch smls: so that ^^^ should be an infinite list of all capital letter strings instead?
20:55 smls yes
20:56 smls of course you wouln't use it with that end-point :)
20:56 psch m: say ("A".."a").List # this too i suppose
20:56 camelia rakudo-moar c59e4d: OUTPUT«(A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a)␤»
20:56 psch well, i disagree vOv
20:57 smls Well, .. being more magical and more determined to reach its endpoint is more justified i guess.
20:58 smls Since it wants to be a "range"
20:58 AlexDaniel I thought that #128174 could not be any funnier, but I was wrong
20:58 synopsebot6 Link:  https://rt.perl.org/rt3//Publ​ic/Bug/Display.html?id=128174
20:59 smls AlexDaniel:  oops, looks like I was ninja's by [Coke]++
20:59 mst AlexDaniel: http://trout.me.uk/facepaw.jpg
20:59 smls *'d
21:02 AlexDaniel mst: yea
21:02 AlexDaniel smls: well not exactly, you was the first one to open a bug report in perl6/doc/issues
21:03 JustinHitla left #perl6
21:06 hoelzro is t/spec/S06-advanced/wrap.rakudo.moar failing for anyone else?
21:06 hoelzro just want to make sure it's not just me
21:07 jnthn hoelzro: Was good on my run earlier today when I made the Moar release
21:07 psch hoelzro: looks fine here
21:07 hoelzro the heck
21:07 * hoelzro tries on a different machine
21:07 psch This is Rakudo version 2016.04-210-gc59e4dc built on MoarVM version 2016.04-134-g9879233
21:07 hoelzro on master, or 6.c-errata for roast?
21:08 psch ah, yeah 6.c-errata fails
21:08 psch Failed test:  59
21:08 jjido joined #perl6
21:09 hoelzro ok, whew
21:09 hoelzro I'm not crazy!
21:09 hoelzro I tracked it down to e239f6e
21:19 cpage_ joined #perl6
21:26 mscha joined #perl6
21:27 mscha Say I've got an enum (enum CoinFace <heads tails>).  How do I get a list of all the possible values (CoinFace::heads, Coinface::tails)?
21:28 ugexe there is a PR that removes part of that commit that was giving me odd test failures that weren't actually failures. maybe its related  https://github.com/rakudo/rakudo/pull/770
21:29 psch m: enum CoinFace <heads tails>; say CoinFace::.keys; say CoinFace.pick(*); say CoinFace.^enum_value_list
21:29 camelia rakudo-moar c59e4d: OUTPUT«(heads tails)␤(tails heads)␤(heads tails)␤»
21:30 psch mscha: i think there might be at least one more way, but i can't think of it... :)
21:30 ugexe ah nope, its breaking for the same reason the original subtest changes broke https://github.com/rakudo/rakudo/commit/​35f5821cfd5795a03e8c703cd69a99a34042dc6a
21:30 mscha m: enum CoinFace <heads tails>; dd CoinFace::.keys; dd CoinFace.pick(*); dd CoinFace.^enum_value_list
21:30 camelia rakudo-moar c59e4d: OUTPUT«("heads", "tails").Seq␤(CoinFace::tails, CoinFace::heads).Seq␤(CoinFace::heads, CoinFace::tails)␤»
21:31 psch yeah, they don't do exactly the same
21:31 mscha psch: thanks.  keys won't work (gives strings, not enum values), pick isn't what I need (random order), but ^enum_value_list does the trick.
21:32 psch m: enum CoinFace <heads tails>; say CoinFace.pick(*).sort(*.value)
21:32 camelia rakudo-moar c59e4d: OUTPUT«(heads tails)␤»
21:32 psch ;)
21:32 psch still, asking the HOW about the actual list is probably the cleanest :)
21:34 itaipu joined #perl6
21:35 sortiz joined #perl6
21:36 sortiz \o #perl6
21:43 timotimo m: enum CoinFace <heads tails>; dd CoinFace::.values; dd CoinFace::.enums
21:43 camelia rakudo-moar c59e4d: OUTPUT«(CoinFace::heads, CoinFace::tails).Seq␤Method 'enums' not found for invocant of class 'Stash'␤  in block <unit> at /tmp/2nqWQEZdHs line 1␤␤»
21:43 timotimo m: enum CoinFace <heads tails>; dd CoinFace::.values; dd CoinFace::.enum
21:43 camelia rakudo-moar c59e4d: OUTPUT«(CoinFace::heads, CoinFace::tails).Seq␤Method 'enum' not found for invocant of class 'Stash'␤  in block <unit> at /tmp/bZkq1Au2Ts line 1␤␤»
21:43 timotimo m: enum CoinFace <heads tails>; dd CoinFace::.values; dd CoinFace::.pairs
21:43 camelia rakudo-moar c59e4d: OUTPUT«(CoinFace::heads, CoinFace::tails).Seq␤(:heads(CoinFace::heads), :tails(CoinFace::tails)).Seq␤»
21:43 bjz joined #perl6
21:49 mscha CoinFace::.values is a bit nicer than CoinFace.^enum_value_list.  :)
21:49 psch m: enum CoinFace <heads tails>; say CoinFace.enums
21:49 camelia rakudo-moar c59e4d: OUTPUT«Map.new((:heads(0),:tails(1)))␤»
21:50 psch i actually kinda dislike that, 'cause it doesn't actually return the enums
21:51 psch but idk, having that *also* return a list of the enum values would probably be a few too many ways to do it :)
21:51 smls yeah, that should be called  .Map  not  .enums   :P
21:51 ugexe star-m: enum CoinFace <heads tails>; say CoinFace.enums
21:51 camelia star-m 2016.01: OUTPUT«heads => 0, tails => 1␤»
21:51 psch star-m: enum CoinFace <heads tails>; say CoinFace.enums.WHAT
21:51 camelia star-m 2016.01: OUTPUT«(Hash)␤»
21:51 psch that was RT #128138
21:51 synopsebot6 Link:  https://rt.perl.org/rt3//Publ​ic/Bug/Display.html?id=128138
21:52 smls psch: I meant the name of the method/coercer
21:52 psch smls: i was just refering to returning a Hash in star
21:52 psch +it
21:53 psch but yeah, i'd agree
21:54 smls m: my @a = 1..Inf;  say @a;  say { @_ }(@a)
21:55 camelia rakudo-moar c59e4d: OUTPUT«(timeout)[...]␤»
21:55 smls ^^ jnthn: Does passing a lazy array to a slurpy parameter, force it to be eager by design?
21:55 slobo joined #perl6
21:55 smls S06 suggests it would remain lazy
21:55 smls (but was probably written before the GLR)
21:56 sortiz m: my @a = lazy 1..Inf; say @a;
21:56 camelia rakudo-moar c59e4d: OUTPUT«[...]␤»
21:57 smls yeah, it's only when it's passed to a slurpy block/routine parameter that it hangs
21:57 smls m: my @a = 1..Inf;  say @a[5];  say { @_[5] }(@a)
21:57 camelia rakudo-moar c59e4d: OUTPUT«6␤6␤»
21:58 smls Huh, so it doesn't hang when you just index it, but does hang when you say/gist it?
21:58 psch m: my @a = 1..Inf;  say @a[5];  say { @_[6] }(@a)
21:58 camelia rakudo-moar c59e4d: OUTPUT«6␤7␤»
21:58 psch maybe it's actually the implicit return that eagers it?
21:58 Sgeo joined #perl6
21:58 psch m: my @a = 1..Inf;  say @a;  { say @_ }(@a)
21:58 psch ...maybe not :)
21:59 camelia rakudo-moar c59e4d: OUTPUT«(timeout)[...]␤»
22:00 psch it's kinda weird though that partly vivifying it changes the behavior
22:00 ugexe m: sub foo(*@a is raw) { say @a; }; my @a = 1..Inf; foo(@a)
22:00 camelia rakudo-moar c59e4d: OUTPUT«(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 …»
22:01 smls So `is raw` allows it to stay lazy?
22:01 * TimToady sitting at John Wayne
22:02 sortiz m: my @a = 1..Inf; sub foo(@_) { say @_ }; foo(@a);
22:02 camelia rakudo-moar c59e4d: OUTPUT«[...]␤»
22:02 sortiz m: my @a = 1..Inf; sub foo { say @_ }; foo(@a); # vs
22:03 camelia rakudo-moar c59e4d: OUTPUT«(timeout)»
22:03 ugexe not slurpy
22:04 TimToady you maybe (+@a) there instead
22:04 TimToady *want
22:04 smls with +@a it hangs too
22:06 ocbtec joined #perl6
22:06 cpage_ joined #perl6
22:07 ocbtec joined #perl6
22:08 TimToady m: sub foo(+@a) { say @a.is-lazy; }; my @a := 1..Inf; foo(@a)
22:08 camelia rakudo-moar c59e4d: OUTPUT«True␤»
22:08 sortiz m: my @a = 1..Inf; sub foo(+@_) { say @_.is-lazy; say @_ }; foo(@a)
22:08 camelia rakudo-moar c59e4d: OUTPUT«True␤[...]␤»
22:09 TimToady I used := there
22:10 smls TimToady: I get the same result with = and *@a
22:10 smls .is-lazy returns True,  but .gist hangs
22:10 smls So I guess it's a .gist bug?
22:11 sortiz m: my @a = 1..Inf; sub foo { say @_.is-lazy; say @_ }; foo(@a)
22:11 camelia rakudo-moar c59e4d: OUTPUT«True␤[...]␤»
22:11 TimToady m: sub foo(+@a) { say @a,; }; my @a := 1..Inf; foo(@a)
22:11 camelia rakudo-moar c59e4d: OUTPUT«(timeout)»
22:12 smls sortiz: Oh wow, so calling .is-lazy before the .gist, makes the .gist work
22:12 sortiz Yep!
22:12 smls But .gist is the first thing you call, it hangs
22:12 smls *if
22:13 smls ok, will RT
22:14 sortiz m: my @a = 1..Inf; sub foo { my $no-sink = @_.is-lazy; say @_ }; foo(@a)
22:14 camelia rakudo-moar c59e4d: OUTPUT«[...]␤»
22:14 sortiz m: my @a = 1..Inf; sub foo { my $no-sink = @_.?not-lazy; say @_ }; foo(@a)
22:15 camelia rakudo-moar c59e4d: OUTPUT«(timeout)»
22:15 ugexe m: sub foo(**@a) { say @a; }; my @a := 1..Inf; foo(@a)
22:15 camelia rakudo-moar c59e4d: OUTPUT«[1..Inf]␤»
22:16 ugexe but again, not slurpy
22:22 Zoffix joined #perl6
22:22 Zoffix Haha. Check out the #1 item on HN: https://news.ycombinator.com/
22:23 Zoffix Damn, I'm a genius.
22:23 diakopter lolz how u do dat
22:24 Zoffix It's nice. Get more people exposed to P6
22:26 sortiz m: my @a = 1..Inf; sub foo(*@b) { my $no-sink = @b.is-lazy; say @b }; foo(@a); # slurpy with a test
22:26 camelia rakudo-moar c59e4d: OUTPUT«[...]␤»
22:26 psch Zoffix: i noticed the tag "Isoteric", and a reference to "DUBUG.txt"
22:27 Zoffix psch, hm?
22:27 psch Zoffix: in the article itself
22:27 Zoffix psch, well, yeah. I'm just not following what point you're making :)
22:28 psch just wondering if that was intentional, i suppose
22:28 Zoffix psch, ah, I just now spotted the two typos :P
22:28 Zoffix No, it wasn't intentional. I just need to start using a spellchecker when I write stuff  :P
22:29 sortiz Zoffix, just dropped to #2 ;)
22:29 Zoffix :)
22:30 _dolmen_ joined #perl6
22:33 Zoffix psch++ fixed. Thanks.
22:36 AlexDaniel “Unicode has stubbornly refused to become Turing complete.” yeah. Meh.
22:36 AlexDaniel :)
22:38 AlexDaniel and yeah, I've always loved how git exposes all that crap
22:39 timotimo i think that's just because git always calls into less
22:56 * TimToady signs off due to running out of 60 min free WiFi access soonish...
22:58 wamba joined #perl6
23:00 sufrostico joined #perl6
23:09 slobo_ joined #perl6
23:40 cdg joined #perl6
23:49 itaipu joined #perl6
23:54 tokuhirom joined #perl6
23:57 itaipu joined #perl6

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

Perl 6 | Reference Documentation | Rakudo