pugscode.org/ | nopaste: sial.org/pbot/perl6 | pugs: [~] <m oo se> (or rakudo:, kp6:, elf: etc.) (or perl6: for all) | irclog: irc.pugscode.org/
Set by Tene on 29 July 2008.
00:15 justatheory_ left 00:31 BinGOs left, BinGOs joined 00:36 BinGOs left 00:38 justatheory joined 00:42 BinGOs joined 00:43 hercynium_ joined, hercynium left 00:48 BinGOs left 00:58 zamolxes left 00:59 BinGOs joined 01:11 eternaleye_ joined 01:39 sri_work left
meppl good night 01:48
01:48 meppl left 01:56 alanhaggai joined 02:03 eternaleye_ left 02:07 jhorwitz left 02:18 hercynium_ left 02:47 alester_ joined 02:50 BinGOs left
Ontolog moritz_: for split with a negative limit, we want to throw an exception? 02:57
moritz_: to me it doesn't seem very a very Perlish thing to do
02:58 eternaleye_ joined 03:02 elmex_ joined, elmex left, Bzek joined, elmex_ is now known as elmex 03:09 alanhaggai_ joined 03:12 kanru joined 03:16 cognominal left, cognominal joined 03:23 alanhaggai left
s1n Ontolog: there's a discussion on the mailing list about split 03:50
03:58 Bzek_ joined 04:06 Bzek__ joined
Ontolog i know i am following it 04:07
this is in regards to that discussion
04:13 Bzek left 04:20 Bzek__ left, Bzek joined 04:23 Bzek_ left
pugs_svn r22465 | putter++ | [on_sbcl] Boxed strings and integers. Also "", 0, etc, now false. 04:27
r22465 | putter++ | [elf_h] Elf source tweak - a miscalled fixed-arity sub.
04:37 Alias_ joined 05:05 alanhaggai_ is now known as alanhaggai 05:09 alanhaggai_ joined 05:10 alanhaggai left, alanhaggai_ is now known as alanhaggai 05:14 Psyche^ joined 05:29 Patterner left, Psyche^ is now known as Patterner 05:31 kanru left 05:40 alester_ left 05:44 iblechbot joined 05:49 justatheory left 05:50 justatheory joined 05:53 kanru joined 06:16 justatheory left 06:19 alanhaggai left 06:21 ashizawa joined 06:24 BinGOs joined 06:41 kanru left 06:42 kanru joined
moritz_ Ontolog: I don't really know; I could argue either way 07:20
07:46 penk joined 07:48 [particle] left, [particle]1 joined 08:02 literal left 08:04 literal joined 08:52 iblechbot left, elmex left, falesca left, PZt left, Caelum left, ryanc left, sirhc left, mj41 left, TimToady left, [particle]1 left, ashizawa left, Ontolog left, jfredett left, allbery_b left, hcchien left, penk left, araujo left, Alias_ left, apeiron left, xinming left, cosimo left, Southen left, avar left 08:57 kst` joined 09:03 eternaleye_ left, Jedai left, charsbar left, Guest70230 left, rakudo_svn left, yves left, pasteling left, kane_ left, Bzek left, SamB left, xuser_ left, alester left, integral left, Ehtyar left, Tene left, smtms left, Patterner left, lambdabot left, drbean left, jan_ left, jdv79 left, Khisanth left, REPLeffect left, agentzh left, mtve left, silug left, zostay left, ting left, Aisling left 09:10 smtms joined 09:17 TimToady joined, aindilis` joined, jiing joined, Aisling joined, xuser joined, zostay joined, ilbot2 joined, IRSeekBot joined, kcwu joined, c1sung joined, buubot joined, mj41 joined, sirhc joined, ryanc joined, Caelum joined, PZt joined, falesca joined, elmex joined, iblechbot joined, beppu joined, PerlJam joined, szbalint joined, nnunley joined, spinclad joined, idemal joined, pochi joined, broquaint joined, clkao joined, ewilhelm joined, Guest16015 joined, obra joined, cxreg joined, sunnavy joined, jiing_ joined, simcop2387 joined, p6eval joined, hcchien joined, avar joined, allbery_b joined, jfredett joined, araujo joined, Southen joined, Ontolog joined, cosimo joined, xinming joined, apeiron joined, Alias_ joined, ashizawa joined, penk joined, [particle]1 joined, irc.freenode.net sets mode: +o TimToady, Patterner joined, Bzek joined, eternaleye_ joined, SamB joined, Jedai joined, Khisanth joined, REPLeffect joined, alester joined, agentzh joined, integral joined, charsbar joined, lambdabot joined, drbean joined, Ehtyar joined, mtve joined, Tene joined, jan_ joined, silug joined, jdv79 joined, ting joined, pasteling joined, yves joined, kane_ joined, Guest70230 joined, rakudo_svn joined, rafl joined, johto joined, LCamel joined, pmichaud joined, bennymack-work joined, fullermd joined, moritz_ joined, r0bby joined, Juerd joined, rhr joined, jrockway joined, Grrrr joined, pugs_svn joined, buu joined, cls_bsd joined, diakopter joined, Maddingue joined, arguile joined, jjore joined, ryanc left, PZt left, xuser left, c1sung left, sirhc left, kcwu left, TimToady left, Caelum left, falesca left, ilbot2 left, aindilis` left, elmex left, mj41 left, IRSeekBot left, iblechbot left, buubot left 09:19 Tene left 09:20 Tene joined 09:22 ashizawa left, hcchien left, pochi left, jfredett left, clkao left, [particle]1 left, Ontolog left, allbery_b left 09:23 barney joined, [particle]1 joined, ashizawa joined, Ontolog joined, jfredett joined, allbery_b joined, hcchien joined, clkao joined, pochi joined 09:33 TimToady joined, aindilis` joined, xuser joined, iblechbot joined, elmex joined, falesca joined, PZt joined, Caelum joined, ryanc joined, sirhc joined, mj41 joined, buubot joined, c1sung joined, kcwu joined, IRSeekBot joined, ilbot2 joined, irc.freenode.net sets mode: +o TimToady 09:39 c1sung left, TimToady left, falesca left, ilbot2 left, PZt left, ryanc left, sirhc left, xuser left, kcwu left, Caelum left, buubot left, IRSeekBot left, mj41 left, elmex left, iblechbot left, aindilis` left 09:45 Aisling left, Aisling joined 09:48 TimToady joined, aindilis` joined, xuser joined, iblechbot joined, elmex joined, falesca joined, PZt joined, Caelum joined, ryanc joined, sirhc joined, mj41 joined, buubot joined, c1sung joined, kcwu joined, IRSeekBot joined, ilbot2 joined, irc.freenode.net sets mode: +o TimToady 09:49 baest_ joined 10:04 sri_work joined 10:06 Alias_ is now known as adamkennedy 10:07 baest left 10:09 c1sung left, TimToady left, falesca left, ilbot2 left, PZt left, ryanc left, sirhc left, xuser left, kcwu left, Caelum left, buubot left, IRSeekBot left, mj41 left, elmex left, iblechbot left, aindilis` left 10:21 TimToady joined, aindilis` joined, xuser joined, iblechbot joined, elmex joined, falesca joined, PZt joined, Caelum joined, ryanc joined, sirhc joined, mj41 joined, buubot joined, c1sung joined, kcwu joined, IRSeekBot joined, ilbot2 joined, irc.freenode.net sets mode: +o TimToady 10:23 braceta joined, ting left, ting joined 10:43 penk left 11:07 adamkennedy left 11:23 masak joined 11:26 alanhaggai joined 11:39 zamolxes joined 11:41 BinGOs left, BinGOs joined 11:47 BinGOs left, BinGOs joined 12:20 wilx joined
moritz_ rakudo: say $?PACKAGE 12:32
p6eval rakudo 31507: OUTPUT[Scope not found for PAST::Var '$PACKAGE'ā¤current instr.: 'parrot;PCT::HLLCompiler;panic' pc 156 (src/PCT/HLLCompiler.pir:103)ā¤]
masak rakudo: class A {}; A.new.WHAT.say 12:34
p6eval rakudo 31507: OUTPUT[Aā¤]
12:38 kolibrie joined
moritz_ rakudo; package A; say 1 12:48
masak rakudo: package A; say 1 12:49
p6eval rakudo 31507: OUTPUT[Could not find non-existent sub packageā¤current instr.: '_block11' pc 21 (EVAL_12:15)ā¤]
12:49 ashizawa left
masak rakudo: package A { say 1 } 12:49
moritz_ rakudo: package A { say 1; };
p6eval rakudo 31507: OUTPUT[Statement not terminated properly at line 1, near "{ say 1 }"ā¤ā¤current instr.: 'parrot;PGE::Util;die' pc 119 (runtime/parrot/library/PGE/Util.pir:82)ā¤]
rakudo 31507: OUTPUT[Statement not terminated properly at line 1, near "{ say 1; }"ā¤ā¤current instr.: 'parrot;PGE::Util;die' pc 119 (runtime/parrot/library/PGE/Util.pir:82)ā¤]
masak :)
12:49 wilx left 12:50 p6eval left 12:51 p6eval joined 12:58 abra joined 13:01 rindolf joined 13:14 rindolf left 13:20 abra left
masak is it still true what it says on S06:601? 13:20
I seem to remember that something like that was retracted
moritz_ that looks out-of-dateish 13:22
masak it does, doesn't it?
@ask TimToady is it still true what it says on S06:601? I seem to remember that something like that was retracted
lambdabot Consider it noted.
masak lambdabot: thanks
moritz_ wonders if every "thanks" to lambdabot increases the karma of lambdabot's creator 13:23
masak hopes not
implicit karma transactions are evil 13:24
even if created for apparently good reasons
Juerd feather's uptime is 131 days. 13:26
That's pretty high for a box with way too many users with root access :)
moritz_ aye ;)
masak Juerd++ # feather 13:27
Juerd Remember when it crashed because all memory was exhausted?
That was 131 days ago. :)
So hurrah for those who put effort into fixing memory leaks!
moritz_ and for those who restart apache regularly ;) 13:28
Juerd Well, Apache is restarted automatically every 6 hours
0 */6 * * * root /usr/local/bin/incredibly_ugly_hack_to_restart_apache
masak :)
moritz_ made that hack even uglier 13:29
Juerd But better too :)
13:31 Bzek left
moritz_ speaking of which, I could do another apt-get upgrade on feather... 13:34
13:36 Bzek joined 13:44 zamolxes left
masak moritz_: we talked about named parameters being optional the other day. I just confirmed that they are on S06:763. 13:45
13:45 Limbic_Region joined
masak re S06:811, I don't understand what the difference would be between `sub head(*$head, *@tail)` and `sub head($head, *@tail)`... 13:49
13:50 Limbic_Region left
masak is it that the latter would not match a call on the form `head(1..Inf)`? 13:51
13:52 `nipra left
masak on S06:860, is the backslash intentional? in other words, does .perl on a Capture print something starting with a backslash? 13:55
hm, seems it is. t/spec/S02-builtin_data_types/capture.t seems to use both '\' and '|'. nvm. 13:59
14:00 aindilis` is now known as aindilis
masak but wait! on S06:935, again a '\' is used in an argument list. now I'm confused. 14:02
S06 just becomes stranger and stranger the further into it I get... :/ 14:05
14:11 mj41_ joined
moritz_ masak: *$head seems to make $head optional 14:13
masak ah. 14:14
so a slurpy scalar is the same as an optional argument?
[particle]1 that seems right to me
14:14 [particle]1 is now known as [particle], preflex left
[particle] i added parameter passing rules to nqp and rakudo some time ago 14:15
lemme look at the nqp source to remember
masak sure thing
moritz_ does nqp have slurpy params? 14:16
masak this: `@a ==> @b` would be a pure list assignment, wouldn't it?
could I write `@a ==> my @b`?
moritz_ I think you could
masak and `@a ==> @b` is the same as `push @b, @a`, yes? 14:17
[particle] svn.perl.org/parrot/trunk/compilers...ctions.pir ~423
moritz_ masak: you meant @a ==>> @b?
lambdabot tinyurl.com/4ox7d9
masak moritz_: aye
[particle] oh, also need parser link there... 14:18
moritz_ actions written in PIR look so painful ;)
[particle] svn.perl.org/parrot/trunk/compilers...Grammar.pm ~229
masak I only have a Grammar.pg 14:19
[particle] oh, sorry 14:20
.pg
PerlJam Wait ... when did ==> become two headed? (==>>)
[particle] if $key eq 'slurp' { # slurpy
$past.slurpy( $sigil eq '@' || $sigil eq '%' );
$past.named( $sigil eq '%' );
}
masak PerlJam: when it's additive, like >> in shells 14:21
[particle] it's only slurpy if it's a @ or %
masak [particle]: be that as it may, it's called 'slurpy scalar' in S06
[particle] seems * is ignored for *$param
masak [particle]: at least that's a semantics I can understand :)
PerlJam masak: so, ==> is like "empty the target and fill it from the source" and ==>> is "add the source to the target"?
[particle] spec.pugscode.org/ not responding :( 14:22
masak PerlJam: think so
[particle]: I had the same problem
moritz_ did not
[particle] dns cache?
masak might be
[particle] restarts ff 14:23
moritz_ no, browser redirect cache
with wget I get the same failure
PerlJam btw, wrt slurpy scalars, I always though they were to circumvent laziness. i.e., a slurpy scalar will eagerly get you one item from a listy source. 14:24
s/though/thought/
[particle] sure, but are they optional?
in nqp, they're not.
masak quite. 14:25
PerlJam I wouldn't expect them to be optional.
[particle] then * is meaningless on scalar params 14:26
masak S06 talks about them at length, so it doesn't seem they're meaningless
[particle] that's the part i'm trying to look at next :)
14:28 mj41 left
moritz_ tries to figure out what's wrong with feather's apache 14:29
HTTP/1.1 302 Object moved
Location: perlcabal.org/syn/
lambdabot Title: Official Perl 6 Documentation
moritz_ now magically works [tm]
14:30 eternaleye_ left
[particle] works for me after ff restart 14:30
masak now Wikipedia is down instead :/
14:34 ispy_ joined
masak ah, here: "A heisenbug is a computer bug that disappears or alters its characteristics when an attempt is made to study it." 14:36
is there really a KitchenSink role in Perl 6? I don't know if that makes me laugh or cry 14:39
couldn't it at least be called Sink?
moritz_ uhm, this is weird... 14:41
the response header from feather's apache also includes
Server: Microsoft-IIS/6.0
masak haha
moritz_ X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
14:41 meppl joined 14:42 hercynium joined
masak aye, S06 confirms the `@a ==> my $b` syntax. 14:42
wonder if `@a ==>> my $b` would be equivalent or a syntax error?
moritz_ STD parse ==>> my @b 14:45
masak are PRE blocks run after tie-breaking is finished on multisubs? 14:47
moritz_ yes 14:49
if you want additional conditions that contribute to tie-breaking, you have to use subset types instead
masak seems sane
PerlJam I would think that @a ==>> my @b should just work fine. (Since that's my "least surprise" and perl follows said principle) 14:50
masak :)
PerlJam: well, something like `my $b += 2` doesn't work 14:51
moritz_ pugs: my $b += 2;
p6eval pugs: RESULT[\2]
masak hm :)
moritz_ masak: sure? ;-)
masak "test first, then speak with certainty"
rakudo: my $b += 2; 14:52
p6eval rakudo 31512: OUTPUT[MMD function __i_add not found for types (78, 92)ā¤current instr.: 'infix:+=' pc 11837 (src/gen_builtins.pir:7430)ā¤]
moritz_ rakudo can't autovivify scalars yet
so my $x; $x++ will also fail
rakudo: my Str $x; $x++; say $x 14:53
p6eval rakudo 31512: OUTPUT[Strā¤]
masak I would at least not be surprised if the above threw a not-defined warning, something which Pugs does not support, IIRC
moritz_ aye
otoh perl doesn't warn on $undef++ or $undef += $something either
because it's such a common non-error case
masak aye 14:54
with that reasoning, Perl 6 shouldn't either
moritz_ rakudo: my $x = 0; my @a = <1 2>; $x += @a; say $x
p6eval rakudo 31512: OUTPUT[2ā¤]
moritz_ I somehow thought that this doesn't work 14:55
rakudo: my $x = 0; my @a = <a b c d>; $x += @a; say $x
p6eval rakudo 31513: OUTPUT[4ā¤]
moritz_ rakudo: my @x = 1, 2, 3; my $i = 0; $i += @x; say $i 14:56
p6eval rakudo 31513: OUTPUT[3ā¤]
moritz_ closes RT #58274 14:57
14:59 zamolxes joined 15:01 braceta left 15:03 alanhaggai left 15:06 preflex joined 15:07 kanru left 15:08 kanru joined, literal left 15:09 literal joined 15:16 kanru left 15:17 kanru joined 15:20 literal left 15:21 justatheory joined 15:22 preflex left, literal joined 15:24 preflex joined 15:27 ruoso joined 15:42 alanhaggai joined, Exodist joined 15:50 literal left, literal joined 16:01 literal left, literal joined
pmichaud (my $b += 2;) I suspect this will throw a warning 16:17
masak ok. 16:18
pmichaud however, my $b; $b++; won't throw a warning, as we're explicitly allowed to increment undef values to Int
masak what's the difference?
pmichaud one's mentioned in the synopsis as being allowed while the other isn't? 16:19
moritz_ that does't look like a good reason to me ;)
masak the feel very similar to me 16:20
s/the/they/
moritz_ in perl 'my $b += 2' doesn't warn either
pmichaud I'm just reading the synopsis. :-) 16:21
I don't design the language, I just implement it.
The section that says that $x++ works on undef is in "Autoincrement precedence"
(in S03)
16:22 mofino left
pmichaud since += isn't "autoincrement", I'm not generalizing in that manner 16:22
16:23 zamolxes left
pmichaud otoh, the section "Declarators" does say: 16:24
When parentheses are omitted, you may use any infix assignment operator instead of = as the initializer. In that case, the left hand side of the infix operator will be the variable's prototype object:
constant Dog $fido .= new; # okay: a constant Dog object
so, "any infix assignment operator" would presumably include +=
that'll be weird.
16:25 jhorwitz joined
meppl good night 16:25
[particle] Dog++ 16:26
pmichaud I'm not sure that STD.pm supports the other infix assignment ops as initializers yet, though. It seems to only handle '=' and '.='
16:26 meppl left
[particle] what does that result in? 16:26
pmichaud that would be an error, because Dog isn't in a suitable container
pasteling "moritz_" at 89.13.207.187 pasted "failures while accessing dev.pugscode.org/changeset/22454" (9 lines, 2.2K) at sial.org/pbot/32382 16:27
[particle] where Dog is the protoobject
pmichaud right, it's not in a suitable container
it's like saying 3++
TimToady I think += should be able to turn an Int into a 0
lambdabot TimToady: You have 1 new message. '/msg lambdabot @messages' to read it.
TimToady or a Scalar into a 0
pmichaud TimToady: okay, works for me. 16:28
[particle] does that mean the Int protoobject has an Autoincrementable role?
or Vivifiable?
pmichaud I hadn't seen the line in S03 that said any infix assignment operator could be an initializer (until just now)
ruoso I think "Uninitialized" is a special value that knows how to turn itself into a lot of values... 16:29
like array, hash, 0, "" 16:30
TimToady I don't know how generalizable the thing is
ruoso because autovivification depends on it
pmichaud TimToady: I'd agree with that, also. :-)
TimToady but maybe it's related to the table of degenerate reduction ops
moritz_ I think the ops should be special, not the undef
ruoso postcircumfix:{} is not an op
TimToady if [*]() is 1 then maybe *= autovivs to 1 16:31
ruoso it's a method
moritz_ because it makes it easier to add types with new autovivification options
masak just as the discussion gets interesting, I have to go :P
pmichaud alas, so do I.
masak see you around
16:31 masak left
TimToady I suspect the question is already answered. :) 16:32
ruoso it is? 16:33
TimToady I think there's a deep relationship between assignment ops and reduction ops
ruoso has a blurred mind at the moment... 16:36
ruoso later &
16:46 TJCRI joined, alanhaggai_ joined 16:52 zamolxes joined, alanhaggai left 16:53 alanhaggai_ is now known as alanhaggai 16:54 literal left, literal joined 17:00 Lorn joined 17:15 rindolf joined, rindolf left 17:32 Bzek left 17:33 alanhaggai_ joined 17:44 apeiron_ joined 17:45 alanhaggai__ joined 17:47 alanhaggai left 17:58 apeiron left 18:00 alanhaggai_ left 18:02 apeiron_ is now known as apeiron 18:10 ispy_ left 18:17 mofino joined 18:26 cosimo left
rakudo_svn r31519 | pmichaud++ | [rakudo]: spectest-regression.csv update: 193 files, 4381 passing tests 18:44
r31520 | pmichaud++ | [rakudo]: Correct name of t/spec/S05-modifier/ignorecase.t 18:57
moritz_ uhm, I shouldn't commit when half asleep 18:59
18:59 alanhaggai__ is now known as alanhaggai 19:32 barney left 20:16 cognominal left 20:25 Torment joined 20:40 Kitchy joined
PerlJam moritz_: no, you should wait until you are fully asleep, then commit. 20:41
:-)
Kitchy Will there be a good compiler for Perl 6 that would let me decompile into C?
PerlJam Kitchy: if the need is great, someone will write it. 20:42
20:43 Jedai left
[particle] i can't imagine that need will be great 20:44
PerlJam [particle]: me either.
[particle] but who am i to judge?
moritz_ you are [particle] ;-) 20:45
[particle] all i know is: it's not in the perl 6 spec, so it's not required for any perl 6 to implement.
Kitchy Is it expected that the Camel book equivalent for Perl 6 will include community-written manpage stuff like the Perl 5 book does? 20:55
...because it sounds like english isn't the first language of some of the current doc writers. 20:57
moritz_ you can be sure that whatever O'Reilly publishes will be thoroughly edited 20:58
(and you're welcome to fix spelling and grammar errors yourself ;-)
21:04 smtms left, smtms joined 21:11 alester left 21:16 TJCRI left 21:19 Kitchy left 21:21 meppl joined 21:23 meppl left 21:27 eternaleye_ joined 21:49 iblechbot left 21:55 cognominal joined 21:58 Lorn_ joined 22:06 eternaleye_ left, eternaleye_ joined
ruoso later & 22:08
22:08 ruoso left 22:10 Lorn left 22:17 Lorn joined 22:19 ludan joined, Lorn_ left 22:37 Lorn left 22:50 ludan left 22:54 eternaleye_ left 23:03 eternaleye_ joined 23:06 kulp joined 23:18 meppl joined 23:56 Exodist left