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.
meppl good night 00:00
00:04 bacek left, meppl left 00:07 revdiablo joined 00:10 bacek joined 00:22 explorer__ joined, explorer__ left, explorer__ joined 00:23 jferrero left, explorer__ is now known as jferrero 00:32 Schwern joined 00:56 [particle]1 joined 01:07 [particle] left 01:09 [particle]1 left 01:14 [particle] joined 01:15 jferrero left 01:16 oldfield joined 01:28 oldfield left 01:34 hercynium_ joined 01:35 Alias_ joined, [particle] left 01:38 Limbic_Region left 01:42 [particle] joined 01:50 jferrero joined 01:53 drbean_ joined 02:06 luqui left 02:50 justatheory left 02:52 agentzh joined 03:06 simcop2387 joined 03:17 kanru joined 03:23 alester_ joined 03:34 jferrero left 03:40 hercynium_ left 03:44 cognominal_ left 03:54 rindolf joined 03:55 kanru left 04:17 drbean_ left 04:20 drbean_ joined 04:21 kanru joined 05:06 REPLeffect joined 05:23 BinGOs joined 05:28 redicaps joined 05:29 redicaps left 05:35 zostay_ joined 05:39 Psyche^ joined 05:44 redicaps joined 05:49 redicaps left 05:52 Psyche^ is now known as Patterner 06:02 alanhaggai joined 06:06 xinming_ joined 06:12 Alias_ left 06:35 alester_ left 06:38 ashizawa joined 06:44 barney joined 06:54 barney left 07:10 sunnavy left, clkao left 07:11 kanru left 07:18 sunnavy joined, clkao joined, obra joined 07:29 kanru joined 07:34 zamolxes joined 08:35 ilogger2_ joined 09:42 eternaleye_ joined 10:04 vixey joined
ruoso work & 10:08
10:38 elmex joined 10:53 pmurias joined 11:01 ron_ joined 11:04 alanhaggai joined, Lorn joined, kane_ joined, cls_bsd joined, idemal joined, gaal joined 11:06 cosimo joined 11:09 fridim_ joined 11:11 pbuetow joined, meppl joined 11:14 ilogger2 joined
Juerd pmurias: Same things you can do anywhere else 11:17
pmurias is coding in the hotel lobby ;) 11:20
Juerd I'm going to explore the parking lot behind the venue again 11:21
To see if I can legally park there
Someone said yes, but yesterday some other cph inhabitant said no.
pmurias Juerd: what are you doing after that? 11:22
Juerd After that I will try to find an ATM
I'm out of kroner
pmurias can one pay in euro here? 11:24
11:24 fridim__ joined
Juerd No 11:24
I have sufficient euro cash with me
But the silly danes never joined the euro zone :) 11:25
My tomtom has ATMs for Sweden, not for Denmark 11:29
So if I ask it to navigate to one, it'll send me to Malmƶ... :)
pmurias do you know where other people are? 11:36
pugs_svn r21894 | pmurias++ | [elfX] start of a m0ld backend
11:36 iblechbot joined
pmurias looking around the city& 11:42
11:52 dalecooper joined 11:55 iblechbot left 12:32 pbuetow joined 12:39 ruoso joined 12:45 iblechbot joined 12:53 Jedai joined 12:56 alester_ joined 12:59 alester_ left 13:02 meppl joined, fridim__ left 13:04 iblechbot left 13:10 ggoebel joined 13:15 cognominal_ joined 13:19 cognominal_ left, cognominal_ joined 13:35 sri_work joined 13:38 ron joined
ron anyone around for questions ? 13:38
[particle] yes 13:40
Tene Yes! 13:43
ron perl6: class Foo { method fooey {say 'fooey'} }; class goo { method gooey {say 'gooey'} }; sub goo() { return Foo }; my $goo = goo.new; $goo.fooey; $goo.gooey; 13:44
p6eval rakudo 29834: OUTPUT[fooeyā¤Method 'gooey' not found for invocant of class 'Foo'ā¤current instr.: '_block11' pc 72 (EVAL_13:25)ā¤]
..elf 21894: OUTPUT[Can't locate object method "gooey" via package "Foo" at (eval 127) line 16.ā¤ at ./elf_f line 3861ā¤fooeyā¤]
..pugs: OUTPUT[fooeyā¤*** No such method in class Foo: "&gooey"ā¤ at /tmp/Ecdv4HcSwa line 1, column 142-152ā¤]
ron perl6: class Foo { method fooey {say 'fooey'} }; class goo { method gooey {say 'gooey'} }; sub goo() { return Foo }; my $goo = goo.new; $goo.fooey;
p6eval elf 21894, pugs, rakudo 29834: OUTPUT[fooeyā¤]
13:44 Alias_ joined
ron have done similar tests under perl5 and believe perl5 resolves at compile time. 13:45
have read that perl6 does not use bar words but class tests seem to use them.
should I start to document some of this stuff somewhere?
bar -> bare 13:46
perl6: class Foo { method fooey {say 'fooey'} }; class goo { method gooey {say 'gooey'} }; my $goo = goo.new; $goo.gooey; 13:47
p6eval elf 21894: OUTPUT[Undefined subroutine &GLOBAL::goo called at (eval 125) line 13.ā¤ at ./elf_f line 3861ā¤]
..rakudo 29834: OUTPUT[invoke() not implemented in class 'goo'ā¤current instr.: '_block11' pc 20 (EVAL_12:13)ā¤]
..pugs: OUTPUT[gooeyā¤]
ruoso I think pugs is right in both cases... 13:48
bare "goo" geos through standard symbol lookup 13:50
and it finds the closest definition
which is sub goo
ron From what I could tell with --target=past|post|pir in last case rakudo still looking for sub and not sure whether lookup is done. 13:51
ruoso in that case, rakudo is presuming class must have a uppercase first letter... which is wrong iirc 13:52
13:52 pbuetow left, pbuetow joined
ron token typename { <?before <.upper> > <name> } 13:52
13:53 Lorn joined
Lorn hi, a answer about perl6 in perlmonks: www.perlmonks.org/?node_id=703877 13:54
ron Thanks, think maybe I should still document someplace if I can't fix. 13:55
ruoso pugs: { sub foo { say 'foo1' }; { sub foo { say 'foo2'}; foo(); } foo(); }; 13:58
p6eval pugs: OUTPUT[*** ā¤ Unexpected "foo"ā¤ expecting operator or "}"ā¤ at /tmp/CjGkoE9n0I line 1, column 61ā¤]
ruoso pugs: { my sub foo { say 'foo1'; }; { my sub foo { say 'foo2'}; foo(); }; foo(); }; 13:59
p6eval pugs: OUTPUT[foo2ā¤foo1ā¤]
ruoso pugs: { sub foo { say 'foo1'; }; { my sub foo { say 'foo2'}; foo(); }; foo(); };
p6eval pugs: OUTPUT[foo2ā¤foo1ā¤]
ruoso pugs: { sub foo { say 'foo1'; }; { sub foo { say 'foo2'}; foo(); }; foo(); };
p6eval pugs: OUTPUT[foo2ā¤foo1ā¤]
14:03 ggoebel left
ruoso rakudo: { sub foo { say 'foo1'; }; { sub foo { say 'foo2'}; foo(); }; foo(); }; 14:04
p6eval rakudo 29834: OUTPUT[./parrot: error while loading shared libraries: /home/evalenv/parrot/blib/lib/libparrot.so.0.6.4: file too shortā¤]
ruoso elf: { sub foo { say 'foo1'; }; { sub foo { say 'foo2'}; foo(); }; foo(); };
p6eval elf 21894: OUTPUT[Subroutine foo redefined at (eval 127) line 4.ā¤foo2ā¤foo2ā¤]
ruoso one could argue that unless you have 'my sub' it should store it in the package...
(which doesn't solve the goo.gooey problem) 14:05
(but is just a note about pugs implementation)
elf: { my sub foo { say 'foo1'; }; { my sub foo { say 'foo2'}; foo(); }; foo(); }; 14:06
p6eval elf 21894: OUTPUT[Subroutine foo redefined at (eval 127) line 4.ā¤foo2ā¤foo2ā¤]
14:06 TJCRI joined
ron pugs: { my sub foo { say 'foo1'; }; } ; foo(); 14:07
p6eval pugs: OUTPUT[*** No such subroutine: "&foo"ā¤ at /tmp/zu7ZdK0StI line 1, column 36-41ā¤]
ron pugs: { sub foo { say 'foo1'; }; } ; foo(); 14:08
p6eval pugs: OUTPUT[foo1ā¤]
ruoso pugs: { sub foo { say 'foo1'; }; { sub foo { say 'foo2'}; foo(); }; foo(); }; foo() 14:10
p6eval pugs: OUTPUT[foo2ā¤foo1ā¤foo2ā¤]
ruoso pugs: { sub foo { say 'foo1'; }; { my sub foo { say 'foo2'}; foo(); }; foo(); }; foo()
p6eval pugs: OUTPUT[foo2ā¤foo1ā¤foo1ā¤]
ruoso I think a warning would be ok when not using 'my sub'
14:12 iblechbot joined
ruoso or even when declaring a 'my sub' that overrides a package sub... 14:12
or a pre-declared class... 14:13
and also when declaring a sub that overrides a class declaration... 14:15
since subs and classes can both be used without sigil (since that classes doesn't have a sigil) 14:16
ron pugs: sub foo { print "foo1\n"; }; { sub foo { print "foo2\n"; }; foo(); }; foo();
p6eval pugs: OUTPUT[foo2ā¤foo1ā¤]
ron in perl5 with warnings there is a sub redefined warning 14:17
does the evalbot print warnings?
[particle] most of the perl 6 implementations don't do warnings yet
14:17 pmurias joined
ron rakudo: sub foo { print "foo1\n"; }; { sub foo { print "foo2\n"; }; foo(); }; foo(); 14:17
p6eval rakudo 29834: OUTPUT[foo2ā¤foo2ā¤]
ruoso that might be right, as bare 'sub' is not the same as 'my sub' 14:18
[particle] perl6: say $*ERR: "howdy"
p6eval rakudo 29834: OUTPUT[Statement not terminated properly at line 1, near ": \"howdy\""ā¤current instr.: 'parrot;PGE::Util;die' pc 120 (runtime/parrot/library/PGE/Util.pir:82)ā¤]
..elf 21894: OUTPUT[Undefined subroutine &GLOBAL::infix_58_58 called at (eval 119) line 3.ā¤ at ./elf_f line 3861ā¤]
..pugs: OUTPUT[howdyā¤]
pmurias ruoso: why does every SMOP__Object need to have a data?
14:18 Exodist joined
ruoso pmurias, it was to allow responder interfaces to be treated as regular objects.... 14:19
but I'm not sure anymore that this is actually required
considering that ->data is only accessed by the object itself 14:20
we could move the data pointer to a SMOP_LOWLEVEL_OBJECT_BASE struct
since smop_lowlevel uses that pointer to hold lock and refcnt informatoin
but that is a quite extensive refactoring... 14:21
pmurias loads of search and replace ;)
ron rakudo: say $*ERR: "HOWDY";
p6eval rakudo 29834: OUTPUT[Statement not terminated properly at line 1, near ": \"HOWDY\";"ā¤current instr.: 'parrot;PGE::Util;die' pc 120 (runtime/parrot/library/PGE/Util.pir:82)ā¤]
ron perl6: say $*ERR: "HOWDY"; 14:22
p6eval rakudo 29834: OUTPUT[Statement not terminated properly at line 1, near ": \"HOWDY\";"ā¤current instr.: 'parrot;PGE::Util;die' pc 120 (runtime/parrot/library/PGE/Util.pir:82)ā¤]
..pugs: OUTPUT[HOWDYā¤]
..elf 21894: OUTPUT[Undefined subroutine &GLOBAL::infix_58_58 called at (eval 119) line 3.ā¤ at ./elf_f line 3861ā¤]
ruoso pmurias, I'm neglecting that question because we're talking about just one pointer, and mostly because most objects so far are using it... 14:23
(all objects that use smop_lowlevel do)
14:24 ggoebel joined
ruoso but we might get into this issue before "1.0" ;) 14:24
pmurias, btw... about code object... I forgot one attribute when we were talking about it... 14:25
class Code { has $.outer; has $.mold; has $.signature; method postcircumfix:<()> {... } } 14:26
and I'm thinking about having signature like:
class Signature { method ACCEPTS (Capture $c) {...}; method BIND (Capture $c, LexicalScope $l) {...} }; 14:27
14:27 meppl left
ruoso this way we can have a lowlevel implementation of the default block signature... 14:27
we can even compile lowlevel implementations for the Signatures we use in s1p... 14:28
pmurias ruoso: i think we should try to have as little stuff in C as possible 14:29
14:30 iblechbot left
ruoso we can have a signature compiler 14:30
and not write it in C
instead of instantiating a Signature object, we create a new type specifically for that block :)
or re-use for identical signatures... 14:31
(specially the default block signature
pmurias the JIT can wait a bit
ruoso no... it's not just in time... it's compilation to static C code... 14:32
s1p doesn't have a real interpreter yet...
and won't have...
it will be compiled to static C code...
14:33 ggoebel left
pmurias ruoso: what do you mean by a real interpreter one which compiles and runs lines one by one 14:34
?
ruoso I mean... ( $_ is rw = OUTER::<$_> ) would be compiled to a smop responder interface that implements ACCEPTS and BIND for that specific signature...
pmurias re real interpreter i reread and got it 14:35
i'm actually thinking of taking the .pbc spec and adapting it to smop
but it's just an optimalisation so it can wait 14:36
ruoso I think so
ron so I'm guessing that there may need to be some kind of compile time symbol table lookup for some of these bareword cases ... If anyone actually knows I'm curious ... 14:37
ruoso ron, after bootstrapping, yes... but s1p is a 1st stage compiler that won't have this kind of lookup...
14:39 cognominal__ joined
pmurias ruoso: do you know how to compile a C file using smop withought putting it into the Makefile? 14:43
ruoso pmurias, what's the problem of putting it into Makefile 14:44
pmurias i'm testing switching p6 code from slime to mold 14:46
14:47 cognominal_ left 14:48 Alias_ left, Alias_ joined
pmurias ruoso: and once we get something running on smop it would be awkward to require putting the users script into our build system 14:53
14:56 pbuetow left, pbuetow joined 15:02 Alias__ joined, Alias_ left 15:03 ron left 15:05 kanru joined 15:07 jan__ joined 15:08 pbuetow_ joined, Alias_ joined, Alias__ left 15:13 cmarcelo joined 15:20 rdice joined
pugs_svn r21895 | pmurias++ | [smop] .p6 tests use mold 15:20
15:21 pbuetow left
pmurias ruoso: how should we migrate use v6 blocks to mold, a use v6-mold syntax or take a big leap? 15:22
15:27 dalecooper left
ruoso take a big leap... 15:33
maybe creating an additional placeholder for the molds initialization... 15:34
15:37 cognominal__ left 15:43 alanhaggai joined 15:50 Alias_ left 15:54 pmurias left 15:58 kst joined 16:16 iblechbot joined 16:33 BinGOs_ joined 16:35 iblechbot left, iblechbot joined 16:36 justatheory joined 16:52 zamolxes joined 16:54 jferrero joined 16:55 jferrero is now known as JoaquinFerrero 16:56 fridim_ joined 17:07 iblechbot left 17:24 Jedai left 17:26 rafl left, rafl joined, _smg joined 17:28 _smg left 17:29 smg joined 17:30 smg left 17:31 smg joined 17:32 smg left 17:33 smg joined 17:40 rindolf joined, wknight8111 joined 17:50 JoaquinFerrero left 17:51 meppl joined 17:52 jferrero joined 17:54 rdice left 18:08 jferrero left 18:09 jhorwitz joined 18:14 meppl left 18:39 zamolxes left 18:46 masak joined, jferrero joined 19:20 baest joined 19:22 fridim__ joined 19:28 baest_ joined, baest left 19:33 baest joined 19:34 baest_ left 19:36 fridim_ left 19:40 wknight8111 left 19:47 masak left, ludan joined 19:52 meppl joined 19:54 explorer__ joined 19:55 explorer__ is now known as JoaquinFerrero 20:10 jferrero left, mj41___ joined, mj41___ is now known as mj41, dduncan joined 20:14 cognominal_ joined 20:43 zamolxes joined 20:50 wknight8111 joined 21:18 TJCRI left 21:24 ruoso left 21:40 ez joined 21:56 ez left 22:01 cmarcelo left 22:05 Alias_ joined 22:12 Alias__ joined 22:13 Alias_ left 22:15 rindolf left 22:17 ez joined 22:22 meppl left 22:29 iblechbot joined 22:33 BinGOs_ is now known as BinGOs 22:41 Lorn left 22:46 Exodist left 22:47 luqui joined 22:48 iblechbot_ joined 22:50 fridim__ is now known as fridim_ 23:00 Limbic_Region joined 23:01 iblechbot left 23:08 fridim_ left 23:20 iblechbot_ left 23:21 hercynium_ joined 23:28 sri_work left 23:36 Alias__ left, Alias_ joined 23:41 ez left 23:44 Caelum joined 23:54 jhorwitz left