pugscode.org/ | nopaste: sial.org/pbot/perl6 | ?eval [~] <m oo se> | We do Haskell, too | > reverse . show $ foldl1 (*) [1..4] | irclog: irc.pugscode.org/ Set by diakopter on 11 July 2007. |
|||
00:00
elmex left
00:21
chris2 left
00:24
[particle1 joined
00:35
[particle] left
00:37
buetow left
00:40
justatheory left
00:45
xinming left
00:51
Schwern left
00:53
nipotaway is now known as nipotan
00:55
franck____ joined
00:59
devogon left
|
|||
obra | $TIMEOFDAY, #perl6 | 01:07 | |
Tene | obra: /ctcp #perl6 TIME | 01:08 | |
Oh, that was a greeting, not a question. | |||
Tene .= fail(); | |||
allbery_b | @localtime #perl6 -- :) | 01:09 | |
01:09
franck___ left
|
|||
spinclad | good &localtime(), @all | 01:10 | |
01:14
weinig_ left
|
|||
diakopter | (* #perl6 *) | 01:14 | |
01:24
lidden left,
lidden joined
01:25
lidden left,
lidden joined
01:30
ntgrl joined
01:54
Southen_ left
01:57
weinig joined
02:21
dduncan left
02:36
Jmax joined,
popt joined
02:56
zsy joined
03:03
hakobe is now known as hkb_aw,
dduncan joined
03:23
popt left
03:24
popt joined
03:27
zsy left
03:37
justatheory joined
03:49
demerphq left
03:58
demerphq joined
04:08
amnesiac joined
04:32
hkb_aw is now known as hkb_lab
04:43
dduncan left
05:26
devogon joined
05:45
drupek12 left
05:50
popt left,
drupek12 joined
05:55
jisom joined
05:56
rob_ joined
05:57
rob_ is now known as r0bby_
06:04
franck____ left
06:07
wilx left
06:10
justatheory left
06:11
r0bby_ left
|
|||
meppl | good morning | 06:25 | |
06:32
kane_ joined
06:34
cognominal_ left
06:37
kane_ left
06:38
kane_ joined
06:44
pro21ms4 joined
06:54
mr_ank left
06:57
franck___ joined
07:01
iblechbot joined
07:06
Aankhen`` joined
07:07
hkb_lab is now known as hkb_aw
07:19
weinig left
07:33
iblechbot left
07:34
scaner left
07:50
andara joined
08:08
pro21ms4 left
08:16
amnesiac left
08:22
devogon left
08:28
IllvilJa left
08:32
elmex joined
08:34
mj41 joined
08:41
IllvilJa joined
08:42
PhileasFox joined
08:45
flokuehn joined
08:46
cognominal_ joined
08:48
cognominal_ left
08:49
daxim_ left,
cognominal_ joined
09:00
ntgrl is now known as integral
09:08
DarkWolf84 left
09:19
buetow joined
09:25
d4l3k_ joined,
dalek left
09:27
autark_ joined
09:28
lidden_ joined
09:29
devbot6 left,
devbot6` joined,
devbot6` is now known as devbot6,
Blwood joined,
d4l3k_ left,
dalek joined
09:32
cognominal_ left
09:34
elmex left
09:35
Casan_ joined
09:36
fglock_ joined,
iblechbot joined
09:42
lidden left
09:49
buetow left
10:02
chris2 joined
10:20
jisom left
10:24
cognominal_ joined
10:43
sunnavy joined
10:51
PhileasFox left
10:57
mr_ank joined
11:03
cognominal_ left
11:05
cognominal_ joined
11:26
nipotan is now known as nipotaway
11:30
devogon joined
12:01
stevan__ left
12:19
cognominal_ left
12:32
fglock_ left
12:47
fglock_ joined
12:55
polettix joined
13:04
jhorwitz joined
13:06
[particle] joined
13:13
flokuehn left
13:15
cognominal_ joined
13:20
hkb_aw is now known as hakobe
13:21
pro21ms4 joined
13:24
[particle1 left
13:29
cognominal_ left
13:31
cognominal_ joined
13:32
TJCRI joined
13:45
turrepurre joined
13:46
fglock_ left
13:47
idiotmax joined
13:50
flokuehn joined
13:53
drrho joined
13:54
bonesss joined
13:58
awwaiid joined
13:59
idiotmax left
14:01
idiotmax joined
14:10
pro21ms4 left
14:11
cognominal_ left
14:27
franck___ left
|
|||
moritz_ | good afternoon ;) | 14:41 | |
andara | good afternoon, moritz_ | 14:42 | |
14:54
flokuehn left
15:07
amnesiac joined
15:08
kanru joined
|
|||
bloonix | good morning ;) | 15:36 | |
15:36
cognominal_ joined
15:44
polettix left
15:47
mtve left
|
|||
[particle] | Infinoid: t\tools\pdb....ok | 15:56 | |
16:01
mtve joined
16:10
cognominal_ left
16:16
IllvilJa left
16:20
lichtkind joined
|
|||
lichtkind | how i can emulate $" in perl6? | 16:21 | |
16:21
andara left
16:23
rindolf joined
|
|||
bloonix | lichtkind: hello | 16:29 | |
: On Fri, Mar 25, 2005 at 10:03:45PM -0800, Larry Wall wrote: | |||
: > Hmm, well, if it got that far. Given strict being on by default, | |||
: > this particular example should probably just die on the fact that $" | |||
: > isn't declared, since there's no $" in Perl 6. | |||
it seems that $" is gone | 16:30 | ||
16:30
IllvilJa joined,
franck___ joined
|
|||
bloonix | svn.pugscode.org/pugs/docs/AES/S28draft.pod | 16:31 | |
16:32
buetow joined
|
|||
Gothmog_ | But you may write something like "foo {@a.join: ", "} bar" | 16:35 | |
And there is probably something more elegant. | 16:36 | ||
bloonix | Gothmog_: jep | ||
"$" is gone, replaced by @foo.join(":") or some such. | |||
from S28draft.pod | 16:37 | ||
16:37
tcliouAway is now known as tcliou
16:49
fglock_ joined
16:50
simp1e^ joined,
simp1e^ left
16:51
wilx joined
16:53
rashakil joined,
rashakil left,
tris left
17:08
kanru left
17:09
fglock_ left
|
|||
bloonix | ?eval 'foo' ~~ /(foo)/; say $1 | 17:16 | |
pugsbot_r17185 | OUTPUT[ā¤] Bool::True | ||
bloonix | whats wrong here? no 'foo' | 17:17 | |
diakopter | ?eval 'foo' ~~ /foo/; say $1 | ||
pugsbot_r17185 | OUTPUT[ā¤] Bool::True | ||
bloonix | I want capture it | ||
diakopter | afk | ||
bloonix | ?eval my $foo; 'foo' ~~ / (foo) { let $foo := $1 } /; say $foo; | 17:20 | |
pugsbot_r17185 | *** Cannot parse regex: (foo) { let $foo := $1 } ā¤*** Error: ā¤OUTPUT[ā¤] Bool::True | ||
bloonix | ?eval 'foo' ~~ /(foo)/; say $0 | 17:21 | |
pugsbot_r17185 | OUTPUT[fooā¤] Bool::True | ||
bloonix | *arg* | 17:22 | |
?eval 'foo' ~~ / (foo) { let $foo := $0 } /; | 17:26 | ||
pugsbot_r17185 | *** Cannot parse regex: (foo) { let $foo := $0 } ā¤*** Error: ā¤Match.new(ā¤ ok => Bool::False, ā¤ from => 0, ā¤ to => 0, ā¤ str => "", ā¤ sub_pos => (), ā¤ sub_named => {}ā¤) | ||
17:36
hakobe is now known as hkb_zz
17:43
IllvilJa left
17:45
weinig joined
17:46
Psyche^ joined
|
|||
moritz_ | ?eval 'foo' ~~ m/ $<foo> := (foo) /; $<foo> | 17:47 | |
pugsbot_r17185 | \Match.new(ā¤ ok => Bool::True, ā¤ from => 0, ā¤ to => 3, ā¤ str => "foo", ā¤ sub_pos =>ā¤ (Match.new(ā¤ ok => Bool::True, ā¤ from => 0, ā¤ to => 3, ā¤ str => "foo", ā¤ sub_pos => (), ā¤ sub_named => {}ā¤ ),), ā¤ sub_named => {}ā¤) | ||
moritz_ | ?eval 'foo' ~~ m/ $<foo> := (foo) /; ~$<foo> | ||
pugsbot_r17185 | "foo" | ||
17:47
Patterner left,
Psyche^ is now known as Patterner
|
|||
pasteling | "blooni" at 87.79.208.212 pasted "'foo bar baz' ~~ /(.*)/; say "" (9 lines, 135B) at sial.org/pbot/26642 | 17:50 | |
17:51
lisppaste3 joined
|
|||
bloonix | thats confusing | 17:51 | |
17:53
sunnavy left
|
|||
moritz_ | it is indeed | 17:53 | |
bloonix | if I do $foo = $0 first and do $foo.split(rx/\s+/) its the same | 17:54 | |
moritz_ | I think it's somehow because $0 is not a string | ||
try (~$0) instead, and it works as expected | 17:55 | ||
but that's not very DWIMmy | |||
bloonix | that works but tell me why | 17:57 | |
I dont understand it | |||
shouldn't $0 work? | |||
moritz_ | wour List multi method split ( Str $input: Str $delimiter, Int $limit = * ) is export our List multi method split ( Str $input: Rule $delimiter, Int $limit = * ) is export | 17:58 | |
if it | 17:59 | ||
sorry | |||
seems to be a typing problem | |||
pugs doesn't implement types very well (which should be changed by audreyt++'s waiting MO branch) | |||
it doesn't handle $0 as a string, even though it probably should coerce it into a string | 18:00 | ||
18:03
Aankhen`` left
18:24
lichtkind left
18:37
drrho left
18:38
IllvilJa joined
18:44
dduncan joined
18:48
jisom joined
19:00
bonesss left
19:02
Limbic_Region joined
19:04
chris2 left
|
|||
pugs_svnbot | r17196 | lwall++ | substr should be exported multi method | 19:04 | |
r17196 | lwall++ | updated grammar description of printf formats to use newer, cleaner notation | |||
diff: dev.pugscode.org/changeset/17196 | |||
lambdabot | Title: Changeset 17196 - Pugs - Trac | ||
Limbic_Region | today I was teaching an introduction to perl to a bunch of Java developers. Every so often I would say, in Perl 6 this will be done as "X" or when a question would arise, I would answer the question and say, in Perl 6 this will be done like "Y" | ||
rindolf | Limbic_Region: heh. | 19:05 | |
Limbic_Region: isn't it a bit confusing? | |||
Limbic_Region | The most overwhelming response I got was - when is Perl 6 coming out | 19:06 | |
hrm - apparently this client is eating everything I am typing again | |||
The most overwhelming response I got was - when is Perl 6 coming out | |||
grrrr | |||
diakopter | Limbic_Region: <sigh>: here, reconnect in 5 minutes - lemme switch it back to use the perl version... oka? | ||
Limbic_Region | rindolf - not really since this was more a "concepts" class rather than syntax | ||
diakopter - don't worry about it | 19:07 | ||
diakopter | ok | ||
19:07
Blwood left,
Blwood_ joined
|
|||
Limbic_Region | it was fun though | 19:08 | |
diakopter - for what it is worth, I didn't have this problem when I used FireFox | 19:09 | ||
19:10
Blwood_ is now known as Blwood
19:12
dduncan left
|
|||
diakopter | Limbic_Region: oh (nor I, during the brief times I tested it) | 19:15 | |
TimToady | I'm trying to decide whether <foo: I am a $x> should default to interpolating like "" or not... | ||
I find myself want to write a lot of error messages with <panic: ...> that want to interpolate bits of what was already parsed... | 19:16 | ||
and S05 doesn't specify what it means by "string" there. | |||
Limbic_Region | remind me what the advantage (in this case) of <panic: ...> is over "panic: ..." ? | 19:18 | |
[particle] | it's certainly difficult to produce good error messages in the parser now | ||
however you can provide a backtrace | |||
that helps give some context | |||
TimToady | Limbic_Region: "panic: ..." would match that literally in a regex, whereas <panic: ...> is short for <panic('...')> or maybe <panic("...")> | 19:20 | |
Limbic_Region | er um, I guess I didn't do a good job of asking my question | ||
TimToady | the : form is just sugar | 19:21 | |
saves wear and tear on the () keys | |||
Limbic_Region | and now I must wait and hope my client delivers the message | ||
I guess it wasn't clear from your statement of "write a lot of error messages" that you needed a rule at all | |||
[particle] | so, there's not enough sugar to distinguish between interp and non-interp | ||
Limbic_Region | neat, they came in out of order | ||
TimToady | in particular, I'm trying to redirect bogus uses of old $@ and $# and such to the new things | 19:22 | |
and I find I want the <panic: ...> forms to work both ways. :/ | 19:23 | ||
so *probably* I should leave it at single quotes and make me use panic("...") when I really want to interpolate | |||
[particle] | perhaps it's best to use the desugared form | ||
Limbic_Region | TimToady - oh nevermind - I was tripping over the word "write" - you meant write code and I was thinking the actual error message itself | 19:24 | |
TimToady | on the theory that more complicate things should look more complicated | ||
Limbic_Region really needs a break | |||
[particle] | more common things should be easier, though | ||
TimToady | yeah, that's the flip side | ||
diakopter | TimToady: what about <panic:"oops: $interpMe"> | ||
Limbic_Region | When you put in your 40 before Wednesday it makes for a long week | 19:25 | |
TimToady | well, if it was unintended, then you likely get a compile-time error | ||
Limbic_Region gives up | |||
When you put in your 40 before Wednesday it makes for a long week | |||
diakopter | Limbic_Region: I suspect all your sent messages are getting here; but they're delayed | ||
Limbic_Region | diakopter - well, they may be getting to feather but they are not all getting to irc | 19:26 | |
diakopter | oh. it's possible they're getting to us but not to you, however. did you verify against moritz' log? (sorry to question your analysis) | 19:27 | |
Limbic_Region | I typed the line about 40 about 5 times (2nd time being written) | ||
how many times did you see the above line? (2nd time being written) | 19:28 | ||
diakopter - I am looking at the logs now, many of the things I type never show up in IRC (2nd time being written) | 19:29 | ||
19:29
thepler joined
|
|||
diakopter | Limbic_Region: :( you sure you don't want to give me 15 seconds (now) to make the cgi swap? | 19:29 | |
Limbic_Region | diakopter - it won't make a difference but if you want to - sure | 19:30 | |
diakopter | ok; you'll get booted; just wait 10 seconds then reconnect. | ||
Limbic_Region waits to get booted | 19:31 | ||
19:31
Limbic_Region left
|
|||
diakopter | ok LR - try now? (assuming you're watching the logs) :) | 19:32 | |
spinclad | TimToady: how much of a huffman burden would it be to write <panic: "message message $interpolateMe"> (two "'s longer than currently) ? | ||
19:32
Limbic_Region joined
|
|||
diakopter | TimToady: I meant <panic:"$interp"> as opposed to <panic: "$raw"> | 19:33 | |
(where "$raw" is sent as '"$raw"', I mean) | |||
spinclad | iow the : replaces the ()s | ||
Limbic_Region | salutations from the great beyond (take 3) | ||
diakopter - 3rd time I typed that it showed up | 19:34 | ||
diakopter | silly IE.... | ||
spinclad | diakopter: i think we're proposing the same; priority is yours | ||
Limbic_Region | well, combination of IE, corporate proxy and firewall, and CGI:IRC (take 2) | ||
Limbic_Region decides to call it a week | 19:36 | ||
TTFN all | |||
19:36
Limbic_Region left
|
|||
TimToady | I suppose, given that panic is essentially a method call, that it makes sense to use colon the same way | 19:40 | |
[particle] | meaning, that panic is the invocant? | 19:44 | |
diakopter | panic is sorta like catch | ||
^ (thinking out loud - not answering [particle]) | 19:45 | ||
19:46
Jamtech joined
|
|||
TimToady | panic is the method name; the invocant is implicitly the current match context | 19:48 | |
anyway, that argues for <panic: "foo"> as the proper alterative to <panic("foo")> | 19:49 | ||
19:50
buetow left,
buetow joined
|
|||
[particle] | and leaves open the possibility for <panic: :message<foo> :exitcode<255>> ? | 19:51 | |
i'm just wondering how much like method calls this will end up being | |||
named optional slurpy etc | |||
diakopter | shouldn't a method call be <.panic: ...> for clarity? alternately asked, will the invocant always be the matchee? | 19:53 | |
TimToady | it's exactly like, except the terminator is >, and the invocant is missing | ||
[particle] | <> implies $/ as invocant | ||
except i guess that's not the case with <foo bar> | 19:54 | ||
foo is still a method on $/, but bar is a regex | |||
19:57
cognominal_ joined
19:59
dduncan joined,
TJCRI left
20:05
jisom left
20:07
weinig_ joined
20:10
szbalint joined
20:15
rindolf left
20:16
weinig left
20:17
takanori_ joined
20:22
weinig_ left
20:28
cognominal_ left
20:34
weinig joined
20:59
REPLeffect joined
21:04
cognominal_ joined
21:14
axolx joined,
axolx left
21:42
thoughtpolice joined
21:44
diakopter left,
amnesiac left
21:47
Jamtech left
21:50
weinig left,
weinig joined
21:51
jhorwitz left
22:00
diakopter joined
22:01
thepler left,
iblechbot left
22:03
elendur joined
22:04
elendur is now known as sergiosdj
22:06
sergiosdj left
22:17
flokuehn joined,
rhizo joined
22:27
flokuehn left
22:34
hkb_zz is now known as hakobe
22:41
weinig left,
weinig joined
22:48
hakobe is now known as hkbAw,
hkbAw is now known as hkb_aw
23:15
REPLeffect left
23:18
weinig left
|
|||
meppl | good night | 23:35 | |
23:41
[particle1 joined
23:42
justatheory joined
23:53
weinig joined
23:57
[particle] left
|