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