Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2007-09-14

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:05 theorb joined #perl6
00:56 ferreira left #perl6
01:01 ahmadz_ joined #perl6
01:06 lyokato joined #perl6
01:21 ahmadz joined #perl6
01:23 ahmadz left #perl6
01:23 ahmadz joined #perl6
01:39 daxim joined #perl6
01:41 weinig joined #perl6
02:01 jhorwitz joined #perl6
02:11 dduncan joined #perl6
02:31 drupek1295 joined #perl6
03:07 nekokak_ joined #perl6
03:15 Partizx joined #perl6
03:24 amnesiac joined #perl6
03:35 justatheory joined #perl6
03:38 kanru joined #perl6
03:52 rutlov joined #perl6
03:58 rutlov left #perl6
04:23 amnesiac joined #perl6
04:30 drbean joined #perl6
05:06 weinig joined #perl6
05:09 BinGOs joined #perl6
05:15 BinGOs joined #perl6
05:23 Ashizawa joined #perl6
05:30 jisom joined #perl6
05:58 devogon joined #perl6
05:59 pugs_svnbot r17825 | azawawi++ | [runpugs] general cleanup: cgi-bin and cgi-perl gone, only mod_perl version remains
05:59 pugs_svnbot diff: http://dev.pugscode.org/changeset/17825
05:59 lambdabot Title: Changeset 17825 - Pugs - Trac
06:03 moritz_ good localtime() everyone ;)
06:08 ahmadz joined #perl6
06:08 pugs_svnbot r17826 | azawawi++ | [runpugs] added scripts used by wim on feather, updated README
06:08 pugs_svnbot diff: http://dev.pugscode.org/changeset/17826
06:08 lambdabot Title: Changeset 17826 - Pugs - Trac
06:08 ahmadz hi there ;-)
06:10 moritz_ hi ;)
06:10 ahmadz how r u moritz?
06:21 moritz_ I'm fine ;-)
06:21 ahmadz cool
06:21 moritz_ no work until october 15th ;)
06:21 moritz_ happy hacking ;)
06:21 moritz_ what about you?
06:21 ahmadz have lots of free time this month ;-)
06:22 moritz_ where are you?
06:22 ahmadz jordan/middle east
06:23 moritz_ I somehow expected you to be in scotland like andara aka wim ;)
06:23 ahmadz ;-)
06:24 moritz_ well, IRC doesn't support geographic maps ;)
06:24 ahmadz what about you, germany?
06:24 moritz_ right
06:25 moritz_ no, bavaria ;)
06:25 ahmadz ;-)
06:25 moritz_ (bavaria is in germany, but most bavarians feel that it shouldn't)
06:25 ahmadz i know
06:26 moritz_ but thankfully nobody's gonna change it ;)
06:26 ahmadz i watched a doc special about it in DW-TV...
06:28 * moritz_ currently reads the recent diffs on p6l
06:29 ahmadz i was wondering if runpugs could do kp6, but dont know if safe mode is there or not...
06:29 moritz_ it is ;)
06:30 moritz_ I requested it for exp_evalbot and renormalist++ implemented it at the YAPC::EU hackathon
06:30 moritz_ kp6: say "hi"
06:30 moritz_ where is that stupid bot?
06:30 exp_evalbot joined #perl6
06:30 ahmadz hmmm cool, then runpugs could do kp6 easily
06:30 moritz_ it died with segfault - that's bad...
06:31 moritz_ kp6: say "hi"
06:31 exp_evalbot r17826: OUTPUT[hi␤]
06:31 ahmadz kp6: say "cool"
06:31 exp_evalbot r17826: OUTPUT[cool␤]
06:32 moritz_ it's 'kp6-perl5.pl --secure  | perl -Ilib-kp6-mp6-p5'
06:33 ahmadz thx will add it soon
06:35 moritz_ so "return" in closures is now "reduce" - erm, "make"
06:38 pugs_svnbot r17827 | azawawi++ | [runpugs] fixed html/css glitches
06:38 pugs_svnbot diff: http://dev.pugscode.org/changeset/17827
06:38 lambdabot Title: Changeset 17827 - Pugs - Trac
07:00 IllvilJa joined #perl6
07:10 pugs_svnbot r17828 | azawawi++ | removed duplicate scripts
07:10 pugs_svnbot diff: http://dev.pugscode.org/changeset/17828
07:10 lambdabot Title: Changeset 17828 - Pugs - Trac
07:11 Casan joined #perl6
07:24 BinGOs joined #perl6
07:25 moritz_ @tell agentzh on http://perlcabal.org/syn/ you could point people to the open sourced "Perl 6 and Parrot Essentials" that lives in pugs+parrot repos
07:25 lambdabot Consider it noted.
07:25 dduncan left #perl6
07:27 moritz_ pugs: my $a = {1, 2}; say $a.WHAT
07:27 exp_evalbot OUTPUT[Block␤]
07:27 moritz_ pugs: my $a = {1 =>  2}; say $a.WHAT
07:27 exp_evalbot OUTPUT[Hash␤]
07:34 iblechbot joined #perl6
07:46 franck___ joined #perl6
08:00 Aankhen`` joined #perl6
08:06 drrho joined #perl6
08:07 rindolf joined #perl6
08:32 andara joined #perl6
08:47 chris2 joined #perl6
08:50 pugs_svnbot r17829 | azawawi++ | [runpugs] updated p5 script to killall for current user
08:50 pugs_svnbot diff: http://dev.pugscode.org/changeset/17829
08:50 lambdabot Title: Changeset 17829 - Pugs - Trac
09:10 cognominal_ joined #perl6
09:34 fglock joined #perl6
09:52 ruoso fglock, the name in the ast for 'a' <subrule> is concat, right?
09:54 c9s joined #perl6
09:54 fglock 'a' <subrule> is like: concat(const,subrule)
09:55 fglock concat(const('a'),subrule('subrule'))
09:56 buetow joined #perl6
09:57 ruoso fglock, ok...
09:57 ruoso that deep recursion problem
09:57 ruoso is caused by the misimplementation of short circuits
09:57 ruoso they are used in both or and concat
09:58 ruoso I'm refactoring it to avoid the short circuits
10:01 rfordinal_ joined #perl6
10:04 Aankh|Clone joined #perl6
10:10 fglock ok
10:26 pugs_svnbot r17830 | azawawi++ | [runpugs] client side command history implemented
10:26 pugs_svnbot diff: http://dev.pugscode.org/changeset/17830
10:26 lambdabot Title: Changeset 17830 - Pugs - Trac
10:29 pugs_svnbot r17831 | azawawi++ | [runpugs] update TODO
10:29 pugs_svnbot r17832 | fglock++ | [kp6] implemented VAR()
10:29 pugs_svnbot diff: http://dev.pugscode.org/changeset/17832
10:29 lambdabot Title: Changeset 17832 - Pugs - Trac
10:45 fglock kp6: VAR( %*ENV<a> ).STORE( 2 ); say %*ENV<a>;
10:45 exp_evalbot r17832: OUTPUT[2␤]
10:45 fglock yay!
11:02 pugs_svnbot r17833 | ruoso++ | [kp6] && and || implemented as short circuit... test 11 no longer recurses ad infinitum, but still fails...
11:02 pugs_svnbot diff: http://dev.pugscode.org/changeset/17833
11:02 lambdabot Title: Changeset 17833 - Pugs - Trac
11:33 pugs_svnbot r17834 | ruoso++ | [kp6] short circuit now works, but several unrelated grammar tests started to fail...
11:33 pugs_svnbot diff: http://dev.pugscode.org/changeset/17834
11:33 lambdabot Title: Changeset 17834 - Pugs - Trac
11:57 pugs_svnbot r17835 | ruoso++ | [kp6] some tests still failing... no clue of the problem yet
11:57 pugs_svnbot diff: http://dev.pugscode.org/changeset/17835
11:57 lambdabot Title: Changeset 17835 - Pugs - Trac
12:18 baest joined #perl6
12:26 avar is VAR() something like tied() ?
12:28 cmarcelo joined #perl6
12:38 cognominal_ joined #perl6
12:44 iblechbot joined #perl6
12:47 fglock VAR() is an "escape" to access containers as normal objects
12:56 Khisanth joined #perl6
12:59 fglock hmm - yes, it's like tied()
13:01 avar Why can't containers just have object methods that would do an implicit VAR() ?
13:01 pugs_svnbot r17836 | fglock++ | [kp6] placeholder for token:sym<...>
13:01 pugs_svnbot diff: http://dev.pugscode.org/changeset/17836
13:01 lambdabot Title: Changeset 17836 - Pugs - Trac
13:09 fglock avar: some method names are common to containers and values, like .HOW
13:10 cognominal_ joined #perl6
13:10 Limbic_Region joined #perl6
13:13 ting_ joined #perl6
13:13 Limbic_Region salutations all
13:13 fglock Limbic_Region: hi
13:16 Limbic_Region fglock - I haven't seen you for sometime (my fault not yours).  What's new in your exciting world?
13:16 fglock Limbic_Region: hmm - how much time? :)
13:17 Limbic_Region well, it seems like it has been a couple of months - 60 days
13:18 fglock Limbic_Region: in the last two months i've changed job, continent,
13:18 fglock and kp6 is starting to look like Perl 6
13:19 pmurias joined #perl6
13:19 ting__ joined #perl6
13:19 Limbic_Region wow
13:19 Limbic_Region SA to ??
13:20 fglock Lisbon
13:21 Limbic_Region with cog by chance?
13:21 pugs_svnbot r17837 | fglock++ | [kp6] added 'sym' to Token AST
13:21 pugs_svnbot diff: http://dev.pugscode.org/changeset/17837
13:21 lambdabot Title: Changeset 17837 - Pugs - Trac
13:21 fglock not with cog, but we meet at Lisbon-PM
13:22 Limbic_Region pretty significant life change, I hope all is well
13:23 fglock i´m fine :)
13:24 Limbic_Region so are you working with pmichaud regarding nqp
13:25 fglock Limbic_Region: some kp6 source code: http://svn.pugscode.org/pugs/v6/v6-KindaPerl6/lib/KindaPerl6/Runtime/Perl6/Hash.pm
13:25 lambdabot http://tinyurl.com/2ahbvn
13:26 fglock no, i haven't seen pmichaud for a while
13:27 Limbic_Region ok, well I am off for work - TTFN
13:30 pugs_svnbot r17838 | azawawi++ | [runpugs]page load/unload/events is now handled by jquery
13:30 pugs_svnbot r17838 | azawawi++ | [runpugs]page unload sends a :q when page unload is called (browser dependent)
13:30 pugs_svnbot r17838 | azawawi++ | [runpugs]startup script uses port setting from .webtermrc
13:30 pugs_svnbot diff: http://dev.pugscode.org/changeset/17838
13:30 lambdabot Title: Changeset 17838 - Pugs - Trac
13:39 pugs_svnbot r17839 | fglock++ | [kp6] token:sym<...> adds a Multi variant
13:39 pugs_svnbot diff: http://dev.pugscode.org/changeset/17839
13:39 lambdabot Title: Changeset 17839 - Pugs - Trac
13:39 jhorwitz joined #perl6
13:41 TJCRI joined #perl6
13:47 franck___ joined #perl6
13:51 pugs_svnbot r17840 | fglock++ | [kp6] moved method/token grammar to Grammar::Sub
13:51 pugs_svnbot diff: http://dev.pugscode.org/changeset/17840
13:51 lambdabot Title: Changeset 17840 - Pugs - Trac
13:58 fglock hmm - how to include 'sym' in the token signature?
14:00 fglock something like:  token ( where { $_ ~~ /xyz/ } ) { <sym> }
14:15 vel joined #perl6
14:21 pugs_svnbot r17841 | ruoso++ | [kp6] fixed a bug, but the tests are still failing
14:21 pugs_svnbot diff: http://dev.pugscode.org/changeset/17841
14:21 lambdabot Title: Changeset 17841 - Pugs - Trac
14:30 pugs_svnbot r17842 | ruoso++ | [kp6] fixed a bug in the short circuit implementation. less tests are failing... but the recursions are back
14:30 pugs_svnbot diff: http://dev.pugscode.org/changeset/17842
14:30 lambdabot Title: Changeset 17842 - Pugs - Trac
14:37 lichtkind joined #perl6
14:41 f0rth joined #perl6
14:49 pugs_svnbot r17843 | fglock++ | [kp6] Multi.add_variant
14:49 pugs_svnbot diff: http://dev.pugscode.org/changeset/17843
14:50 jamesmck joined #perl6
15:01 Blwood joined #perl6
15:06 zomgb00bie joined #perl6
15:06 justatheory joined #perl6
15:11 f0rth joined #perl6
15:17 f0rth_ joined #perl6
15:28 nipra joined #perl6
15:28 ahmadz hi andara
15:29 andara hi ahmadz
15:29 barney joined #perl6
15:29 ahmadz how r u today?
15:29 andara ahmadz: I'm fine, though too often AFK ;-)
15:30 ahmadz right now im doing a replacement textarea => div
15:30 ahmadz once im done i think we can put a stable tag on it
15:31 andara ahmadz: sounds great. Will you run that from your account for testing?
15:31 ahmadz it is currently running on my account
15:31 ahmadz http://feather.perl6.nl:8096/runpugs/
15:31 lambdabot Title: Run Perl 6 Now -- in your browser!
15:32 ahmadz but im doing development work on it... testing for <div> instead of text area
15:33 andara ahmadz: sure, no problem. If you think it's stable, we'll replace the current front-end. I guess there's no rush...
15:34 ahmadz if things go well, tomorrow we'll have a stable with text highlighting ;-)
15:34 Juerd andara: Hi, a virtual server is ready to receive runpugs
15:35 Juerd andara: You can have port 80 there :)
15:35 Juerd Do you have tuits to move it?
15:35 andara Juerd: early October, not sooner I'm afraid
15:35 ahmadz hi juerd, thx for the upgrade ;-)
15:35 Juerd andara: That'd be great
15:35 andara Juerd: runpugs is so much more responsive now!
15:36 Juerd andara: Please let me know when you have the time
15:36 ahmadz juerd,andara: i can do it if you want
15:36 Juerd Fine with me, if andara agrees too
15:36 andara ahmadz: you're very welcome :-)
15:37 Blwood joined #perl6
15:37 Juerd ahmadz: Let me set up an account for you
15:37 Juerd ahmadz: What is your feather account name?
15:37 ahmadz apache2+mod_deflate+runpugs+jquery+highlighter = cool runpugs ;-)
15:37 andara ahmadz, Juerd: but maybe I should keep the "ownership" (blame...)
15:37 ahmadz azawawi
15:38 fglock :pugs "abc".chars
15:38 andara Juerd, ahmadz: maybe we should make a "runpugs" account on the VM?
15:38 Juerd andara: Good idea
15:39 Juerd Created, uid is 1001
15:39 Juerd andara: Shall I create a login for you now, or in october?
15:40 andara Juerd: now is OK. You never know, I might find 30' here and there ... :-)
15:41 pugs_svnbot r17844 | ruoso++ | [kp6] forcerecompile
15:41 pugs_svnbot diff: http://dev.pugscode.org/changeset/17844
15:41 lambdabot Title: Changeset 17844 - Pugs - Trac
15:41 Juerd You both have root access through sudo
15:42 ahmadz andara: i was talking with moritz today and he told me that we can do safe_mode kp6 also through runpugs
15:42 ahmadz andara: 'kp6-perl5.pl --secure  | perl -Ilib-kp6-mp6-p5'
15:43 andara ahmadz: believe it or not, I had been thinking along those lines. Make a simple REPL for kp6, run in safe_mode ...
15:45 ahmadz andara: and run highlighted p6 examples or entered code inside...
15:45 Juerd pugs> print "foo"
15:45 Juerd fooBool::True
15:45 Juerd Would be nice if the return value had some visual distinction
15:45 Juerd Maybe italic, underlined, or bold
15:46 ahmadz dinner time...30min...cya... juerd+andara ty ;-)
15:47 andara ahmadz: I have to be off as well, maybe back online briefly tonight.
15:48 andara left #perl6
15:49 lisppaste3 joined #perl6
15:49 pugs_svnbot r17845 | fglock++ | [kp6] Str.chars
15:49 pugs_svnbot r17845 | fglock++ |  Multi.add_token_variant( $code, $sym )
15:49 pugs_svnbot diff: http://dev.pugscode.org/changeset/17845
15:49 lambdabot Title: Changeset 17845 - Pugs - Trac
15:56 justatheory joined #perl6
16:08 [particle] anybody here have tuits to add message throttling to svnbot?
16:08 [particle] anybody here have tuits to add message throttling to svnbot?
16:08 [particle] oops
16:09 [particle] we're under threat of a kline on irc.perl.org
16:10 [particle] throttling to 2 messages per second should alleviate that threat
16:11 Juerd Seriously?
16:11 Juerd Are perl.org maintainers insane, or...?
16:11 [particle] don't ask me, we were warned more than once
16:11 Juerd There was this warning about "hammering" (once every few minutes) on svn.perl.org before
16:11 Juerd Now this
16:12 [particle] yep
16:12 [particle] we now have svnbot report only every 6 minutes
16:12 Juerd Maybe you can use trickle esaily
16:12 Juerd easily
16:13 [particle] iunno. the code is in pugs, and i think it's perl 6 with net::irc
16:14 Juerd trickle does anything that does socket()
16:14 Juerd But it takes kB/s rates, the manual doesn't say if they can be floating point
16:14 Juerd You'd need a really pretty low number of bytes to throttle for IRC...
16:14 Juerd Back to prehistoric bandwidth. 300 baud :|
16:14 [particle] heh, yeah
16:14 pugs_svnbot r17846 | fglock++ | [kp6] multi-tokens are indexed on 'sym' length
16:14 pugs_svnbot diff: http://dev.pugscode.org/changeset/17846
16:14 lambdabot Title: Changeset 17846 - Pugs - Trac
16:15 Juerd Sorry, I'm going to have to do something else now or I'll get pissed off again.
16:15 [particle] let's not have that
16:15 Juerd We could set up an IRC server on feather :)
16:16 integral I supoose if they let you, you could link a feather$N into irc.perl.org
16:16 Juerd integral: Still has to ditribute the messages to all other servers that have people in those channels
16:16 integral right, but it doens't go through the rate limiting stuff.
16:16 Juerd As I understand it, there is no rate limiting now, but a threat.
16:17 [particle] i don't know what those folks have set up for anti-spam
16:17 Juerd I interpret "threat" as: it's apparently not enough to trigger automatic mechanisms, but we're willing to waste tuits for it.
16:17 Juerd afk
16:18 [particle] i think svnbot may be kicked occasionally now at present, and somebody has to manually fix it
16:18 [particle] i really don't know the details, though
16:18 [particle] just got a visit from an ircop
16:20 IllvilJa joined #perl6
16:33 Blwood joined #perl6
16:40 xinming joined #perl6
16:53 ahmadz joined #perl6
16:57 pugs_svnbot r17847 | ruoso++ | [kp6] a severe bug found... assign is actually binding... but, most tests work now, only test grammar/11 is a bad failure
16:57 pugs_svnbot r17848 | fglock++ | [kp6] examples/token-sym.pl
16:57 pugs_svnbot diff: http://dev.pugscode.org/changeset/17848
16:57 lambdabot Title: Changeset 17848 - Pugs - Trac
16:59 c9s joined #perl6
17:11 justatheory joined #perl6
17:11 pugs_svnbot r17849 | ruoso++ | [kp6] fixed a bug in "Constant subrule", metasyntax substr was just plain wrong...
17:11 pugs_svnbot diff: http://dev.pugscode.org/changeset/17849
17:11 lambdabot Title: Changeset 17849 - Pugs - Trac
17:16 ruoso hmmm
17:16 ruoso say "Hello!" is a syntax error to kp6-kp6
17:27 dakkar joined #perl6
17:27 pugs_svnbot r17850 | fglock++ | [kp6] more token:sym dispatch
17:27 pugs_svnbot diff: http://dev.pugscode.org/changeset/17850
17:27 lambdabot Title: Changeset 17850 - Pugs - Trac
17:29 jjore-w joined #perl6
17:39 pugs_svnbot r17851 | fglock++ | [kp6] Bind hack
17:39 pugs_svnbot diff: http://dev.pugscode.org/changeset/17851
17:40 lambdabot Title: Changeset 17851 - Pugs - Trac
17:40 weinig joined #perl6
17:45 justatheory joined #perl6
17:52 Psyche^ joined #perl6
17:55 rindolf joined #perl6
18:07 pugs_svnbot r17852 | fglock++ | [kp6] implemented dfa with longest-token in token:sym (Multi.pm) - needs more work...
18:07 pugs_svnbot diff: http://dev.pugscode.org/changeset/17852
18:07 lambdabot Title: Changeset 17852 - Pugs - Trac
18:11 dduncan joined #perl6
18:12 barney joined #perl6
18:16 lichtkind_ joined #perl6
18:18 ruoso ... called at lib-kp6-kp6-p5/KindaPerl6/Grammar.pm line 7365
18:18 pugs_svnbot r17853 | ruoso++ | [kp6] forcerecompile, extractrulecodeblock compatible with kp6 and mp6
18:18 pugs_svnbot diff: http://dev.pugscode.org/changeset/17853
18:18 lambdabot Title: Changeset 17853 - Pugs - Trac
18:19 * ruoso has the feelling that it will be KindaHard to debug KindaPerl6 internals
18:36 rindolf joined #perl6
18:44 drupek1295 joined #perl6
18:47 TJCRI joined #perl6
19:00 pmurias joined #perl6
19:13 drupek1295 joined #perl6
19:15 ferreira joined #perl6
19:18 cognominal_ joined #perl6
19:20 polettix joined #perl6
19:20 ferreira I sent a proposal to obra about a perl6 microgrant. It is about writing light articles about Perl 6 operators to a general IT audience. The proposal is here: http://ferreira.nfshost.com/perl6/proposal.txt
19:20 lambdabot ferreira: You have 1 new message. '/msg lambdabot @messages' to read it.
19:20 ferreira @messages
19:20 lambdabot TimToady said 3d 21h 29m 20s ago: pugs does not yet implement Range objects, nor does it really treat * as anything other than Inf, so 0..* is pretty much doomed at the moment
19:22 ferreira I think I logged before but lambdabot did not tell me about this message. Is it possible?
19:22 TimToady you have to say something or lambdabot doesn't notice you
19:22 ferreira oh, that was it.
19:23 TimToady rejoining could just be a flapping connection or a netsplit
19:23 allbery_b I suspect handling that is just a side effect
19:23 allbery_b contextual plugins don't hand;e anything other than straight talking
19:24 allbery_b no login/out/join/part, no /action, etc.
19:25 ferreira TimToday: I see. I have seen your elaboration on ++ for strings. I am trying to write a prototype. So the former thing of trying to understand the string as a number is out? For example incrementing '0xFFFF' will result in '0xFFFG', right?
19:25 TimToady correct, convert it yourself first if you care
19:25 TimToady it was pointed out to me that 0a0 eventually gets to 0b0, and then we have trouble
19:26 TimToady and the new <!after '.'> constraint at least solves the 123.456 problem
19:26 TimToady as well as the extension problem
19:27 TimToady and the previous algorithm implied two scans of the string
19:28 TimToady (well, the final scan can be from the end of the string, really)
19:29 ferreira That means incrementing 'a.000.txt.gz' becomes 'b.000.txt.gz' because 'a' would be the incremented sequence. If someone wanted 'a.001.txt.gz', he must increment 'a.000' and append '.txt.gz'
19:29 pelagic joined #perl6
19:29 TimToady that won't work either
19:29 TimToady a.000 => b.000
19:30 ferreira No, it's wrong. One must increment '000' and prepend 'a.' and append '.txt.gz'
19:30 ferreira Sorry, I said I said it wrong.
19:30 TimToady maybe we need a language that does interpolation.  :)
19:31 dakkar the only times I've used the magic-inc in Perl 5 were to generate file names inside an array scan
19:31 dakkar I seem to recall that Perl 6 should have some kind of "iteration counter" somewhere. Do I recall worng?
19:31 ferreira By now, I wrote two weak articles, one about zip and other about ~. There are issues with boths. These issues are mainly unimplemented things in all current implementations.
19:32 ferreira For example, 1..* or (@a, *) which could be used in zip operations with infinite lists.
19:33 ferreira and the string increment as well. Should I include these even if people can't try code with these just now?
19:33 TimToady dakkar: you just say "for @list Z 0..* -> $value, $i {...}" to get an iteration counter
19:33 ferreira The articles are at http://ferreira.nfshost.com/perl6/zip.html and http://ferreira.nfshost.com/perl6/stitching.html
19:34 lambdabot Title: Yet Another Perl 6 Operator: Zip
19:34 dakkar TimToady: yes, much better than implicit counters
19:34 * dakkar has been working too much with TT2 lately
19:34 TimToady (assuming Z is implemented correctly, which it's not yet)
19:34 TimToady there's another TimToady?  8-)
19:35 dakkar Template Toolkit ;) which has a handy 'loop' implicit variable. "handy" unless I'm running 5 nested loops...
19:35 wolverian dakkar, like $_? :)
19:36 dakkar wolverian: same exact problems, yes
19:38 ferreira pugs: for (1,2) Z <a,b> -> @pair { say "@pair" }
19:38 exp_evalbot OUTPUT[@pair␤]
19:39 ferreira pugs: for (1,2) Z <a,b> -> @pair { say "{@pair}" }
19:39 exp_evalbot OUTPUT[1 a,b␤]
19:39 ferreira pugs: for (1,2) Z <a,b> -> $pair { say "{pair}" }
19:39 exp_evalbot OUTPUT[␤]
19:39 ferreira pugs: for (1,2) Z <a,b> -> $pair { say "{$pair}" }
19:39 exp_evalbot OUTPUT[1 a,b␤]
19:41 TimToady pugs: for (1,2) Z <a b> -> $pair { say "{$pair}" }
19:41 exp_evalbot OUTPUT[1 a␤2 b␤]
19:41 TimToady but that's still incorrect by current spec
19:42 TimToady should flatten except in @@ context
19:43 TimToady and the parens should not be necessary by the current precedence tables
19:44 wolverian heh, I was thinking that was a tuple
19:44 wolverian damn you, haskell
19:44 ofer joined #perl6
19:44 TimToady it's supposed to be a Capture, which is flattened or not according to context
19:45 ferreira So, it should be (according to S02):    for 1,2 | <a,b> -> $n, $x { say "$n - $x" }
19:45 wolverian oh, even without ;?
19:45 wolverian so parens are more than just precedence?
19:46 TimToady where did that | come from?
19:47 TimToady not to mention the , inside <>
19:47 ferreira It should have been Z
19:47 ferreira oops
19:47 TimToady wolverian: what ;?
19:48 TimToady you need ; inside zip(1,2; <a b>), but that's because it would otherwise not be able to distinguish the parts
19:49 TimToady a list infix operator like Z is of looser precedence than ,
19:49 TimToady (see table in S03)
19:49 TimToady likewise the X operator, and all its variants
19:49 wolverian ah. thanks :)
19:50 ferreira But give me a clue. Should I mention the specified behavior in the articles even though there is no current compliant implementation?
19:51 TimToady why would I have a clue about that?
19:52 ferreira Because your arguments rock ;-)
19:53 TimToady well, it really depends on the purpose of your article.  in any case I'd put a disclaimer on behavior that is already destined to disappear
19:53 wolverian "without you, I'm like a function without arguments"
19:54 TimToady I should just name all my arguments, and then I wouldn't have to keep positioning them...
19:55 ferreira The purpose of the article would be to tell the world about Perl 6 through mentioning the shiny new operators and also not quite so new, but reformed.
19:55 TimToady then you probably want to document it as it will be, not as it is
19:55 TimToady in that case the disclaimer goes the other direction
19:55 ferreira To tell the truth, it is the purpose of a series of micro-articles to be published in the ONLamp site blog.
19:56 ferreira Ok. I will remember the disclaimer.
19:56 TimToady or just fix pugs  :)
19:57 ferreira Well, I think I am gonna try. But it will take longer than the articles to write.
19:58 ferreira Also (@x, *) is a special construction not implemented yet. It should be especially built as a list that watches its tail and reproduces the end element forever. Isn't it?
20:00 TimToady pugs: 1,2,3 Z 4,5,6
20:00 exp_evalbot OUTPUT[((1, 4), (2, 5), (3, 6))␤]
20:00 TimToady actually, looks like the precedence was already fixed
20:00 TimToady just needs to flatten by default
20:00 TimToady yes, ",*" isn't implemented
20:02 ferreira for 1,2 Z <a b> -> $a { say "$a" }
20:02 TimToady however, you can do $value xx * if you happen to know the final value
20:02 ferreira pugs: for 1,2 Z <a b> -> $a { say "$a" }
20:02 exp_evalbot OUTPUT[1 a␤2 b␤]
20:03 ferreira it flattens. What it does not is get the captures.
20:03 TimToady that should have newlines where it has spaces
20:03 TimToady it's shoving 1,'a' into $a together
20:03 TimToady if it were flattened, $a would get and then 'a'
20:04 TimToady s/get/get 1/
20:04 TimToady Z was implemented before we generalized slice context
20:04 ferreira pugs: for 1,2 Z <a b> -> $a, $b { say "a: '$a', b: '$b'" }
20:04 exp_evalbot OUTPUT[a: '1 a', b: '2 b'␤]
20:04 ferreira nothing gest into $b
20:05 ferreira s/gest/gets/
20:05 TimToady untrue, 2,b gets into $b
20:05 TimToady as your output shows
20:06 ferreira ok
20:06 TimToady it's not flattening like it should
20:06 * amnesiac flattens TimToady
20:06 ferreira pugs: for 1,2 Z <a b> -> [$a, $b] { say "a: '$a', b: '$b'" }
20:06 exp_evalbot OUTPUT[*** ␤    Unexpected "[$"␤    expecting subroutine parameters, trait or block␤    at /tmp/E1zeYyLYZk line 1, column 20␤]
20:07 TimToady flatteny will get you nowhere
20:07 moritz_ amnesiac: don't do that, we need TimToady in all three dimensions ;)
20:07 snearch joined #perl6
20:07 TimToady pugs doesn't implement [] sigs yet either
20:07 ferreira This syntax -> [$a, $b] is not ready yet also.
20:07 amnesiac moritz_, true..
20:07 * amnesiac unflattens TimToady and puts him on his previous state
20:08 TimToady best short term fix would be to make everything flatten, and we can add slice context in later
20:08 TimToady yow, my previous state was Georgia!
20:09 amnesiac are you from Gatech?
20:09 TimToady no, that's just where my plane landed on my way back from YAPC::EU
20:09 amnesiac oh
20:09 amnesiac hah
20:12 TimToady my current state is California.  it'd be a lot easier to put me on California because it's bigger.
20:12 TimToady not to mention closre
20:12 TimToady *closer
20:12 amnesiac haven't seend audrey in action lately...
20:12 amnesiac what's she doin' now?
20:12 TimToady achieving a sustainable lifestyle
20:13 ferreira hey, but going from "Perl 6" to "Perl6" in docs is the opposite of a patch of chromatic. He bitched about that a lot.
20:13 ferreira Should not POD have a non-breakable space? Like TeX with 'Perl~6' or something?
20:13 amnesiac TimToady, good then
20:14 TimToady it has non-breakable space there
20:14 TimToady your display must not be displaying it correctly
20:14 ferreira Good old Gmail and Firefox
20:15 ferreira It is a Unicode character you introduced in between the words?
20:15 TimToady well, it's just the nobreak space in the Latin-1 range
20:16 TimToady U+00a0 or some such
20:16 pugs_svnbot r17854 | Darren_Duncan++ | ext/Muldis-DB/ : the whole Muldis DB core is now LGPLv3+ licensed
20:16 pugs_svnbot diff: http://dev.pugscode.org/changeset/17854
20:16 lambdabot Title: Changeset 17854 - Pugs - Trac
20:18 ferreira left #perl6
20:25 amnesiac TimToady, are you willing to go to Mexico again for a conference? :P
20:27 TimToady not today
20:28 amnesiac hah, I guess not today
20:30 TimToady siesta &
20:30 amnesiac TimToady, dormir :P
20:37 pugs_svnbot r17855 | Darren_Duncan++ | ext/Muldis-DB/ : this is the Perl 6 equivalent of what will end up on CPAN as Muldis::DB version 0.3.2 for Perl 5
20:37 pugs_svnbot diff: http://dev.pugscode.org/changeset/17855
20:37 lambdabot Title: Changeset 17855 - Pugs - Trac
20:54 drupek1295 joined #perl6
21:17 arguile joined #perl6
21:28 devogon joined #perl6
22:21 Limbic_Region joined #perl6
22:29 Schwern joined #perl6
22:33 Blwood joined #perl6
23:00 xdg joined #perl6
23:40 drupek1295 joined #perl6
23:41 Psyche^ joined #perl6
23:44 [particle1 joined #perl6

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

Perl 6 | Reference Documentation | Rakudo