Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2015-05-27

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 timotimo germany
00:02 timotimo near the tip where france pokes in
00:03 timotimo i mean the tip of france that pokes in
00:04 timotimo but on the germany side
00:04 tony-o_ ah, i've been to füssen and münchen
00:04 timotimo i don't know fussen :S
00:04 tony-o_ seems like it'd be a really nice place to ride
00:05 timotimo agreed
00:05 timotimo except if you have hayfever ;)
00:05 timotimo which i do :\
00:06 tony-o_ i have the year round allergies too.  i've started taking a heaping spoon of raw bee pollen in the mornings and it seems to help a lot (for me anyway) - much better than the shots i've been getting since i was 12
00:07 timotimo oh? interesting
00:07 timotimo where can you get that kind of thing?
00:08 tony-o_ füssen is about half way between münchen and liechtenstein
00:08 tony-o_ i get it at a 'natural foods' store, kind of a hippy store where everything is marketed as organic and cleansing
00:09 timotimo mhm
00:09 timotimo what amount of money do you pay for such a thing?
00:09 tony-o_ get about 16oz for $8
00:10 tony-o_ 45[0-9] grams
00:10 timotimo a heaping spoon of that would not be terribly much, right? i imagine that stuff is very light?
00:11 tony-o_ i don't know the conversion to euros
00:11 timotimo closer to 1:1 these days, sadly
00:11 tony-o_ it'd probably last a month or two if that's all youy used it for
00:11 timotimo what else would it be good for?
00:11 timotimo and more importantly: how did you reach this idea? :)
00:12 tony-o_ i've discovered that folks with allergies think it tastes terrible, others don't think that so much
00:13 japhb joined #perl6
00:13 timotimo oh? that sort of sounds sensible
00:14 timotimo hm. the "send more money" script doesn't terminate after the first result?
00:14 tony-o_ i had a lot of people tell me to 'eat honey, that works great', it doesn't so i started reading about why people think honey works and thought bee pollen is what really works for people, the small amount of pollen in honey is good enough for most people.  my gf puts pollen in her smoothies that she makes, so i at a couple granules and turned beat red
00:14 tony-o_ then i just went for it the next day and didn't have any allergy problems after that
00:14 timotimo wow, that sounds pretty awesome
00:14 tony-o_ no more hives, itchy eyes, fatigue, fogginess, etc
00:14 timotimo and you have to keep that up to keep the symptoms away?
00:15 tony-o_ it works pretty instantly and the effects go away just as quickly
00:15 timotimo EUR 19,95/kg
00:15 timotimo on amazon :)
00:16 tony-o_ your CNS attacks the pollen instead of attacking your body, so it doesn't get rid of the problem but it makes your CNS not make you leak like a sieve or take it out on your body in other ways
00:16 timotimo that sounds awesome
00:16 timotimo i wish it'd help :)
00:17 timotimo but anything less than 1kg is pretty expensive, comparatively
00:18 tony-o_ most of that is speculation or a single pass reading of some medical document about why it works.  i will say it does work for me, though
00:18 tony-o_ never thought about amazon
00:19 timotimo hehe
00:19 timotimo i might see if it helps me at all
00:20 tony-o_ i'd be interested to know the outcome
00:20 timotimo how much grams are in such a "heaping spoon"?
00:21 tony-o_ i've never measured
00:21 tony-o_ 15-25g ?
00:21 tinyblak joined #perl6
00:21 timotimo i'm trying to figure out if it's an "esslöffel" or a "teelöffel"
00:21 tony-o_ about a tablespoon size, not sure if tablesppon is a universal thing
00:22 timotimo ah, tablespoon then
00:26 timotimo now, there's still a difference between putting a heap onto a tablespoon or removing any excess off the top so that the "heap" becomes flat, essentially
00:27 tony-o_ lol
00:27 kurahaupo1 joined #perl6
00:27 tony-o_ i'm not that scientific about it
00:36 laouji joined #perl6
00:40 mtj_ joined #perl6
00:41 bjz joined #perl6
00:41 mtj_ joined #perl6
00:44 vendethiel joined #perl6
00:49 colomon joined #perl6
00:50 laouji joined #perl6
00:58 tinyblak_ joined #perl6
01:02 Akagi201 joined #perl6
01:12 vendethiel joined #perl6
01:23 ribasushi joined #perl6
01:24 colomon joined #perl6
01:51 Ben_Goldberg joined #perl6
01:55 dayangkun joined #perl6
01:59 fhelmberger joined #perl6
02:04 cognominal joined #perl6
02:19 vendethiel joined #perl6
02:34 rmgk_ joined #perl6
02:47 noganex_ joined #perl6
02:51 zengargoyle joined #perl6
02:55 kaare_ joined #perl6
03:19 raiph joined #perl6
03:42 inokenty joined #perl6
03:42 laouji joined #perl6
03:43 laouji_ joined #perl6
03:53 jdv79 oddly quiet
03:53 tony-o_ its eerie
03:54 tony-o_ almost sinister
03:54 tony-o_ m: garbage
03:54 camelia rakudo-moar c2a57e: OUTPUT«5===SORRY!5=== Error while compiling /tmp/1aiSu3TC0W␤Undeclared routine:␤    garbage used at line 1␤␤»
03:54 tony-o_ m: GLOBAL::.hash.say
03:54 camelia rakudo-moar c2a57e: OUTPUT«␤»
03:54 tony-o_ m: GLOBAL::.hash.say; use Test;
03:54 camelia rakudo-moar c2a57e: OUTPUT«Test => (Test)␤»
03:55 jdv79 is like larry, jonathan, and patrick are colluding elsewhere and perl6 will just be done tomorrow
03:55 jdv79 s/is/its/
03:57 raydiak .oO( so quiet you can almost hear camelia growing intelligence and plotting terminator-style world domination )
03:58 jdv79 a killer butterfly.  now that's sinister.
04:02 raydiak turns out the locusts in Revelation with breastplates "like iron" are really gonna be cybernetic hunter-killer butterflies :)
04:03 tony-o_ like hitlers cattle
04:15 anaeem1_ joined #perl6
04:16 anaeem1_ joined #perl6
04:22 koo6 joined #perl6
04:27 laouji joined #perl6
04:28 Sqirrel joined #perl6
04:30 aborazmeh joined #perl6
04:30 aborazmeh joined #perl6
04:40 inokenty joined #perl6
04:47 quester joined #perl6
04:48 firefish5000 joined #perl6
05:02 anaeem___ joined #perl6
05:03 anaeem1__ joined #perl6
05:08 b2gills joined #perl6
05:22 kurahaupo1 joined #perl6
05:23 mr-foobar joined #perl6
05:27 anaeem1_ joined #perl6
05:35 * TimToady back home, yosemite was pretty
05:36 tony-o_ where were you in yosemite?
05:36 tony-o_ i just got back from zion forest a few weeks ago
05:36 TimToady started at Mono Lake, came over the 120, had lunch up in the valley, afternoon at Glacier Point
05:37 tony-o_ oh very cool
05:37 TimToady good time of year for the waterfalls, despite the drought
05:37 TimToady 120 isn't usually open this early, in fact
05:38 tony-o_ no i remember last year i tried getting in but it was closed off
05:42 tony-o_ did you just drive through or did you stay down there?
05:43 TimToady stayed last night on the west end of Mono Lake
05:43 TimToady (up from San Diego the night before)
05:44 domidumont joined #perl6
05:44 TimToady spent several hours going around the valley floor
05:45 Patterner joined #perl6
05:48 domidumont joined #perl6
05:49 tony-o_ valley floor is awesome, fun swimming in that river down there too
05:52 dalek ecosystem: 9d54d37 | tony-o++ | META.list:
05:52 dalek ecosystem: role for HTTP::Server so we can have start building out some servers with interchangeable backends
05:52 dalek ecosystem: review: https://github.com/perl6/e​cosystem/commit/9d54d3790f
05:59 fhelmberger joined #perl6
06:16 diana_olhovik_ joined #perl6
06:16 _mg_ joined #perl6
06:37 dalek json: 1e44a0f | moritz++ | lib/JSON/Tiny.pm:
06:37 dalek json: Replace deprecated method .for by .flatmap, timotimo++
06:37 dalek json: review: https://github.com/moritz/json/commit/1e44a0fafd
06:37 abraxxa joined #perl6
06:39 dalek json: 635a8ae | moritz++ | t/0 (5 files):
06:39 dalek json: Replace deprecated test functions with appreciated ones
06:39 dalek json: review: https://github.com/moritz/json/commit/635a8ae61c
06:46 Ulti http://doc.perl6.org/language/operators#infix_%25 <--- shouldnt that read 'returns'
06:50 RabidGravy joined #perl6
06:54 Foxcool joined #perl6
06:55 moritz yes
06:56 FROGGS joined #perl6
06:56 dalek ecosystem: 7145efa | tony-o++ | META.list:
06:56 dalek ecosystem: Update META.list
06:56 dalek ecosystem: review: https://github.com/perl6/e​cosystem/commit/7145efa7cb
06:56 abraxxa joined #perl6
07:00 agentzh joined #perl6
07:00 agentzh joined #perl6
07:03 tony-o_ too tired to see what is wrong with my metas..
07:03 laouji_ joined #perl6
07:03 jepeway joined #perl6
07:07 darutoko joined #perl6
07:10 vendethiel joined #perl6
07:16 moritz nine: http://ecosystem-api.p6c.org/errors.json looks like Inline::Perl5's META.info isn't valid JSON
07:21 FROGGS moritz / nine: I PR'd it: https://github.com/niner/Inline-Perl5/pull/22
07:22 dalek Inline-Perl5: 5444f1d | FROGGS++ | META.info:
07:22 dalek Inline-Perl5: add missing comma
07:22 dalek Inline-Perl5: review: https://github.com/niner/Inl​ine-Perl5/commit/5444f1d3c0
07:22 dalek Inline-Perl5: c1b6df5 | lizmat++ | META.info:
07:22 dalek Inline-Perl5: Merge pull request #22 from FROGGS/patch-1
07:22 dalek Inline-Perl5:
07:22 dalek Inline-Perl5: add missing comma
07:22 dalek Inline-Perl5: review: https://github.com/niner/Inl​ine-Perl5/commit/c1b6df581a
07:22 FROGGS \o/
07:23 ab5tract_ joined #perl6
07:23 ab5tract1 joined #perl6
07:23 lizmat good *, FROGGS
07:23 yoleaux 26 May 2015 22:18Z <cygx> lizmat: https://github.com/perl6/roast/pull/60/files ; it's my first commit to roast, so please sanity-check
07:23 FROGGS morning lizmat
07:23 lizmat just saw it coming into my mail
07:23 DrForr Morning as well.
07:23 lizmat DrForr o/
07:24 FROGGS morning DrForr
07:24 FROGGS DrForr: the RT ticket is missing the test file that triggers the error
07:25 DrForr I thought I attached both.
07:25 DrForr Apparently not though.
07:25 FROGGS only a Readline.pm is attached
07:27 FROGGS TimToady: is there anything in the synopsis about a pragma that gives a (lexical) environment like the RESTRICTED setting would give me?
07:28 DrForr Actually it's in the github repo, I think.
07:29 laouji joined #perl6
07:29 DrForr https://github.com/drforr/perl6-​readline/blob/master/t/02-base.t
07:29 FROGGS TimToady: I'd like to do: my $foo = { use restricted; EVAL 'some foreign code' }() # this does not wipe my hard disk
07:29 FROGGS DrForr: k, will try the code in the repo later
07:30 DrForr Simplest way to do that I think would just be to pull the module and run the test suite, should fail spectacularly, eventually.
07:31 FROGGS yes
07:32 DrForr yep, just discovered another failure mode as it happens. Free of invalid pointer.
07:37 zakharyas joined #perl6
07:39 [Tux] OUCH https://gist.github.com/Tux/3cbe7b39d401c1060c19
07:39 FROGGS [Tux]: that got fixed just minutes ago
07:40 FROGGS [Tux]: I::P5's META.info contained invalid JSON
07:40 [Tux] I git pull'd just seconds ago
07:40 [Tux] i'll re-pull
07:40 * lizmat is rebootstrapping
07:40 FROGGS [Tux]: you need to wait for the modules.json to get updated, which happens hourly IIRC
07:40 g4 joined #perl6
07:40 [Tux] ah. rats :)
07:41 FROGGS and a 'panda update' might also be worth doing
07:41 [Tux] I rebuild everything from scratch every morning
07:44 DrForr Thanks for the reminder :) Say, who's going to make it for the p6 tutorial? I know Liz is...
07:45 lizmat [Tux] FROGGS after a panda update, panda install Inline::Perl5 seems to work for me
07:45 abraxxa joined #perl6
07:46 [Tux] after a git clone, panda install . worked for me
07:46 [Tux] #124298 still broken :(
07:48 telex joined #perl6
07:49 [Tux] lizmat, I got *no* reply at all from perl6-users
07:50 lizmat perhaps it's a difficult question  :-)
07:50 lizmat I won't have much time to dig into it in the next weeks, I'm afraid
07:50 lizmat lot's of travelling and preparations for travelling and meetings  :-(
07:51 [Tux] I still see no serious speedups :/
07:52 [Tux] anyway, off to $work
07:52 lizmat that's because most of the GLR changes have been cosmetic, on the outside
07:52 lizmat pmichaud is working on the GLR internals changes, afaik
07:56 FROGGS there wont be any speedups until Somebody® rewrites our iterators me thinks
07:57 lizmat cygx++ # IO::Path tests
07:59 lizmat m: for ^10 { .say; next 42 }   # what does the "next 42" mean ???
07:59 camelia rakudo-moar c2a57e: OUTPUT«0␤1␤2␤3␤4␤5␤6␤7␤8␤9␤»
07:59 lizmat std: for ^10 { .say; next 42 }
07:59 camelia std 28329a7: OUTPUT«ok 00:00 137m␤»
08:00 FROGGS m: my @a = do for ^10 { .say; next 42 }; say @a # this should contain 42's me thinks
08:00 camelia rakudo-moar c2a57e: OUTPUT«0␤1␤2␤3␤4␤5␤6␤7␤8␤9␤␤»
08:00 lizmat why would it ?
08:01 FROGGS lizmat: because you can return data this way
08:01 lizmat you can ???
08:02 lizmat S02:4445 only mentions Mylable.leave(@results)
08:02 rindolf joined #perl6
08:03 jnthn FROGGS: I wasn't totally sure of that, tbh :)
08:03 yoleaux 26 May 2015 22:01Z <ab5tract1> jnthn: This async code will work more often than not, but if I do it 20 times in a row, I can get fairly consistent blowups at some point in the run https://gist.github.com/ab5​tract/2c618fa8accc70464952
08:03 yoleaux 26 May 2015 22:03Z <ab5tract1> jnthn: also, I expected the output to be relatively uniform across 'frames', but sometimes the delay values to sleep don't seem to be taking effect
08:03 FROGGS S06:2756
08:04 FROGGS lizmat / jnthn: http://design.perl6.org/S0​6.html#The_leave_function
08:04 FROGGS hmm, this does not state it properly
08:05 FROGGS last 42 is, IIRC, like (with an implicit label FOO): FOO.next(42)
08:05 ab5tract_ joined #perl6
08:05 FROGGS err, FOO.last(42)
08:05 lizmat I was just wondering whether the else in the new 2nd candidate for next/last shouldn't just doe
08:05 lizmat *die
08:06 lizmat cause in my understanding next/last either take a Label or nothing at all
08:07 vendethiel joined #perl6
08:07 FROGGS ahh wait
08:08 FROGGS last COUNT is equivalent to COUNT.leave
08:08 FROGGS and COUNT.leave is a way to 'return' stuff
08:09 FROGGS hmmm, looks like LABEL.leave does not take any arguments...
08:09 FROGGS then I just misremember
08:10 FROGGS ohh, I am not misremembering:
08:10 FROGGS for 1..10 { leave $_ * 2 }   # 2..20
08:11 FROGGS read S05 line 2783
08:11 FROGGS S06*
08:11 lizmat but, that's got nothing to do with next/last ?
08:11 FROGGS lizmat: leave LABEL is the same as last LABEL
08:11 FROGGS and &?ROUTINE.leave(X) is the same as 'return X'
08:12 lizmat right, but what is next 42 or last 42 ?
08:12 FROGGS A C<leave>
08:12 FROGGS from the inner loop block, however, merely specifies the return value for
08:12 FROGGS that iteration:
08:12 FROGGS so next 42 is nonsense, but last 42 isnt
08:13 FROGGS I cant describe it better than: http://design.perl6.org/S0​6.html#The_leave_function
08:14 lizmat m: my @a = do for ^10 { .say; last 42 }; dd @a  # so @a should have been [42]<>
08:14 camelia rakudo-moar c2a57e: OUTPUT«0␤@a = []<>␤»
08:15 FROGGS I think so, yes
08:15 lizmat ok, let's make sure that works post GLR  :-)
08:16 FROGGS aye
08:16 lizmat meanwhile, I'm going to make 'next 42' fail
08:16 FROGGS a good fudge message might be 'LABEL.leave NYI'
08:16 lizmat ok, will do that as well...
08:19 firefish5000 joined #perl6
08:29 dalek roast: 5844f9c | lizmat++ | S32-list/categorize.t:
08:29 dalek roast: Add some categorize :into / :as tests
08:29 dalek roast:
08:29 dalek roast: And some additional tweaking
08:29 dalek roast: review: https://github.com/perl6/roast/commit/5844f9cbba
08:39 fhelmberger joined #perl6
08:44 dakkar joined #perl6
08:45 _mg_ joined #perl6
08:48 Ven joined #perl6
08:48 espadrine joined #perl6
08:51 quester left #perl6
08:51 Ven \o, #perl6
08:52 lizmat Ven o/
08:57 amurf joined #perl6
08:57 dalek rakudo/nom: edadb1d | lizmat++ | src/core/control.pm:
08:57 dalek rakudo/nom: Allow next/last/redo FOO only with Label
08:57 dalek rakudo/nom:
08:57 dalek rakudo/nom: I'm not sure how you would create a label object at runtime, but if
08:57 dalek rakudo/nom: that is possible, then you could technically say "next $label" and
08:57 dalek rakudo/nom: have it work.  If that is not supposed to be possible, then this
08:57 dalek rakudo/nom: check should probably be moved to compile time.
08:57 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/edadb1d9b6
08:57 itz2 joined #perl6
09:00 andreoss joined #perl6
09:04 * jnthn writed a small blog post with a little update: https://6guts.wordpress.com/20​15/05/27/taking-a-short-break/
09:04 jnthn I'll only be about occasionally during the next ~week.
09:06 lizmat and a well deserved break it is!  :-)
09:06 ssqq joined #perl6
09:07 FROGGS ohh!
09:07 FROGGS jnthn: have a nice weekend then :o)
09:07 jnthn FROGGS: Thanks :)
09:09 dalek rakudo/nom: 40b72ab | lizmat++ | src/core/ (2 files):
09:09 dalek rakudo/nom: Add NYI for Label/Method/Sub.leave, FROGGS++
09:09 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/40b72abf1c
09:23 [ptc] jnthn: congratulations!  Hope you have a great weekend :-)
09:23 vendethiel joined #perl6
09:24 itz2 jnthn: yeah have a good one :)
09:24 Woodi hi today :)
09:24 moritz jnthn: congratulations!
09:24 lizmat afk&
09:26 Woodi jnthn: IMO civilized free time period in such circumstances is even a month :) GL !
09:29 smls joined #perl6
09:31 cognominal jnthn: congratulations.
09:33 arnsholt joined #perl6
09:35 nwc10 joined #perl6
09:38 g4 joined #perl6
09:39 Ulti joined #perl6
09:40 rarara joined #perl6
09:42 zakharyas joined #perl6
09:42 tadzik jnthn: yayy, congratulations!
09:42 moritz Woodi: come on, a whole months without hacking? that sounds... boring :-)
09:45 AlexDaniel joined #perl6
09:45 jnthn Thanks, everyone :)
09:46 jnthn lunch &
09:52 tadzik It is :o Every time I'm on vacation without a computer I spend a lot of time planning on the projects I'll finally get to do when I get back
10:01 _mg_ joined #perl6
10:02 zakharyas joined #perl6
10:03 Woodi I realy wandering is something like IT "calling" exists :) some ppls wants madly to be actors, singers or drivers :)
10:04 nowan joined #perl6
10:05 Juerd On vacation without a computer?!
10:05 tadzik I always wanted to be a programmer
10:06 Juerd tadzik: Me too
10:06 DrForr Don't, it's boring :)
10:10 koo6 joined #perl6
10:24 salva joined #perl6
10:30 vendethiel joined #perl6
10:37 laouji joined #perl6
10:38 grondilu joined #perl6
10:42 masak good afternoon, #perl6
10:42 yoleaux 26 May 2015 22:44Z <jdv79> masak: what of RT #109880?
10:42 yoleaux 26 May 2015 22:46Z <jdv79> masak: also what of RT #113040
10:43 itz2 the only sensible computer to take on a real vacation is a kindle! (unless you jailbroke down to the linux)
10:46 azawawi joined #perl6
10:46 azawawi hi :)
10:46 amurf joined #perl6
10:47 masak jdv79: aye, https://rt.perl.org/Ticket/Display.html?id=109880 seems to be an invalid assignment. your variant looks better. I'm not sure that's the actualy problem described in the ticket, though.
10:48 masak jdv79: https://rt.perl.org/Ticket/Display.html?id=113040 looks closeable now.
11:02 dalek doc: 6f69701 | azawawi++ | t/pod- (2 files):
11:02 dalek doc: Fix deprecated API: eval_dies_ok and isa_ok
11:02 dalek doc: review: https://github.com/perl6/doc/commit/6f69701d44
11:02 dalek doc: 320b2fb | RabidGravy++ | t/pod- (2 files):
11:02 dalek doc: Merge pull request #86 from azawawi/master
11:02 dalek doc:
11:02 dalek doc: Fix deprecated API: eval_dies_ok and isa_ok
11:02 dalek doc: review: https://github.com/perl6/doc/commit/320b2fb8f2
11:03 moritz azawawi: fwiw you can push directly to perl6/doc
11:03 azawawi moritz: i noticed :)
11:03 moritz IWBN if github showed a big "YOU HAVE WRITE ACCESS TO THIS REPO" button on repos that aren't in your own namespace
11:03 moritz (and mayebe even on those)
11:04 azawawi forking is more fun though :)
11:05 RabidGravy or it could give you the option of merging directly when you go to create the PR
11:05 azawawi moritz: what about https://github.com/moritz/json/pull/16 ?
11:07 moritz azawawi: likely unnecessary by my last two commits
11:08 pochi joined #perl6
11:10 RabidGravy can anyone think of anythink that changed between 2015.04 sometime and now that would change the way that IO::Socket::Async.bytes_supply behaves?  Nothing in the class itself, Promise or supply appears to have changed in that time
11:10 azawawi any plans to add version support to panda?
11:11 bjz joined #perl6
11:13 Ven joined #perl6
11:13 Ven .u  ॣ
11:13 yoleaux U+0963 DEVANAGARI VOWEL SIGN VOCALIC LL [Mn] (◌ॣ)
11:13 [ptc] RabidGravy: maybe the fact that Empty has replaced Nil in some places?
11:14 tadzik azawawi: yes :)
11:14 azawawi tadzik: cool :)
11:14 azawawi tadzik: when?
11:15 tadzik I think it's even ticketed
11:15 tadzik Getting module authors to version their stuff though, that's gonna be tough :!
11:15 azawawi https://github.com/tadzik/panda/issues/139 ?
11:16 [ptc] tadzik: oh ys
11:16 [ptc] *yes
11:16 azawawi well warnings/deprecation notices will do the trick with time
11:17 tadzik azawawi: yep, that
11:17 RabidGravy [ptc], Hmm
11:18 [ptc] RabidGravy: there was a change from TimToady where Empty had to be used in the place of Nil when iterating over a (possibly empty) array
11:18 [ptc] RabidGravy: or something like that
11:18 * [ptc] waves hands vaguely in the air
11:19 FROGGS tadzik / azawawi: hoelzro is working on it atm
11:19 azawawi FROGGS: hi
11:20 FROGGS hi
11:20 azawawi FROGGS: there was a discussion on #perl6 a while ago about perl6 error warning/messages as JSON
11:20 tadzik Awesome!
11:20 azawawi FROGGS:
11:20 timotimo masak: i'm not sure if it'll surprise you, but most of the time your subs-based send-more-money solver takes is spent in the array iteration bits
11:21 azawawi FROGGS:  any progress on that?
11:21 tadzik (I'll go work at my lack of sleep :))
11:21 timotimo masak: on the other hand, i made a commit that made the loops version a bit faster
11:21 timotimo m: say 1 / 1.3
11:21 camelia rakudo-moar c2a57e: OUTPUT«0.769231␤»
11:22 timotimo shaved about 25% of run time off by making "next" less expensive
11:23 timotimo lizmat: can you think of a reason why we would want to keep using a slurpy array argument to next/redo?
11:23 mtj_ joined #perl6
11:23 timotimo rather than just next(Label $l) ?
11:24 masak timotimo: I got a Perl 5 version this morning that seems to make a similar point.
11:24 masak timotimo: (it used hashes to emulate sets in Perl 5, and the program ran a lot faster)
11:24 gfldex joined #perl6
11:24 masak haven't had time to look at it yet, but I can imagine a similar thing'll speed up the Perl 6 version, too.
11:26 timotimo i wonder how well just using "combinations" would work for this
11:26 timotimo of course, that'd increase the number of times you'll calculate "send", "more" and "money"
11:27 timotimo and our implementation of :10[ ... ] could get optimized in cases where we know that its arguments cannot be evil WRT getting listified
11:28 timotimo (which i'm afraid may not work in your example code)
11:28 inokenty joined #perl6
11:28 timotimo masak: any way, i'd be glad if you could re-time your subs-based code against latest rakudo and see if it's much better on your end as well :)
11:29 FROGGS azawawi: about the error messages? not as far as I know
11:31 masak timotimo: will do. thanks.
11:33 timotimo did you see the comments up on hackernews? many other implementations and also the suggestion that whatever you used in perl5 to emulate sets is likely the culprit - which you already seem to know
11:35 zakharyas joined #perl6
11:36 azawawi joined #perl6
11:36 azawawi joined #perl6
11:36 Vlavv joined #perl6
11:37 ribasushi morning
11:37 moritz \o ribasushi
11:37 ribasushi chatter from elsewhere - inquiring minds want to know: http://paste.scsys.co.uk/483340
11:38 azawawi FROGGS: namely http://irclog.perlgeek.de/p​erl6/2015-05-19#i_10624752
11:38 tinyblak joined #perl6
11:39 DrForr multi operator infix<"︵╰(°□°)╯︵">( @down, @up ) { } # :)
11:39 DrForr operator:infix that is :)
11:39 FROGGS azawawi: yes, I remember... though, there was no progress on that front
11:40 ribasushi DrForr: neat ;)
11:40 azawawi FROGGS: any pointers to where i can start?
11:41 FROGGS azawawi: augment Failure, add a method 'to-json-error' that first marks it as handled and then jsonifies it correctly
11:41 azawawi FROGGS: working on it. Thanks :)
11:41 FROGGS azawawi: have fun
11:42 azawawi if you think of it, JSON::RPC and debug/error messages would make Perl 6 integration with IDEs/Editors far more easier
11:44 azawawi start one perl6 process with JSON::RPC and then compile/debug/run in a loop
11:45 cow-orke1 joined #perl6
11:48 ganiii joined #perl6
11:48 ganiii what's up guys?
11:49 DrForr Lots, I'm sure :)
11:49 FROGGS $dayjob... :o(
11:50 masak no no, it's spelled "$dayjob \o/"
11:50 masak (we're hiring) :P
11:51 itz2 IDEs? you mean like vim and emacs? :P
11:53 andreoss joined #perl6
11:54 gagalicious joined #perl6
11:55 pauluu joined #perl6
11:57 tinyblak joined #perl6
11:58 cognominal joined #perl6
11:59 cognominal joined #perl6
12:03 Ulti those are only integrated if you are programming in viml or lisp respectively :P though most IDEs are light on the 'I' part now :(
12:03 AlexDaniel Hi! I've seen some examples of "async BLOCK" but for me it says that "async" is an undeclared subroutine, what am I missing?
12:03 AlexDaniel m: async { say 'hello' }
12:03 camelia rakudo-moar c2a57e: OUTPUT«5===SORRY!5=== Error while compiling /tmp/hKmCt__yXB␤Undeclared routine:␤    async used at line 1. Did you mean 'asin', 'asinh', 'asec'?␤␤»
12:04 timotimo you spell that "start" nowadays
12:04 timotimo where did you find these examples? maybe we can update them?
12:05 AlexDaniel timotimo: I have no idea, I'm following perl6 development for quite some time, it is from my memory
12:05 AlexDaniel m: wait
12:05 camelia rakudo-moar c2a57e: OUTPUT«5===SORRY!5===␤Whitespace required after keyword 'wait'␤at /tmp/nIZeT_mos_:1␤------> 3wait7⏏5<EOL>␤Undeclared routine:␤    wait used at line 1. Did you mean 'await'?␤␤␤»
12:05 timotimo ah, ok
12:05 AlexDaniel is it right? wait is now await?
12:05 timotimo hasn't it always been await?
12:06 AlexDaniel I don't think so
12:06 AlexDaniel but again, it is from my imperfect memory
12:07 _mg_ joined #perl6
12:09 AlexDaniel m: start { say 'XXX'; sleep 4; say 'YYY'; }; await; say 'ZZZ';
12:09 camelia rakudo-moar c2a57e: OUTPUT«XXX␤ZZZ␤»
12:09 AlexDaniel this is not what I expected
12:09 [Sno] joined #perl6
12:09 AlexDaniel what am I doing wrong?
12:10 timotimo you have to await a promise
12:10 timotimo m: my $promise = start { say 'xxx'; sleep 4; say 'YYY' }; await $promise; say 'ZZZ'
12:10 camelia rakudo-moar c2a57e: OUTPUT«xxx␤YYY␤ZZZ␤»
12:10 AlexDaniel then what's the point of await without args?
12:12 pauluu left #perl6
12:13 AlexDaniel if it is unable to wait for all of the threads to finish, then why not a compile-time error?
12:13 tinyblak joined #perl6
12:14 AlexDaniel but again, I feel like I've seen an example of async & await without args
12:14 hoelzro o/ #perl6
12:14 timotimo hm.
12:21 smls Getting a "JIT: No function for op 304 in op_to_func." error in one of my scripts :(
12:21 smls (with latest r-m installed via rakudobrew)
12:23 smls The error message claims it's from IO.resolve, though i'm having trouble golfing it
12:23 raiph joined #perl6
12:24 timotimo oops? damn. gimme a second.
12:26 timotimo oh yikes
12:28 timotimo we usually bump moar_revision for this kind of fix, right?
12:28 timotimo smls: can you get a latest moarvm master and retry?
12:28 * timotimo will be AFK for a bit
12:32 _mg_ joined #perl6
12:42 masak "Go in Go". interesting talk about bootstrapping. http://talks.golang.org/2015/gogo.slide
12:49 dalek perl6-examples: b9cfa48 | paultcochrane++ | / (2 files):
12:49 dalek perl6-examples: Disable Text::VimColour
12:49 dalek perl6-examples:
12:49 dalek perl6-examples: Unfortunately Text::VimColour isn't installing correctly at present via
12:49 dalek perl6-examples: panda, and since we're actually not using it currently for the examples, we
12:49 dalek perl6-examples: can comment out its installation and its use for the time being.
12:49 dalek perl6-examples: review: https://github.com/perl6/perl​6-examples/commit/b9cfa48afd
12:49 newbie1 joined #perl6
12:50 * masak .oO( vimcOUlor isn't instOUlling cOUrrectly ) :P
12:51 AlexDaniel so what's up with await?
12:52 * moritz hopes it waits for stuff
12:52 AlexDaniel moritz: scroll a little bit up
12:53 [ptc] masak: actually it's hanging on my perl6, endlessly waiting for *something*
12:54 [ptc] ... when testing
12:54 * [ptc] likes Text::VimColour's name though :-)
12:57 FROGGS joined #perl6
12:58 itz2 its probably waiting on the "ex" shell call
12:59 itz2 I've seen it do that on linux although not OS X .. I'll likely to investigate next week
12:59 timotimo i did that moarvm commit very inelegantly
13:00 itz2 I'm going to have a lot more perl6 time RSN :)
13:00 moritz AlexDaniel: agreed, it should error out when called without args
13:00 moritz (but not when called with an empty argument list, like my @a; await @a)
13:03 smls timotimo: The JIT error is still there after `rakudobrew build moar nom`
13:04 smls (Or is that not the right way to install moarvm master?)
13:06 timotimo it is not. incidentally, i broke MoarVM on master and i'm fixing it now :)
13:08 smls btw this reliably triggers the bug for me:     touch aa; ln -s aa bb; perl6 -e '"aa".IO.resolve for ^26'
13:08 smls with  ^25  or less it doesn't appear ;)
13:09 timotimo yeah, that's when the jit kicks in
13:10 timotimo you can "rakudobrew triple nom master master" to get the very newest of all components
13:11 tinyblak joined #perl6
13:12 smls ah
13:15 AlexDaniel moritz: ok, but what's wrong with waiting for all existing threads?
13:17 moritz AlexDaniel: afaict await doesn't work on threads
13:17 moritz AlexDaniel: but rather on promises, channels, supplies
13:17 moritz AlexDaniel: and those aren't globally scoped
13:17 timotimo moritz: in DBIish we've still got a .for inside DBDish.pm6
13:17 AlexDaniel moritz: hmmm
13:18 timotimo in theory, the scheduler could get a method that'd let you wait for everything that belongs to it to terminate
13:18 timotimo that seems more useful than "wait for all global things"
13:18 timotimo and it'll still DTRT when you just use the default, outermost $*SCHEDULER
13:19 timotimo is $*SCHEDULER set up lazily, btw? does it take much time to create?
13:19 timotimo moritz: and also is_deeply in the 05-mock.t test file
13:19 timotimo i'll go ahead and make a PR for you :)
13:20 timotimo oh, i hadn't realized it's under the perl6/ namespace
13:23 moritz timotimo: yes, you should be able to push directly
13:23 * timotimo has to rebootstrap panda locally to test if everything's all right
13:24 laouji joined #perl6
13:24 timotimo and JSON::Tiny is under perl6/, too, i assume
13:24 timotimo oh. that one isn't
13:25 timotimo but the fixes are already in, so that's fine
13:25 brrt joined #perl6
13:37 dalek DBIish: 519fbe1 | timotimo++ | / (3 files):
13:37 dalek DBIish: .for -> .flatmap
13:37 dalek DBIish: review: https://github.com/perl6/DBIish/commit/519fbe1841
13:37 dalek DBIish: 36e66e8 | timotimo++ | t/ (4 files):
13:37 dalek DBIish: kebabcase subs from Test
13:37 dalek DBIish: review: https://github.com/perl6/DBIish/commit/36e66e88e1
13:38 timotimo wow ... the perl6-examples test could really use a bit of benchmarking and optimization ... 48 minutes for a travis-ci build :S
13:39 timotimo i wonder what this is all about: t/categories/best-of-rosettacode.t ......... 5/15 Unable to parse expression in balanced; couldn't find final ']'
13:40 [ptc] timotimo: ah, that's a flappy test :-/
13:41 [ptc] timotimo: there are several examples which are quite computationally intensive, so yeah, they take a while
13:41 [ptc] timotimo: and I've already stripped out the ones I thought took too long!
13:42 [ptc] timotimo: the flappy test is the categories/best-of-rosetta​code/balanced-brackets.pl example
13:43 [ptc] timotimo: one of the versions of the balanced brackets algorithm uses grammars and for Some Reason (TM) doesn't always work *sigh*
13:43 timotimo just now i'm watching the euler.t counter tick up veeeeerrrrrryyy slowly :D
13:46 timotimo the test run exceeded 50 minutes and was killed :(
13:46 virtualsue joined #perl6
13:47 [ptc] aui
13:48 [ptc] of course, moar, nqp and rakudo are all built and installed first before starting the perl6-examples tests.  But still...
13:49 timotimo yeah
13:49 timotimo that takes ~400s
13:50 timotimo m: say 400 / 60
13:50 camelia rakudo-moar c2a57e: OUTPUT«6.666667␤»
13:50 timotimo a tiny amount, in comparison
13:50 timotimo (but if it had been replaced with just a wget + untar, it could possibly have caused this particular build run to succeed?)
13:57 [Sno] joined #perl6
14:00 [ptc] no idea.  The runs which didn't have any test failures all ran to completion afaik
14:00 timotimo OK
14:00 timotimo well, the next run will have fewer deprecation warnings, but i can't see that stealing more than a second, all in all
14:03 [ptc] timotimo: thanks for fixing the deprecation warnings :-)
14:03 [ptc] must dash, commute &
14:03 g4 joined #perl6
14:03 g4 joined #perl6
14:04 timotimo sure :)
14:04 timotimo it's one of the easier jobs
14:04 timotimo moritz: i don't have a test setup for mysql and pg on my machine; can you run a DBIish test with all test databases set up at some point?
14:04 moritz timotimo: sure; just push
14:06 skids joined #perl6
14:09 timotimo i already pushed. thank you very much :)
14:24 amurf joined #perl6
14:35 dalek nqp: 00b1d1e | timotimo++ | tools/build/MOAR_REVISION:
14:35 dalek nqp: bump MOAR_REVISION for missing op_to_func stuff in the jit
14:35 dalek nqp: review: https://github.com/perl6/nqp/commit/00b1d1e946
14:36 dalek rakudo/nom: 6b406bd | timotimo++ | tools/build/NQP_REVISION:
14:36 dalek rakudo/nom: bump nqp for fixes in the MVM JIT for op_to_func
14:36 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/6b406bd388
14:37 timotimo oh well. there and back again
14:38 dalek rakudo/nom: ab4a5ef | timotimo++ | tools/build/NQP_REVISION:
14:38 dalek rakudo/nom: Revert "bump nqp for fixes in the MVM JIT for op_to_func"
14:38 dalek rakudo/nom:
14:38 dalek rakudo/nom: This reverts commit 6b406bd38839e5e39a2320766f6edae41f508e7c.
14:38 dalek rakudo/nom:
14:38 dalek rakudo/nom: we are still waiting for a lazy deserialization fix
14:38 dalek rakudo/nom: to make asynchronous stuff stable again after the
14:38 dalek rakudo/nom: recent fix for 100% cpu consumption
14:38 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/ab4a5efafe
15:05 smls m: grammar G {rule TOP{g}}; class A {method TOP($/){ "a" ~~ /a/ }}; G.parse("g", :actions(A));
15:05 camelia rakudo-moar c2a57e: OUTPUT«Cannot assign to a readonly variable or a value␤  in method TOP at /tmp/UKWk0rPmL4:1␤  in regex TOP at /tmp/UKWk0rPmL4:1␤  in block <unit> at /tmp/UKWk0rPmL4:1␤␤»
15:06 smls ^^Am I not allowed to use regexes in action methods? :(
15:07 b2gills m: grammar G {rule TOP{g}}; class A {method TOP($\ is copy){ "a" ~~ /a/ }}; G.parse("g", :actions(A));
15:07 camelia rakudo-moar c2a57e: ( no output )
15:08 smls thanks
15:09 b2gills it would probably be better to rename $\ though
15:09 PerlJam surely you mean $/
15:11 sue_ joined #perl6
15:11 smls yeah I think I'll go with   method TOP ($match)
15:19 lizmat timotimo: atm I can't think of any reason
15:20 [Coke] there's a syntax for creating a string using the name of the unicode character, yes? (I can't find it in S15)
15:21 [Coke] found it in S02.
15:21 zakharyas1 joined #perl6
15:23 [Coke] m: "S⃒".chars.say # Why isn't this 1?
15:23 camelia rakudo-moar c2a57e: OUTPUT«1␤»
15:23 [Coke] ... because my perl6 is super old, I guess.
15:23 [Coke] m: my S⃒boom;
15:23 camelia rakudo-moar c2a57e: OUTPUT«5===SORRY!5=== Error while compiling /tmp/68clMWq5j9␤Malformed my (did you mean to declare a sigilless \S⃒boom or $S⃒boom?)␤at /tmp/68clMWq5j9:1␤------> 3my S⃒boom7⏏5;␤»
15:30 skids joined #perl6
15:32 brrt left #perl6
15:35 tinyblak joined #perl6
15:39 itz2 [Coke]: also http://examples.perl6.org/categories/co​okbook/01strings/01-05namedunicode.html
15:50 Ulti m: say [~] "\c[SMILING CAT FACE WITH HEART-SHAPED EYES]" .. "\c[CRYING CAT FACE]"
15:50 camelia rakudo-moar c2a57e: OUTPUT«😻😼😽😾😿␤»
15:50 cognominal joined #perl6
15:53 itz2 is there a cat face iterator?
15:55 Ulti map all integers onto the catface space
15:57 lizmat git diff
15:57 lizmat oops :-)
15:57 gfldex joined #perl6
15:57 captian-adequate joined #perl6
15:58 Ulti there's catfaces before heart shaped eyes but that one is more impressive
15:58 dalek rakudo/nom: f86437c | lizmat++ | src/core/control.pm:
15:58 dalek rakudo/nom: Simplify next/last/redo handling, timotimo++
15:58 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/f86437c08a
15:58 * geekosaur waits for the esolang composed solely of cat faces
15:58 lizmat afk again&
16:03 Ulti that's almost useful since you can look at the whole emoticon range and stuff say [~] "\c[GRINNING FACE]" .. "\c[PERSON WITH FOLDED HANDS]";
16:04 Ulti without having to know the hex at least
16:05 PerlJam IS there some reason we're really strict about the letter case in those?   Why wouldn't \c[grinning face]" also be acceptable?
16:09 Ulti I think it's convention, whenever you see it anywhere they are all caps
16:09 RabidGravy there wasn't a problem with IO::Socket::Async  in what I was looking at earlier, it was a change in the flattening behaviour of  the zip operator
16:12 vendethiel joined #perl6
16:13 laouji joined #perl6
16:15 tony-o_ hoelzro++
16:17 raiph joined #perl6
16:22 telex joined #perl6
16:28 inokenty joined #perl6
16:30 yubimusubi joined #perl6
16:31 smls I like how Perl 6 lets me express many thing without creating temporary variables
16:31 smls like   my $string = "foo{ " ($_)" if $_ given STRING_EXPRESSION) }..."
16:33 smls well, I suppose this example could have been done done without temporary variables in Perl 5 as well, using sprintf
16:34 smls actually, no, I don't think it could have
16:34 smls so, (Perl 6)++
16:35 TimToady " ($_) " x (!!$_)
16:36 smls damn :P
16:36 mst map " ($_) ", grep defined, $expression
16:36 TimToady well, didn't really need the parens
16:37 mst yeah, but the parens made it clearer than my usual idiom as well as shorter
16:38 mst ... hrm, aiming for clarity over brevity might be the opposite of golf, but people are going to give me funnier looks than usual if I call it code flogging
16:39 TimToady lately I've taken to saying that we should achieve brevity in the domain of symbols rather than keystrokes
16:39 TimToady where by "symbol" I mean something closer to psychological chunking
16:41 smls "($_)" if .so given "STRING_EXPRESSION"    -- don't even need to reference $_ twice :P
16:44 smls TimToady, since you're here: Can you explain to me what the purpose of the anonymous blocks is in  http://rosettacode.org/wiki/Amb#Using_lazy_lists  ?
16:44 smls (article history credits you as the author of that solution)
16:45 smls for that matter, what's the purpose of doing a gather/take here?
16:45 TimToady how you gonna backtrack without some form of thunking?
16:46 TimToady this is essentially how STD does backtacking, btw
16:46 smls i don't understand how the cause backtracking
16:46 smls *they
16:47 TimToady via the X
16:48 smls so the exceptions thrown from the blocks affect X?
16:49 TimToady next is probably dropping the current cross product
16:49 TimToady been a while though...
16:50 vendethiel joined #perl6
16:51 * smls still doesn't see how the presence of those blocks has an effect on that)
16:51 TimToady m: my infix:<op> ($a, $b) { next if $a.ord %% 2 == $b %% 2; "$a$b" }; say <a b c d e> Xop ^5
16:51 camelia rakudo-moar c2a57e: OUTPUT«5===SORRY!5===␤Type 'infix:<op>' is not declared␤at /tmp/G78ZfKMhPR:1␤------> 3my infix:<op>7⏏5 ($a, $b) { next if $a.ord %% 2 == $b %%␤Malformed my␤at /tmp/G78ZfKMhPR:1␤------> 3my infix:<o7⏏5p> ($a, $b) { next if $a.ord %% 2 ==…»
16:51 TimToady m: sub infix:<op> ($a, $b) { next if $a.ord %% 2 == $b %% 2; "$a$b" }; say <a b c d e> Xop ^5
16:51 camelia rakudo-moar c2a57e: OUTPUT«a0 a2 a4 b1 b3 c0 c2 c4 d1 d3 e0 e2 e4␤»
16:52 smls btw, this much simpler variant also works, although it compute all possible combinations of the search space:  https://gist.github.com/smls/9f11b70574f7088c5922
16:53 TimToady with Xlf a next in one of the earlier lists trims a large part of the search space away
16:54 TimToady m: sub infix:<op> ($a, $b) { next if $a.ord %% 2 == $b %% 2; "$a$b" }; say <a b c d e> Xop ^5 Xop <x y z>
16:54 camelia rakudo-moar c2a57e: OUTPUT«Earlier failures:␤ Cannot convert string to number: base-10 number must begin with valid digits or '.' in '⏏x' (indicated by ⏏)␤  in sub infix:<op> at /tmp/23geVMwPbT:1␤  in block <unit> at /tmp/23geVMwPbT:1␤␤Final error:␤ Cannot call Real(…»
16:54 TimToady m: sub infix:<op> ($a, $b) { next if $a.ord %% 2 == $b.ord %% 2; "$a$b" }; say <a b c d e> Xop ^5 Xop <x y z>
16:54 camelia rakudo-moar c2a57e: OUTPUT«a0x a0 a0z ax a az a2x a2 a2z ax a az a4x a4 a4z b by b b1 b1y b1 b by b b3 b3y b3 b by b c0x c0 c0z cx c cz c2x c2 c2z cx c cz c4x c4 c4z d dy d d1 d1y d1 d dy d d3 d3y d3 d dy d e0x e0 e0z ex e ez e2x e2 e2z ex e ez e4x e4 e4z␤»
16:55 ab5tract_ joined #perl6
16:55 [Coke] Is that your Final Error?
16:55 TimToady here it never tests the x y z fork if the a1 fork fails
16:55 TimToady [Coke]: I hope to not stop making errors any time soon...
16:56 TimToady smls: anyway, 'next' is serving as the cut operator here
16:57 smls I understand that part
16:57 smls but not why it works with  { }  in the list but not with, say, ''
16:57 smls which should also make the substr comparison fail and cause next
16:58 TimToady well, '' would fail the last/first criterion
16:58 smls removing blocks by trial & error, this is the minimum amount needed to make it still work: https://gist.github.com/smls/9f11b​70574f7088c5922#file-gistfile2-6pl
16:59 TimToady well, the thunks allow lazy throws of exceptions, but that is perhaps not utilized with this particular problem
17:00 TimToady STD actually uses 'die' in some of those cases
17:00 TimToady m: say 1,2,die "foo"
17:00 camelia rakudo-moar c2a57e: OUTPUT«foo␤  in block <unit> at /tmp/e2ZCT4wK62:1␤␤»
17:00 TimToady m: say 1,2,{die "foo"}
17:00 camelia rakudo-moar c2a57e: OUTPUT«12-> ($_? is parcel) { #`(Block|50676640) ... }␤»
17:02 TimToady we wouldn't need the {} if there were a listy form of thunks, which is more or less what masak wants when he says "do notation"
17:02 TimToady the intent has been to mutate semicolons into a more general form
17:03 TimToady but so far we've only got as far as lols
17:03 TimToady m: say (1,2,3; 4,5,6; 7,8,9).perl
17:03 camelia rakudo-moar c2a57e: OUTPUT«(1, 2, 3; 4, 5, 6; 7, 8, 9)␤»
17:04 TimToady with a lol we actually make 3 lazy lists here, but a bare semilist doesn't quite thunkify
17:04 smls Can you show a simpler example that needs the {}  ?
17:04 TimToady I think we'd want a keyword of some sort to make it more monadic
17:05 smls also, isn't {}  a Hash? And yet the example still works with it
17:05 tony-o_ m: .perl.say for (1,2,3;4,5,6;,7,8,9);
17:05 camelia rakudo-moar c2a57e: OUTPUT«5===SORRY!5=== Error while compiling /tmp/lVMaYDG_7Q␤Preceding context expects a term, but found infix , instead␤at /tmp/lVMaYDG_7Q:1␤------> 3.perl.say for (1,2,3;4,5,6;,7⏏7,8,9);␤»
17:05 tony-o_ m: .perl.say for (1,2,3;4,5,6;7,8,9);
17:05 camelia rakudo-moar c2a57e: OUTPUT«$(1, 2, 3)␤$(4, 5, 6)␤$(7, 8, 9)␤»
17:05 tony-o_ m: .elems.say for (1,2,3;4,5,6;7,8);
17:05 camelia rakudo-moar c2a57e: OUTPUT«3␤3␤2␤»
17:06 tony-o_ didn't know that was valid, that's pretty cool
17:07 TimToady m: sub infix:<op> ($a, $b) { next if $a.ord %% 2 == $b.ord %% 2; "$a$b" }; say <a b c d e> Xop ^5 Xop 'x',die("oops"),'z'
17:07 camelia rakudo-moar c2a57e: OUTPUT«oops␤  in block <unit> at /tmp/rBeIL9Wevc:1␤␤»
17:10 smls I know that you need braces to pass around actual code.
17:10 smls Maybe we're talking past each other :)
17:11 Juerd Not with *
17:11 grondilu joined #perl6
17:11 smls I'm freaked out about the fact that in the previously linked gist, changing   amb(<the that a>, { })   to   amb(<the that a>)   makes it no longer print the correct solution
17:12 smls and I don't see how it makes a difference
17:14 smls ooooh, { } makes a hash which has no postcircumfix:<( )> and thus throws an exception which goes through 'take', right?
17:14 * vendethiel backlogs..
17:15 smls that's why it still worked after changing { die "oops" } to { }
17:15 smls and the exception somehow affects the X operator?
17:15 TimToady caught by the next if try
17:15 TimToady unless*
17:16 TimToady if you remove the try it'll fail harder
17:17 fhelmberger joined #perl6
17:17 TimToady this is the basic problem with 'try'--it's too general, and catches the errors you didn't anticipate as well as the ones you did
17:17 spider-mario joined #perl6
17:17 TimToady so real production code should generally use a CATCH with a specific case
17:18 smls ok, I'm starting to grok this now :)
17:19 TimToady and, in fact, the die that STD does has specific values that it checks for on the eval end
17:19 TimToady :D
17:19 dalek ecosystem: 771c56b | tony-o++ | META.list:
17:19 dalek ecosystem: renamed HTTP::Server::Threaded::Router to HTTP::Server::Router
17:19 dalek ecosystem:
17:19 dalek ecosystem: git repo changed
17:19 dalek ecosystem: review: https://github.com/perl6/e​cosystem/commit/771c56bcd5
17:23 timotimo tony-o_: i approve of this re-ordering
17:23 tony-o_ timotimo: which re-ordering?
17:24 timotimo making things not rely on a specific HTTP::Server implementation
17:24 tony-o_ i kind of like the idea of the role based HTTP::Server series - i'm building out the requests/response skeletons in there.  i think it will let us start building some web apps that we can swap in better servers as they become more stable / faster
17:26 tony-o_ at some point i'm going to need to do actual work today tho, sadly
17:26 itz2_ joined #perl6
17:27 ibo2perl6 joined #perl6
17:27 smls TimToady: Unfortunately the syntax for catching a single exception is not that pretty:  CATCH { when ... { } }
17:28 smls so many braces...
17:29 smls maybe  CATCH ... { }  or something similar could be allowed for the single-condition case?
17:30 ibo2perl6 m: my $x = BagHash.new();  { my $y = $x; $y{42}++; $x (+)= $y }; say $x; # expected bag(42(1)) no?
17:30 camelia rakudo-moar c2a57e: OUTPUT«bag(42(2))␤»
17:30 TimToady I wouldn't modify the phaser; I'd be more inclined to have variants of try that were restricted to particular error types
17:30 ibo2perl6 m: my $x = BagHash.new();  for ^2 { my $y = $x; $y{42}++; $x (+)= $y }; say $x; #
17:30 camelia rakudo-moar c2a57e: OUTPUT«Cannot assign to an immutable value␤  in block <unit> at /tmp/ZFDaRrncde:1␤␤»
17:30 smls You mean like   try:io {...}   ?
17:30 TimToady maybe try itself should default to only catching AdHoc, for instance
17:30 [Coke] (too broad catch) java/cf code smell as well.
17:31 [Coke] TimToady: given that we haven't done a review of all the exception types in core, I'd be leery of that.
17:31 [Coke] lots of stuff happens to be adhoc, but maybe shouldn't be.
17:31 TimToady and vice versa :)
17:34 TimToady seriously, many of the exception types strike me as overly specific rather than overly generic...
17:36 dalek modules.perl6.org: 2e5b95c | (Zoffix Znet)++ | web/index.tmpl:
17:36 dalek modules.perl6.org: Fix searching for HTTP modules (Closes #8)
17:36 dalek modules.perl6.org:
17:36 dalek modules.perl6.org: The search JS plugin erroneously picks up href="" attributes.
17:36 dalek modules.perl6.org: review: https://github.com/perl6/modul​es.perl6.org/commit/2e5b95c691
17:36 smls .oO( Let's steal the Python exception classes; just replace the "Error" suffix with an "X::" prefix and no one will notice! )
17:37 diana_olhovik_ joined #perl6
17:40 FROGGS joined #perl6
17:40 domidumont joined #perl6
17:40 brrt joined #perl6
17:40 diana_olhovik joined #perl6
17:42 tony-o_ m: role X { has $.str; }; class A does X { has $.str = 'default'; }; A.new.str.say;
17:42 camelia rakudo-moar c2a57e: OUTPUT«===SORRY!===␤Attribute '$!str' already exists in the class 'A', but a role also wishes to compose it␤»
17:45 tony-o_ m: role X { has $.str; has $.str2; }; class A does X { submethod BUILD (:$!str = 'default') { *; }; }; A.new.str.say;
17:45 camelia rakudo-moar c2a57e: OUTPUT«default␤»
17:45 tony-o_ m: role X { has $.str; has $.str2; }; class A does X { submethod BUILD (:$!str = 'default') { *; }; }; A.new(str2 => 'a').str2.say;
17:45 camelia rakudo-moar c2a57e: OUTPUT«(Any)␤»
17:45 tony-o_ m: role X { has $.str; has $.str2; }; class A does X { submethod BUILD (:$!str = 'default') { {*}; }; }; A.new(str2 => 'a').str2.say;
17:45 camelia rakudo-moar c2a57e: OUTPUT«Error while constructing error object:Could not locate compile-time value for symbol Comp::AdHoc␤===SORRY!===␤Error while compiling, type X::Comp::AdHoc␤  payload: {*} may only appear in proto␤ at line 2, near "; }; }; A."␤»
17:46 tony-o_ m: role X { has $.str; has $.str2; }; class A does X { submethod BUILD (:$!str = 'default') { callsame; }; }; A.new(str2 => 'a').str2.say;
17:46 camelia rakudo-moar c2a57e: OUTPUT«(Any)␤»
17:46 tony-o_ hm
17:46 diana_olhovik__ joined #perl6
17:47 skids joined #perl6
17:47 diana_olhovik_ joined #perl6
17:50 masak hah! someone sent me a p5 version A that runs in 6 seconds! :P
17:50 masak porting it to p6 now.
17:50 koo6 joined #perl6
17:53 * masak discovered a rakudobug!
17:53 masak m: sub foo { say &^fn }; foo(42)
17:53 camelia rakudo-moar c2a57e: OUTPUT«42␤»
17:53 masak hah!
17:53 masak I can't believe none of us has thought of that one before :P
17:53 * masak submits it
17:54 raydiak nice...works with all the sigils
17:54 nwc10 j: sub foo { say &^fn }; foo(42)
17:55 camelia rakudo-jvm c2a57e: OUTPUT«42␤»
17:56 masak m: sub foo(&fn) { say &fn }; foo(42)
17:56 camelia rakudo-moar c2a57e: OUTPUT«5===SORRY!5=== Error while compiling /tmp/tFD8nnr8OL␤Calling foo(int) will never work with declared signature (&fn)␤at /tmp/tFD8nnr8OL:1␤------> 3sub foo(&fn) { say &fn }; 7⏏5foo(42)␤»
17:56 masak not only is the ordinary form checked, it's *checked at CHECK time* and never even runs.
18:02 amurf joined #perl6
18:02 laouji joined #perl6
18:08 ab5tract_ joined #perl6
18:10 ugexe if i have `class CompUnit2 is CompUnit`, a CompUnit2.new on a module that augments is returning a CompUnit instead of a CompUnit2. Is this expected behavior due to monkey typing, or bug caused by it?
18:11 tony-o_ need a better github ios app
18:12 PerlJam ugexe: I'm not quite sure what you mean by "CompUnit2.new on a module that augments ..."   Can you show the code?
18:16 Peter_R joined #perl6
18:16 masak heh, the ->@* postfix dereference syntax is ugly even for p5.
18:19 dalek modules.perl6.org: 5a5bd04 | (Zoffix Znet)++ | web/lib/P6Project.pm:
18:19 dalek modules.perl6.org: Use proper JSON booleans (Closes #2)
18:19 dalek modules.perl6.org: review: https://github.com/perl6/modul​es.perl6.org/commit/5a5bd04991
18:20 vendethiel m: sub f(&a){say a}; f(42); #what's the cannon error message?
18:20 camelia rakudo-moar c2a57e: OUTPUT«5===SORRY!5=== Error while compiling /tmp/eF2koEDInT␤Calling f(int) will never work with declared signature (&a)␤at /tmp/eF2koEDInT:1␤------> 3sub f(&a){say a}; 7⏏5f(42); #what's the cannon error message?␤»
18:21 masak my p6 port takes 15 minutes.
18:21 dalek modules.perl6.org: 28193b1 | (Zoffix Znet)++ | web/index.tmpl:
18:21 dalek modules.perl6.org: Fix the fix for href="" exclusion from searches (Issues #8)
18:21 dalek modules.perl6.org: review: https://github.com/perl6/modul​es.perl6.org/commit/28193b145e
18:21 ugexe PerlJam: looks like its when also using the module.. i.e. `use mod; CompUnit2.new("/path/to/mod.pm6")`
18:22 ugexe https://gist.github.com/ugexe/a9463c3ec6a1ae257ed2
18:23 ugexe without 'use mod'
18:23 ugexe it works
18:23 ugexe well, works as in it will return CompUnit2, not CompUnit
18:24 TimToady m: sub foo(&fn) { say foo(42) }
18:24 camelia rakudo-moar c2a57e: OUTPUT«5===SORRY!5=== Error while compiling /tmp/i7N2klQgx4␤Calling foo(int) will never work with declared signature (&fn)␤at /tmp/i7N2klQgx4:1␤------> 3sub foo(&fn) { say 7⏏5foo(42) }␤»
18:24 FROGGS ugexe: rakudo probably caches CompUnit object by abspath
18:24 FROGGS objects*
18:24 dalek perl6-examples: 3380129 | andreoss++ | / (2 files):
18:24 dalek perl6-examples: [euler] problem 32
18:24 dalek perl6-examples: review: https://github.com/perl6/perl​6-examples/commit/33801294d0
18:24 dalek perl6-examples: 4ff97f2 | andreoss++ | / (2 files):
18:24 dalek perl6-examples: [euler] problem 33
18:24 dalek perl6-examples: review: https://github.com/perl6/perl​6-examples/commit/4ff97f2d99
18:24 dalek perl6-examples: a115e2f | andreoss++ | / (2 files):
18:24 dalek perl6-examples: Merge branch 'master' of https://github.com/perl6/perl6-examples
18:24 dalek perl6-examples: review: https://github.com/perl6/perl​6-examples/commit/a115e2ff7b
18:24 dalek perl6-examples: ef0f149 | andreoss++ | / (2 files):
18:24 dalek perl6-examples: [euler] problem 38
18:24 dalek perl6-examples: review: https://github.com/perl6/perl​6-examples/commit/ef0f149078
18:26 muraiki joined #perl6
18:30 _mg_ joined #perl6
18:30 ugexe FROGGS: only happens when the CompUnit/module use MONKEY-TYPING, fwiw
18:31 FROGGS okay, then I am out of ideas
18:36 vendethiel timotimo++ #speeding up masak's script :D
18:36 * vendethiel saw masak's commit mentioning it go through
18:40 masak vendethiel: it's spooky to have someone read the commits of that repo :P
18:40 itz2_ joined #perl6
18:40 vendethiel masak: and as instantly as you push, to add!
18:40 tinyblak joined #perl6
18:40 masak vendethiel: also, I hope you've realized that by revealing yourself the other day, I'm now never going to push before I publish... :)
18:41 vendethiel hehehe
18:41 vendethiel I get github notifications
18:41 masak I figured.
18:41 vendethiel (that's why I don't use github's following system which is 100% useless when you're watching ~300 repos)
18:55 cygx joined #perl6
18:55 cygx o/
18:55 cygx where did S15 go: http://design.perl6.org/S15.html
18:56 pauluu joined #perl6
18:59 jercos >=comment Oh, this is in Pod6 format. Just so you know.
19:00 jercos A notable entry not found in the other pod files... perhaps a hiccup in Text::SmartLinks detecting pod6?
19:00 brrt joined #perl6
19:01 jercos Or it could be choking on the UTF-8 character on line 22 if it's trying to read it with the wrong encoding >.>
19:05 bbkr_ joined #perl6
19:10 lizmat ugexe: for a given abspath, there can only be one CompUnit object at any time
19:13 ugexe lizmat: i think it has to do with monkey-typing though. i can create new CompUnit for other modules that I am currently using. Its only if one of the used modules uses MONKEY-TYPING
19:14 lizmat did you post a gist already ?
19:14 ugexe https://gist.github.com/ugexe/a9463c3ec6a1ae257ed2
19:15 ugexe i can emulate the behavior of CompUnit2 with a role, and then do my $cu = CompUnit.new(whatever) but CompUnit2 and it works as well. So a runtime mixin seems to not have the problem either
19:15 lizmat fwiw, I didn't write CompUnit with subclassing in mind
19:16 lizmat I'm also wondering what you're trying to achieve  :-)
19:18 ugexe im changing .precomp-path so it doesnt have to be /same/path/as/source.moarvm
19:20 ugexe .precomp takes $out as an argument, but from what i can tell its pointless as the method returns false unless $out matches its predefined definition of precomp-path
19:24 virtualsue joined #perl6
19:25 * lizmat looks
19:27 lizmat no, if .precomp doesn't fail, it returns True always
19:27 lizmat it *only* sets its internal attribute has-precomp if out actually matched the default output path
19:28 lizmat so Compunit.new("Foo.pm").precomp("Bar.moarvm") *should* just work
19:29 ugexe you shouldnt have to pass Bar.moarvm, thats the default right?
19:29 ugexe if you pass anything that isnt the default, then it wont pass $out eq self.precomp-path
19:29 lizmat CompUnit.new("Foo.pm").precomp   # creates Foo.pm.moarvm
19:29 smls m: say (grammar {token TOP {.}}).parse("a", :actions(class { method TOP ($/) { $/.make: (2, 4, 6, 8) } })).made.perl
19:29 camelia rakudo-moar c2a57e: OUTPUT«$(2, 4, 6, 8)␤»
19:29 lizmat CompUnit.new("Foo.pm").precomp("Bar.moarvm")   # create Bar.moarvm
19:30 smls ^^ $/.make  in action method itemizes the returned AST
19:30 smls doesn't happen with the sub form of make, nor does it happen when called from isnide the grammar instead of the action class
19:30 smls bug, or feature?
19:30 raiph joined #perl6
19:31 ugexe so what about CompUnit.new("/some/path/lib/Foo.pm").p​recomp("/some/path/lib2/Foo.pm.moarvm")
19:31 lizmat that should work and create it in lib2
19:32 lizmat in fact, that is one of the features I want to use to allow multiple precomps to coexist for the same source installation
19:32 ugexe method precomp-path(CompUnit:D: --> Str) { "$!path.$!precomp-ext" }
19:33 lizmat aka, in CURLI, I think it would make sense to store precomps in a directory named by git describe tag
19:33 ugexe but in .precomp $!has-precomp = True if $out eq self.precomp-path;
19:33 lizmat yeah, I think maybe has-precomp is getting too confusing
19:33 ugexe $!path dirname is not the same as precomp-path dirname
19:33 ab5tract lizmat: that's an interesting use case indeed
19:33 lizmat perhaps it is a premature optimization
19:33 ugexe lizmat: im already doing that with curli :)
19:34 lizmat okidoki
19:34 lizmat so, maybe we need to get rid of has-precomp
19:34 ugexe or make precomp-path an attribute
19:36 lizmat yeah, but I only want 1 instance for every abspath
19:37 lizmat of the "source"
19:37 lizmat thing is, I want it also to be able to support an installation *without* any source files
19:38 lizmat biab
19:40 H2O1 joined #perl6
19:40 espadrine joined #perl6
19:45 skids joined #perl6
19:45 H2O1 left #perl6
19:46 vendethiel I guess my "last $x = 5" will break with these latest commits :P
19:48 cygx left #perl6
19:48 masak m: my $x = 0; for 1..3 { .say; last $x = 5 }; say $x
19:48 camelia rakudo-moar c2a57e: OUTPUT«1␤5␤»
19:48 masak vendethiel: nope.
19:49 vendethiel masak: how so? https://github.com/rakudo/rakudo/commit/f​86437c08a70b83dfdfe765e2644d7f6a252a3f0#d​iff-15453ceaa1e29c1ff703ba4b89bf3425R93
19:49 flussence What's the idiomatic p6 way to write «$SIG{WARN} = sub {$warned++};»? I'm a bit stumped and all I've got is a multi-line mess that causes an internal error.
19:49 flussence m: for ^10 { warn if .is-prime; CONTROL { } }
19:49 camelia rakudo-moar c2a57e: OUTPUT«Warning: something's wrong  in block  at /tmp/Ti8qSE2Bl6:1␤Trying to unwind over wrong handler␤»
19:49 flussence that's the error golfed down a bit
19:50 TimToady m: for ^10 { warn if .is-prime; CONTROL { .say } }
19:50 camelia rakudo-moar c2a57e: OUTPUT«Warning: something's wrong␤  in block <unit> at /tmp/dGYxdelD2A:1␤␤Warning: something's wrong  in block  at /tmp/dGYxdelD2A:1␤Trying to unwind over wrong handler␤»
19:50 TimToady m: for ^10 { warn if .is-prime; CONTROL { when * { .say } } }
19:50 camelia rakudo-moar c2a57e: OUTPUT«Warning: something's wrong␤  in block <unit> at /tmp/XbXY5Dna9F:1␤␤Warning: something's wrong␤  in block <unit> at /tmp/XbXY5Dna9F:1␤␤Warning: something's wrong␤  in block <unit> at /tmp/XbXY5Dna9F:1␤␤Warning: something's wrong␤  in blo…»
19:50 masak vendethiel: oh, camelia is running on an old Rakudo.
19:50 TimToady m: for ^10 { warn if .is-prime; CONTROL { when * { .say; .resume } } }
19:50 camelia rakudo-moar c2a57e: OUTPUT«Warning: something's wrong␤  in block <unit> at /tmp/uNtO3aZOCE:1␤␤Warning: something's wrong␤  in block <unit> at /tmp/uNtO3aZOCE:1␤␤Warning: something's wrong␤  in block <unit> at /tmp/uNtO3aZOCE:1␤␤Warning: something's wrong␤  in blo…»
19:50 masak why is camelia running such an old Rakudo? several hours.
19:50 TimToady m: for ^10 { warn if .is-prime; CONTROL { when * { .resume } } }
19:50 camelia rakudo-moar c2a57e: ( no output )
19:51 masak no, yesterday's, even.
19:51 TimToady probably the "forgiven" nqp bump
19:51 masak oh :/
19:52 TimToady just guessing though...
19:53 itz_ is there an OS independent way of getting file path separator?
19:53 flussence oh, it's called CX::Warn now. I was testing for «when X::AdHoc» still...
19:54 ugexe m: say $*SPEC.dir-sep
19:54 camelia rakudo-moar c2a57e: OUTPUT«/␤»
19:54 TimToady CX looks like some kind of mario-universe critter
19:55 itz_ ugexe: ty
19:55 masak m: say CX.WHAT
19:55 camelia rakudo-moar c2a57e: OUTPUT«(CX)␤»
19:55 masak m: say CX.WHO
19:55 camelia rakudo-moar c2a57e: OUTPUT«Last => (CX::Last), Next => (CX::Next), Proceed => (CX::Proceed), Redo => (CX::Redo), Succeed => (CX::Succeed), Take => (CX::Take), Warn => (CX::Warn)␤»
19:56 stanrifkin joined #perl6
19:56 masak m: say CX.HOW
19:56 camelia rakudo-moar c2a57e: OUTPUT«Perl6::Metamodel::PackageHOW.new␤»
19:56 lizmat itz_: '/'
19:56 masak oh, "Control eXception".
19:56 itz_ lizmat: I was worried about VMS ;)
19:57 stanrifkin What do you use as filename suffix for perl6?
19:57 lizmat ah, do we need to worry about VMS?
19:57 itz_ probably not
19:57 masak even if we need to worry about VMS, '/' has won and should be the default.
19:57 masak VMS should take the perf penalty for not having the default.
19:57 lizmat as we don't have a IO/Spec/VMS
19:58 lizmat in any case, the newio branch assumes just '/'
19:58 lizmat std: for ^10 { next my $x = 42 }
19:58 camelia std 28329a7: OUTPUT«Potential difficulties:␤  $x is declared but not used at /tmp/75yooyof0g line 1:␤------> 3for ^10 { next my $x7⏏5 = 42 }␤ok 00:00 138m␤»
19:59 lizmat std: my $x; for ^10 { next $x = 42 }
19:59 camelia std 28329a7: OUTPUT«ok 00:00 139m␤»
19:59 lizmat m: my $x; for ^10 { next $x = 42 }; say $x
19:59 camelia rakudo-moar c2a57e: OUTPUT«42␤»
20:00 lizmat I was just going to commit a patch that would do:
20:00 lizmat $ 6 'for ^10 { next my $x = 5 }'
20:00 lizmat Cannot call next(Int); none of these signatures match:
20:00 lizmat ()
20:00 lizmat (Label:D \x)
20:01 vendethiel lizmat: ... isn't that already the case?
20:01 vendethiel I mean, since your patch 4hours ago
20:02 lizmat yes, but then it would die at runtime
20:02 vendethiel oh :)
20:02 lizmat this would be at compile time (well, optimize time technically)
20:03 lizmat Perl 5 says:
20:03 lizmat $ perl -E 'my $x; while (1) { last $x = 42 }; say $x'
20:03 lizmat Label not found for "last 42" at -e line 1
20:04 lizmat so also not what you expect
20:04 lizmat yes...
20:05 lizmat (sorry, referring to "I guess that will break  "last $a = 42" reference by vendethiel just now)
20:06 vendethiel I guess "$x = 42, last" is the correct way to put it?
20:06 lizmat vendethiel: is there something wrong with: $a = 42; last ?
20:06 vendethiel before of @a = , tho
20:06 vendethiel lizmat: I just wanted a quick postfix if :)
20:07 lizmat yeah, "$x = 42, last if $foo" should work
20:07 lizmat and might as well be clearer as well ?
20:07 pauluu left #perl6
20:08 lizmat as well (hmm.... seem to be stuck as well)
20:14 dalek rakudo/nom: 6b99119 | lizmat++ | src/core/control.pm:
20:14 dalek rakudo/nom: Make next/last/redo foo fail at compile time
20:14 dalek rakudo/nom:
20:14 dalek rakudo/nom: KISS really, having a MMD candidate that just dies, makes it
20:14 dalek rakudo/nom: a runtime error.  Removing that candidate, makes it a compile
20:14 dalek rakudo/nom: time error.
20:14 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/6b99119939
20:15 * lizmat hopes TimToady agrees with this last change to next/last/redo
20:17 jercos okay, the other script error that goes up when throwing together a design.perl6.org clone, S26, is absent entirely from http://design.perl6.xyl.be/ but present in http://design.perl6.org/ so presumably hand-updated...
20:17 jercos oh, cygx left :-\
20:17 jercos ah well
20:26 mr_ron joined #perl6
20:27 firefish5000 joined #perl6
20:28 mr_ron where is flatmap documented.  I don't see it in the synopses or docs.perl.org
20:30 rjbs I didn't know/think p6 had a flatmap.
20:30 rjbs I appear wrong at least going by backlog, though.
20:31 masak it's fairly new.
20:31 mr_ron can I add an RT that it needs to be documented?
20:31 masak I haven't grokked it well enough to understand whether it's the same as what the FP world calls flatMap
20:31 masak mr_ron: sure!
20:32 rjbs masak: I've used .flat.map a couple times, which already makes me predict confusion. :
20:33 colomon joined #perl6
20:33 itz_ [ptc]: I think I've fixed Text::VimColour now
20:35 RabidGravy that's weird, just rebuildin rakudo moar from scratch on FreeBSD 10.1 and interp.o took half an hour
20:35 itz_ RabidGravy: the issue is the version of clang .. try clang36
20:35 flussence I used to be able to backup $install/share/perl6/site/panda/state, and it'd automatically reinstall everything I had prior to a rakudo update, but that doesn't seem to work any more... did it stop using that file?
20:36 RabidGravy itz_, I'll try that when it's finished
20:46 dalek rakudo/nom: 079de37 | lizmat++ | src/core/control.pm:
20:46 dalek rakudo/nom: Make THROW a multi
20:46 dalek rakudo/nom:
20:46 dalek rakudo/nom: So that simple Nil throws don't have to throw Nil
20:46 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/079de374e0
20:50 lizmat argh!  I broked the JVM build
20:51 lizmat control operator crossed continuation barrier  :-(
20:51 smls What's the best way to make a class Foo so that  Foo.new($:name)  returns the *existing* object with that $.name if it already exists?
20:52 smls A my-scoped hash in the class mapping names to known objects, together with a custom method new which checks and extends that hash?
20:52 laouji joined #perl6
20:52 RabidGravy yeah that would work
20:53 lizmat CompUnit.new does something like: %instances{$path} //= self.bless(
20:54 lizmat to prevent race conditions, it does it inside a lock.protect() block
20:55 mr_ron left #perl6
20:55 smls ok, thanks.
20:58 flussence oh, figured out the panda thing - my rebuild-rakudo script was looking for it in an ancient file path. never mind.
21:07 dalek rakudo/nom: 08b0e97 | lizmat++ | src/core/control.pm:
21:07 dalek rakudo/nom: Unbreak the JVM build
21:07 dalek rakudo/nom:
21:07 dalek rakudo/nom: Using MMD for THROW was a bridge to far.  So do the selections of
21:07 dalek rakudo/nom: the candidates manually by (different) name.
21:07 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/08b0e9780a
21:07 lizmat *too
21:07 koo6 joined #perl6
21:08 vendethiel lizmat: wow, that's a scary error message
21:08 vendethiel does that make any perl6 concept unimplementable on the jvm, btw?
21:08 vendethiel (continuations on the jvm?)
21:11 lizmat well, in combination with such low level things as take / return / next / last / etc.
21:11 lizmat there are apparently a number of gotcha's there
21:12 lizmat the current solution is just not as clean, but essentially the same
21:13 vendethiel lizmat: I see, thanks. I guess that's the price to pay to run on a VM *not* designed for your very malleable language :)
21:13 lizmat guess so  :-)
21:31 kurahaupo1 joined #perl6
21:31 masak night, #perl6
21:33 lizmat gnight masak
21:36 * lizmat also calls it a night
21:39 amurf joined #perl6
21:44 kurahaupo1 joined #perl6
21:47 skids left #perl6
21:47 vendethiel joined #perl6
21:50 dolmen joined #perl6
21:57 colomon joined #perl6
22:21 virtualsue joined #perl6
22:31 vendethiel joined #perl6
22:49 laouji joined #perl6
22:59 ribasushi joined #perl6
23:00 vendethiel joined #perl6
23:04 telex joined #perl6
23:05 spider-mario joined #perl6
23:13 skids joined #perl6
23:14 amurf joined #perl6
23:14 andreoss joined #perl6
23:23 Ben_Goldberg joined #perl6
23:23 kurahaupo1 joined #perl6
23:26 timotimo lizmat: did you see  # RT #122732 - control operator crossed continuation barrier
23:26 timotimo #?if jvm
23:26 timotimo right above the code you changed? :)
23:28 BenGoldberg_ joined #perl6
23:28 timotimo i like THROW-NIL
23:28 timotimo i mean
23:28 timotimo THROW with MMD would be nice, too. but having this is a good start
23:31 Ben_Goldberg joined #perl6
23:31 dalek rakudo-star-daily: 5322ff6 | coke++ | log/ (2 files):
23:31 dalek rakudo-star-daily: today (automated commit)
23:31 dalek rakudo-star-daily: review: https://github.com/coke/rakudo​-star-daily/commit/5322ff6033
23:31 dalek perl6-roast-data: 5f323e2 | coke++ | / (9 files):
23:31 dalek perl6-roast-data: today (automated commit)
23:31 dalek perl6-roast-data: review: https://github.com/coke/perl6​-roast-data/commit/5f323e2570
23:32 Patterner joined #perl6
23:43 BenGoldberg joined #perl6
23:48 ssqq joined #perl6
23:50 inokenty joined #perl6
23:51 tinyblak joined #perl6

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

Perl 6 | Reference Documentation | Rakudo