Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2010-06-20

Perl 6 | Reference Documentation | Rakudo

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

All times shown according to UTC.

Time Nick Message
00:00 mberends joined #perl6
00:01 TimToady if that doesn't fix it, someone else will have to glare at it
00:01 diakopter I think I get it now.
00:01 diakopter the compile-time will need to be compiled, itself.
00:01 dalek rakudo: 683a745 | jonathan++ | t/spectest.data:
00:01 dalek rakudo: Turn on S14-roles/parameterized-mixin.t.
00:01 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/683a745c069a0be1514fa3da58d618f8ff2e2417
00:01 * TimToady ==> SFO
00:01 TimToady &
00:05 justatheory joined #perl6
00:14 * sorear appears in a puff of grey smoke
00:15 skids joined #perl6
00:15 lue *cough*
00:16 sorear hmm.  somebody summoned me...?
00:16 diakopter heh
00:24 crythias joined #perl6
00:40 masonkramer joined #perl6
00:55 * lue disappears in a puff of infrared smoke
00:56 redicaps joined #perl6
00:58 dalek nqp-rx: 6c707c6 | bacek++ |  (3 files):
00:58 dalek nqp-rx: Implement foo:bar<baz>() sub calls.
00:58 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/6c707c60f0ad8798b7cb1a3bac090e514ba0acad
01:04 dalek nqp-rx: 5142577 | bacek++ | src/stage0/ (4 files):
01:04 dalek nqp-rx: Bootstrap
01:04 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/51425776876a5b1f2688c8a83d78d1eded8e5cfe
01:04 dalek rakudo: f9943a2 | (Martin Berends)++ | src/Perl6/Module/Loader.pm:
01:04 dalek rakudo: [Perl6/Module/Loader.pm] correctly derive pre-compiled .pir filename from both
01:04 dalek rakudo: .pm and .pm6 source names
01:04 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/f9943a285ad7ff416c8eef0fe98414fe649ee96a
01:15 pugssvn r31388 | qiuhw++ | [rx.t] correct comments according to my understanding.
01:15 sorear OK
01:15 sorear by my reading of the last section of S04
01:16 sorear (my) sub foo =   BEGIN my &foo := sub; ENTER &foo := &foo.clone(&?BLOCK)
01:21 dalek nqp-rx: 78a6c1d | bacek++ |  (2 files):
01:21 dalek nqp-rx: Implement dotty version of colonpair named methods
01:21 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/78a6c1dc530b1c5ee59bef461cfe8860f4b4cada
01:21 dalek nqp-rx: b6defec | bacek++ | src/stage0/ (3 files):
01:21 dalek nqp-rx: Bootstrap files
01:21 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/b6defec922257e2072a1132160e641532880a78d
01:22 masonkramer_ joined #perl6
01:32 ashleydev joined #perl6
01:36 fridim_ joined #perl6
01:54 snarkyboojum joined #perl6
01:57 crythias left #perl6
02:09 * lue appears in a puff of microwave smoke
02:16 skangas joined #perl6
02:34 am0c joined #perl6
02:40 justatheory joined #perl6
03:03 Schwern joined #perl6
03:08 meppel joined #perl6
03:19 alester joined #perl6
03:20 Sarten-X joined #perl6
03:38 Schwern joined #perl6
03:43 Sarten-X joined #perl6
03:50 am0c joined #perl6
04:03 Sarten-X joined #perl6
04:04 [mark] joined #perl6
04:08 Schwern joined #perl6
04:12 * sorear reads Run# code
04:23 Sarten-X joined #perl6
04:28 wrac joined #perl6
04:30 wrac left #perl6
04:40 Saul_Goodman joined #perl6
04:42 gfx joined #perl6
04:43 fbg2315 joined #perl6
04:43 qmexvos5556 joined #perl6
04:43 gxps499 joined #perl6
04:43 wv853 joined #perl6
04:43 * qmexvos5556 Freenode is now FOSSNET!  This channel is now at irc.fossnet.info #perl6!
04:43 xjydqa6557 joined #perl6
04:43 xjydqa6557 Freenode is now FOSSNET!  This channel is now at irc.fossnet.info #perl6!
04:43 * xjydqa6557 Freenode is now FOSSNET!  This channel is now at irc.fossnet.info #perl6!
04:43 wv853 Freenode is now FOSSNET!  This channel is now at irc.fossnet.info #perl6!
04:43 qmexvos5556 Freenode is now FOSSNET!  This channel is now at irc.fossnet.info #perl6!
04:43 * gxps499 Freenode is now FOSSNET!  This channel is now at irc.fossnet.info #perl6!
04:43 * wv853 Freenode is now FOSSNET!  This channel is now at irc.fossnet.info #perl6!
04:43 vocz2729 left #perl6
04:43 qmexvos5556 Freenode is now FOSSNET!  This channel is now at irc.fossnet.info #perl6!
04:43 nhfg4001 left #perl6
04:43 oel8965 left #perl6
04:43 * wv853 Freenode is now FOSSNET!  This channel is now at irc.fossnet.info #perl6!
04:43 zgsp147 left #perl6
04:43 * gxps499 Freenode is now FOSSNET!  This channel is now at irc.fossnet.info #perl6!
04:43 lvhfi3472 left #perl6
04:43 TiMBuS well gee im convinced
04:44 fbtvueq5868 joined #perl6
04:44 fbtvueq5868 Freenode is now FOSSNET!  This channel is now at irc.fossnet.info #perl6!
04:44 xt9579 joined #perl6
04:44 * xt9579 Freenode is now FOSSNET!  This channel is now at irc.fossnet.info #perl6!
04:44 * xt9579 Freenode is now FOSSNET!  This channel is now at irc.fossnet.info #perl6!
04:44 * xt9579 Freenode is now FOSSNET!  This channel is now at irc.fossnet.info #perl6!
04:44 xt9579 Freenode is now FOSSNET!  This channel is now at irc.fossnet.info #perl6!
04:44 * fbtvueq5868 Freenode is now FOSSNET!  This channel is now at irc.fossnet.info #perl6!
04:44 fqszmx1529 joined #perl6
04:44 * fqszmx1529 Freenode is now FOSSNET!  This channel is now at irc.fossnet.info #perl6!
04:44 * fqszmx1529 Freenode is now FOSSNET!  This channel is now at irc.fossnet.info #perl6!
04:44 * fbtvueq5868 Freenode is now FOSSNET!  This channel is now at irc.fossnet.info #perl6!
04:44 * vwx2027 Freenode is now FOSSNET!  This channel is now at irc.fossnet.info #perl6!
04:44 * wlhqf3552 Freenode is now FOSSNET!  This channel is now at irc.fossnet.info #perl6!
04:58 meteorjay joined #perl6
05:14 Sarten-X joined #perl6
05:21 jaldhar joined #perl6
05:23 lue ow! That's...annoying
05:26 envi^home joined #perl6
05:30 sorear ow?
05:30 sorear apparently I screwed up the syntax.  jaldhar shouldn't have gotten in
05:33 pragma_ I'm always amazed when I see the old saying "operating system coders have no idea how to set up their e-mail clients" manifested.
05:34 sorear something as big as perl 6 could never exist without specialization
05:35 jaldhar sorear: I'd never join a club that would accept me as a member
05:36 pragma_ Too many funny squiggly characters have you guessing where to put them?
05:36 sorear yes
05:37 pragma_ You'd think a language like Perl would have built up your expertise with such symbols!
05:37 sorear also, in the 5+ years I've been on IRC, I've had to set a ban maybe twice
05:38 sorear freenode is a *very* friendly place compared to most of the internet
05:38 * sorear now reads ECMA-334 "C#"
05:54 Sarten-X joined #perl6
06:00 lue sorear: the continual stream of Freenode is now FOSSNET!!!
06:14 Sarten-X joined #perl6
06:35 Sarten-X joined #perl6
06:55 Sarten-X joined #perl6
07:06 azert0x joined #perl6
07:09 TiMBuS rakudo: subset Sadstr of Str where /':('/; multi is-sad(Sadstr $a){ 'he sad'.say }; multi is-sad{ 'he glad'.say }; my Sadstr $a = ":("; is-sad($a);
07:09 p6eval rakudo f9943a: OUTPUT«No applicable candidates found to dispatch to for 'is-sad'. Available candidates are:␤:(Str $a)␤:()␤␤  in main program body at line 11:/tmp/3USkusDh1h␤»
07:09 TiMBuS rakudo: subset Sadstr of Str where /':('/; multi is-sad(Sadstr $a){ 'he sad'.say }; multi is-sad(Any $a){ 'he glad'.say }; my Sadstr $a = ":("; is-sad($a);
07:09 p6eval rakudo f9943a: OUTPUT«he glad␤»
07:10 TiMBuS not glad :/
07:10 jaldhar joined #perl6
07:12 _jaldhar joined #perl6
07:13 Guest23195 joined #perl6
07:15 snarkyboojum joined #perl6
07:21 sawyer_ so, i started learning perl6 over the weekend
07:22 sawyer_ i have a few comments, and i'll be doing that in a blog post today
07:22 sawyer_ one thing i have to ask about... camelia?
07:25 Sarten-X joined #perl6
07:33 sorear a blog post is a great way to get ignored by me.  I don't follow random people waiting for them to ask questions
07:33 sorear if you want to get a reply, you should actually send your comments to a forum that the Perl 6 community reads
07:34 sorear as opposed to a blog, which I guess is a forum that people in your old community(s) read?
07:34 sawyer_ sorear, well, i wouldn't be writing this blog post to specifically get ignored by you. it's nothing personal :)
07:34 sawyer_ and i wouldn't be writing it to ask questions, since it's not the appropriate forum for that
07:34 sawyer_ it wouldn't include any questions, actually
07:35 sawyer_ the one thing i wanted to ask about, i asked. there was a question mark after the word "camelia" :)
07:35 sorear Unless you're secretly really famous, I doubt many of the people who already read your blog are Perl 6 experts
07:35 sorear is my only point
07:35 sawyer_ why would it matter?
07:35 sawyer_ i'm not asking them anything through the blog
07:35 sawyer_ i asked here
07:36 sorear ah.
07:36 sawyer_ i just said i'll be writing a blog post on perl6, in case anyone cares
07:36 sorear well carry on then
07:36 sawyer_ is all :)
07:36 sorear I'm pretty new here, I don't know much about camelia either
07:37 sawyer_ doesn't it seem... 7-year-old-esque?
07:37 sorear perl 6 is 9, not 7
07:37 sorear :/
07:38 sawyer_ :/
07:41 kensanata joined #perl6
07:45 Sarten-X joined #perl6
07:47 Saul_Goodman joined #perl6
07:53 fridim joined #perl6
08:04 Guest48141 joined #perl6
08:04 TiMBuS sawyer_
08:04 Sarten-X joined #perl6
08:04 TiMBuS http://svn.pugscode.org/pugs/misc/camelia.txt
08:05 moritz_ good morning
08:08 Mowah joined #perl6
08:08 sawyer_ TiMBuS, thanks
08:08 sawyer_ i like the idea of camelia, i whole-heartedly support it
08:10 TiMBuS the idea is nice, but it probably needs a shiny web2.0 version before perl6 is considered Serious
08:10 sawyer_ i just don't like the way it looks, the strong saturated colors (which were the same for the boxes on the website - but were changed since) and all
08:10 sawyer_ happy to hear it'll get a bit of a (natural) facelift :)
08:11 sawyer_ i think the whole idea of discouraging misogyny, having a happy-spirited colorful logo is really _really_ cool :)
08:12 Ross joined #perl6
08:13 constant joined #perl6
08:13 constant joined #perl6
08:25 Sarten-X joined #perl6
08:34 _sri any chance rakudo * will include non blocking sockets?
08:39 sawyer_ joined #perl6
08:42 TiMBuS hmm, my rakudo irc bot is choking when it reads utf8. how do i specify the encoding of incoming strings from a socket
08:43 TiMBuS also, on that topic, I would also really like to know about nonblocking sockets or threads for rakudo*
08:46 Sarten-X joined #perl6
08:49 M_o_C joined #perl6
08:50 clintongormley joined #perl6
08:52 tadzik joined #perl6
08:53 moritz_ they aren't really planned
08:53 moritz_ but if somebody submits a patch, it will get reviewed and possibly applied
08:55 plobsing joined #perl6
08:56 sorear _sri: I finished blizkost precisely because I wanted a feature complete socket API for rakud
08:56 sorear use POSIX:from<perl5>;
08:57 _sri damn
08:57 sorear well, not quite *finished*
08:57 sorear I more or less stopped improving it once POSIX worked...
08:58 sorear so it's a bit on the lacking side when it comes to passing complicated data structures back and forth
08:59 * _sri would like to port an actually usable http 1.1 server
09:00 _sri (and in turn a full client/server http 1.1 stack)
09:01 jnthn morning, #perl6
09:01 moritz_ morning jnthn
09:05 Sarten-X joined #perl6
09:24 Su-Shee joined #perl6
09:25 Sarten-X joined #perl6
09:26 dalek rakudo: d6309ea | Whiteknight++ |  (8 files):
09:26 dalek rakudo: updates for the ns_func_cleanup branch that just merged in Parrot
09:26 dalek rakudo: Also bump PARROT_REVISION.
09:26 dalek rakudo: Signed-off-by: Moritz Lenz <moritz@faui2k3.org>
09:26 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/d6309ea028690f66ffcbcf8f4aac1e8423054c36
09:39 moritz_ http://www.perlmonks.org/?node_id=845586
09:45 jnthn moritz_: #1 happens to me now and then
09:45 TimToady I believe I am in Columbus...
09:45 jnthn re-running "nmake" (or make) then continues the build and it works
09:45 moritz_ not in Alberta anymore?
09:45 jnthn moritz_: I've not quite worked out why yet. :-/
09:45 moritz_ :(
09:46 jnthn moritz_: It seems that it does not wait for the Parrot script that generates the dyn-ops to run to completion always.
09:46 Sarten-X joined #perl6
09:46 jnthn moritz_: So may be a platform-specific makefile dependency quirk. Or something.
09:46 jnthn :S
09:46 moritz_ but make isnt' parallel?
09:46 jnthn Not here.
09:46 jnthn That's why it feels so weird.
09:47 moritz_ indeed
09:48 masak joined #perl6
09:48 masak oh hai, #perl6
09:48 szabgabx joined #perl6
09:48 jnthn yayitsmasak!
09:48 moritz_ OH LOL
09:48 moritz_ MSAAK
09:49 masak true story: I was going with a bus yesterday, but missed it because the bus stop wasn't marked in the "departures" tableau, nor were there any signs. so I went back home and submitted a bus-bug. :)
09:50 moritz_ it seems that Math::Model + Math::RungeKutta + rakudo is too slow to brute-force calculate resonance curves
09:50 jnthn That's such a you way to do things. :-D
09:50 masak s/going/trying to find/
09:50 moritz_ masak: you submitted a bug about a bus error? :-)
09:50 masak s/with / :)
09:50 masak moritz_: :)
09:51 jnthn masak: rakudo handles again
09:51 masak anyway, I just stopped by to say OH HAI. will have lunch now, and then I'll be back.
09:51 masak jnthn: I saw! kudos!
09:51 jnthn oh shi...
09:51 masak today's work promises to involve Buf, Druid, and maybe a bit of pls/Emmentaler.
09:52 jnthn I have a patch that fixes up all the other cases
09:52 moritz_ but it breaks somethinig?
09:52 jnthn But I just git pull --rebase'd and I has conflicts. :-|
09:52 jnthn in p6opaque.pmc? who's insane enough to edit that?
09:52 moritz_ jnthn: I just pushed an updated to newer parrot, which changes parrot namespace function names
09:52 jnthn oh.
09:52 moritz_ so it will be easy to figure out
09:53 jnthn The Parrot team just love to rename stuff.
09:54 moritz_ they sure do
09:55 jnthn Normally to longer things. :-|
09:55 * jnthn just loves to make more keystrokes
09:56 mberends get your money's worth from your keyboard!
09:56 pugssvn r31389 | jnthn++ | [t/spec] Unfudge a bunch of handles tests that we now pass.
09:58 TimToady I don't think I've been in Alberta since I was about 16...
10:00 szabgabx rakudo: class YAPC is Cool; my $even is YAPC;
10:00 p6eval rakudo f9943a: OUTPUT«Modifications to classes are not allowed after instantiation.␤  in 'trait_mod:<is>' at line 12:CORE.setting␤  in main program body at line 11:/tmp/n6u_qsv9_y␤»
10:00 szabgabx rakudo: class YAPC is Cool {}; my $even is YAPC;
10:00 p6eval rakudo f9943a: OUTPUT«Modifications to classes are not allowed after instantiation.␤  in 'trait_mod:<is>' at line 12:CORE.setting␤  in main program body at line 11:/tmp/hY8Ult_vYg␤»
10:00 szabgabx rakudo: class YAPC is Cool {}; my YAPC $even;
10:00 p6eval rakudo f9943a:  ( no output )
10:00 dalek rakudo: 964d497 | jonathan++ | src/metamodel/ClassHOW.pir:
10:00 dalek rakudo: Give ClassHOW an attribute for storing handles fallback info, and a method for
10:00 dalek rakudo: adding new ones, to encapsulate such functionality neatly in the metamodel
10:00 dalek rakudo: rather than it being magic-y like in alpha.
10:00 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/964d497a52fdb2e3d7115accb1521a01f3e44443
10:00 dalek rakudo: 13fabba | jonathan++ | src/glue/handles.pm:
10:00 dalek rakudo: When we have a handles that doesn't match any of the criteria where we can
10:00 dalek rakudo: generate methods, add it as a fallback instead.
10:00 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/13fabba8520713151fb19663ebe2a6be33db9487
10:00 dalek rakudo: 5624fe3 | jonathan++ | src/ (3 files):
10:00 dalek rakudo: Bring dispatcher up to date with latest handles dispatch fallback handling
10:00 dalek rakudo: approach. Also, can't just go on truth for if we have a $!handles value because
10:00 dalek rakudo: type objects are undefined and untrue. With this, we handle all the cases the
10:00 dalek rakudo: alpha did again.
10:00 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/5624fe3b98182f2ae1e225701471564f380f1326
10:01 TimToady breakfast &
10:05 masak on Twitter, the general reaction to pmichaud++'s blog post seems to be "Yay! Finally a release of Perl 6!"
10:06 masak someone commented that "Christmas is coming early this year", for example.
10:06 Sarten-X joined #perl6
10:07 dalek rakudo: deef2c9 | moritz++ | t/spectest.data:
10:07 dalek rakudo: we pass another smart match test
10:07 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/deef2c9361bf3d6234e5aa33338c49686f5de7b8
10:07 jnthn masak: Positive. :-)
10:07 masak the distinction between spec and impl will always be eluding a proportion of the populace. of course, people do have the right not to care sufficiently to distinguish. :)
10:08 jnthn masak: Meh, it'll be Turing Complete, the rest is just sugar.
10:08 jnthn ;-)
10:08 moritz_ :-)
10:09 masak joined #perl6
10:13 dalek rakudo: cdc9433 | jonathan++ | t/spectest.data:
10:13 dalek rakudo: Remove test file from regressed list that was renamed and is now run.
10:13 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/cdc94335115331530503b46be3232142c6e17205
10:14 TiMBuS ok so, the only solution ive managed to think of for getting utf8 strings from a socket is to call $str.encode.decode
10:14 TiMBuS and i know this is not doing what i want it to do, is it
10:14 sorear rakudo doesn't really support unicode at the moment
10:14 sorear masak is halfway through a GSoC to fix that
10:14 TiMBuS it does if its coming from a utf8 terminal though
10:14 sorear only by a succession of very ugly hacks
10:15 TiMBuS =/
10:15 pugssvn r31390 | jnthn++ | [t/spec] Re-fudge S12-attributes/recursive.t for current Rakudo; we pass about half of it, and only 2 less tests than alpha.
10:15 sorear phenny: tell masak I want to implement doc comments in STD & write a documentation extractor.  Do you have any example inputs?
10:15 phenny sorear: I'll pass that on when masak is around.
10:15 TiMBuS its just when i get non-ascii sent over irc to my irc bot, it fails to parse it
10:15 sorear your IRC bot needs to handle any sequence of bytes
10:16 sorear not just characters
10:16 TiMBuS works when i do this encode/decode thing though
10:16 sorear like it or not, IRC encodings are not standardized
10:16 sorear I frequently get 8859-1, UTF-8, and KOI8-R on this network
10:17 TiMBuS i only ever really deal with utf8
10:18 dalek rakudo: 8e95548 | jonathan++ | t/spectest.data:
10:18 dalek rakudo: Turn S12-attributes/recursive.t on again.
10:18 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/8e955486442bcf402025077eb0391e82f4238752
10:19 TiMBuS i pretend everything is utf8. that is my terrible solution. i just need rakudo to do that as well instead of freaking out when its expecting ascii (or whatever it is expecting)
10:19 TiMBuS (づ。◕‿‿◕。)づ
10:19 arnsholt Rakudo should be able to do UTF-8 I think
10:20 moritz_ TiMBuS: what does socket IO return? a Buf or a Str?
10:21 TiMBuS im not even sure anymore D:
10:21 moritz_ .WHAT tells you
10:21 moritz_ if it's a Str, but an ä is two characters in that string, it's a bug in rakudo
10:23 TiMBuS its a Str, you want me to throw some characters at it and get the result of .chars
10:23 TiMBuS ?
10:23 moritz_ yes
10:23 TimToady rakudo: say 'ä'.chars
10:23 p6eval rakudo f9943a: OUTPUT«1␤»
10:24 moritz_ and now via socket IO
10:24 TiMBuS it would be wuicker if i wasnt rigging this into a working irc bot that has to connect and stuff D:
10:25 jnthn rakudo: my @x = 1,2,3; my @y; @y.push(@x); say @y.elems;
10:25 p6eval rakudo f9943a: OUTPUT«3␤»
10:26 Ross joined #perl6
10:26 tadzik hmm
10:26 tadzik rakudo: "ą".chars
10:26 p6eval rakudo f9943a:  ( no output )
10:26 tadzik rakudo: say "ą".chars
10:26 p6eval rakudo f9943a: OUTPUT«1␤»
10:26 tadzik strange, it's 2 on my #30
10:26 Sarten-X joined #perl6
10:27 arnsholt tadzik: Via the REPL, or in a file?
10:27 TimToady the REPL is known to get confused
10:27 tadzik arnsholt: REPL
10:27 tadzik hmm, I'll try from a file
10:27 TimToady it will work :)
10:27 arnsholt What TimToady said. Try putting it in a file
10:27 tadzik from file it works :)
10:28 TiMBuS yep its reporting ◕ as 3 chars
10:29 TimToady and ???? will report 4
10:30 moritz_ TiMBuS: then please submit a bug report
10:31 sorear eh?  it's well known behavior
10:31 whiteknight joined #perl6
10:31 TiMBuS TiMBuS!Hurf@anon-FF3EB461.static.exetel.com.au PRIVMSG #test :◕ : 66 chars
10:31 TiMBuS TiMBuS!Hurf@anon-FF3EB461.static.exetel.com.au PRIVMSG #test :a : 64 chars
10:31 TiMBuS theres the uh, proof i guess.
10:31 moritz_ sorear: not for sockets
10:32 tadzik where are the sockets btw? How does one use them?
10:32 sorear pugs: sub foo($x) { BEGIN my &y := sub() { say $x; }; &y; }; my $a = foo(1); my $b = foo(2); $a(); $b();
10:32 p6eval pugs: OUTPUT«*** No such subroutine: "&BEGIN"␤    at /tmp/G1PgQtfsLR line 1, column 15-47␤»
10:32 sorear pugs: sub foo($x) { my &y; BEGIN { &y := sub() { say $x; }; }; &y; }; my $a = foo(1); my $b = foo(2); $a(); $b();
10:32 p6eval pugs: OUTPUT«␤␤»
10:33 moritz_ tadzik: see t/spec/S32-io/IO-Socket-INET.t foran example
10:33 sorear pugs: sub foo($x) { sub y() { say $x; }; &y; }; my $a = foo(1); my $b = foo(2); $a(); $b();
10:33 p6eval pugs: OUTPUT«␤␤»
10:33 sorear rakudo: sub foo($x) { sub y() { say $x; }; &y; }; my $a = foo(1); my $b = foo(2); $a(); $b();
10:33 p6eval rakudo f9943a: OUTPUT«2␤2␤»
10:34 TiMBuS so is there a better 'fix' than my current one?
10:34 sorear alpha: sub foo($x) { sub y() { say $x; }; &y; }; my $a = foo(1); my $b = foo(2); $a(); $b();
10:34 TimToady pugs: sub foo($x) { my &y; BEGIN { &OUTER::y := sub() { say $x; }; }; &y; }; my $a = foo(1); my $b = foo(2); $a(); $b();
10:34 moritz_ TiMBuS: yes, patch rakudo
10:34 p6eval alpha 30e0ed: OUTPUT«1␤2␤»
10:34 p6eval pugs: OUTPUT«␤␤»
10:34 TiMBuS lol
10:34 tadzik moritz_: in rakudo?
10:34 sorear I think pugs' response is the most natural one; merely assigning a sub in BEGIN shouldn't be enough to make it cloned
10:35 TimToady between audreyt++ and Haskell the semantics of pugs are usually pretty clean
10:35 moritz_ tadzik: the file is in the pugs repo, but if you run 'make testable' in rakudo it downloads it for you
10:35 sorear Because, IMO, the pad cloner shouldn't care about what's stored in the protolexpad
10:35 sorear it should just copy the values
10:35 tadzik moritz_: but is it usable in Rakudo now?
10:36 moritz_ tadzik: for some value of "usable", yes
10:36 moritz_ tadzik: rakudo runs that test file
10:36 tadzik mhm
10:39 moritz_ hugme: tweet rakudoperl Rakudo now supports delegation via 'handles' again #perl6
10:39 * hugme hugs moritz_; tweet delivered
10:42 TimToady \o/ for sugar
10:47 Sarten-X joined #perl6
10:48 * moritz_ likes chocolate :-)
10:56 TimToady std: feeling better?
10:56 p6eval std 31378: OUTPUT«Can't locate object method "load_pad" via package "STD::P6" at STD.pm line 62221.␤FAILED 00:00 97m␤»
10:56 TimToady apparently not... :/
10:56 moritz_ rakudo: say cos(60, Angles)
10:56 p6eval rakudo 8e9554: OUTPUT«Could not find sub &Angles␤  in main program body at line 11:/tmp/D9Qi0TxTIu␤»
10:56 moritz_ rakudo: say cos(60, Angle)
10:57 p6eval rakudo 8e9554: OUTPUT«Could not find sub &Angle␤  in main program body at line 11:/tmp/Fv96AMYWCk␤»
10:57 moritz_ rakudo: say cos(60, Degrees)
10:57 p6eval rakudo 8e9554: OUTPUT«0.5␤»
10:57 TimToady .oO(can't trust those Angles...)
10:58 * moritz_ triggers an STD.pm rebuild on p6eval
11:00 moritz_ STD5PREFIX=stage1/ PERL5LIB=stage1/:. ./std CORE.setting
11:00 moritz_ Can't locate NULL.lex in @INC (@INC contains: stage1/ . /opt/perl-5.12.1/lib/site_perl/5.12.1/x86_64-linux /opt/perl-5.12.1/lib/site_perl/5.12.1 /opt/perl-5.12.1/lib/5.12.1/x86_64-linux /opt/perl-5.12.1/lib/5.12.1 .) at CursorBase.pm line 300.
11:00 moritz_ std FAILED 00:01 99m CORE.setting
11:00 moritz_ make: *** [stage1/.stamp] Error 1
11:04 TimToady make clean first?
11:04 moritz_ it did a make clean first
11:04 TimToady and make sure it's svnupped?
11:05 * moritz_ tries again
11:08 moritz_ still same error
11:09 TimToady must be something left over from before, somehow...hmm...lemme go find a plug so I can exercise my CPU
11:10 * moritz_ randomly removes stuff, svn up's and tries again
11:12 _sri btw. is there any interest in a stylized version of camelia?
11:14 moritz_ you mean, like a pictogram?
11:14 _sri as in web 2.0 facelift
11:15 * _sri is an illustrator by night
11:15 * moritz_ would love to sees some variants
11:16 * TimToady discovers that he has left is laptops power brick at home :(
11:16 moritz_ :(
11:16 TimToady *his
11:17 Sarten-X joined #perl6
11:17 Su-Shee _sri: I did one, someone else did one as well. ;)
11:18 Su-Shee well five or six if I remember correctly.
11:18 _sri are there any actual requirements for it to qualify as camelia?
11:20 TimToady lots
11:26 uniejo joined #perl6
11:30 patrickas joined #perl6
11:33 colomon TimToady: do you have a power brick plan?  If I recall correctly, the Batteries, Etc store in Ann Arbor has generic power bricks for a ton of laptops, I should be passing through there today on my way to Columbus...
11:35 TimToady I was gonna try the Radio Shack, but if you think you can find one there for a T61, I'd be much obliged
11:36 colomon T61, what brand?
11:36 Sarten-X joined #perl6
11:36 TimToady lenovo
11:36 am0c joined #perl6
11:37 TimToady about when would you know if they have it?
11:37 colomon okay, I'll see what I can do.
11:37 colomon I can probably call them noonish.
11:38 TimToady okay, lemme know if it doesn't pan out, and I'll try RS
11:39 colomon Sorry, Batteries Plus is the proper name of the store -- they have two locations in the Columbus area, too, according to the Intertubez.
11:39 colomon http://www.batteriesplus.com/Store_Details/161.aspx
11:39 TimToady thanks
11:39 colomon http://www.batteriesplus.com/Store_Details/162.aspx
11:40 colomon e-mail me (this user name at gmail.com) if you get one before three-ish, I'll check before buying.
11:40 TimToady mkay
11:41 TimToady off to de-airport &
11:43 masak joined #perl6
11:46 colomon pmichaud++'s Rakudo Star announcement currently #2 on Hacker News...
11:47 masak \o/
11:47 phenny masak: 10:15Z <sorear> tell masak I want to implement doc comments in STD & write a documentation extractor.  Do you have any example inputs?
11:48 masak sorear: yes, but they're still in a local branch that I'm rebasing quite liberally. can I produce something tailor-made for you, perhaps? what is it that you're doc-commenting?
11:49 astrojp joined #perl6
11:52 masak jnthn++ # restoring Rakudo master to alpha 'handles' capabilities
11:52 pugssvn r31391 | jnthn++ | [t/spec] Add a test for RT#66330 to walk.t. Also tweak a couple of tests that won't quite work; things passed into :omit and :include need to be a little more careful since they'll be invoked with Mu at some point, which in this case didn't end too well.
11:54 meppl joined #perl6
11:55 masak pmichaud++'s blog post is getting retweeted a lot. it's some kind of record for Rakudo publicity.
11:56 moritz_ doesn't seem to pick up too many votes on reddit though (hint, hint)
11:56 jnthn masak: It includes a solid date. ;-)
11:57 jnthn masak: I think it's the first to do so.
11:57 masak jnthn: yeah.
11:57 jnthn Woo, RT back below 640...
11:57 Sarten-X joined #perl6
11:58 masak upvoted on reddit.
11:58 masak strange that neither reddit or ycombinator has any comments.
11:59 moritz_ it takes some time for the trolls to gather :-)
11:59 masak that must be it :)
11:59 moritz_ hackernews isn't as bad as reddit in that regard
12:00 masak they have an explicit policy about being constructive. reddit doesn't, as far as I know.
12:01 masak I think it's a nice real-life example of the importance of "seeding" a community with positive values.
12:01 skangas joined #perl6
12:02 astrojp left #perl6
12:11 dalek rakudo: ee7620d | (Solomon Foster)++ | src/core/Numeric.pm:
12:11 dalek rakudo: Modify the Numeric version of infix:�<=>� to extend values with zeros, so that
12:11 dalek rakudo: (for Real $x) $x == $x + 0i.
12:11 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/ee7620db73446b05a7f5852eeeed88c1398dfcaa
12:13 masak hm. is dalek taking utf-8 and converting it to latin-1 along the way? :/
12:17 colomon loliblogged: http://justrakudoit.wordpress.com/2010/06/20/laziness-in-perl-6-much-easier/
12:18 Sarten-X joined #perl6
12:18 moritz_ colomon++
12:18 moritz_ that *is* nice
12:20 avar joined #perl6
12:21 kensanata joined #perl6
12:23 masak colomon: not sure `@positives = 1..*` is meant to be lazy. array assignment causes eager evaluation, if I understood correctly.
12:23 avar Is the "usable" rakudo release going to ship with the rakudo->perl5 interface?
12:23 masak colomon: if you want the lazy variant, you should use `<=`
12:23 moritz_ avar: yes
12:23 masak avar: I think so, yes.
12:24 moritz_ avar: http://wiki.github.com/rakudo/rakudo/whats-going-into-rakudo
12:24 avar ah, thanks
12:24 colomon masak: which, of course, is NYI
12:24 colomon (and is it actually <==  ?)
12:24 avar Is the gray line here the complete number of tests in the suite: http://rakudo.org/status  ?
12:24 colomon avar: yes
12:25 masak colomon: oh yes, of course. sorry :)
12:25 moritz_ <== is (like) lazy assignment, <<== lazy push
12:25 masak colomon: my point is that your post makes it seem that there's something NYI about list assignment in Rakudo. there isn't, IIUC.
12:25 colomon avar: or at least, the complete number of tests that the testing code sees.
12:26 avar right
12:26 moritz_ masak: S07 or S08 (the one talking about iterators) still states that infinite lists aren't to be eagerly evaluated upon list assignment
12:26 moritz_ masak: we have a deplorable lag in updating the spec to what we think should be spec
12:26 masak in that case, I stand corrected.
12:27 moritz_ I'm not sure if it's one of those items that changed
12:27 masak pmichaud would know.
12:28 cognominal jnthn, if I want the full backtrace back, how do I do?
12:28 colomon post updated.
12:29 masak colomon++
12:30 jnthn cognominal: in src/Perl6/Compiler.pir, rename backtrace method
12:30 cognominal thx
12:30 jnthn moritz_: I think pmichaud++ has plans to get the specs through in line with the implementation.
12:31 jnthn *brought
12:31 colomon Indeed he does.  :)
12:32 jnthn Another 11 passing tests coming up. :-)
12:32 colomon \o/
12:38 Sarten-X joined #perl6
12:38 mberends colomon++ # nice blog post :)
12:39 jnthn colomon++ # nice :-)
12:40 masonkramer_ joined #perl6
12:45 colomon there's 11 new passing tests.  :)
12:45 dalek rakudo: 7a05ae5 | jonathan++ | t/spectest.data:
12:45 dalek rakudo: Turn on S12-introspection/walk.t.
12:45 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/7a05ae5916be3647deb397692c1b46c7f5c86672
12:45 dalek rakudo: 97f2caa | jonathan++ | src/core/Mu.pm:
12:45 dalek rakudo: Various fixes to Mu.WALK.
12:45 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/97f2caadc26a6d20b76ac2c01f7a5843f7c4f420
12:46 pugssvn r31392 | colomon++ | [t/spec] Tests for mixing Real and Complex values in == and !=.
12:47 ggoebel joined #perl6
12:49 jnthn 1.infix:<+>(2)
12:49 jnthn ...does that even make sense?
12:49 moritz_ hum
12:49 masak don't think so.
12:49 moritz_ infixes aren't methods
12:49 jnthn (just ofund it in a test file and tempted to kill it)
12:49 masak infix operators aren't... what moritz_ said.
12:49 jnthn moritz_: Exactly.
12:49 * jnthn kills
12:49 jnthn --with-fire
12:49 moritz_ kill it DED: D E D DEAD.
12:49 masak --your-darlings
12:50 redicaps1 joined #perl6
12:50 redicaps1 left #perl6
12:51 pugssvn r31393 | jnthn++ | [t/spec] Re-fudge indirect_notation.t for Rakudo and toss some tests that make no sense.
12:54 * jnthn closes 1-year-old masakbug
12:54 jnthn moritz_: You applied http://rt.perl.org/rt3/Ticket/Display.html?id=75840 ?
12:55 moritz_ jnthn: yes
12:55 jnthn closing
12:55 masak jnthn++ # closing stuff
12:55 moritz_ didn't even know it was in RT, just found the link to the github commit in the backlog
12:56 jnthn :-)
12:57 dalek rakudo: 0adb7fc | jonathan++ | t/spectest.data:
12:57 dalek rakudo: Turn on the now re-fudged indirect-notation.t; will hopefully be able to unfudge
12:57 dalek rakudo: a bunch more of it soon, but good to test the things that do already work.
12:57 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/0adb7fc7e285742aa4d45b6fa6916bb7dd199a55
12:58 jnthn rakudo: class A { has @.m; }; A.new(:m(1,2,3)).m[2.0]
12:58 colomon rakudo: say NaN ~~ "NaN"
12:58 p6eval rakudo ee7620:  ( no output )
12:58 p6eval rakudo ee7620: OUTPUT«1␤»
12:58 colomon oooo
12:58 Sarten-X joined #perl6
12:58 jnthn rakudo: class A { has @.m; }; say A.new(:m(1,2,3)).m[2.0]
12:58 p6eval rakudo ee7620: OUTPUT«3␤»
12:59 jnthn woo, and that ticket can be given for spectests. :-)
12:59 * moritz_ quivers with anticipation
12:59 moritz_ that was... exaggerated :-)
13:02 redicaps left #perl6
13:02 ggoebel Happy Fathers' Day to all progenitors of Perl6!
13:03 masak rakudo: class A { has @.m; }; say A.new(:m(1,2,3)).m[2]
13:03 p6eval rakudo ee7620: OUTPUT«3␤»
13:03 masak rakudo: class A { has @.m; }; say A.new(:m[1,2,3]).m[2]
13:03 p6eval rakudo ee7620: OUTPUT«␤»
13:03 * moritz_ won't be a father until Feb 2011, if all goes right
13:03 masak moritz_: wow! crossing fingers.
13:04 moritz_ masak: thanks
13:04 masak we need more moritz_es in the world :)
13:05 * moritz_ expected a bit more biological background from masak; no cloning involved in natural, human reproduction :-)
13:05 TimToady in list context .. is supposed to turn into ... which is lazy
13:05 masak moritz_: it's the best approximation we have :P
13:06 Achilles333 joined #perl6
13:06 colomon TimToady: it's supposed to have the same output as ..., right?  it doesn't have to be implemented the same way... or does it?
13:07 masak moritz_: also, meiosis is a kind of cloning, although with a classic sexual-reproduction twist ;)
13:07 colomon (Mind you, I'm strongly considering ditching RangeIter and just directly using ... in the .. implementation.  But as far as I know, that's not required by Spec...)
13:08 moritz_ actually one can just calculate the value for a given index in a range
13:08 moritz_ for numbers that's straight-forward
13:09 moritz_ for strings... not so
13:10 TimToady no, doesn't have to be implemented the same way, but should still be lazy if used as a list
13:12 TimToady bbl &
13:12 dalek rakudo: 63b92f6 | jonathan++ | src/pmc/perl6multisub.pmc:
13:12 dalek rakudo: Remove comments about todos that are todone.
13:12 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/63b92f6599d5fae34ed15739b98c1885e7f7fb46
13:18 moritz_ masak: yesterday I implemented topological sorting for Math::Model. Thanks for leaving the note about in ufo :-)
13:18 synth joined #perl6
13:18 masak moritz_: you're welcome. :) I was positively surprised at how simple the algorithm is.
13:18 moritz_ it is indeed
13:18 jnthn Aye, it's easy.
13:19 Sarten-X joined #perl6
13:19 jnthn And once you understand taht, you understand Perl 6 multi dispatch. :-)
13:19 moritz_ jnthn: you make it sound so easy :-)
13:21 tri1 joined #perl6
13:21 jnthn It is...after you've implemented it. :-)
13:21 cognominal I wish I had a  rakudo compiler best practices book when trying to tamper with the compiler...
13:22 moritz_ dos: implement cool new features. Don'ts: don't break stuff
13:23 rv2733 joined #perl6
13:25 colomon moritz_: what's the full url for math::model?
13:25 moritz_ hugme: show Math-Model
13:25 hugme moritz_: sorry, I don't know anything about 'Math-Model'
13:25 moritz_ urks
13:25 * colomon should totally be playing around with it....
13:25 moritz_ http://github.com/moritz/Math-Model/
13:26 moritz_ colomon: I'm nearly finished with a blog post about it
13:30 masak colomon: when in doubt about the location of various Perl 6 projects, there's a neat little list at http://proto.perl6.org ...
13:31 Su-Shee joined #perl6
13:31 moritz_ http://perlgeek.de/blog-en/perl-6/physical-modelling.html
13:33 masak moritz_: cool! always nice to see Perl 6 producing graphics.
13:33 moritz_ is it understandable for a non-physicist?
13:33 masak moritz_: it's confusing that the three throwing curves are all on different axis dimensions and aspect ratios.
13:34 moritz_ masak: I know :(
13:34 masak moritz_: if I were you, I'd put all of them on the same scale.
13:34 moritz_ it's not something I can easily put into SVG::Plot :(
13:35 masak I understand that. especially if they're rendered separately.
13:35 masak couldn't you hack it locally just for the blog post?
13:35 Trashlord joined #perl6
13:35 masak hard-code the axes or something.
13:35 masak anyway, moritz_++
13:35 moritz_ hm
13:35 moritz_ hard-coding
13:35 moritz_ *evilgrin*
13:36 masak yet another soul corrupted. :>
13:38 Sarten-X joined #perl6
13:39 moritz_ you're so evil.
13:40 masak I'll take that as a compliment.
13:40 moritz_ that's how it was meant
13:40 * masak practices laughing with an echo
13:44 moritz_ blog post updated with cheating, masak++
13:45 masak moritz_: a great improvement.
13:45 hugme joined #perl6
13:45 moritz_ hugme: add colomon to Math-Model
13:45 * hugme hugs colomon. Welcome to Math-Model!
13:45 moritz_ just in case :-)
13:47 masak the fact that all those parabolas look the same modulo scaling (in the absence of air resistance) feels like a nice generalisation of the observation "first it goes up, and then it comes down again" :P
13:48 redicaps joined #perl6
13:49 tadzik joined #perl6
13:50 mjk joined #perl6
13:53 moritz_ :-)
13:54 moritz_ it follows directly from the fact that only linear equations were used to calculate it
13:55 masak I'll take your word for it.
13:56 moritz_ hey, give that back!</purl>
13:56 masak I usually have an intuition for such things, but here it fails me, it seems.
13:57 moritz_ scaling is a linear operation
13:57 moritz_ if you scale any factor in a linear differential equation, the solution is also just scaled
13:57 moritz_ wouldn't work if you had $:velocity**2 dependency, as is the case with air drag
13:58 masak ah.
13:59 Sarten-X joined #perl6
14:09 diakopter instead of banning a hundred million people (comcast), #freenode suggests in the future we do a temporary quiet of unregistered users instead
14:16 _sri http://kraih.com/camelia-sri.png # my interpretation of camelia :)
14:16 _sri not finished but you get the idea
14:17 moritz_ _sri++ # nice twist
14:19 Sarten-X joined #perl6
14:20 _sri if there's interest i'll finish it and put it under the right license :)
14:21 moritz_ _sri: I'd kinda like a collection of camelia sisters, where one can chose from
14:22 masak the Camelia Notes http://svn.pugscode.org/pugs/misc/camelia.txt seem to imply that for it to count as Camelia, it must have the P6 pattern on the wings.
14:23 masak not sure this butterfly was meant to depict Camelia; but it might be worth pointing out nevertheless.
14:24 _sri i'm an artist, i don't care about rules!
14:25 masak :)
14:25 * _sri paints the whole channel pink
14:26 moritz_ did you use p-ink to do that? :-)
14:27 * masak boos ;)
14:27 moritz_ hugme: tweet rakudoperl #rakudo star, a compiler + modules distribution of #perl6, to be released on July 29: http://use.perl.org/~pmichaud/journal/40407
14:27 * hugme hugs moritz_; tweet delivered
14:29 tadzik is 'use v6;' recommended only to not accidentally run the code with Perl5?
14:30 masak tadzik: you have my personal recommendation.
14:30 masak tadzik: sometimes I accidentally write 'perl' instead of 'perl6', and then it's a life-line.
14:30 moritz_ tadzik: when Perl 6 supports Perl 5 interop, you actually have to 'use v6;' because v5 will be the default
14:30 tadzik yeah, I've run onto it a few times
14:30 masak it's also good documentation. :)
14:30 moritz_ and what masak++ said
14:31 tadzik I see
14:31 moritz_ the error messages from perl 5 can be rather surprising if you use it accidentally, and don't have that v6 safeguard
14:31 tadzik and one more, in general the scripts should be named .pl or .p6?
14:32 * moritz_ prefers .pl
14:32 moritz_ but it doesn't really matter
14:32 whiteknight joined #perl6
14:32 masak the Reddit thread seems to be getting off to a bad start :( http://www.reddit.com/r/programming/comments/cgzkp/rakudo_star_a_usable_perl_6_to_be_released_by/
14:33 masak amazing how many simply parrot stale misunderstandings about Perl.
14:34 masak tadzik: I prefer not to give my scripts an extension at all. on Unix, executables generally don't have an extension.
14:34 masak tadzik: if I had to choose one, I'd go with .pl
14:35 tadzik Well, I like the extensions for vim to choose the syntax hilighting correctly
14:35 moritz_ # vim: ft=perl6
14:35 masak indeed.
14:35 tadzik yeah, I know. But it's easier to just name it .p6 imho
14:35 moritz_ tadzik: what file extension do you use for prolog?
14:36 tadzik I don't use prolog
14:37 masak tadzik: you're free to name the files however you like. just be prepared for other people doing the same. :)
14:37 tadzik :)
14:37 colomon I think most people are using .pl for Perl 6 files....
14:38 _sri masak: btw. the 3 dots on the wings are supposed to represent P and 6, thats why one is upside down ;p
14:38 Sarten-X joined #perl6
14:38 dalek rakudo: e298e50 | (Solomon Foster)++ | src/core/ (5 files):
14:38 dalek rakudo: Remove all existing numeric ACCEPTS methods in place of one new Numeric.ACCEPTS
14:38 dalek rakudo: method.  (Will replace a few of the older ones in a future patch, for
14:38 dalek rakudo: efficiency's sake.)
14:38 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/e298e50d6768315e3177d5d1f2929f9b5fc12e0b
14:39 masak _sri: oh! that *is* artistic.
14:39 _sri :D
14:45 masak rakudo: my Array of Int @box
14:45 p6eval rakudo ee7620: OUTPUT«Method '!select' not found for invocant of class ''␤  in main program body at line 11:/tmp/WoesoAyMqj␤»
14:45 masak this currently causes S02-builtin_data_types/declare.rakudo to fail two tests early.
14:45 * masak submits rakudobug
14:47 moritz_ http://ldami.blogspot.com/2010/06/rakudo-perl6-runs-on-win32.html btw
14:47 moritz_ it's a bit old, but I haven't noticed it before
14:49 jnthn masak: I...was sure I fudged those.
14:49 jnthn masak: They passed bogusly.
14:49 jnthn You sure you got latest test suite?
14:49 masak hm. maybe I need to svn up. hold on.
14:50 jnthn I can't, I need to leave...bbiab
14:50 masak :)
14:51 masak yeah, seems my t/spec folder was suspect.
14:51 redicaps left #perl6
14:51 redicaps joined #perl6
14:59 Sarten-X joined #perl6
15:02 masak sometimes I deplore the fact that I can no longer use &die to print things like usage messages in Perl 6. (because I don't want the backtrace.) instead, I use &note and then &exit.
15:02 masak I know the `die "usage message\n"` was an unforgivable exception -- and one that probably doesn't belong in Perl 6 in that form -- but it did have its uses.
15:03 colomon masak: can I use current proto with an installed rakudo?  I had trouble last time I tried that....
15:04 masak colomon: I do believe it's possible, but you have to tweak proto's config file after it's been automatically generated.
15:04 tadzik can one use proto without compiled parrot and rakudo sources lying around?
15:04 colomon so how do I generate the config file?
15:05 colomon tadzik: proto is designed to install rakudo / parrot for you.
15:05 masak colomon: it's generated the first time ./proto is invoked.
15:05 tadzik colomon: yes, but can it be used with rakudo/parrot installed separately?
15:05 colomon masak: errr... git doesn't seem to have a proto/proto
15:06 colomon perl6 proto.pl, maybe?
15:06 colomon or perl proto.pl configure proto
15:06 colomon ?
15:07 masak colomon: what? nonono.
15:07 masak you just run it. with perl, not perl6.
15:07 colomon with "configure proto" tagged on?
15:07 masak it has a shebang line, so you shouldn't even need the 'perl'. just ./proto
15:08 masak colomon: I shouldn't be giving instructions, actually. proto has changed too much since I knew how to operate it.
15:08 masak it's fully possible you need to write 'configure proto' nowadays. :(
15:09 colomon gack, still less than completely user friendly.
15:10 masak :(
15:10 * masak resolves to get pls up-and-running as soon as possible
15:10 colomon masak++_
15:10 masak as far as I'm concerned, proto is no longer maintained.
15:10 masak everyone has access rights to it, so if there's something you can do to make it work less badly right now, feel free.
15:10 colomon first, README combines the configure proto and install rakudo stages.  (minor)
15:10 masak but a better solution is on the assembly line.
15:11 masak colomon: again, patches welcome.
15:11 colomon then when you run the configure, it tells you it's created 'proto.conf', but not where it has created it.
15:12 colomon masak: if I get the tuits, I'll try to do some patches at YAPC::NA.
15:12 masak colomon: cool -- thanks.
15:13 colomon (right now, actively working on rakudo and trying to watch a 21-month-old, probably not a good time to also be patching unfamiliar code!)
15:14 masak don't overexert yourself. I want to emphasize that proto is now in the "being replaced" part of its life cycle.
15:16 ashleydev joined #perl6
15:17 colomon masak: don't work, I've got the "laziness is a virtue" part of Perl down solid.  ;)
15:18 masak that's the idea.
15:19 colomon and it goes 'splode!
15:19 Sarten-X joined #perl6
15:19 colomon Wynne:proto colomon$ ./proto.pl install Math-Model
15:19 colomon Building proto...done
15:19 colomon maximum recursion depth exceeded
15:19 colomon in 'postcircumfix:<{ }>' at line 1
15:19 colomon in 'postcircumfix:<{ }>' at line 1082:CORE.setting
15:19 colomon in 'postcircumfix:<{ }>' at line 1
15:19 colomon etc
15:20 moritz_ colomon: most common cause: %hash{$match-object}
15:20 moritz_ fixable with a ~
15:21 colomon at first glance, that doesn't seem to be it.
15:21 colomon ah, wait, just one level down
15:21 redicaps That is just what I got  by ./proto.pl install svg
15:22 colomon now I get a different error!  ;)
15:22 redicaps well, not exactly the same.
15:22 * moritz_ git clone'd all projects manually, and in each ran 'ufo && make install'
15:23 redicaps maximum recursion depth exceeded
15:23 redicaps in 'Iterable::list' at line 3351:CORE.setting
15:23 redicaps in 'Iterable::list' at line 3353:CORE.setting
15:23 redicaps in 'Any::flat' at line 1329:CORE.settin
15:23 colomon so that one was Installer.pm6, lines 629-630 need a ~ before the $0
15:23 moritz_ hugme: add colomon to proto
15:23 * hugme hugs colomon. Welcome to proto!
15:24 colomon error messages in Rakudo seem much nicer now, btw.
15:24 colomon Unable to open filehandle from path 'projects.state'
15:24 colomon in 'open' at line 4638:CORE.setting
15:24 colomon in 'Ecosystem::load-project-list' at line 127:/Users/colomon/.perl6/lib/Ecosystem.pm6
15:25 masak colomon: that's a known one. mberends--
15:25 masak colomon: just do touch on that file, and it should work.
15:25 colomon what directory?
15:25 masak current.
15:25 colomon ~/.perl6/proto
15:25 colomon ?
15:25 masak no, I think the one you're standing in.
15:25 masak but I'm not sure. :(
15:25 colomon okay, trying....
15:26 colomon hey, it claims it worked!
15:26 masak :)
15:26 redicaps colomon: How, I did not get it
15:27 redicaps Oh, I see
15:30 charsbar_ joined #perl6
15:36 colomon it definitely seems to have installed something...
15:36 colomon no chance to check, father's day atm.  ;)
15:37 Saul_Goodman joined #perl6
15:40 Sarten-X joined #perl6
15:54 zakame joined #perl6
15:57 Limbic_Region joined #perl6
15:59 Sarten-X joined #perl6
16:02 orafu joined #perl6
16:06 tadzik joined #perl6
16:09 frew joined #perl6
16:17 lue ohai o/
16:19 saaki joined #perl6
16:20 Sarten-X joined #perl6
16:21 masak lue: \o
16:31 ajs So, did anyone see those tests of mine for lexical conventions? Was I correct in identifying failures, or was I testing incorreclty?
16:34 * moritz_ didn't get around to review them yet
16:36 ajs OK, no worries. I know things are crazy
16:37 colomon TimToady: ping?
16:38 ajs Once I (et al.) feel more confident in my tests, what's the chance of getting commit on spectest svn? Would make it much easier, of course.
16:38 moritz_ ajs: just tell me you desired nick name and email address
16:39 ajs ajs ajs@ajs.com if possible
16:39 Tene So far, the policy has been "Anyone who expresses any interest in working on tests gets a pugs commit bit, whether they want it or not." ;)
16:39 moritz_ hugme: add ajs@ajs.com,ajs to pugs
16:39 * hugme hugs ajs. If all goes well you'll get an email soon
16:39 ajs oh nice
16:39 ajs Tene, heh
16:39 masak wow! hugme sends email now?
16:40 moritz_ it's traditiona to add yourself to AUTHORS in the first commit, testing your commit bit and all
16:40 moritz_ masak: hugme web-scrapes http://commitbit.pugscode.org/admin/project/Pugs/people, which in turn is supposed to send e-mails
16:40 Sarten-X joined #perl6
16:40 ajs sounds good
16:40 Tene masak: commitbit does, and hugme talks to commitbit, iirc
16:40 * colomon wonders if he ever remembered to add himself to AUTHORS for the pugs svn....
16:40 masak moritz_++
16:41 ajs hmm... problem
16:41 ajs followed the link in the email to set password, "This webpage is not available."
16:42 ajs "Error 312 (net::ERR_UNSAFE_PORT): Unknown error."
16:42 moritz_ ajs: try to remove the port specification from the URL
16:42 ajs ok
16:42 ajs seems to work
16:42 moritz_ \o/
16:46 ajs huh, even though I had no commit, I was already in AUTHORS ;)
16:46 masak a commit FROM THE FUTURE?
16:47 ajs I knew I shouldn't have written Time::Travel next year
16:47 masak :)
16:47 masak ajs: lue has allegedly made some mistake in the same category.
16:47 lue Ah, the wonderful timey-wimey ball
16:47 lue when will I do that? :)
16:48 masak it's not so much a time LINE as a time PRETZEL.
16:48 masak noms &
16:48 lue .oO(Oh dear, my TARDIS seems to be acting up. I'm in the year 1492)
16:50 ajs So, it looks like #?rakudo todo "description" before a test will cause it to be treated as a known failure?
16:50 Visitor99 joined #perl6
16:50 moritz_ yes
16:50 ajs Ah, I see the README now
16:51 ajs Mind if I check in that lexical conventions thing with the failures marked?
16:51 moritz_ please do
16:52 moritz_ ajs: what was the (wrong) port in your welcome email? 9999?
16:52 ajs 6666
16:53 moritz_ no idea where it got that diea from
16:53 moritz_ :(
16:53 moritz_ the only occurences that ack -a finds are in logs, and in the sqlite3 database
16:54 moritz_ etc/config.yml has Port: 80
17:00 Sarten-X joined #perl6
17:04 ajs huh
17:05 ajs anyway, I've moved my changes into S02-lexical-conventions/unicode.t and am running a full "make spectest" to see how it plays out. I'll check it in if all goes according to plan. I assume that normally, we're not expected to do a full spectest before each test commit, just run that test file?
17:08 Visitor99 left #perl6
17:09 moritz_ right
17:09 moritz_ make t/spec/S02-lexical-conventions/unicode.t
17:09 moritz_ should be enough
17:09 moritz_ that runs fudge automatically, if needed
17:10 * jnthn back
17:11 colomon TimToady: no T61 power supplies in Ann Arbor or the Columbus region (at batteries plus) but one was purchased an hour ago in Columbus, I'm hoping that was you.  Gotta run drive.
17:20 Sarten-X joined #perl6
17:22 molaf joined #perl6
17:23 PacoLinux joined #perl6
17:33 lue afk
17:36 Ross joined #perl6
17:37 _sri trading firstborn child for working non blocking sockets!
17:38 sorear hello #perl6
17:38 jnthn hi sorear
17:41 _sri http://kraih.com/camelia-sri.png # tweaked colors a bit
17:41 marcus__ joined #perl6
17:45 sorear phenny: tell masak declarations?  class, function, variable, you name it.  .pm6 -> .pod converter
17:45 phenny sorear: I'll pass that on when masak is around.
17:51 Sarten-X joined #perl6
17:54 moritz_ hugme: update
17:54 moritz_ hugme: reload
17:54 hugme moritz_: reloaded successfully
17:58 moritz_ hugme: show try.rakudo.org
17:58 hugme moritz_: the following people have power over 'try.rakudo.org': T⁣imToady, [⁣particle], c⁣olomon, j⁣nthn, m⁣asak, m⁣oritz_, p⁣michaud. URL: http://github.com/moritz/try.rakudo.org/
18:00 arnsholt Heh. in gnome-terminal the non-breaking spaces (or whatever they are, I forget) between the first and second characters in the names are actual spaces
18:03 ejs joined #perl6
18:07 tedv joined #perl6
18:11 jnthn arnshot: How broken. ;-)
18:11 Sarten-X joined #perl6
18:12 arnsholt jnthn: Indeed =)
18:14 sorear TimToady: Where do non-Perl6 classes fit into the type hierarchy?  Any?  Mu?  Cool?
18:15 jnthn sorear: fwiw, Rakudo treats them as Any at the moment.
18:15 jnthn sorear: Muchly because that's the default type constraint.
18:20 justatheory joined #perl6
18:31 Sarten-X joined #perl6
18:37 moritz_ http://nopaste.snit.ch/21416 next  week's contribution to Perl 6, feedback welcome
18:38 moritz_ http://moritz.faui2k3.org/tmp/tryrakudo.svg that's the image linked there
18:39 moritz_ phenny: tell masak http://nopaste.snit.ch/21416 feedback welcome
18:39 phenny moritz_: I'll pass that on when masak is around.
18:39 ejs left #perl6
18:40 lucs moritz_: Maybe you can mention  fail." );
18:40 lucs assert( null, "So will I." );
18:40 lucs Oops :)
18:40 lucs Take 2:
18:41 arnsholt moritz_: Cool. I like the idea
18:41 lucs moritz_: Maybe you can mention  http://ejohn.org/apps/learn/#1  as an example.
18:41 lucs (NB: great JS learning resource.)
18:42 moritz_ lucs: will do
18:51 Sarten-X joined #perl6
18:53 moritz_ hugme: add moritz to web
18:53 * hugme hugs moritz. Welcome to web!
18:57 _sri moritz_: how do you sandbox rakudo?
18:57 moritz_ _sri: selinux, hopefully
18:57 slavik what are the chances for complete rakudo for this year's cristmas?
18:58 moritz_ slavik: slim
18:58 slavik next year?
18:58 moritz_ better
18:58 _sri moritz_: ah, make sure to blog how you did that :)
18:58 slavik moritz_: I am wondering when there will be a production ready perl6 implementation :)
18:59 moritz_ slavik: production ready != finished
18:59 slavik moritz_: passed all perl6 specs is production ready for my uses and purposes
19:01 moritz_ slavik: that's quite a weird definiton of production ready
19:02 slavik would stable be better?
19:02 slavik basically, it should be something that wouldn't change behavior from day to day like it is likely to do now
19:02 moritz_ for me it's more important that it has a certain speed, produces helpful error message, and supports the IO operations I need
19:02 slavik yeah
19:03 slavik but so that =$*IN and IN.getlines() type of changes don't appear all of the sudden :P
19:03 moritz_ phenny: ask masak how t/hitomi/01-xml-parsing.t is supposed to work. It has a line 'use Hitomi;', but there's no Hitomi.pm to be found anywhere near...
19:03 phenny moritz_: I'll pass that on when masak is around.
19:05 sorear rakudo: Any.^methods.Str.say
19:05 p6eval rakudo e298e5: OUTPUT«reduce reverse list isa map min max first sort grep none values Numeric elems end Str all keys uniq classify pairs kv one ACCEPTS pick flat any Seq minmax does rotate join can PARROT bless WHENCE WHERE notdef  BUILDALL new Bool print say defined WALK item REJECTS BUILD clone
19:05 p6eval ..WHICH …
19:05 slavik oh wow, that is nice
19:05 sorear jnthn: how does that work?  how do we make any old Object PMC liskov for Any?
19:05 slavik can you define macros?
19:05 slavik hmm, I need to read some docs
19:10 [Coke] (rename) Sadly, we're trying to clean up a mess.
19:10 [Coke] p9
19:11 [Coke] ww.
19:12 Sarten-X joined #perl6
19:25 jnthn sorear: Meta-model just cheats.
19:25 jnthn sorear: in .isa
19:25 jnthn It spots it is foreign and just makes things work.
19:28 sorear jnthn: How about for method calls?
19:29 sorear rakudo: pir::root_new(<parrot ResizablePMCArray>).say
19:29 p6eval rakudo e298e5: OUTPUT«===SORRY!===␤The opcode 'root_new_p' (root_new<1>) was not found. Check the type and number of the arguments␤»
19:29 jnthn sorear: Don't have a solution for that at the moment.
19:29 sorear rakudo: pir::root_new__pp(<parrot ResizablePMCArray>).say
19:29 p6eval rakudo e298e5: OUTPUT«Method 'say' not found for invocant of class 'ResizablePMCArray'␤  in main program body at line 11:/tmp/Ad614a206Q␤»
19:29 jnthn sorear: Not sure if we should
19:29 jnthn I mean, if it's a foreign object...
19:29 jnthn It controls its dispatch.
19:30 * sorear wonders if augment class Any is legal
19:30 jnthn Yes
19:31 Sarten-X joined #perl6
19:35 FardadJalili joined #perl6
19:35 moritz_ I've just tried to start porting web to current rakudo
19:35 FardadJalili how can you make a slice from an array?
19:36 moritz_ it's mostly rather opaque to me hos stuff is supposed to work
19:36 moritz_ FardadJalili: @array[1, 2, 3]
19:36 FardadJalili moritz_: aah, was tryinh @array[1,3]. thanks again.
19:36 FardadJalili s/tryinh/trying/
19:37 moritz_ what's wrong with @array[1,3] ?
19:41 FardadJalili moritz_: gives me only the @array[1] element
19:41 moritz_ rakudo: my @a = <a b c d e f g>; say @a[1, 3]
19:41 p6eval rakudo e298e5: OUTPUT«bd␤»
19:41 moritz_ works here
19:42 moritz_ FardadJalili: how old is the rakudo you use
19:42 FardadJalili moritz_: seems to work in other places too, it's a bug from elsewhere in my program then
19:42 FardadJalili moritz_: my raduko is #30 ;)
19:43 moritz_ FardadJalili: should be new enough
19:43 sorear #30 is alpha right?
19:43 moritz_ nope
19:44 moritz_ it's the release from last Thursday :-)
19:52 Tene moritz_: working in a branch of the web repo, or just locally?
19:52 moritz_ Tene: in a branch
19:52 moritz_ Tene: called ng
19:52 Sarten-X joined #perl6
19:52 Tene 'k
19:52 Tene I don't have anything to do for the rest of today, so I might start working on that with you. :)
19:53 moritz_ Tene: I don't understand the routes code
19:53 Tene :(
19:53 spinclad joined #perl6
19:53 Tene I don't know that I've ever looked at it.
19:53 Tene ... there, I just got the broken box at work to stop complaining at me.
19:53 Tene Lemme look.
19:54 moritz_ Routes.pm line 21 and onwards is a bit confusing with inner and outer %_
19:55 Tene oh, that's kind of unfortunate.
19:56 moritz_ and rakudo has problems with placeholders inside methods
19:56 moritz_ rakudo: class A { method m { my $c = { $:foo } } }; say A.new.m.(:foo).perl
19:56 p6eval rakudo e298e5: OUTPUT«Bool::True␤»
19:56 moritz_ rakudo: class A { method m { my $c = { $:foo, %_ } } }; say A.new.m.(:foo).perl
19:56 p6eval rakudo e298e5: OUTPUT«(Bool::True, {})␤»
19:57 moritz_ huh
19:57 moritz_ I don't understand that error at all
19:57 avar what does larry's "soon can bootstrap past gimme5" in the notes mean? Is STD going to be used for rakudo et al?
19:57 Tene anyway, you can *certainly* rename *%_ to something less bad.
19:58 Tene Lemme just check my understanding of it against alpha
19:58 moritz_ avar: it means that gimme5 has been replaced by something that uses itself for parsing
19:59 moritz_ s/itself/STD.pm/
20:01 moritz_ rakudo: say { "$:actions" }.(actions => 3)
20:01 p6eval rakudo e298e5: OUTPUT«3␤»
20:01 Tene oh, it looks like t/routes/01-basics.t doesn't even pass as it is on alpha.
20:01 Tene That's... unfortunate.
20:02 moritz_ Tene: does Routes.pm compile at all?
20:02 Tene Yes.
20:02 Tene and the first three tests pass.
20:02 moritz_ ouch
20:03 moritz_ the error message comes from the method earlier
20:03 Tene but the fourth crashes with: call: (|, |{"action" => "Index", "controller" => "Root"})
20:03 Tene 2 unexpected named parameters passed (action, controller)
20:03 Tene in Main (file src/gen_setting.pm, line 324)
20:03 moritz_ ah
20:03 moritz_ now same in master
20:04 moritz_ erm
20:04 moritz_ ng
20:04 moritz_ Tene: what about the other test files in t/routes/ ?
20:04 Tene haven't tried yet.  I'll do that now.
20:05 Psyche^ joined #perl6
20:05 sorear avar: What notes?
20:05 _sri http://kraih.com/rakudo-perl6-sri.png # some motivation :)
20:06 Tene moritz_: looks like they all crash with similar problems.
20:06 moritz_ right
20:07 avar sorear: The latest http://bit.ly/99Eu42
20:07 sorear avar: ah, found them.  chromatic was delayed for a while preparing the notes and those are about a month behind the current
20:07 sorear gimme5 is dead and gone
20:08 sorear this means that STD.pm6 is now being parsed using STD.pm6, instead of 1000 lines of Perl 5 s/// statements
20:08 Tene oh, that say is in lib/routes/route.pm
20:09 Tene so I should be able to make a simple test...
20:10 Tene did this ever work?
20:10 moritz_ no idea
20:10 Tene it references %:controllers, but it doesn't even set controllers in the call
20:10 Tene look at lib/Routes/Route.pm +60
20:10 Tene commented out.
20:10 moritz_ it's comme... right
20:11 Tene so... the thing that's being called couldn't have ever worked anyway.
20:11 moritz_ and %*controllers is never set anywhere
20:12 Tene do named args fall back like that?
20:12 Tene I didn't know that.
20:12 Sarten-X joined #perl6
20:12 moritz_ what do you mean?
20:12 moritz_ last touched: a52df009 (Ilya Belikin 2009-06-05 23:52:52 +1100 60)
20:13 Tene Routes.pm +25 looks for something in %:controllers
20:13 Tene oh, I get what you're saying now.
20:13 Tene Sorry, reading comprehension slow today. :)
20:13 moritz_ that's a named placeholder
20:14 Tene I misunderstood why you were talking about %*controllers
20:14 Tene earlier in Routes::Route.apply it assigns from $!stuff, and I didn't notice that the commented out line used $* instead
20:15 Tene So I was confused when you mentioned that %*controllers was never set
20:16 moritz_ it seems that method connect would set up $!code appropriately to expect an 'action' named argument
20:16 moritz_ but it's never called?
20:16 Tene Yeah, Routes was Ilya's project, but I never looked at it.
20:16 Tene and nothing in the web repo outside of t/routes/ uses it
20:17 Tene So... probably safe to ignore Routes, I bet.  Looks like Ilya fell out before getting it usable.
20:17 Tene afaict
20:17 Tene masak would know better.
20:17 * moritz_ gives up on Routes
20:17 moritz_ it's now in the same failing state as on alpha
20:19 Tene good enough for me. :)
20:19 moritz_ HTML::Entities won't be any fun since rakudo doesn't yet support backslash sequences in char classes
20:20 Tene I'm going to look at HTTP::Daemon
20:21 moritz_ hugme: show http-daemon
20:21 hugme moritz_: sorry, I don't know anything about 'http-daemon'
20:22 moritz_ is that on github?
20:22 Tene gitorious
20:22 Tene divide by zero!
20:24 sorear Ilya is in Perl6land?
20:24 moritz_ rakudo: my Int $x = 3; undefine($x)
20:24 p6eval rakudo e298e5: OUTPUT«Type check failed for assignment␤  in '&infix:<=>' at line 1␤  in 'undefine' at line 452:CORE.setting␤  in main program body at line 11:/tmp/bIE8oB8V_S␤»
20:25 molaf joined #perl6
20:26 Tene sorear: the Ilya that was involved in the web project was: Илья <forihrd@gmail.com>
20:26 Tene Hasn't been around in quite a long time
20:26 FardadJalili when you use $param? and *@slurpy in your signature, sub and multi sub have different behaviors. ( sub gives warnings I think ). is this standard?
20:26 eternaleye joined #perl6
20:26 moritz_ FardadJalili: example?
20:27 Tene Method 'postcircumfix:<{ }>' not found for invocant of class 'Failure' in main program body at line 1
20:27 FardadJalili multi sub fsort([$p?,*@r]) {
20:27 FardadJalili return fsort(@r.grep( {$_ <= $p} )),$p,fsort(@r.grep( {$_ > $p} )) if $p || @r;
20:27 FardadJalili }
20:27 moritz_ rakudo: multi sub fsort([$p?,*@r]) { }
20:27 p6eval rakudo e298e5:  ( no output )
20:27 moritz_ rakudo:  sub fsort([$p?,*@r]) { }
20:27 p6eval rakudo e298e5:  ( no output )
20:27 FardadJalili no!
20:27 moritz_ but?
20:28 sorear Tene: I had them confused with Ilya Zakharevich, commiter of the atrocity that is the Perl 5 regex engine
20:28 Tene ah, %*VM NYI?
20:28 Tene rakudo: say %*VM.perl
20:28 p6eval rakudo e298e5: OUTPUT«Method 'perl' not found for invocant of class 'Hash'␤  in main program body at line 11:/tmp/4cqRaeNDEW␤»
20:29 Tene ah
20:29 Tene rakudo: say %*VM<config>
20:29 p6eval rakudo e298e5: OUTPUT«Null PMC access in invoke()␤  in main program body at line 1␤»
20:29 moritz_ Tene: that would be a worthy thing to fix in rakudo
20:30 FardadJalili rakudo: multi sub fsort([$p?,*@r]) { return fsort(@r.grep( {$_ <= $p} )),$p,fsort(@r.grep( {$_ > $p} )) if $p || @r; } my @ar = 4,2,3,4; say fsort(@ar).join(' ');
20:30 p6eval rakudo e298e5: OUTPUT«===SORRY!===␤Confused at line 11, near "multi sub "␤»
20:30 moritz_ FardadJalili: need a ; after statement-ending }
20:31 FardadJalili moritz_: check this : http://paste.ubuntu.com/452622/
20:32 FardadJalili moritz_: use it once with multi and once without
20:32 Sarten-X joined #perl6
20:32 * moritz_ recompiles rakudo
20:32 FardadJalili moritz_: wait
20:32 FardadJalili moritz_: lef me fix that :d
20:33 jnthn It looks correct to me.
20:33 jnthn Yes, you will get different errors between multi and non-multi dispatch.
20:33 FardadJalili moritz_: check this one http://paste.ubuntu.com/452624/
20:33 FardadJalili jnthn: use this one please http://paste.ubuntu.com/452624/
20:34 jnthn Ah
20:34 jnthn That's...more interesting.
20:34 FardadJalili jnthn: you see ? :d
20:35 FardadJalili jnthn: with multi, it's quick sort, without multi, it just complains.
20:35 jnthn Yes, that's a surprising inconsistency.
20:36 patrickas problem is with if i think
20:37 jnthn A say $p.WHAT; at the start is revealing.
20:37 patrickas my @my-array = 4,2,3,4;sub fsort([$p?,*@r]) {if $p || @r {return fsort(@r.grep( {$_ <= $p} )),$p,fsort(@r.grep( {$_ > $p} )) ;}} ;say fsort(@my-array).join(' ');
20:38 jnthn I can't help but wonder if it's a closures bug.
20:38 jnthn But that seems a long shot.
20:39 FardadJalili but what does closure or if have to do with multi?
20:39 jnthn I don't get why if would have anything to do with it.
20:40 jnthn The closures issue is feasible. (more)
20:41 jnthn When we produce a non-multi, the thing that we install into the namespace is a wrapper around a Parrot sub. For multis, the thing is a bit less wrapped. The closures bug we have at the moment is due to those wrappers.
20:41 jnthn It could just be.
20:41 jnthn Anyway, we should file an RT on this one.
20:42 jnthn I'll re-visit it when the closures stuff is fixed up since that's going to happen anyway in the near future.
20:42 jnthn And if it's still there after that, I'll go digging into the dispatch code.
20:42 jnthn But it'd be an extremely odd bug - especially given you're using a sub-signature, which has to be processed the same way in both single and multi dispatch.
20:42 jnthn (In terms of how we bind.)
20:43 patrickas but this still does not explain why putting the if first fixes it!
20:45 diakopter re: complete vs production-ready, I think it would be helpful to at least document the different opinions on those definitions/distinctions: also  "usable"  and  "useful"
20:45 jnthn patrickas: I don't know -- the if first implies an extra block.
20:45 jnthn patrickas: Could be enough.
20:45 jnthn There's certainly *something* wrong here, anyway.
20:46 jnthn Did anyone submit some Rakudo bug yet?
20:46 sorear Is it legal to add methods to a class after first instantiation?  I know it's not so for attributes
20:46 * moritz_ not
20:46 jnthn sorear: Rakudo lets you do what with methods, yes.
20:46 sorear Rakudo lets you do a lot of things I don't want to have to support
20:46 jnthn sorear: I don't think anything in the Perl 6 spec currently says attributes can't be added to a class after instantiation either.
20:47 jnthn sorear: It's just a bit nasty to get Rakudo to do that, and low demand, so it's way down the todo list. :-)
20:48 jnthn I think by spec both are kosher though.
20:48 jnthn The question is whether existing instances are affected or not.
20:48 jnthn Or if it just installs a new "version" of the class. But that has other issues too.
20:50 mberends joined #perl6
20:50 jnthn FardadJalili++: Filed it as a bug.
20:50 jnthn o/ mberends
20:50 jnthn You made it. :-)
20:52 FardadJalili jnthn: did you just increment me? :)
20:52 FardadJalili jnthn: I'm happy that I could find something.
20:52 FardadJalili jnthn: ;)
20:52 Sarten-X joined #perl6
20:52 jnthn :-)
20:52 * lue has gotten sucked into learning about grammatical tenses. Help.
20:52 mberends jnthn: only just in time, they expected classes from just after 6pm to just after 10pm. These Swedes are so motivated!
20:53 jnthn mberends: Whoa!
20:54 jnthn They're really putting you to work here.
20:54 mberends well, they're so nice about it, it's hard to refuse ;)
20:56 jnthn ;-)
21:02 moritz_ my physical modelling blog post attracked about 2k visitors so far
21:03 FardadJalili moritz_: I'm just reading it. amazed that you are a physicist. :)
21:04 mmcleric joined #perl6
21:04 moritz_ well, gotta do something for a living :-)
21:05 sorear physics and programming are pretty synergistic these days
21:05 sorear building partical accellerators: very expensive
21:05 moritz_ it's hard to do physics without any programming
21:05 moritz_ or at least programming is a natural approach to many physics problems
21:05 sorear also, TimToady is a linguist by education
21:06 sorear Math::Model reminds me of some stuff I did a couple years ago
21:06 FardadJalili Richard Stallman was a pysicist too, when I think about it :-?
21:06 sorear I had a perl script which accepted a subset of SPICE notation, munged it into C code for runge-kutta, and fed it to gcc
21:07 sorear it was cute seeing a perl script run 1,000 times faster than SPICE :)
21:09 moritz_ nice :-)
21:09 moritz_ well, Math::Model is quite slow right now
21:12 pugssvn r31394 | ajs++ | Added some tests for open/close braketing and Unicode para-sep as line break
21:13 Sarten-X joined #perl6
21:14 Tene there, pushed %*VM fixes
21:16 dalek rakudo: 88210a9 | tene++ | src/glue/run.pir:
21:16 dalek rakudo: Put a Perl 6 Hash in %*VM
21:16 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/88210a9e8455f7578aaa0f9cd9a7e38af1ae57b1
21:32 Sarten-X joined #perl6
21:44 kensanata joined #perl6
21:46 patspam joined #perl6
21:53 Sarten-X joined #perl6
21:58 Tene no state vars in master?
21:58 mberends no :(
21:58 Tene rakudo: sub foo { state $f; say $f++; }; foo for 1..5;
21:58 p6eval rakudo e298e5: OUTPUT«===SORRY!===␤Symbol '$f' not predeclared in foo (/tmp/c4t4v99OmJ:11)␤»
21:58 Tene :(
22:08 ajs rakudo: eval q{sub p(){ 1 }}
22:08 p6eval rakudo e298e5: OUTPUT«===SORRY!===␤Confused at line 11, near "}"␤»
22:09 Guest23195 left #perl6
22:09 ajs That's supposed to quote correctly, right?
22:09 Tene I think so.
22:09 jnthn std: eval q{sub p(){ 1 }}
22:09 p6eval std 31378: OUTPUT«Can't locate object method "load_pad" via package "STD::P6" at STD.pm line 62221.␤FAILED 00:00 97m␤»
22:09 jnthn :/
22:09 jnthn I think it's quote too.
22:10 skangas joined #perl6
22:12 jrtayloriv joined #perl6
22:13 Sarten-X joined #perl6
22:15 Tene rakudo: class A { method new { self.bless( self.CREATE() ); } }; my A $a .= new();
22:15 p6eval rakudo e298e5:  ( no output )
22:26 _buno_ joined #perl6
22:30 cygx joined #perl6
22:31 casan joined #perl6
22:32 cygx I was bored, so I wrote something for moritz_' challenge: http://nopaste.snit.ch/21424
22:33 cygx don't hurt me because the dummy-baclend is in PHP ;)
22:38 Tene okay, one big error in httpd::daemon is:
22:38 Tene rakudo: my $f = "O HAI"; say "<p>$f</p>";
22:38 p6eval rakudo e298e5: OUTPUT«Method 'postcircumfix:<{ }>' not found for invocant of class 'Str'␤  in main program body at line 1␤»
22:39 Tene it's interpreting that as $f{'/p'}
22:39 ajs That's correct, I think
22:39 Tene should it?  I'm unsure of the interpolation rules.  Seems possibly confusing to me, though.
22:39 ajs Oh certainly, HTML and XML in double quotes are going to be a major source of problems
22:40 ajs We might demand that the interpolation parser get really strict about that, and only accept
22:40 ajs '$' <ident> '<' ~ '>' <something>
22:41 ajs where <something> is probably just <ident>
22:41 ajs and treat everything else after the first ident as literal
22:41 * FardadJalili says goodbye
22:42 ajs But that still leaves "$blurb<p>four score and seven</p>" as a problem
22:42 ajs so it's not a solutioon
22:43 Sarten-X joined #perl6
22:43 jnthn Tene: Correct, afaik.
22:43 jnthn Tene: Though that one bit me too.
22:44 ajs The nice thing is that you can lexically scope overrides to the parser, so you could do something like write an XML::SafeQuote that issues warnings when it sees somthing that looks like XML in a double-quoted string getting interpreted as Perl 6 syntax.
22:45 * jnthn is tired and takes an early night o/
22:45 ajs Rest well
22:47 ajs "use strict" is going to flower into many, many different kinds of interesting syntax pragmas in Perl 6, methinks.
22:48 ajs Heh, I could even imagine a "use Style::Gnu" or "use Style::MyCompany"... that would be kind of cool.
22:55 rokoteko joined #perl6
22:56 cygx see http://www.informatik.uni-frankfurt.de/~cgaertne/shell.php for an online-version of the frontend
22:56 Tene mberends: I have some updates to http-daemon
22:59 rgrau joined #perl6
23:02 Sarten-X joined #perl6
23:13 mikwss joined #perl6
23:18 cj joined #perl6
23:23 Sarten-X joined #perl6
23:32 eee__ joined #perl6
23:44 Sarten-X joined #perl6
23:52 eternaleye_ joined #perl6
23:58 colomon joined #perl6
23:58 colomon now in the greater Columbus region! \o/

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

Perl 6 | Reference Documentation | Rakudo