Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2008-03-31

Perl 6 | Reference Documentation | Rakudo

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

All times shown according to UTC.

Time Nick Message
07:44 ilbot2 joined #perl6
07:44 Topic for #perl6is now http://pugscode.org/ | nopaste: http://sial.org/pbot/perl6 | pugs: [~] <m oo se> (or rakudo:, kp6:, smop: etc.) || We do Haskell, too | > reverse . show $ foldl1 (*) [1..4] | irclog: http://irc.pugscode.org/
07:45 moritz_ re
07:46 moritz_ irc log bot was down - problems with mysql :/
07:46 moritz_ it's back up again
07:56 elmex_ joined #perl6
08:00 hcchien joined #perl6
08:00 kcwu joined #perl6
08:09 peepsalot joined #perl6
08:09 bocksp joined #perl6
08:09 pugsbot_r17185 joined #perl6
08:09 pasteling joined #perl6
08:09 arguile joined #perl6
08:09 allbery_b joined #perl6
08:09 pasteling0 joined #perl6
08:12 kolibrie joined #perl6
08:19 kolibrie joined #perl6
08:19 peepsalot joined #perl6
08:19 bocksp joined #perl6
08:19 pugsbot_r17185 joined #perl6
08:19 arguile joined #perl6
08:19 allbery_b joined #perl6
08:19 eternaleye joined #perl6
08:39 Southen joined #perl6
08:49 lichtkind joined #perl6
08:55 moritz_ can you use a sigil other than $ for user defined objects?
08:56 moritz_ say, somthing that ISA Hash, can you declare that to have % sigil?
09:47 IllvilJa joined #perl6
09:53 ruoso joined #perl6
09:54 zeno` joined #perl6
09:57 zeno` left #perl6
10:24 pugs_svnbot r20194 | moritz++ | [irclog] changed caching:
10:24 pugs_svnbot r20194 | moritz++ |  * use the number of lines per day as cache keys
10:24 pugs_svnbot r20194 | moritz++ |  * use size aware caching
10:24 pugs_svnbot diff: http://dev.pugscode.org/changeset/20194
10:24 lambdabot Title: Changeset 20194 - Pugs - Trac
10:26 wtgee left #perl6
10:26 moritz_ and .../today is now cached as well, making it faster for many requests in a small time
10:27 moritz_ Cache::Cache++
10:54 meppl joined #perl6
11:31 rindolf joined #perl6
11:55 penk joined #perl6
12:02 smtms_ joined #perl6
12:15 ruoso joined #perl6
12:25 pugs_svnbot r20195 | moritz++ | [t] a reversal of one-item lists shouldn't reverse its content
12:25 pugs_svnbot diff: http://dev.pugscode.org/changeset/20195
12:25 lambdabot Title: Changeset 20195 - Pugs - Trac
12:44 Tene joined #perl6
12:59 alc joined #perl6
13:07 dalek joined #perl6
13:09 alc joined #perl6
13:10 LazyJim joined #perl6
13:36 sergiodj joined #perl6
13:37 sergiodj left #perl6
13:37 cmarcelo joined #perl6
13:48 meppl joined #perl6
14:09 Foke2 joined #perl6
14:24 chris2 joined #perl6
14:39 alester joined #perl6
15:02 cognominal_ joined #perl6
15:12 TimToady bp 114 72 104
15:13 moritz_ should I be able to parse that?
15:15 TimToady well, if you want to know my blood pressure last night...
15:15 TimToady was trying to open your reverse patch and hit the wrong button :)
15:16 TimToady and yes, you can bind any object to any sigil, though some sigils may require minimal support of certain roles
15:17 moritz_ ah, bp = blood pressure (not obvious for non-natives)
15:17 moritz_ and not "best practice" as I thought first
15:19 moritz_ ah, S02:1252
15:28 clintongormley joined #perl6
15:28 clintongormley pugs: my @a=(10,20,30); my @b=(1,2); say @a[@b];
15:28 exp_evalbot OUTPUT[2030␤]
15:30 clintongormley pugs: my @a=(10,20,30); my @b=(2); my $c =  @a[@b]; say $c
15:30 exp_evalbot OUTPUT[30␤]
15:31 clintongormley pugs: my @a=(10,20,30); my @b=(1,2); my $c =  @a[@b]; say $c
15:31 exp_evalbot OUTPUT[20 30␤]
15:31 clintongormley pugs: my @a=(10,20,30); my @b=(2); my $c =  @a[@b]; say $c.WHAT
15:31 exp_evalbot OUTPUT[Array␤]
15:32 moritz_ clintongormley: I wouldn't trust pugs with this one. Either look into the specs, or in the test suite
15:32 clintongormley :)
15:32 clintongormley i was trying this out yesterday, and getting weeird results
15:32 clintongormley just realised i was using [1,2] instead of (1,2)
15:32 TJCRI joined #perl6
15:33 moritz_ you don't need the parens at all
15:33 moritz_ pus: my @a = 10, 20, 30; @a
15:33 clintongormley ok
15:33 moritz_ pugs: my @a = 10, 20, 30; @a
15:33 exp_evalbot RESULT[[10, 20, 30]]
15:34 moritz_ if a statement doesn't produce output, evalbot wraps it with ($statement).perl.say
15:34 clintongormley ok
15:34 moritz_ but .perl isn't always perfect in pugs either :(
15:34 moritz_ it tends to emit too many captures
15:34 moritz_ pugs: say "foo".perl
15:34 exp_evalbot OUTPUT["foo"␤]
15:34 clintongormley interesting that my $c =  @a[@b]; say $c.WHAT  reports that it is an ARRAY
15:34 clintongormley that, i didn't expect
15:35 rdice joined #perl6
15:36 moritz_ pugs: my @a = <a b c>; say @a[1].WHAT
15:36 exp_evalbot OUTPUT[Str␤]
15:36 moritz_ pugs: my @a = <a b c>; say @a[1,].WHAT
15:36 exp_evalbot OUTPUT[Array::Slice␤]
15:36 justatheory joined #perl6
15:37 clintongormley pugs: my @a=<a b c>; my $b = @a[1,2]; say $b.WHAT
15:37 exp_evalbot OUTPUT[Array␤]
15:37 clintongormley i'm wondering why we have an explicit reference there
15:37 clintongormley pugs: my @a=<a b c>; my $b = @a[1,2]; say $b[1]
15:37 exp_evalbot OUTPUT[c␤]
15:38 moritz_ I guess that the postcircumfix:<[ ]> multi in pugs that handles arrays always returns an array
15:39 TimToady pugs doesn't really do Captures yet
15:39 clintongormley what do you mean by captures here, TimToady?
15:39 TimToady and @@ is called "slice context" for a reason
15:40 clintongormley not Regex captures
15:40 moritz_ clintongormley: a capture is something like a reference, but more general
15:40 TimToady a Capture is an argument list that has not yet been bound into a context
15:40 clintongormley ok
15:40 clintongormley i tried a couple of variations of @@ yesterday, but couldn't get it right (or they're not yet implemented in Pugs)
15:40 moritz_ that's the official explanation ;)
15:40 moritz_ NYI
15:40 clintongormley ...today, anyway ;)
15:41 TimToady pugs does not yet implement @@
15:41 clintongormley ok
15:41 clintongormley i thought i was being particularly dumb
15:42 TimToady nobody has really implemented much of S09 yet
15:47 clintongormley left #perl6
15:56 pjcj joined #perl6
16:02 wtgee joined #perl6
16:17 iblechbot joined #perl6
16:38 maokt joined #perl6
16:43 barney joined #perl6
16:54 cognominal_ joined #perl6
16:57 IllvilJa joined #perl6
17:06 moritz_ TimToady++ # list/slice context clarification
17:10 Psyche^ joined #perl6
17:11 lambdabot joined #perl6
17:12 * [particle] notices "p6l" is an abbreviation for parallel, like i18n
17:12 TimToady I think pll would be a nice visual abbrev in sans-serif fonts  :)
17:13 TimToady or maybe p∥
17:13 TimToady actaully, that's just ∥
17:14 [particle] the new module name for "Parallel::ForkManager"
17:14 moritz_ ∥::ForkManager ?
17:14 TimToady could really start confusing people by using ⋕
17:16 TimToady which is not ♯ or # or 井
17:19 wtgee left #perl6
17:20 TimToady or ⌗
17:21 moritz_ TimToady: which most editors will just display as char garbage :/
17:21 Tene moritz_: what editor do you use?
17:21 Tene Every editor I use regularly deals with that character just fine.
17:22 moritz_ Tene: my vim displays it fine as well
17:22 TimToady or ╬
17:22 moritz_ Tene: but I've worked with many editors that don't know about utf-8
17:22 moritz_ Tene: or about charsets in general
17:22 wtgee joined #perl6
17:23 Tene moritz_: 'ed' can handle it just fine too.  ;)
17:24 moritz_ Tene: there are non-unixy platforms as well
17:25 moritz_ Tene: and on many computers the asian fonts aren't installed, so even if the editor can handle them there's not displayed correctly
17:27 TimToady or ﹟ or #
17:37 jferrero joined #perl6
17:49 peeps[work] joined #perl6
17:55 Aankhen`` joined #perl6
17:55 meppl joined #perl6
18:01 wtgee left #perl6
18:03 wtgee joined #perl6
18:05 tobeya joined #perl6
18:09 eternaleye joined #perl6
18:23 mncharit1 moritz_: http://irclog.perlgeek.de/perl6/today (3-31) doesn't seem to have yesterday links.  One possibility might be to snarf the backlog from http://colabti.org/irclogger/irclogger_logs/perl6 .
18:23 lambdabot Title: IRC log for #perl6, 2008-03-31
18:24 pugs_svnbot r20196 | lwall++ | [S29] rand is now 0-ary or method only
18:24 pugs_svnbot diff: http://dev.pugscode.org/changeset/20196
18:24 lambdabot Title: Changeset 20196 - Pugs - Trac
18:27 Jamtech joined #perl6
18:43 r0bby joined #perl6
18:46 Schwern joined #perl6
18:48 peeps[work] joined #perl6
18:54 Auzon joined #perl6
18:55 Schwern joined #perl6
19:01 [particle1 joined #perl6
19:05 Schwern joined #perl6
19:06 [particle1 joined #perl6
19:09 lisppaste3 joined #perl6
19:14 justatheory joined #perl6
19:56 Auzon joined #perl6
20:12 pugs_svnbot r20197 | putter++ | [elf] The elf_a and elf_b interpreters now run again without PUGS_ROOT being defined.  After the directory move, the updated path to STD_red wasn't fully propagated.
20:12 pugs_svnbot diff: http://dev.pugscode.org/changeset/20197
20:12 lambdabot Title: Changeset 20197 - Pugs - Trac
20:14 thoughtpolice joined #perl6
20:14 pugs_svnbot r20198 | putter++ | [STD_red] Repaired parsing of 'use Foo'.
20:14 pugs_svnbot diff: http://dev.pugscode.org/changeset/20198
20:14 lambdabot Title: Changeset 20198 - Pugs - Trac
20:33 syle joined #perl6
20:43 ruoso joined #perl6
20:51 kyrbe joined #perl6
20:51 kyrbe left #perl6
20:58 iblechbot_ joined #perl6
21:03 wtgee joined #perl6
21:08 cathya joined #perl6
21:14 Auzon joined #perl6
21:32 lichtkind joined #perl6
21:32 lichtkind works this like when i would use feed op ? @out = grep { $_%2 } @in1 ;
21:42 rdice joined #perl6
21:48 smtms joined #perl6
21:53 luqui joined #perl6
22:10 jan joined #perl6
22:17 Limbic_Region joined #perl6
22:33 wknight8111 joined #perl6
22:40 jferrero joined #perl6
22:48 peepsalot joined #perl6
22:50 Lorn joined #perl6
23:01 Auzon joined #perl6
23:05 lichtkind in s06 there is that example  @oddsquares = map { $_**2 }, sort grep { $_ % 2 }, @nums;
23:06 lichtkind doesnt force sort like an eager?
23:33 cmarcelo joined #perl6
23:51 cj TreyHarris: someone mentioned you the other day :)
23:56 Gothmog_ lichtkind: It has to as soon you access one element of the list.
23:56 Sartak joined #perl6
23:57 lichtkind Gothmog_: thanks anything else wouldn make sense to me :)

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

Perl 6 | Reference Documentation | Rakudo