Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2014-06-05

Perl 6 | Reference Documentation | Rakudo

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

All times shown according to UTC.

Time Nick Message
00:00 japhb Gotcha
00:00 TimToady S09 is mostly inspired by PDL in the first place
00:00 japhb Right
00:00 TimToady as in "How can we make all the PDL-folk not be able to stand not switching to Perl 6" :)
00:01 japhb Heh
00:01 TimToady std: my $x = anon %{*}[*] of Int;
00:01 camelia std ec3d853: OUTPUT«ok 00:01 127m␤»
00:01 TimToady basically a constructor there...
00:02 TimToady std: my $x = anon %{Any}[3] of Int;
00:02 camelia std ec3d853: OUTPUT«ok 00:01 127m␤»
00:03 TimToady in some sense "anon" is the equivalent of other language's "new"
00:04 TimToady m: my $obj = anon Int $;  $obj++; say $obj
00:04 camelia rakudo-moar 609fb8: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/sok2_qC7wmâ�¤Unsupported use of $; variable; in Perl 6 please use real multidimensional hashesâ�¤at /tmp/sok2_qC7wm:1â�¤------> [32mmy $obj = anon Int $;[33mâ��[31m  $obj++; say $obj[0mâ�¤Â»
00:04 TimToady m: my $obj = anon Int $ ;  $obj++; say $obj
00:04 camelia rakudo-moar 609fb8: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/l6jdgcij2Râ�¤anon scoped variables not yet implemented. Sorry. â�¤at /tmp/l6jdgcij2R:1â�¤------> [32mmy $obj = anon Int $ [33mâ��[31m;  $obj++; say $obj[0mâ�¤    expecting any of:â�¤        scop…»
00:05 TimToady aww
00:07 mtj joined #perl6
00:07 avuserow joined #perl6
00:08 TimToady std: my $;
00:08 camelia std ec3d853: OUTPUT«[31m===[0mSORRY![31m===[0m�Unsupported use of $; variable; in Perl 6 please use real multidimensional hashes at /tmp/ZLCQisZTX1 line 1:�------> [32mmy $;[33m�[31m<EOL>[0m�Parse failed�FAILED 00:00 121m�»
00:08 TimToady hmm, coulda swore we fixed thatone
00:08 TimToady n: my $;
00:08 camelia niecza v24-109-g48a8de3: ( no output )
00:08 TimToady maybe it was in niecza...
00:08 xenoterracide joined #perl6
00:10 BenGoldberg std: my $ ;
00:10 camelia std ec3d853: OUTPUT«ok 00:00 122m␤»
00:12 TimToady maybe I just thought about fixing it and got discouraged when I realized I had to reinstall YAML and Moose yet again
00:14 TimToady Successfully installed Moose-2.1208
00:14 TimToady 35 distributions installed
00:14 TimToady and Try/Tiny and File/ShareDir
00:17 TimToady whose bright idea was it to implement a Perl 6 parser in Perl 5, anyway...?
00:19 japhb .oO( Mu: Your question assumes it was a bright idea ... )
00:19 japhb ;-)
00:23 hoverboard joined #perl6
00:40 * TimToady had forgotten how hard it is to write in the subset of Perl 6 that translates to Perl 5...
00:40 TimToady (not for the above check, but for duplicate chars in a cclass, which needs something like /(.) .*? $0/ )
00:42 rurban joined #perl6
00:47 jnap joined #perl6
00:53 sorear joined #perl6
00:56 TimToady eep, sprint has bought t-mobile...so much for my good phone service...
00:58 rindolf TimToady: hi, can I /msg you?
00:59 rindolf TimToady: that sucks.
00:59 mtj joined #perl6
01:01 sorear joined #perl6
01:04 hoverboard joined #perl6
01:09 timotimo glad to see async socket tests land, donaldh++
01:10 pdurbin d'oh! I'm on t-mobile too. huh. "Sprint and T-Mobile are both majority owned by large, international telecommunications groups" -- http://dealbook.nytimes.com/2014/06/04/sprint-a​nd-t-mobile-agree-on-terms-of-32-billion-deal/
01:12 sorear joined #perl6
01:20 rurban joined #perl6
01:24 fhelmberger joined #perl6
01:29 zengargoyle left #perl6
01:30 dalek std: 77c9884 | TimToady++ | STD.pm6:
01:30 dalek std: Detect repeat chars in character classes
01:30 dalek std: review: https://github.com/perl6/std/commit/77c988436a
01:30 dalek std: 0f2049c | TimToady++ | STD.pm6:
01:30 dalek std: Prefer bare sigils over special vars in decls
01:30 dalek std: review: https://github.com/perl6/std/commit/0f2049cf00
01:33 colomon Funny, I was just this evening wondering if repeat chars would be noticed.
01:33 sorear joined #perl6
01:33 colomon when I was committing sins against Unicode like this: $title .= subst(/<[ÔÖÒÓØŌÕ]>/, "O", :global);
01:34 FROGGS_ joined #perl6
01:38 klapperl_ joined #perl6
01:38 Su-Shee joined #perl6
01:40 revdiablo joined #perl6
01:42 telex joined #perl6
01:55 thou joined #perl6
02:01 skids joined #perl6
02:04 hoverboard joined #perl6
02:08 SamuraiJack_ joined #perl6
02:21 rurban joined #perl6
02:36 sorear joined #perl6
02:37 xragnar_ joined #perl6
03:11 sorear joined #perl6
03:19 aindilis` sorear: hey
03:20 aindilis` I've been trying to talk with you for a couple years now, do you have a moment?
03:24 rurban joined #perl6
03:37 uniejo joined #perl6
03:43 thou joined #perl6
03:46 araujo joined #perl6
03:48 Alula joined #perl6
03:54 rurban joined #perl6
04:04 araujo joined #perl6
04:06 raiph joined #perl6
04:12 potatogim joined #perl6
04:20 potatogim joined #perl6
04:22 SamuraiJack__ joined #perl6
04:23 bjz joined #perl6
04:23 jack_rabbit joined #perl6
04:25 potatogim joined #perl6
04:33 FROGGS_ joined #perl6
04:36 TimToady std: my $;
04:36 camelia std 0f2049c: OUTPUT«ok 00:01 122m␤»
04:37 TimToady std: / <[ '\a' .. "\z" ]> /
04:37 camelia std 0f2049c: OUTPUT«[31m===[0mSORRY![31m===[0mâ�¤Unrecognized backslash sequence: '\z' at /tmp/VtgTjSrxxr line 1:â�¤------> [32m/ <[ '\a' .. "\z[33mâ��[31m" ]> /[0mâ�¤Potential difficulties:â�¤  Repeated character (") unexpectedly found in character class at /tmp/VtgTjSrxxr …»
04:37 TimToady std: / <[ '\a' .. "\b" ]> /
04:37 camelia std 0f2049c: OUTPUT«Potential difficulties:â�¤  Repeated character (") unexpectedly found in character class at /tmp/xcV9CZa5El line 1:â�¤------> [32m/ <[ '\a' .. "\b" ][33mâ��[31m> /[0mâ�¤  Repeated character (') unexpectedly found in character class at /tmp/xcV9CZa5El line 1:…»
04:49 haroldwu joined #perl6
05:15 FROGGS_ joined #perl6
05:21 anaeem1 joined #perl6
05:27 rurban joined #perl6
05:28 rurban1 joined #perl6
05:31 kaleem joined #perl6
05:32 thou joined #perl6
05:32 grondilu_ joined #perl6
05:38 xinming joined #perl6
06:06 integral joined #perl6
06:06 integral joined #perl6
06:07 oetiker joined #perl6
06:07 oetiker_ joined #perl6
06:07 Celelibi joined #perl6
06:08 _sri joined #perl6
06:12 bjz_ joined #perl6
06:29 bjz joined #perl6
06:31 FROGGS_ aindilis`: you might have more luck when you talk to sorear via mail or so... he wasn't here for months
06:43 sergot morning! o/
06:43 virtualsue joined #perl6
06:44 FROGGS_ morning sergot
06:47 sergot FROGGS_: o/
06:48 SevenWolf joined #perl6
06:49 darutoko joined #perl6
06:53 denis_boyun_ joined #perl6
07:04 bjz joined #perl6
07:05 dalek nqp/p6level_slangs: 0820d91 | (Tobias Leich)++ | src/vm/moar/QAST/QASTRegexCompilerMAST.nqp:
07:05 dalek nqp/p6level_slangs: disable cursor type caching for now
07:05 dalek nqp/p6level_slangs: review: https://github.com/perl6/nqp/commit/0820d914a6
07:05 dalek nqp/p6level_slangs: d3566fd | (Tobias Leich)++ | src/QRegex/Cursor.nqp:
07:05 dalek nqp/p6level_slangs: try to re-obtain the cursor class
07:05 dalek nqp/p6level_slangs:
07:05 dalek nqp/p6level_slangs: That seems to help in !cursor_capture, but not for !protoregex. It looks like the
07:05 dalek nqp/p6level_slangs: call to self."$rxname"() explodes...
07:05 dalek nqp/p6level_slangs: review: https://github.com/perl6/nqp/commit/d3566fd2d2
07:06 brrt joined #perl6
07:07 PerlJam joined #perl6
07:08 zakharyas joined #perl6
07:08 dalek rakudo/p6level_slangs: f036260 | (Tobias Leich)++ | src/Perl6/Grammar.nqp:
07:08 dalek rakudo/p6level_slangs: add a method LANG2 where we can play with :shared
07:08 dalek rakudo/p6level_slangs:
07:08 dalek rakudo/p6level_slangs: We survive the call to the foreign statementlist token, but we die when trying to return
07:08 dalek rakudo/p6level_slangs: something from LANG2, or rather when handling the return value in the nqp-ish grammar.
07:08 dalek rakudo/p6level_slangs: review: https://github.com/rakudo/rakudo/commit/f0362604aa
07:09 denis_boyun__ joined #perl6
07:10 dalek rakudo/p6level_slangs: 11ef54f | (Tobias Leich)++ | COBOL.pm:
07:10 dalek rakudo/p6level_slangs: add slang example to play with
07:10 dalek rakudo/p6level_slangs:
07:10 dalek rakudo/p6level_slangs: This must be loaded by a 'use' statement, not with -M
07:10 dalek rakudo/p6level_slangs: review: https://github.com/rakudo/rakudo/commit/11ef54f7ad
07:11 FROGGS_ .tell jnthn I made branches in nqp/rakudo called p6level_slangs if you want to poke it... run it as perl6-m -I. -e "use COBOL; 1"
07:11 yoleaux FROGGS_: I'll pass your message to jnthn.
07:16 igorsutton joined #perl6
07:17 bjz joined #perl6
07:19 FROGGS_ .tell jnthn what if I create (and return) an NQPCursor in LANG2 after the call to the foreign statementlist?
07:19 yoleaux FROGGS_: I'll pass your message to jnthn.
07:25 fhelmberger joined #perl6
07:30 rurban joined #perl6
07:33 brrt work on the HTTP modules seems like its shaping up
07:34 pdcawley joined #perl6
07:36 kaare_ joined #perl6
07:37 moritz aye, sergot++ makes lots of progress and good commits
07:38 brrt fun stuff :-)
07:39 * brrt wants more tuits
07:40 brrt hmm... can't build nqp with my moar-jit branch
07:40 brrt that may just be my old checkout
07:41 virtualsue joined #perl6
07:41 virtualsue o/
07:42 moritz brrt: where's that branch?
07:42 moritz brrt: and can you please make dalek report it here and/or in #moarvm?
07:42 moritz see https://github.com/perl6/mu/bl​ob/master/misc/dalek-push.txt
07:45 sqirrel joined #perl6
07:47 brrt dalek reports on it in #moarvm :-)
07:48 brrt https://github.com/MoarVM/MoarVM/tree/moar-jit
07:52 moritz ok, great
07:53 kivutar joined #perl6
07:56 domination joined #perl6
07:59 oetiker joined #perl6
07:59 oetiker_ joined #perl6
08:01 denis_boyun___ joined #perl6
08:07 FROGGS_ joined #perl6
08:09 jnthn morning, #perl6
08:09 yoleaux 07:11Z <FROGGS_> jnthn: I made branches in nqp/rakudo called p6level_slangs if you want to poke it... run it as perl6-m -I. -e "use COBOL; 1"
08:09 yoleaux 07:19Z <FROGGS_> jnthn: what if I create (and return) an NQPCursor in LANG2 after the call to the foreign statementlist?
08:09 sergot jnthn: o/
08:10 brrt \o jnthn
08:11 FROGGS_ jnthn: when I return a %*LANG<MAIN>.'!cursor_init' it "succeeds", but of course my action method does not get called
08:11 FROGGS_ but still, nice to know what happens
08:17 domination left #perl6
08:19 * jnthn notices that brrt++'s blog ain't on http://planeteria.org/perl6/
08:19 brrt no... it isn't yet
08:19 moritz what's the URL?
08:19 moritz I think I can add it
08:19 brrt http://brrt-to-the-future.blogger.nl/
08:20 brrt that'd be awesome :-)
08:20 virtualsue i'm getting resolve 'stage failed for String::Koremutake: Project String::Koremutake not found in the ecosystem'
08:20 tadzik is it? :)
08:20 moritz brrt: uhm, looks like the wrong URL
08:21 tadzik oh, it is indeed
08:21 tadzik virtualsue: try 'panda update'?
08:21 virtualsue but i can see the module on the modules.perl6.org page
08:21 moritz blogspot.nl
08:21 * brrt is still confused about all the things called blogspot (or not)
08:21 * virtualsue has a look at panda
08:22 tadzik http://feather.perl6.nl:300​0/module/String;Koremutake it's tehre
08:22 virtualsue thanks tadzik
08:22 tadzik so panda should know about it if its DB is up to date
08:23 tadzik you're welcome
08:23 virtualsue panda update fixed it
08:25 moritz brrt: I've added yoru blog to http://planeteria.org/perl6/ but it'll likely take some time before it shows up
08:26 brrt i'll wait
08:27 dmol joined #perl6
08:27 moritz wait faster!
08:31 brrt :-)
08:31 rurban joined #perl6
08:33 rurban1 joined #perl6
08:34 donaldh joined #perl6
08:35 dayangkun joined #perl6
08:40 nwc10 dear all, does Swift have closures?
08:41 donaldh yes
08:42 nwc10 oh, interesting. Proper closures?
08:42 donaldh “Functions are actually a special case of closures. You can write a closure without a name by surrounding code with braces ({}). Use in to separate the arguments and return type from the body.”
08:43 donaldh numbers.map({
08:43 donaldh (number: Int) -> Int in
08:43 donaldh let result = 3 * number
08:43 donaldh return result
08:43 donaldh })
08:44 moritz nwc10: I haven't heard anybody complain that the closures aren't "proper", so I'll guess they are :-)
08:44 nwc10 OK. The caveat "proper" was because of what I'd recently learned about Python
08:45 kurahaupo joined #perl6
08:45 moritz it's actually an interesting idea to put the signature into the curlies
08:45 moritz because then the formal parameter isn't an exception to the scoping rules
08:46 moritz in p6, we write  -> $x { $x }, and the $x is once outside the curlies, which looks like a violation of the "{} are scope boundaries" rule
08:47 jnthn In that sense, so does sub foo($a) { }, however. :)
08:47 timotimo but then you expect you can put the parameters all over the place inside the curlies, much like our $^a vars
08:50 pecastro joined #perl6
08:51 dakkar joined #perl6
08:51 donaldh Swift has optional trailing closure syntax. Instead of someFunc( { ... } ) you can write someFunc() { ... }
08:53 timotimo that's kinda like ruby's blocks?
08:54 moritz jnthn: yes
08:54 moritz I'm not saying we should change Perl 6 (just for the record :-)
08:58 masak antenoon, #perl6
08:59 moritz \o masak
09:00 timotimo kasam o/
09:00 * moritz is drowning in yak wool at $work
09:03 jnthn Cool off with a yak tea!
09:04 * moritz thinks that at least tea should be vegetarian
09:04 masak I assume jnthn is referrint to https://en.wikipedia.org/wiki/Butter_tea
09:04 masak referring(
09:04 masak augh, referring*
09:06 jnthn masak: yes, that's what I was referrint( to.
09:06 masak heh.
09:07 * moritz would likely skip lunch if he drank a butter tea now
09:08 tadzik reffermint, is it like peppermint?
09:14 eternaleye joined #perl6
09:19 timotimo if someone had more experience with gobject, it could be cool to have a "automatically generate low-level perl6 bindings" tool/module/thingy
09:19 timotimo allegedly you can "just do that"
09:19 jnthn I've heard so too
09:20 timotimo though a high-level binding on top of those would probably still be desirable
09:22 kivutar joined #perl6
09:22 spider-mario joined #perl6
09:24 brrt joined #perl6
09:33 eternaleye joined #perl6
09:34 rurban joined #perl6
09:55 fhelmberger joined #perl6
10:28 dalek rakudo/nom: c0ef75e | jnthn++ | src/core/Supply (2 files):
10:28 dalek rakudo/nom: Implement Supply.on_demand.
10:28 dalek rakudo/nom:
10:28 dalek rakudo/nom: Provides an easy way to create on-demand supplies.
10:28 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/c0ef75e91d
10:28 dalek rakudo/nom: 7fd39c3 | jnthn++ | src/core/IO/Socket/Async.pm:
10:28 dalek rakudo/nom: Don't leak VM handle from async socket close.
10:28 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/7fd39c3273
10:29 aindilis` FROGGS_: thanks
10:29 dalek rakudo/nom: a83d819 | jnthn++ | src/core/IO/Socket/Async.pm:
10:29 dalek rakudo/nom: Use Supply.on_demand in sockets implementation.
10:29 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/a83d819384
10:30 dalek roast: 09c9b75 | jnthn++ | S32-io/IO-Socket-Async.t:
10:30 dalek roast: Add missing awaits to ensure correct test output.
10:30 dalek roast:
10:30 dalek roast: Also, due to improvements in IO::Socket::Async, connection failures
10:30 dalek roast: will always be delivered through a broken Promise, rather than maybe
10:30 dalek roast: being immediate or maybe breaking the Promise.
10:30 dalek roast: review: https://github.com/perl6/roast/commit/09c9b75f32
10:31 lizmat good *, #perl6
10:32 jnthn o/ lizmat
10:32 donaldh joined #perl6
10:32 lizmat jnthn: I assume Supply.for would also need to call on_demand, rather than .new, right>
10:32 lizmat ?
10:34 jnthn lizmat: Well, Supply.for currently implements the same pattern.
10:34 jnthn lizmat: That is, it does the work to run per tapping.
10:34 jnthn lizmat: As does interval
10:34 lizmat ah, ok
10:34 jnthn lizmat: It would be possible to re-implement Supply.for in terms of Supply.demand.
10:34 * lizmat is slowly waking up
10:34 rurban joined #perl6
10:35 jnthn lizmat: Not sure if it's worthwhile, though.
10:35 lizmat indeed...
10:35 lizmat ok
10:35 jnthn Also I think by law of minimum concurrency, Supply.for should also default to CurrentThreadScheduler.
10:36 lizmat ah, good one, yes
10:37 lizmat as would Supply.interval
10:37 jnthn No
10:38 jnthn interval *has* to schedule.
10:38 jnthn 'cus it's time based
10:38 lizmat ah, duh, even though each tap has its own  :-)
10:39 lizmat jnthn: would it be wise to create a new CurrentThreadScheduler object for each call to Supply.for ?
10:41 jnthn No, it's a singleton
10:42 jnthn lizmat: To be clear, it always means "schedule immediately"
10:43 jnthn lizmat: It's not like some kind of EventLoopScheduler or so that delivers to a single thread that is waiting for work.
10:43 jnthn Such a construct could be useful, mind...
10:44 lizmat hmmm.. I'm not seeing the singleton part when looking at the CurrentThreadScheduler / Scheduler code
10:44 jnthn lizmat: Singleton is maybe the wrong way to point it; it's more that it has no instance state, so any instance behaves just the same as the type object.
10:45 jnthn s/point/put/
10:45 jnthn So creating instances of it is just a waste.
10:45 lizmat m: say CurrentThreadScheduler.new.WHICH; say CurrentThreadScheduler.new.WHICH
10:45 camelia rakudo-moar 609fb8: OUTPUT«CurrentThreadScheduler|1398007388232​88␤CurrentThreadScheduler|139800738831856␤»
10:45 lizmat so no singleton
10:46 lizmat ah, ok, see what you mean
10:51 jnthn donaldh: With cancellation implemneted in Moar for listen, I'm now reliably passing all but the final test, which I guess is because read_bytes is NYI yet...
10:55 dalek rakudo/nom: 9644b26 | (Elizabeth Mattijsen)++ | src/core/SupplyOperations.pm:
10:55 dalek rakudo/nom: Make Supply.for default to CurrentThreadScheduler
10:55 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/9644b265bb
10:58 REPLeffect joined #perl6
11:04 sqirrel joined #perl6
11:09 grondilu joined #perl6
11:10 ivanshmakov joined #perl6
11:14 ivanshmakov joined #perl6
11:15 brrt joined #perl6
11:20 denis_boyun joined #perl6
11:26 kivutar joined #perl6
11:31 lizmat left #perl6
11:31 lizmat joined #perl6
11:35 rurban joined #perl6
11:50 dalek nqp: 2180903 | jnthn++ | tools/build/MOAR_REVISION:
11:50 dalek nqp: Bump to a MoarVM with async socket improvements.
11:50 dalek nqp: review: https://github.com/perl6/nqp/commit/2180903ba6
12:00 dalek roast: fb9fe03 | (Elizabeth Mattijsen)++ | S17-supply/ (32 files):
12:00 dalek roast: We don't need a CurrentThreadScheduler instance
12:00 dalek roast: review: https://github.com/perl6/roast/commit/fb9fe039cc
12:00 dalek roast: 7db5a80 | (Elizabeth Mattijsen)++ | S17-supply/delay.t:
12:00 dalek roast: Fudge Supply.delay pending further investigation
12:00 dalek roast: review: https://github.com/perl6/roast/commit/7db5a80e1e
12:00 dalek rakudo/nom: 408ebb9 | jnthn++ | tools/build/NQP_REVISION:
12:00 dalek rakudo/nom: Bump to NQP/Moar with async socket improvements.
12:00 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/408ebb9738
12:00 dalek rakudo/nom: 13ffc9e | jnthn++ | t/spectest.data:
12:00 dalek rakudo/nom: Run IO-Socket-Async.t on MoarVM.
12:00 dalek rakudo/nom:
12:00 dalek rakudo/nom: May work on JVM too, in which case can simply mark it "# conc" later.
12:00 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/13ffc9ea5e
12:02 prevost joined #perl6
12:03 ribasushi what is the status of perl6 => perl5 code translations, especially when it comes to grammars?
12:04 moritz ribasushi: I'm not aware of any such translation, just some compilation
12:04 moritz perlito does it, to some extend
12:04 ribasushi can I have a p6 grammar/actionset as the primary source of logic which produces a data structure, and then have that automagically converted to p5 code to use?
12:04 moritz I can't say how good it is, though
12:05 ribasushi well, it's patchable I presume
12:05 ribasushi anything else to investigate apart from perlito?
12:05 moritz std.pm has its own traslatoer
12:06 moritz which is good enough to bootstrap STD.pm6
12:06 moritz https://github.com/perl6/std
12:07 jnthn errands, bbiab
12:11 lizmat afk for a while
12:16 sjn
12:16 timotimo
12:16 sjn \o/
12:16 rurban joined #perl6
12:16 * sjn is speechless
12:17 sergot hi sjn ! o/
12:18 timotimo ribasushi: we can't allow a good translator to exist, we need to make perl5 programmers unable to stand staying on perl5 :P
12:18 timotimo so they come over and help out with stuff; using, testing, porting, performance, articles, documentation, ...
12:18 sjn hello Filip :)
12:31 arnsholt o/
12:34 [Coke] huh: http://ebookily.org/txt/perl-6
12:42 [Coke] wish github had a commit viewer that let you hide whitespace.
12:44 jnap joined #perl6
12:47 FROGGS_ [Coke]: there is
12:49 FROGGS_ "Adding ?w=1 to any diff URL will remove any changes only in whitespace, enabling you to see only that code that has changed."
12:54 guru joined #perl6
12:56 rurban joined #perl6
12:56 timotimo [Coke]: that's like a publisher selling printed-out wikipedia articles on amazon
12:59 [Coke] timotimo: just surprised Perl 6 is on their radar. ;0
12:59 [Coke] er, :)
12:59 jnthn May just be automated...
12:59 timotimo automated crawling and such
12:59 timotimo surely
13:00 timotimo put as little human work in as possible, get the biggest profit from catching users who don't know what they're dealing with
13:01 donaldh jnthn: yes. what's weird is that the NYI exception goes missing and the last async test hangs.
13:02 [Coke] FROGGS_: that's awesome. now I wish there was a button that did that. :)
13:02 jnthn donaldh: Odd, with latest Moar all pass for me now.
13:02 jnthn Wait, you mean on JVM
13:02 jnthn ?
13:03 donaldh No, it was in answer to your message about Moar.
13:03 donaldh read_bytes NYT
13:03 donaldh NYI even
13:04 jnthn yeah, you need latest Moar
13:05 jnthn There's no NYI there any more 'cus it now works :)
13:05 sergot m: IO::Socket::INET.new(:host<google.pl>, :port<80>, :timeout<1>);
13:05 camelia rakudo-moar 13ffc9: OUTPUT«Type check failed in assignment to '$!port'; expected 'Int' but got 'Str'␤  in block  at src/gen/m-CORE.setting:893␤  in method BUILDALL at src/gen/m-CORE.setting:876␤  in method bless at src/gen/m-CORE.setting:865␤  in method new at src/gen/m-CORE…»
13:05 sergot m: IO::Socket::INET.new(:host<google.pl>, port => 80, timeout => 1);
13:05 camelia rakudo-moar 13ffc9: ( no output )
13:05 jnthn :port(80) # is also just fine.
13:05 donaldh When I wrote the test yesterday, Moar was hanging and I couldn't figure out where the NYI exception was being swallowed up. I guess it doesn't matter now. jnthn++
13:05 sergot jnthn++
13:06 jnthn donaldh: OK. I guess the changes I did maybe helped
13:06 jnthn donaldh: Because after the on_demand race-fixing thing but before I implemented the bytes thing, I was reliably getting the NYI.
13:08 sergot m: class A { has Int $.timeout is rw = 180;  sub a { IO::Socket::INET.new(:host<google.pl>, port => 80, timeout => $.timeout); } }; A.new.a;
13:08 camelia rakudo-moar 13ffc9: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/f5xun9Lpr6â�¤Variable $.timeout used where no 'self' is availableâ�¤at /tmp/f5xun9Lpr6:1â�¤------> [32mle.pl>, port => 80, timeout => $.timeout[33mâ��[31m); } }; A.new.a;[0mâ�¤    expecting any …»
13:08 donaldh k. That explains it. I'll pull the latest of __everything__
13:08 jnthn OK. Hopefully then it passes cleanly for you :)
13:09 sergot m: class A { has Int $.timeout is rw = 180;  sub a { IO::Socket::INET.new(:host<google.pl>, port => 80, timeout => $.timeout); } }; my $a = A.new; $a.a;
13:09 camelia rakudo-moar 13ffc9: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/BnR3Qnw3_gâ�¤Variable $.timeout used where no 'self' is availableâ�¤at /tmp/BnR3Qnw3_g:1â�¤------> [32mle.pl>, port => 80, timeout => $.timeout[33mâ��[31m); } }; my $a = A.new; $a.a;[0mâ�¤    ex…»
13:09 sergot Huh, what is wrong here?
13:10 sergot oh. sub...
13:10 sergot m: class A { has Int $.timeout is rw = 180; method a { IO::Socket::INET.new(:host<google.pl>, port => 80, timeout => $.timeout); } }; my $a = A.new; $a.a;
13:10 jnthn sergot: Trying to use a method call in a sub
13:10 camelia rakudo-moar 13ffc9: ( no output )
13:11 rurban joined #perl6
13:13 skids joined #perl6
13:17 dayangkun joined #perl6
13:20 * donaldh suspects he misused multi subs in IO-Socket-Async.t
13:20 jnthn I was a little surprised by the factoring, but it works. :)
13:21 donaldh I got annoyed typing out repeat clients that did slightly different things.
13:21 donaldh But no need for multi subs. Explicitly named subs would be more obvious :)
13:23 * donaldh admits he was also playing and learning
13:24 zengargoyle joined #perl6
13:24 sivoais joined #perl6
13:25 jnthn if playing be the food of new spectests, play on! :)
13:25 ivan`` joined #perl6
13:26 FROGGS_ [Coke]: maybe there is no button because ?w=1 implies ?no_python=1 and they don't wanna upset pythoniasts :o)
13:26 jnthn .oO( ?no_project_euler=1&no_lol=1 )
13:26 timotimo :80port
13:27 FROGGS_ m: IO::Socket::INET.new(:host<google.pl>, :80port, :1timeout);
13:27 camelia rakudo-moar 13ffc9: ( no output )
13:27 FROGGS_ haha
13:27 FROGGS_ that looks ugly :o)
13:27 jnthn oh my... :P
13:27 FROGGS_ (for this example)
13:27 timotimo aye
13:27 timotimo but i'm still amused we can do it like that
13:27 FROGGS_ yeah
13:27 [Coke] I am not amused. :|
13:28 FROGGS_ how many pair-ish constructors do we have now?
13:28 jnthn m: :!1amused # :)
13:28 camelia rakudo-moar 13ffc9: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/eMzVZbfoV1�Malformed False pair; expected identifier�at /tmp/eMzVZbfoV1:1�------> [32m:![33m�[31m1amused # :)[0m�»
13:28 moritz a negated pair can't have a value
13:28 timotimo at least they all start with : :)
13:28 FROGGS_ it already has
13:28 jnthn Yeah, that's the error I was expecting, but the one we got makes sense too :)
13:29 timotimo could easily parse :! <digit>+ and give a more helpful error message in that case
13:29 FROGGS_ [Coke]: it makes sense for Date.add( :1day )
13:29 FROGGS_ so perhaps for every kind of unit
13:29 jnthn Well, the goal was :1st working :)
13:30 timotimo i'm not 100% sure i like syntax like Date.add() :1day
13:31 timotimo it could very well end up confusing
13:31 timotimo but what do i know :)
13:31 moritz doctor, it hurts when I write :80port
13:31 FROGGS_ it is just a shorter notation for .add( day => 1 )
13:31 jnthn try writing it with your left hand instead...
13:31 FROGGS_ so, for that particular thing it is nice I think
13:32 timotimo i know what it does :)
13:37 [Coke] FROGGS_: i don't think it makes sense there, either. :P
13:37 FROGGS_ [Coke]: bah
13:37 FROGGS_ :P
13:37 [Coke] this is something that shouldn't have been generified, IMO.
13:38 [Coke] also: http://www.bbc.com/news/health-27695140 - camel infection led to mers death.
13:41 brrt joined #perl6
13:48 btyler joined #perl6
13:50 donaldh That camel has its handbrake on
13:52 pdcawley joined #perl6
13:54 donaldh do :1st :2nd :3rd all appear as different named attributes?
13:54 dalek rakudo-star-daily: 9aaf76c | coke++ | log/ (14 files):
13:54 dalek rakudo-star-daily: today (automated commit)
13:54 dalek rakudo-star-daily: review: https://github.com/coke/rakudo​-star-daily/commit/9aaf76ce63
13:55 jnthn m: sub foo(*%x) { say %x.perl }; foo(:1st, :2nd, :3rd)
13:55 camelia rakudo-moar 13ffc9: OUTPUT«("st" => 1, "rd" => 3, "nd" => 2).hash␤»
13:55 [Coke] no change in R* failures (moar, jvm)
13:55 [Coke] jnthn: if you want "1", wouldn't it be better to have it key off the 1 instead of the st?
13:56 [Coke] m: sub foo(*%x) { say %x.perl }; foo(:4th, :5th)
13:56 camelia rakudo-moar 13ffc9: OUTPUT«("th" => 5).hash␤»
13:56 [Coke] ^^
13:58 jnthn [Coke]: No, I think it's how it wants to be...
13:58 [Coke] ew.
13:58 jnthn [Coke]: Or at least, I don't think turning it around would help
13:58 jnthn It's the number that tends to vary
13:59 jnthn nd/st/th/rd is just a rare case
13:59 [Coke] so, it only works for unique suffixes, and you have to know the suffix (or grep the keys) to get the value.
13:59 jnthn It's just another way to pass a named arg
14:00 ivanshmakov joined #perl6
14:01 [Coke] is it specced? only thing I see for "1st" in S06 is for a trait modifier, not a named arg.
14:02 jnthn May be in S02 which specs colon pairs. Also used all over S05.
14:04 PerlJam :3rd looks nice, but :3nth not so much  :)
14:04 PerlJam It's used all over S05, but I don't recall that it was ever generalized
14:05 * [Coke] finds it in S02.
14:06 * [Coke] sighs and moves on.
14:06 PerlJam ah, it is in S02:3778
14:06 synopsebot Link: http://perlcabal.org/syn/S02.html#line_3778
14:06 [Coke] that doesn't look right..
14:06 donaldh from S05 it looks like 3rd should be an alias for nth(3) so could the same happen for named args?
14:07 [Coke] web site is showing the wrong line there.
14:08 moritz donaldh: I'm pretty sure that match/subst is what embeds the knowledge that nth and rd are synonymous, not something generic on the syntax level
14:08 jnthn donaldh: Well, you can always write :nd(:st(:rd(:$th))) or so...
14:09 [Coke] ah, and if you want more than one, you do :nth(4,5) (or, possibly :rd(4,5) )
14:10 PerlJam Hmm.  the wording in S02 kind of implies that :3.14foo might also work.  (3.14 is a "literal decimal number" is it not?)
14:11 [Coke] m: sub foo(*%x) { say %x.perl }; foo(:3.14th)
14:11 camelia rakudo-moar 13ffc9: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/tbwzH5NHAhâ�¤Malformed radix numberâ�¤at /tmp/tbwzH5NHAh:1â�¤------> [32msub foo(*%x) { say %x.perl }; foo(:3[33mâ��[31m.14th)[0mâ�¤    expecting any of:â�¤        number in radix notationâ�¤Â»
14:11 thou joined #perl6
14:14 PerlJam fwiw, I lean to the side that :3.14foo should not work and the spec should be updated.   That sugar seems more like saccharine to me.
14:14 jnthn Agree
14:16 zengargoyle i took 'decimal' to be base 10
14:16 PerlJam also, what about :-15foo ?
14:16 PerlJam (-15 is also a literal decimal number)
14:17 [Coke] m: sub foo(*%x) { say %x.perl }; foo(:-1971th)
14:17 camelia rakudo-moar 13ffc9: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/EgbKwDDad_â�¤Unable to parse expression in argument list; couldn't find final ')' â�¤at /tmp/EgbKwDDad_:1â�¤------> [32msub foo(*%x) { say %x.perl }; foo([33mâ��[31m:-1971th)[0mâ�¤    expecting …»
14:17 moritz just non-negative integers please :-)
14:18 FROGGS_ m: say :82967093802174692318592387465872​3694856392485639847569384756blurb
14:18 camelia rakudo-moar 13ffc9: OUTPUT«␤»
14:18 FROGGS_ m: say :82blurb
14:18 camelia rakudo-moar 13ffc9: OUTPUT«␤»
14:18 FROGGS_ m: say :blurb
14:18 camelia rakudo-moar 13ffc9: OUTPUT«␤»
14:18 FROGGS_ ahh
14:18 FROGGS_ -.-
14:18 PerlJam say ate it
14:18 FROGGS_ yeah
14:18 FROGGS_ m: say (:82967093802174692318592387465872​3694856392485639847569384756blurb)
14:18 camelia rakudo-moar 13ffc9: OUTPUT«"blurb" => -9223372036854775808␤»
14:19 moritz way to get negative numbers :-)
14:19 PerlJam heh
14:19 FROGGS_ there is your negative int :o)
14:20 dalek specs: 10d852e | duff++ | S02-bits.pod:
14:20 dalek specs: Clarify :16sweet a bit
14:20 dalek specs: review: https://github.com/perl6/specs/commit/10d852eb54
14:21 PerlJam m: say (:0foo)
14:21 camelia rakudo-moar 13ffc9: OUTPUT«"foo" => 0␤»
14:22 PerlJam (just checking :)
14:22 zengargoyle old rakudo star give a Malfored radix number error
14:22 PerlJam yeah, it's a newish featuer
14:23 PerlJam I think jnthn only implemented it yesterday
14:23 zengargoyle ah, that happens to me a lot :)
14:26 moritz well, in here we like to showcase new features with the bit
14:26 moritz *bot
14:27 zengargoyle i'm going to try and figure out the build process this weekend maybe, been relying on star and rakudobrew so far
14:29 treehug88 joined #perl6
14:29 PerlJam Have any of you seen https://www.youtube.com/watch?v=QQnVTKUSMaA  ?
14:29 PerlJam Perl 6 needs some of that.
14:30 PerlJam (I'm not sure that I agree with the premise that mojo does for Perl 5 what rails did for ruby, but the core idea of doing cools stuff and make it pretty seem right)
14:31 * moritz enjoyed http://hashrocket.com/blog/posts/x-men​-days-of-future-past-explained-in-git
14:44 donaldh Oh, I see what Supply.on_demand does. It restarts the listen on each new tap. jnthn++
14:45 * donaldh needs to implement IIOCancelable for AsyncServerSocketHandle and AsyncSocketHandle
14:45 donaldh rather: it delays listen until first tap.
14:46 jnthn Right.
14:52 pdcawley joined #perl6
14:52 anaeem1 joined #perl6
14:53 kivutar joined #perl6
14:53 bluescreen10 joined #perl6
14:55 guru joined #perl6
14:55 raiph joined #perl6
14:56 hoelzro has anyone written Supply::Depot yet?
14:57 timotimo Supply::Pylons and Supply::Overlords as well
14:57 hoelzro =)
14:57 hoelzro all of the error messages could be from SC
14:57 FROGGS_ Supply::Chartreuse?
14:57 tadzik won't that mean that it may never come? :o :(
14:59 * jnthn isn't sure asynchronous chartreuse is a good idea... :)
15:00 sjn Supply::Plural # Supplies feature!!
15:01 * sjn apologises for his horrible play on words
15:01 FROGGS_ *g*
15:03 oetiker joined #perl6
15:03 oetiker_ joined #perl6
15:04 dalek nqp: bbaf492 | (Donald Hunter)++ | src/vm/jvm/runtime/org/perl6/nqp/​io/AsyncServerSocketHandle.java:
15:04 dalek nqp: Handle unresolved addresss and return same error as moar.
15:04 dalek nqp: review: https://github.com/perl6/nqp/commit/bbaf49212b
15:04 dalek nqp: 7a36ff2 | (Donald Hunter)++ | src/vm/jvm/runtime/org/perl6/nqp/ (3 files):
15:04 dalek nqp: Implement cancel for AsyncServerSocketHandle.
15:04 dalek nqp: review: https://github.com/perl6/nqp/commit/7a36ff2c23
15:04 donaldh uh oh, there's a snake in my addresss
15:07 FROGGS_ :o9
15:07 FROGGS_ :o)
15:07 sqirrel joined #perl6
15:18 FROGGS_ m: use QAST:from<NQP>
15:18 camelia rakudo-moar 13ffc9: OUTPUT«===SORRY!===␤Unexpected named parameter 'line' passed␤»
15:18 FROGGS_ p: use QAST:from<NQP>
15:18 camelia rakudo-parrot 13ffc9: OUTPUT«===SORRY!===␤get_iter() not implemented in class 'Stash'␤»
15:18 FROGGS_ j: use QAST:from<NQP>
15:19 camelia rakudo-jvm 13ffc9: OUTPUT«(timeout)»
15:19 FROGGS_ dammit, I thought that was working once :/
15:20 FROGGS_ star-m: use QAST:from<NQP>
15:20 camelia star-m 2014.04: OUTPUT«===SORRY!===␤Unexpected named parameter 'line' passed␤»
15:20 FROGGS_ star-p: use QAST:from<NQP>
15:20 camelia star-p 2014.04: ( no output )
15:20 FROGGS_ huh
15:20 FROGGS_ star-p: use QAST:from<NQP>; say QAST::Op
15:20 camelia star-p 2014.04: OUTPUT«No such method 'gist' for invocant of type 'QAST::Op'␤  in sub say at gen/parrot/CORE.setting:13539␤  in block  at /tmp/VKW4RetciV:1␤␤»
15:22 jjk joined #perl6
15:33 anaeem___ joined #perl6
15:34 FROGGS_ ahh, found && fixed
15:38 dalek specs: 44dd6bd | (Nick Patch)++ | S15-unicode.pod:
15:38 dalek specs: [S15] typos
15:38 dalek specs: review: https://github.com/perl6/specs/commit/44dd6bd7b1
15:45 ajr joined #perl6
15:50 donaldh jnthn: did you say # conc was the annotation to get async tests to execute on both moar and jvm ?
15:51 moritz I'm pretty sure he did
15:52 donaldh it's used for supply so yes :)
15:53 jnthn yeah
15:55 donaldh https://github.com/rakudo/rakudo/pull/275 Enable async socket tests on jvm backend
15:56 dalek rakudo/nom: 6277d48 | (Donald Hunter)++ | tools/build/NQP_REVISION:
15:56 dalek rakudo/nom: Bump nqp revision to get async cancel on jvm.
15:56 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/6277d489b0
15:56 dalek rakudo/nom: e6d0182 | (Donald Hunter)++ | t/spectest.data:
15:56 dalek rakudo/nom: Enable IO-Socket-Async.t on jvm.
15:56 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/e6d0182edb
15:56 dalek rakudo/nom: c6ff677 | jonathan++ | t (2 files):
15:56 dalek rakudo/nom: Merge pull request #275 from donaldh/async_jvm
15:56 dalek rakudo/nom:
15:56 dalek rakudo/nom: Enable async socket tests on jvm backend
15:56 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/c6ff677665
15:56 treehug88 joined #perl6
16:00 carlin joined #perl6
16:01 xfix joined #perl6
16:01 carlin Hi
16:02 carlin I have updated Crypt::Bcrypt to use LibraryMake
16:02 xfix Hi.
16:02 ivanshmakov joined #perl6
16:02 carlin could someone please add it to Panda?
16:02 carlin https://github.com/carbin/p6-Crypt-Bcrypt
16:03 hoverboard joined #perl6
16:04 ivanshmakov joined #perl6
16:08 TimToady std: list(1,2,3): 4,5,6
16:08 camelia std 0f2049c: OUTPUT«ok 00:01 125m␤»
16:08 TimToady std: list(1,2,3): { #`[I'm a trailing closure] }
16:08 camelia std 0f2049c: OUTPUT«ok 00:01 127m␤»
16:09 TimToady nobody actually implements that yet...
16:09 * jnthn ins't sure what it does :P
16:10 TimToady just the same as if you'd said list(1,2,3,{})
16:10 jnthn ah
16:10 TimToady if we have some mechanism for moving a trailing closure to the & param, that would be independent
16:10 dalek ecosystem: 2811cbf | (Konrad Borowski)++ | META.list:
16:10 dalek ecosystem: Add Crypt::Bcrypt to ecosystem.
16:10 dalek ecosystem: review: https://github.com/perl6/e​cosystem/commit/2811cbf936
16:10 xfix carlin: done
16:11 TimToady and probably only available for a statically known final arg
16:11 xfix (you may want to wait a while, modules.perl6.org takes a while to update)
16:11 FROGGS joined #perl6
16:11 TimToady not gonna go as far as Ruby and have a SEKRIT argument
16:12 TimToady er, parameter
16:13 TimToady anyway, that's the syntactic direction we'd take if we deemed trailing closures to be in need of more implementation
16:13 TimToady but instead of list(1,2,3): {...} we generally just write (1,2,3).list: {...} currently
16:13 TimToady though, of course, that's a method call, not a function call
16:14 TimToady so not quite the same
16:14 TimToady something to be said for early binding on that
16:17 carlin xfix++, thanks
16:17 TimToady well, not with .list, but with .map and .grep
16:18 molaf_ joined #perl6
16:19 TimToady note that all the existing and proposed trailing closure syntaxes (other than control statements) require that colon to avoid TTIAR ambiguity
16:20 xfix Ruby does that without need for colon, but I guess that Perl 6's syntax is more complex.
16:20 TimToady Perl 6's syntax is more extensible, is the main reason
16:21 TimToady we looked really hard at doing it without the colon, and decided it wasn't worth it
16:22 TimToady the only way to make it work is to always require () on method calls
16:22 TimToady which we deemed to be too high a price
16:25 TimToady at least for standard p6; slangs will happen, of course :)
16:27 zengargoyle left #perl6
16:32 TimToady ribasushi: note that STD's translation of itself to Perl 5 results in code that is 13x bigger, because P5's engine doesn't really have the primitives to do what P6 needs
16:34 ribasushi which is perfectly fine... I think
16:34 ribasushi I mean take Parse::RecDescent - the compiled grammars are also huge
16:35 TimToady also, STD has to be written in a strict subset of P6 that is translatable to P5, which is kind of unfortunate at times
16:35 ribasushi basically I have a semi-grammar and a well defined output of this grammar, I want to get a foot hold into perl6 by migrating the thing to perl6, but keeping my perl5 end-users
16:35 ribasushi is the actual use-case
16:36 TimToady well, some viv variant may work for you in that case
16:36 ribasushi to define this even further
16:37 ribasushi I want to change "turn the homegrown LR grammar-joke-of-an-engine into a P::RD thing" to "turn the homegrown engine into a p6 project, which outputs p5 code to include in the cpan offering"
16:37 masak \o/
16:38 masak ribasushi++
16:38 TimToady I'll point out that STD isn't even capable of translating /(.).*?$0/ correctly yet, as I discovered yesterday :/
16:39 ribasushi well, there's room for improvement... I hope? :)
16:39 ribasushi so then to restate the question from earlier - what is my best (not necessarily fastest) road from A to B?
16:39 TimToady well, it'd work in a rule, but not in an action where you run a sub rx
16:40 TimToady I dunno; there aren't currently longterm plans to continue supporting STD, but hey, it's open source
16:41 ribasushi you mentioned "viv" earlier - what's that?
16:41 xfix The program that converts Perl 6 to Perl 5.
16:41 TimToady it's the vi to v translator :)
16:42 xfix http://perl6.org/compilers/std-viv
16:42 TimToady what takes STD.pm6 and turns it into STD.pm5
16:42 ribasushi ok
16:43 TimToady but you can see how snippets parse with 'viv -e' which will dump out the AST
16:43 Rotwang joined #perl6
16:43 TimToady sorear++ put a lot of work into making that pretty
16:45 FROGGS \o/
16:45 TimToady at this point, however, if we wanted a high-quality translation, we'd probably write a P5 backend for rakudo, so that most of the implementation really is in P6, rather than P5 patched together with chewing gum and baling wire
16:46 FROGGS my "COBOL" slang now makes a QAST::OP in its action method of statementlist that actually gets merged into the ast :o)
16:46 TimToady .oO(The amazing thing is not that the bear dances well, but that it dances at all.)
16:46 FROGGS so I have a hackish slang written in P6
16:46 FROGGS it uses the QAST nqp module, but the grammar and the action class is P6
16:46 TimToady FROGGS++
16:46 ivanshmakov joined #perl6
16:46 ribasushi TimToady: hmmmm
16:47 ribasushi how hard is that for a dedicated non-stupid individual?
16:47 ribasushi the "write a P5 backend for rakudo"
16:48 TimToady there's certainly a lot of prior art on what would need to be spat out P5-wise, so not too difficult, I guess
16:48 ivanshmakov joined #perl6
16:48 TimToady basically the lazy list emulation and the cursor model are already sitting there waiting to be reused with a different P5 emitter
16:49 TimToady and the LTM engine
16:49 ribasushi I assume you mean the stuff from inside std-viv
16:50 haroldwu joined #perl6
16:50 TimToady I mean the lib stuff already written in p5 that gets included with what you emit
16:50 rurban ribasushi: you could also try perlito
16:51 FROGGS ribasushi: besides de/serialization you have to make these ops available: https://github.com/perl6/nqp/​blob/master/docs/ops.markdown
16:53 smls joined #perl6
16:53 ribasushi rurban: I am aware of perlito, but it seems pretty... it seems like a "first prototype to throw away" kind of thing
16:53 smls Hi #perl6
16:53 yoleaux 3 Mar 2014 04:09Z <Mouq> smls: What font is used in http://imgur.com/a/y1dHo ? It looks like Helvetica or Arial but not quite...
16:53 yoleaux 3 Mar 2014 04:16Z <Mouq> smls: And I can't say how much I love the mockup btw. I hope you don't mind if I've done the smallest amount of work getting the docs to look like it. The only thing I note on it is that Routine may need to be broken up into sub-categories
16:53 smls oh, has it been that long
16:54 ribasushi FROGGS: btw liz mentioned you are working on v5 quite a lot lately
16:55 smls r: my Int @a; say @a ~~ Array[Int]
16:55 TimToady smls: yes it has, welcome back :)
16:55 camelia rakudo-{parrot,moar} 13ffc9: OUTPUT«False␤»
16:55 camelia ..rakudo-jvm 13ffc9: OUTPUT«Unhandled exception: Failed to load config.properties␤  in  (gen/jvm/stage2/NQPHLL.nqp:8)␤  in  (gen/jvm/stage2/NQPHLL.nqp:8)␤  in  (gen/jvm/stage2/NQPHLL.nqp)␤  in  (src/vm/jvm/ModuleLoader.nqp:78)␤  in load_module (src/vm/jvm/ModuleLoader.nqp:60…»
16:55 ribasushi FROGGS: what is the endgoal there if you take in consideration pure-perl stuff exclusively (there is more stuff writen in PP than you realize)
16:55 smls ^^ am I doing it wrong?
16:56 smls (smart-matching the type of a typed array, that is)
16:56 vendethiel .oO( are we erasing types yet )
16:56 TimToady smls: I believe that's a known bug
16:56 smls ok
17:00 hoverboard joined #perl6
17:05 smls re "13:37   [Coke]  this is something that shouldn't have been generified, IMO.":  Yeah, the generalized  :sweet(16) eqv :16sweet  looks like a solution without a problem that doesn't really "make easy things easy etc." to offset the WATs it causes.
17:05 denis_boyun_ joined #perl6
17:05 smls If anything, the  :1st/:2nd/...  regex modifiers should be generalized along a *different* axis: Keep them restricted to those particular number~suffix combinations, but translate them into  :n($number)  at the syntax level so any other operator/function that wants a named argument for a positional index can benefit from them.
17:06 smls That generalization would provide an actual benefit: It would significantly reduce the amount of boilerplate needed to imitate the regex operators' index handling, which as a side-effect will encourage consistency (both within Perl 6, and between built-in and module APIs).
17:06 smls For example, right now it is easy to trip over the fact that  s:2nd/A/B/  works, but  .subst(/A/, 'B', :2nd)  doesn't.
17:07 xfix I believe :2nd is here because of sed, but I agree it should be generalized.
17:08 prevost joined #perl6
17:17 kaleem joined #perl6
17:17 FROGGS ribasushi: it is meant to be *the* migration thingy
17:18 FROGGS move your code base with minimal effort to the rakudo platform, and then perhaps just extend it with P6-only stuff, and later rewrite parts when needed
17:19 ribasushi FROGGS: how far along are you / is there some rough "this is how you try things out" writeup?
17:21 FROGGS ribasushi: https://github.com/rakudo-p5​/v5/blob/master/STATUS-m.md
17:21 FROGGS I am working on making it installable more easily
17:21 FROGGS bbiab
17:35 flussence r: enum Square <_ X O>; class Board { has Player @.p; }; class Player { }
17:35 camelia rakudo-jvm c6ff67: OUTPUT«(timeout)»
17:35 camelia ..rakudo-moar c6ff67: OUTPUT«===SORRY!===␤cannot stringify this␤Error while constructing error object:Could not locate compile-time value for symbol Undeclared␤»
17:35 camelia ..rakudo-parrot c6ff67: OUTPUT«Error while constructing error object:Could not locate compile-time value for symbol Undeclared␤===SORRY!===␤Error while compiling, type X::Undeclared␤  what: Type␤  symbol: Player␤  suggestions: 0␤ at line 2, near " @.p; }; c"␤»
17:36 flussence if I take that enum out, I get a completely different (and more sense-making) error there...
17:36 flussence m: class Board { has Player @.p; }; class Player { }
17:36 camelia rakudo-moar c6ff67: OUTPUT«[31m===[0mSORRY![31m===[0m�Type 'Player' is not declared�at /tmp/yCw_GzKv25:1�------> [32mclass Board { has Player[33m�[31m @.p; }; class Player { }[0m�Malformed has�at /tmp/yCw_GzKv25:1�------> [32mclass Board { has [33m�[31mPla…»
17:37 flussence n: enum Square <_ X O>; class Board { has Player @.p; }; class Player { }
17:37 camelia niecza v24-109-g48a8de3: OUTPUT«[31m===[0mSORRY![31m===[0m��Malformed has at /tmp/rhJN5hSt34 line 1:�------> [32menum Square <_ X O>; class Board { has[33m�[31m Player @.p; }; class Player { }[0m��Parse failed��»
17:38 flussence when I was golfing that down, the 'Could not locate compile-time value for symbol' stayed but the thing after it varied
17:40 flussence seems like a rakudobug...?
17:44 vendethiel std: n: enum Square <_ X O>; class Board { has Player @.p; }; class Player { }
17:44 camelia std 0f2049c: OUTPUT«[31m===[0mSORRY![31m===[0m�In has declaration, typename 'Player' must be predeclared (or marked as declarative with :: prefix) at /tmp/j_TJxY4htR line 1:�------> [32mSquare <_ X O>; class Board { has Player[33m�[31m @.p; }; class Player { }[0m�Mal…»
17:44 brrt joined #perl6
17:45 xfix It would be fun if camelia would interpret ANSI color sequences, and convert them to IRC sequences.
17:47 brrt does irc have color sequences?
17:48 xfix Sure it does.
17:49 cognominal__ nice indeed
17:49 brrt what how i don't even
17:49 geekosaur brrt: originally defined by mirc
17:50 geekosaur search for "mirc color codes" for more information
17:50 geekosaur some of us use scripts in our clients that convert the ANSI to mIRC color codes
17:50 brrt i see
17:51 colomon Can't serialize an object of type Version
17:51 colomon in sub to-json at lib/JSON/Tiny.pm:45
17:51 colomon eleven broke emmentaler?
17:52 FROGGS colomon: /o\
17:52 sqirrel joined #perl6
17:52 FROGGS colomon: what do you do to get that?
17:52 colomon run smoker
17:52 colomon give me a moment
17:53 colomon .say: to-json %log;
17:54 colomon %log<_statistics> = {
17:54 colomon runtime  => $end - $start,
17:54 colomon compiler => $*PERL<compiler><name>,
17:54 colomon version  => $*PERL<compiler><ver>,
17:54 colomon datetime => DateTime.new(now).Str
17:54 colomon }
17:54 colomon maybe the issue?
17:54 FROGGS colomon: that looks more like lizmat++'s changes to $*PERL did it
17:54 colomon m: say $*PERL<compiler><ver>.WHAT
17:54 FROGGS m: say $*PERL<compiler><ver>
17:54 camelia rakudo-moar c6ff67: OUTPUT«(Version)␤Saw 1 call to deprecated code during execution.␤===========================​======================================​===============␤$*PERL<compiler><ver> called at:␤  /tmp/PU4AniGZpq, line 1␤Please use $*PERL.compiler.version instead.␤--…»
17:54 camelia rakudo-moar c6ff67: OUTPUT«v2014.5.147.gc.6.ff.677␤Saw 1 call to deprecated code during execution.␤===========================​======================================​===============␤$*PERL<compiler><ver> called at:␤  /tmp/wwyqhDt2oe, line 1␤Please use $*PERL.compiler.version…»
17:54 colomon FROGGS: might well be
17:55 FROGGS star-m: say $*PERL<compiler><ver>
17:55 camelia star-m 2014.04: OUTPUT«2014.04␤»
17:55 uniejo joined #perl6
17:55 colomon m: say $*PERL.compiler.version.WHAT
17:55 camelia rakudo-moar c6ff67: OUTPUT«(Version)␤»
17:55 colomon yeah, that's probably it
17:55 FROGGS yeah
17:55 colomon m: say $*PERL.compiler.version.Str
17:55 camelia rakudo-moar c6ff67: OUTPUT«2014.5.147.gc.6.ff.677␤»
17:56 colomon should json be able to serialize classes?
17:56 colomon class objects, I mean?
17:56 FROGGS hmmm...
17:56 xfix Probably not, unless they define to JSON conversion, or something.
17:56 uniejo joined #perl6
17:56 flussence as in type objects?
17:57 flussence doesn't seem like there'd be a sane default for handling those.
17:58 FROGGS we could make it call .Str on things that are Cool perhaps...
17:58 colomon anyway, for know I've changed my local copy of emmentaler to use $*PERL.compiler.ver.Str, and started the smoke test again.
17:58 FROGGS err, nvm
17:59 xfix In JavaScript, JSON serializes objects ignoring inherited properties (with exception for Date, which defines toJSON, which causes it to be converted to string).
17:59 * colomon is trying to put off sorting out the nasty memory error the new $work library gives him in C++.
17:59 FROGGS jnthn: it seems that there are no nqp changes necessary for my slangy stuff btw
17:59 colomon JSON::Tiny should maybe check if an object has a to-json method defined.
18:00 xfix colomon: have you tried Valgrind?
18:00 colomon xfix: yes
18:00 colomon xfix: now I know exactly where in someone else's code the error is happening, without any understanding of what is going on.
18:00 xfix Debugging C++ isn't really fun. It's even less fun than C.
18:01 xfix Good luck figuring the issue, you will need it.
18:05 itz joined #perl6
18:05 pecastro joined #perl6
18:14 vendethiel colomon: try clang :)
18:16 xfix try -fsanitize=undefined
18:18 * masak .oO( -fantasize=undefined )
18:20 kivutar joined #perl6
18:22 dwarring joined #perl6
18:22 colomon vendethiel: I think I'm using clang? i686-apple-darwin11-llvm-gcc-4.2
18:22 * colomon may be confused on this front
18:23 vendethiel "llvm-gcc" seems kinda surprising no ? no idea
18:24 rurban joined #perl6
18:26 geekosaur colomon: that would not be clang
18:26 jnthn FROGGS: What changes does it need?
18:26 geekosaur it's gcc sitting on top of llvm, but its error messages will be gccish not clang-ish
18:27 FROGGS jnthn: https://gist.github.com/FR​OGGS/2da7263ffe79d2a6465c
18:27 FROGGS jnthn: I like it :o)
18:27 flussence aha, found something!
18:27 flussence m: enum A <X>; whoops
18:27 camelia rakudo-moar c6ff67: OUTPUT«===SORRY!===␤cannot stringify this␤Error while constructing error object:Could not locate compile-time value for symbol Undeclared::Symbols␤»
18:27 flussence m: enum A <Y>; whoops
18:27 camelia rakudo-moar c6ff67: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/2xU3BVRyQ2â�¤Undeclared routine:â�¤    whoops used at line 1â�¤â�¤Â»
18:27 * FROGGS awaits jnthns shock, then resignation, then the ok to apply it *g*
18:28 vendethiel that all sounds too familiar ...
18:28 flussence the enum's somehow making any use of X::* horribly confused.
18:28 FROGGS well, you don't have X::* anymore in the first case
18:28 FROGGS m: my class X { }; 1 1
18:28 camelia rakudo-moar c6ff67: OUTPUT«===SORRY!===␤Error while compiling, type X::Syntax::Confused␤ at line 2, near "1"␤Error while constructing error object:Could not locate compile-time value for symbol Syntax::Confused␤»
18:29 FROGGS m: enum A <X>;
18:29 camelia rakudo-moar c6ff67: ( no output )
18:29 FROGGS that should probably explode nicely?
18:29 flussence that one's reasonable and valid code though.
18:30 FROGGS but it is some sort of redecl
18:30 FROGGS I dunno
18:32 FROGGS jnthn: I did not expect a shock that makes you speechless :P
18:34 jnthn FROGGS: :P
18:34 jnthn FROGGS: Sorry, distracted ;)
18:35 FROGGS np *g*
18:35 jnthn FROGGS: Is that FOREIGN_LANG call in the use statement control?
18:35 FROGGS jnthn: what? it is only used when switching the to another grammar by changing $*MAIN
18:36 FROGGS if this was what you asked for
18:36 FROGGS so, only that one thing calls that method
18:37 zakharyas joined #perl6
18:37 FROGGS that is why I think it is okay to make this language switching a little bit more expensive, and let the regex compiler continue cheating
18:37 FROGGS because we will not switch that often
18:39 dalek rakudo/nom: 65f5f2c | (Tobias Leich)++ | src/Perl6/ModuleLoader.nqp:
18:39 dalek rakudo/nom: fix loading modules from NQP
18:39 dalek rakudo/nom:
18:39 dalek rakudo/nom: NQP's load_module method has no named params like 'line' or 'file', also it does
18:39 dalek rakudo/nom: not take an opts hash. This allows us to load QAST:from<NQP> again for example.
18:39 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/65f5f2caa1
18:39 jnthn FROGGS: Yeah, makes sense.
18:40 TimToady on the subject of :1day, I expect that to be written :day much of the time, at least where Cool and/or coercion is acceptable
18:40 TimToady .add(:day) ain't so bad
18:40 FROGGS jnthn: so, consensus given, I'd apply that patch as soon as v5 is turned into a P6 grammar+actions
18:41 tmn left #perl6
18:46 jnthn FROGGS: Yeah, I thin I'm OK with it. I don't think it'll be the final word on the area, but I suspect we need to explore some more real examples to understand it...
18:46 FROGGS yeah...
18:47 FROGGS ahh, also we need to use FOREIGN_LANG instead of LANG in token comp_unit, in case somebody loads a slang via -M, which is very handy
18:47 FROGGS only when $*MAIN has changed of yourse
18:47 FROGGS course
18:48 FROGGS I hope that works out with eval and other stuff in v5
18:49 [Coke] m: sub foo(*%x) { say %x.perl }; foo(:day)
18:49 camelia rakudo-moar c6ff67: OUTPUT«("day" => Bool::True).hash␤»
18:49 jnthn m: say +True
18:49 camelia rakudo-moar c6ff67: OUTPUT«1␤»
18:50 [Coke] if we auto+, then we have to deal with :day => "12"
18:50 FROGGS why?
18:51 FROGGS looks like a number
18:51 TimToady m: say "12".succ
18:51 camelia rakudo-moar c6ff67: OUTPUT«13␤»
18:52 FROGGS m: say Date.today.later( :day )
18:52 camelia rakudo-moar c6ff67: OUTPUT«2014-06-06␤»
18:52 FROGGS m: say Date.today.later( day => "12" )
18:52 camelia rakudo-moar c6ff67: OUTPUT«2014-06-17␤»
18:53 FROGGS m: say Date.today.later( :2day )
18:53 camelia rakudo-moar c6ff67: OUTPUT«2014-06-07␤»
18:53 jsn_ joined #perl6
18:53 FROGGS m: say Date.today.later( :4days )
18:53 camelia rakudo-moar c6ff67: OUTPUT«2014-06-09␤»
18:53 FROGGS I love it :o)
18:53 TimToady but once we have coercive types, it'll probably be declared Int() :$day
18:53 [Coke] m: say Date.today.later( day => "123asdfasdf" )
18:53 camelia rakudo-moar c6ff67: OUTPUT«===SORRY!===␤Cannot convert string to number: trailing characters after number in '123⏏asdfasdf' (indicated by ⏏)␤»
18:53 [Coke] eh, all looks plausible.
18:53 FROGGS that is not P5 here :o)
18:53 [Coke] (I would prefer just having an int # of days, though. :)
18:54 brrt joined #perl6
18:54 masak [Coke]: how do you mean?
18:54 lizmat colomon: sorry to have broken emmenthaler, but I was just following spec
18:55 colomon lizmat: just following orders, eh?  ;)
18:55 FROGGS *g*
18:55 lizmat something like that
18:55 lizmat well, I think it points to a more general issue, really
18:55 FROGGS colomon: you had broken code, you just didn't know :P
18:55 lizmat currently, FROGGS++ has implemented CURL::Installation using JSON::Tiny
18:56 FROGGS that we do not have cpantesters yet?
18:56 FROGGS ahh
18:56 lizmat but I'm still not sure we can capture all that we need in that respect or proper S11 implementation
18:56 colomon FROGGS: I always have broken code.  It has been a way of life for decades now...
18:56 lizmat my prototype of ~ a year ago, basically used EVAL to deserialize the repo information
18:57 FROGGS lizmat: hmmmm, I don't see any problems in that area
18:57 FROGGS colomon: yeah... :/
18:57 lizmat FROGGS: at the moment, I'm just going by memories, and a hunch
18:57 FROGGS but I guess it is getting better stability wise
18:57 lizmat as soon as I have a proper example of an implementation issue, I will let you know  :-)
18:57 FROGGS *g*
18:58 FROGGS I'll listen :o)
19:01 jsn_ hey, haven't tried rakudo in a while (and can't at the moment), but what is the state of perl5 integration? what was that project called again?
19:01 FROGGS okay, turning v5 into pure Perl 6 will be a lot of work I guess :/
19:02 FROGGS jsn_: look ---^
19:02 FROGGS :o)
19:02 jsn_ heh
19:02 FROGGS *g*
19:02 FROGGS soon on CPAN!
19:03 FROGGS the state is that the basic syntax is supported, but many core modules are not
19:04 FROGGS so hardly any module from cpan can be used atm
19:04 jsn_ alright i found the repo, looks neat! can i ask how does it work? does it run inside the normal rakudo VM?
19:04 FROGGS I am working on making it easier to use, that is that I am making it installable via panda
19:04 telex joined #perl6
19:05 FROGGS jsn_: it compiles the Perl 5 code to an abstract syntax tree that will be executed by the VM, exactly like Perl 6 code ist turned into an AST and then gets run
19:05 btyler FROGGS: what's the plan for those core modules?
19:06 btyler many of them are XS based, right?
19:06 jsn_ oh cool! really appreciate this work. think it will be a great boon to adoption if common CPAN modules can be made to work without too much hassle
19:06 FROGGS btyler: rewrite them
19:06 jsn_ FROGGS: thx!
19:06 btyler FROGGS: ok, cool :) as p6, I assume
19:06 FROGGS btyler: because we have the most stuff already in rakudo's 'core'
19:06 btyler right
19:06 FROGGS jsn_: yes, that is the goal
19:07 FROGGS making it as easy as possible for people that either have working code or want to use known code or want to port code or ...
19:07 FROGGS :o)
19:08 FROGGS think of List::Util... we have all that stuff as methods most of the time
19:09 btyler that sounds like it'd be a fun excercise to get a handle on more of p6 without having to think up things to write -- can that process be started yet, or is it waiting on p5 to mature a bit?
19:10 btyler *p5 slang, that is
19:10 smls FROGGS: And as operators   (P5: List::Util::sum @foo,  P6: [+] @foo)
19:12 FROGGS btyler: I'd say: wait for it being a proper pandable module, until then it is a little hassle to install
19:12 FROGGS smls: right
19:13 sorear joined #perl6
19:15 lizmat colomon: is emmenthaler now broken beyond repair?  or is there something that can be done (e.g. by me)?
19:15 colomon lizmat: I'm testing a fix right now
19:15 colomon of course, a full smoke takes hours….
19:19 lue joined #perl6
19:21 * colomon just discovered a major memory bug in this library he has to use for $work
19:21 * colomon also did something wrong in his emmentaler patch
19:22 colomon m: say $*PERL.compiler.name.Str; say $*PERL.compiler.version.Str
19:22 camelia rakudo-moar c6ff67: OUTPUT«rakudo␤2014.5.147.gc.6.ff.677␤»
19:22 * colomon is smoking again
19:25 masak you know that can kill you.
19:25 FROGGS *groans*
19:25 araujo joined #perl6
19:25 araujo joined #perl6
19:25 dalek rakudo/nom: 28d6725 | (Elizabeth Mattijsen)++ | src/core/Process.pm:
19:25 dalek rakudo/nom: Make $*USER and $*GROUP on-demand
19:25 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/28d6725400
19:27 sorear joined #perl6
19:30 kivutar joined #perl6
19:35 lue joined #perl6
19:36 guru joined #perl6
19:49 masak lizmat++
19:54 * colomon has eliminated the $work memory error!  o/
19:55 FROGGS \o/
19:55 vendethiel colomon++ # fighting with C++
19:55 FROGGS colomon++
19:55 jnthn nice :)
19:55 FROGGS m: my int $i; $i++
19:55 camelia rakudo-moar 65f5f2: OUTPUT«Cannot modify an immutable Int␤  in sub postfix:<++> at src/gen/m-CORE.setting:4605␤  in block  at /tmp/kGCFDfKhDr:1␤␤»
19:55 FROGGS k
19:57 dalek perl6-roast-data: 9044565 | coke++ | / (6 files):
19:57 dalek perl6-roast-data: today (automated commit)
19:57 dalek perl6-roast-data: review: https://github.com/coke/perl6​-roast-data/commit/9044565564
19:58 [Coke] still no clean rakudo spec test runs.
19:58 [Coke] *stern glance*
19:59 PerlJam maybe if you had something flashing and red, it would get more attention  ;>
19:59 [Coke] %F
20:00 [Coke] #5ttff5
20:01 [Coke] PerlJam: I apparently cannot do that.
20:03 [Coke] WHAT
20:04 [Coke] looks like I'm supposed to be able to hit Control-C, then a number, then type, and get colored text. nope.
20:05 FROGGS m: use QRegex:from<NQP>;
20:05 camelia rakudo-moar 65f5f2: ( no output )
20:07 [Coke] seen szagab
20:07 [Coke] .seen szagab
20:07 yoleaux I haven't seen szagab around.
20:08 FROGGS .seen szabgab
20:08 yoleaux I haven't seen szabgab around.
20:08 [Coke] Gabor, whyfor you editing my questions on stackoverflow? please stahp.
20:09 FROGGS why would somebody do that?
20:09 [Coke] apparently he's a metacpan proselytiser
20:10 lizmat [Coke]: example link?
20:10 [Coke] http://stackoverflow.com/questions/19228355/can​-an-http-proxy-be-used-with-anyeventxmppclient
20:11 [Coke] I got no email that it had been done, just happened to notice it when hitting stackoverflow today for some other thing.
20:12 PerlJam Coke: you had search.cpan.org links and he changed them to metacpan links?
20:14 [Coke] ayup
20:15 PerlJam szabgab--
20:17 masak 'night, #perl6
20:17 lizmat gnight masak!
20:17 sergot masak: night night ! o/
20:18 dwarring [Coke]: http://szabgab.com/fixing-cpan-​links-from-stack-overflow.html
20:18 dwarring that's the driver
20:21 serpent7776 joined #perl6
20:27 FROGGS rurban++ # comment
20:30 kurahaupo joined #perl6
20:34 FROGGS "SC not yet resolved; lookup failed" :o(
20:41 aboutGod joined #perl6
20:43 pmurias joined #perl6
20:46 aboutGod left #perl6
20:48 lizmat [Coke]: fwiw, the last commits for jvm seem to have fixed the fail in t/spec/S17-supply/on.t
20:51 [Coke] yay!
20:51 [Coke] /awayish
20:53 lizmat m: once if try { note "foo" } { .say }   # /me likes being able to say "once if try"
20:53 camelia rakudo-moar 28d672: OUTPUT«foo␤Nil␤»
20:54 PerlJam lizmat: you've found TimToady out!  Perl 6 was initiated purely for poetic reasons  ;)
20:56 colomon smoke test worked: http://75.134.170.198:3001/report
20:59 vendethiel oh, did parrot merge a branch of some sorts?
20:59 flussence bummer, I've got red tests on there :(
21:01 brrt left #perl6
21:06 pmurias FROGGS: you are implementing COBOL now?
21:06 FROGGS pmurias: no... that was just a dummy package :o)
21:07 PerlJam It would be incredibly bizarre if Perl 6 became the goto language for businesses because of an easy migration path from COBOL to Perl 6.  :)
21:07 jnthn DUMMY PACKAGE DIVISION
21:08 FROGGS *g*
21:08 vendethiel PerlJam: life's wheel turns, and eventually gets back to where it started :)
21:09 huf sunlight, falling on your spear, deadly life is your ideal, life is like a wheel
21:10 PerlJam I liked it better when everyone riffed puns from what people said  ;)
21:13 FROGGS m: my token foo:sym['bar'] { . }
21:13 camelia rakudo-moar 28d672: OUTPUT«===SORRY!===␤Cannot find method 'ast'␤»
21:13 FROGGS bug^^
21:13 lizmat r: my token foo:sym['bar'] { . }
21:13 camelia rakudo-jvm 28d672: OUTPUT«(timeout)»
21:13 camelia ..rakudo-moar 28d672: OUTPUT«===SORRY!===␤Cannot find method 'ast'␤»
21:13 camelia ..rakudo-parrot 28d672: OUTPUT«===SORRY!===␤No such method 'ast' for invocant of type 'NQPMu'␤»
21:14 FROGGS it parses that colonpair syntax, but obviously does not make something for that matched branch
21:16 pmurias PerlJam: it's actually quite an old idea: http://use.perl.org/use.perl.​org/_Ovid/journal/39938.html
21:17 PerlJam wow
21:18 PerlJam (use.perl.org was still operational in Nov 2009?!?)
21:19 treehug88 joined #perl6
21:19 FROGGS I like the idea of implementing a COBOL slang, but for now (where now is like the next two years), I am trying to keep my hands on 'useful' stuff
21:22 FROGGS jnthn: when I compile a module A that uses B which uses C:from<NQP>, it fails with "SC not yet resolved; lookup failed"
21:23 FROGGS jnthn: any ideas what that might be about?
21:23 PerlJam FROGGS: speaking of useful stuff ... how's the CPAN/PAUSE changes coming along?
21:24 FROGGS PerlJam: my locally patched panda downloads MIRRORED.BY, ping these servers to build up a top 10
21:24 FROGGS then when you search for a namespace it goes downloading p6dists.json from one of the mirros
21:24 jnthn FROGGS: Does :from<NQP> result in code-gen to actually load the module?
21:24 zengargoyle joined #perl6
21:24 FROGGS (also p6provides.json and p6binaries.json)
21:25 PerlJam FROGGS: neat!
21:25 FROGGS but these json files are gzipped, and my sucky http client cannot download binary files correctly atm :/
21:26 FROGGS jnthn: good point...
21:26 jnthn FROGGS: gzipped 'cus of HTTP compression?
21:27 FROGGS jnthn: no, the server provides p6dists.json.gz files
21:27 jnthn ah, I see
21:27 FROGGS "Transfer-Encoding: chunked" was also nice :o)
21:29 FROGGS jnthn: in the P6 Actions a use statement for a module results in Nil
21:30 jnthn FROGGS: Sure, which is fine
21:31 jnthn FROGGS: But in Perl6::World, load_module registers a load dependency
21:32 FROGGS yeah, I see it...
21:32 FROGGS it also gets the %opts
21:41 FROGGS hmmm, at least it does not load the dependencies...
21:43 anaeem1 joined #perl6
21:51 * lizmat feels tired and is going to look at stuff tomorrow again
21:51 lizmat gnight #perl6!
21:53 FROGGS gnight lizmat
21:53 FROGGS gnight all
21:54 jnthn o/
21:54 * jnthn will call it a night too :)
21:54 jnthn See y'all tomorrow
21:55 bluescreen100 joined #perl6
22:27 skids joined #perl6
22:27 colomon everyone went to bed while I was nomming.
22:34 SevenWolf joined #perl6
22:36 kurahaupo good morning colomon
22:45 colomon \o
22:49 avuserow joined #perl6
22:57 dmol joined #perl6
23:30 cognominal joined #perl6

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

Perl 6 | Reference Documentation | Rakudo