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:01 fridim_ joined 00:02 vixey left 00:04 justatheory left 00:19 cmarcelo joined, FurnaceBoy left 00:27 Limbic_Region joined 00:31 fridim_ left 00:37 nipotan is now known as nipotaway 00:40 elmex left 00:44 icwiener left 00:45 meteorjay left 01:04 Limbic_Region left 01:14 Caelum left 01:15 Caelum joined 01:27 Ched- left, Ched- joined 01:41 penk left 01:46 justatheory joined 01:53 penk joined 02:24 pen1 joined 02:25 penk left 02:48 qmole left 02:55 jhorwitz left 02:56 justatheory left 03:09 alexe joined 03:13 ludan left 03:20 pen1 left 03:22 penk joined 04:59 eternaleye_ is now known as eternaleye 05:06 Ched- left 05:23 alexe left 06:03 cmarcelo left 06:15 TimToady joined 06:19 meppl joined 07:00 alexe joined 07:10 alexe left 07:31 _REPLeffect joined 07:32 REPLeffect_ left
rakudo_svn r27778 | pmichaud++ | [rakudo]: 07:35
r27778 | pmichaud++ | * Refactor lots of stuff dealing with Pairs, argument handling, and lists.
r27778 | pmichaud++ | The resulting code is 127 lines shorter, more correct, gets rid
r27778 | pmichaud++ | of lots of unwanted references to "infix:,", and helps get us closer
r27778 | pmichaud++ | to being able to handle list assignment and list context.
07:47 iblechbot joined 08:09 pmurias joined
pmurias spinclad: lval-accessor idiom? what it is? 08:09
* what is it?
08:09 elmex joined 08:17 vixey joined
pmurias vixey: would you prefer the ast dumping to use named arguments 08:33
?
vixey I'm not sure 08:34
pmurias: is that a STD_red thing? 08:36
pmurias no, i mean the Ast elf prints out when -v is called 08:39
it's done in p6
by Ast i refered to IRx1 08:40
08:42 pjcj left
vixey I wasn't able to figure out if STD_red or IRx1_FromAST or whichever stage post if was lost 08:44
but it doesn't seem to be around in the -v output
pmurias by named params i meant the ast being dumped as CompUnit(statements=>[...],filename=>undef) instead of CompUnit([...],undef) 08:50
vixey oh that sounds good 08:51
09:04 qmole joined 09:20 penk left
moritz_ rakudo: my $x = sub { say "foo" }; $x(); 10:03
exp_evalbot OUTPUT[foo␤]
moritz_ rakudo: my &x = sub { say "foo" }; x() 10:22
exp_evalbot OUTPUT[foo␤]
moritz_ rakudo: my &x = 1; x()
exp_evalbot OUTPUT[invoke() not implemented in class 'Integer'␤current instr.: '_block11' pc 39 (EVAL_11:20)␤
moritz_ rakudo: my @x = 1; say "still there" 10:23
exp_evalbot OUTPUT[still there␤]
10:28 chris2 joined 10:38 jferrero joined 10:41 lisppaste3 left 10:42 b_jonas joined
moritz_ @tell masak I made an article for my homepage, not a perlmonks meditation; anyway, here it is: perlgeek.de/en/article/mutable-gram...for-perl-6 - comments welcome 11:08
lambdabot Consider it noted.
11:13 ludan joined
ludan hi 11:14
moritz_ hi ludan ;)
fullermd moritz_: "<[A..Z> <[A..Z0..9_]>*" 11:22
Missing a ] there?
moritz_ fullermd: yes, thanks 11:23
11:23 Psyche^ joined
moritz_ fullermd: is the article understandable? 11:25
11:26 ludan left
fullermd Well, I haven't finished it; just grabbed a minute or two away from work to glance at it. 11:26
moritz_ ok
fullermd The proto regex section is a little greek, but it feels like it'll yield to a more careful reading.
moritz_ perhaps I'll find a simpler/more verbose explanation 11:27
vixey moritz cool!
fullermd May have time later to go through it with more brain cells committed. 11:29
11:40 Patterner left, Psyche^ is now known as Patterner 11:48 rindolf joined
pugs_svnbot r20515 | pmurias++ | [elf] removed a unused hack 11:53
r20515 | pmurias++ | the ast dump uses named arguments
11:59 iblechbot left 12:01 ruoso left 12:04 ruoso joined
rakudo_svn r27779 | jonathan++ | [rakudo] A few updates to Mutable PMC, and subclass it for Scalar, Array and Hash containers. 12:06
r27780 | jonathan++ | [rakudo] Tests for Mutable PMC. 12:07
12:28 iblechbot joined
Patterner <error revision="20515"> Generating precompiled Prelude, Math::Basic... pugs: Internal error: Invalid grammatical category: "Bool" </> 12:39
moritz_ Patterner: known error, nobody managed to fix it so far
12:53 jferrero left 13:00 lisppaste3 joined 13:14 kane_ left 13:31 kane_ joined
pmurias moritz_: why did you use a letter for a hypotetical new sigil? 13:31
b_jonas there was some old joke with internationalizing perl by replacing keywords with french variants and "$" with "Fr" 13:32
rindolf b_jonas: £ 13:34
b_jonas: or ¥
There's also the ILS sign. 13:35
pmurias moritz_: it's really akin to using token sigil:sym<x> { <sym> } with x being easier to type 13:37
Patterner Freedom Sigil!
13:40 FurnaceBoy joined
pmurias vixey: is there anything in elf which particulary annoys you? 13:50
* particularly
vixey pmurias: The link from STD_red to IRx1 is not clear to me 13:52
pmurias STD_red emitts the match object as perl5 code which is eval'ed by Parser.pm 13:53
IRx1_FromAST (created by IRx1_FromAst_create) then turnes that into IRx1 13:54
* emits 13:55
vixey: clearer now? 14:00
b_jonas rindolf: it was before the introduction of EUR
rindolf 14:01
vixey pmurias: cool ty, I might try to get post if working when I'm back home 14:02
b_jonas let's use a funny space like as a silgil, e.g.  foo -- no-one would notice that
or, as p6 already has @@ as a silgil, what about %%
or &&
14:05 hsv-al joined, hsv-al left 14:06 alc joined
moritz_ pmurias: I wasn't aware that ¢ is a letter actually ;) 14:09
pmurias ł is a letter
moritz_ ah, that
I randomly typed some charcates and took the weirdest-looking ;) 14:10
pmurias i have an ł in my name 14:14
pugs_svnbot r20516 | moritz++ | [fudge] add lives_ok and eval_lives_ok to fudge, bacek++ 14:18
b_jonas cent certainly isn't a letter 14:19
pmurias it's much easier to pronounce too 14:23
14:25 jhorwitz joined 14:37 justatheory joined 14:46 demq joined
pugs_svnbot r20517 | moritz++ | [spec] fudged S29-list/{grep,sort}.t, patch curtesy of bacek++ 14:48
15:21 pmurias left 15:26 rindolf left 15:41 IllvilJa left 15:44 alester_ joined 16:06 rindolf joined 16:07 _REPLeffect left
wolverian hm. why is there /usr/bin/X11/perl on feather? just curious. 16:14
moritz_ what's the output of 'dpkg -S /usr/bin/X11/perl'? 16:15
wolverian not found 16:16
that's why I asked :)
someone *did* install 5.10 into /usr/local before debian got it in a package, perhaps it's a leftover from there (but why is it not in local?)
16:18 FurnaceBoy left 16:27 pmurias joined
pmurias wolverian: i have a perl in /usr/bin/X11/ on a gentoo box too 16:27
moritz_ that's really weird if you ask me
wolverian I don't have one on ubuntu 8.04 server 16:28
pmurias moritz_: it's a link to ../bin 16:31
on feather it's a symbolic link to /usr/bin 16:34
moritz_ ok
Juerd It doesn't appear to be installed by a debian package either 16:35
16:36 demq left
moritz_ systems tend to collect garbage unless cared for very thouroughly 16:37
wolverian it is? ls -l doesn't show it is..
pmurias wolverian: depends how you call it 16:38
ls -ld dosn't
wolverian how's that?
pmurias but ls -l /usr/bin/ | grep X11 does 16:39
moritz_ that's weird
isn't that even a bug in ls?
pmurias likely 16:40
16:41 polettix joined
b_jonas no, how it quotes characters and how it columnates and colors CAN depend on whether the output is a terminal, 16:43
but you can override all of these via options
moritz_ -d, --directory 16:44
list directory entries instead of contents, and do not derefer‐
ence symbolic links
b_jonas uh
wolverian oh, *X11* is a symbolic link, not X11/perl
moritz_ it's all documented
b_jonas sure
moritz_ yes
wolverian that was confusing :)
b_jonas you added -d
moritz_ ah right, ls -l X11 shows that it's a link 16:46
but ls -l $normal_dir shows $normal_dir's contents
that's inconsistent
(but documented)
pmurias it's not documented on my ls version 16:47
moritz_ uhm, you're right 16:48
pmurias so it could be a documented bug
16:50 chris2 left 16:51 ewilhelm joined 16:52 Psyche^ joined 17:03 Patterner left, Psyche^ is now known as Patterner 17:12 wknight8111 left 17:47 alester_ left, alester_ joined 17:48 rindolf left, alester_ left, alester_ joined
rakudo_svn r27783 | jonathan++ | [rakudo] Add more tests to the known passing list. Patch courtesy of moritz++. 17:51
moritz_ YaY, karma in two channels ;)
rakudo patches really pay off ;)
17:54 slavi3 joined
rakudo_svn r27784 | jonathan++ | [rakudo] Update makefile to build the scalar, array and hash PMCs that subclass Mutable. 17:54
slavi3 where can I go if I I am having trouble building pugs? 17:55
17:55 mncharity joined
slavi3 Generating precompiled Prelude, Math::Basic... pugs: Internal error:Invalid grammatical category: "Bool" Please file a bug report. 17:55
17:57 alester_ left
mncharity stevan_: re 6/3, neat. lunch or somesuch? 17:57
17:59 polettix left
moritz_ slavi3: pugs is known to be broken. Try an older version with ghc 6.6.1 17:59
slavi3: more specifically r19915 (from svn) works for me
slavi3 I see, will have to bother later then 18:00
ty
18:00 slavi3 left 18:05 rindolf joined 18:19 braceta joined 18:26 braceta left
pmurias mncharity: hi 18:27
18:30 alc left
mncharity hi pmurias 18:30
have elf_f working again. running regression tests. 18:31
rakudo_svn r27787 | jonathan++ | [rakudo] Turns out that calling a PMC Scalar isn't such a good idea. :-)
pmurias mncharity: is the hack pretty ;) ? 18:32
mncharity re 'what to do', how about attribute defaults for Faster? has $.x = 3; It's also used to initialize array/hash, eg, has @.a;
re pretty, not so much. but needed things working again. ;) 18:35
pugs_svnbot r20518 | pmurias++ | [elf] -v uses Perl::Tidy
mncharity realized an lvalue sub could *also* support the (argument=>assignment) api. with ~0 cost over lvalue.
18:35 vixey left
mncharity re Perl::Tidy, I thought kp6 found PT was a major performance hit? 18:35
pmurias only on -v 18:36
if you prefer to get badly formated code faster i can make it dependend on an env var or something 18:37
mncharity re -v, ah, ok :) 18:38
err, probably want emitter1 rather than emitter0. 18:41
pmurias yes 18:43
have you seen the improved -v output?
mncharity not yet
pugs_svnbot r20519 | putter++ | [elf] elf_f works again. run-tests.result_faster updated. 18:47
pmurias mncharity: (argument=>assignment) api, explain please 18:50
mncharity re -v output... ++avoids having to look at the node fields; --much more verbose, so harder to eyeball large chunks of code. a good tradeoff. might want both at some point. 18:51
spinclad pmurias: re lval-accessor: accessor in lval position, $foo.part = newval (as opposed to accessor-as-setter, $foo.part(newval) ). 18:53
(just names, no new content)
pmurias i know that, implemented that recently 18:54
18:54 cognominal_ left
mncharity re tidy, any needed p5 code should go into one of the preludes. eval_perl5 should not appear elsewhere. else it stops looking like a bootstrap. 18:54
re api,
spinclad moritz_: s/(changes )too( great care)/took/ # had to read this a few times to reparse and repair 18:57
moritz_ spinclad: thank, fixing now 18:58
19:00 cognominal_ joined
pmurias mncharity: could you continue please ;) 19:01
19:04 FurnaceBoy joined
pugs_svnbot r20520 | putter++ | [elf] elf_f_faster again uses lvalue subs. 19:05
mncharity sorry, got sucked into code.
pmurias np
19:06 Psyche^ joined
mncharity basically, Faster accessors can now use both the elf_f and elf_f_faster "assign to accessor method call" apis. 19:06
hmm.... now is that really needed anymore....
no 19:07
pmurias bo
* no
was working on the same thing
can i have a try?
mncharity re no, err, empirically yes. not sure why. my code is in. re try, feel free. I'll move on.. 19:09
pmurias would bet elf self-compilation is slower now 19:15
19:18 Patterner left, Psyche^ is now known as Patterner
mncharity lvalues? 19:19
pmurias hopes not 19:20
mncharity why slower?
or "observed to seem slower"? 19:21
spinclad not observed, expected? 19:22
mncharity re lvalues/accessor assignment, unless p5 is nonlocally pessimizing upon seing them, it doesn't seem likely. my impression is they are not much used in elf.
pmurias used to self compile in 10sec in the old days, now 20
mncharity parser cache? 19:23
pmurias maybe just more code
moritz_ pmurias: well, but the code size increased as well, right?
pmurias it's 40 withough the cache
mncharity is the 20 repeatable? ie, it's not just parser cache refresh?
re "old days", oh, not a recent step-function change. hmm... 19:24
the elf_f startup times really tempt me to avoid regressing testing elf_f :/ 19:26
hmm, maybe time to rename the elf_f executable elf_f_simple or some such, to avoid ambiguity.
moritz_ mncharity: can't you do many parses with one startup? (to get many tests parse) 19:27
mncharity the code size shouldn't have changed much.
moritz_ or is it the compied stuff that takes so long to execute?
pmurias maybe the machine slowdowned :(
mncharity moritz_: most tests still go boom. hmm... might add a --avoid-going-boom-by-wrapping-file-in-eval argument... or, to help distinguish file results, perhaps a --ugly-speed-kludge-cooperating-with-run-tests argument... eep 19:30
pmurias: could choose a fixed test object which could be compiled the whole time, time "old days" and current elf_f_faster, and if there's a difference, go looking inbetween. 19:31
moritz_ bisecting? 19:32
mncharity hmm... not sure the new IR layout is actually a worthwhile tradeoff in practice... 19:34
maybe if it got split up onto separate lines like the Match output.
pmurias do you have Perl::Tidy? 19:35
it's supposed to formating 19:37
mncharity looking... 19:38
ah, no.
so when the eval_perl5 gets moved into the prelude, PT should be added to the dependencies so things die cleanly if its missing. 19:39
better simplicity of behavior than robustness in its absence. 19:40
s/its/tolerating its/
pmurias only speced things should be in the prelude 19:41
mncharity no.
the prelude is guided more by what degree of p5 independentness a bit of code has.
specific p5 api dependence -> Emit; generic p5 backend -> PrimitiveP5; p6 -> Prelude.pm. spec'ness isn't an issue. 19:42
once rakudo can run p6 prelude, we may start working on a combined prelude. but if so, that will be a separate thing. 19:43
ooooo, tidy... pmurias++ 19:45
we aspire to specness... but basically, there is no existent compiler which can handle even a few lines of a real spec prelude. that's been our long-term problem. :/ 19:47
19:48 ting joined 19:49 agentz1 joined
pmurias while the PT adapter could be moved to a p5 stuff file it shouldn't be in the prelude 19:50
the prelude contains things which are part of the language 19:51
and does eval_perl5 hurt in the perl5 emitter? 19:52
pugs_svnbot r20521 | pmurias++ | [elf] the accessor hack is conditional
mncharity we can call it something other than prelude if you like. but all p5 has to be localized or it becomes rather less a bootstrap. the only two places with p5 at the moment are Emit's prelude string, and PrimitivesP5. 19:54
pmurias ok, it will matter when we have a non-p5 backend 19:56
mncharity indeed. one of the stronger arguments for starting a js or CL backend now is it will help force us to stay honest. 19:58
pmurias do you now a good CL book?
mncharity www.lisp.org/HyperSpec/FrontMatter/...Index.html ? 19:59
lambdabot Title: CLHS: Chapter Index
mncharity www.cs.cmu.edu/Groups/AI/html/cltl/...node1.html
lambdabot Title: Contents
pmurias would non-spec things having a HACK prefix be a good idea? 20:00
mncharity www.gigamonkeys.com/book/ 20:01
lambdabot Title: Practical Common Lisp
pmurias you have all of them?
mncharity they are all online :)
and free
CL++
haven't read Practical Common Lisp, but it's been well reviewed. 20:02
pmurias my only experience with a () style language is scripting the gimp 20:03
mncharity re HACK, basically I expect at most a stray fragment or two of code might survive from now until a spec-compliant p6. even getting to pugs-level capability will involve quite a bit of churn. so basically there's is a HACK prefix, attached to the entire codebase. and things are just slowly made more test-passingly hackish. 20:05
20:05 ting_ left, agentzh left
mncharity javascript? 20:05
20:06 ewilhelm left
pmurias did an AJAX app 20:06
i can write js fairly fluently 20:08
the JavaScripdt: The Definitive Guide is a good book 20:10
20:11 FurnaceBoy left
mncharity be nifty to have a js backend. with better analysis and increasingly optimized spidermonkey, it seems it would need not even be slow like PIL2JS was. 20:11
pmurias would a CL backend be much faster then the p5 one?
mncharity very much so. at least for compilation, like elf's currently, which is focused more on performance than p6 correctness. 20:12
20:13 rindolf left
moritz_ maybe you could win avar for a CL backend? he said he'd work on one for kp6 as soon as it was bootstrapped 20:13
mncharity there was a cl backend for kp6. might look at that. i assume it has some of the "primitives p5 has but cl doesn't" code which could just be copied.
:) 20:14
re things to do, another is to replace cruft like $.var.sigil eq '$' 20:15
in Emit with methods in/added-to Analysis. eg, is_scalar. 20:16
basically Emit should move gradually towards being a clean explanation of how to compile p6 on a p5 like language. with Analysis providing the analysis and vocabulary to let that happen. 20:18
pmurias should i remove non speced non used stuff as each_with_index?
mncharity perhaps comment it out, rather than removing? 20:19
mncharity tries to remember what the p6 idiom is for each_with_index...
pmurias to tempt the next person into using non-speced stuff ? ;)
prototypes on methods don't make any sense 20:21
moritz_ mncharity: for @list Z 0 .. * -> $item, $index { ... }
pugs: for <a b c>.kv -> $a, $b { say "$a|$b" }
exp_evalbot OUTPUT[*** Not a keyed value: VList [VStr "a",VStr "b",VStr "c"]␤ at /tmp/MTL59ZMmCL line 1, column 5-16␤]
20:22 cihhan joined
mncharity hmm... with a $500 multicore machine, make test_faster would only take a couple of minutes... 20:22
20:22 b_jonas left
mncharity re tempt, so if someone needs and goes looking for the capability, it's only an uncommenting away. 20:23
20:23 Ingmar joined
cihhan sorry I am new to Perl but I'd like to ask if tehre is any way to execute an exe and then read the outputs of this exe? 20:23
moritz_ cihhan: wrong channel, here is perl 6 compiler development 20:24
cihhan ooohh, so sorry
moritz_ cihhan: try #perl or #perlhelp or some channels on irc.perl.org
cihhan thank u very much
good luck on ur works 20:25
:)
pmurias ;)
moritz_ thanks ;)
mncharity for @list Z 0 .. * { ...$^each...$^index... } err, that can't be the right placeholder variable format, can it?
20:26 cihhan left
pmurias that remindes me of $^whiteboard 20:27
moritz_ why not? 20:28
for <a b c d e f> -> { say $^b, $^a; } 20:29
pugs: for <a b c d e f> -> { say $^b, $^a; }
exp_evalbot OUTPUT[*** Undeclared variable: ("$^b",MkPad (padToList [("$_",PELexical {pe_type = (mkType "Scalar"), pe_proto = <Scalar:0xb679342c>, pe_flags = MkEntryFlags {ef_isContext = True}, pe_store = <ref:0xb67932f4>}),("@_",PELexical {pe_type = (mkType "Array"), pe_proto = <Array:0xb67932c8>, pe_flags =
..MkEntryFlags {ef_isContext = False}, pe_store = ...
20:29 pjcj joined
moritz_ rakudo: for (1, 2, 3, 4) -> { say $^b, $^a; } 20:29
exp_evalbot OUTPUT[21␤43␤]
moritz_ rakudo++
mncharity pmurias: todo: add positional analysis to Analysis. :) 20:31
*positionals
pmurias mncharity: each_with_index in p6 is @a:kv 20:32
mncharity: should i write the todo's down? 20:35
Eevee rakudo: for (1, 2, 3) -> { say $^b, $^a; } 20:36
exp_evalbot OUTPUT[21␤StopIteration␤current instr.: '_block11' pc 65 (EVAL_11:28)␤
mncharity writing todos would be great. the "what are some easy things for people to work on" idea 20:38
README is almost empty in elf_f_src
@a:kv not @a.kv ? 20:39
pmurias yes 20:40
moritz_ pugs: for <a b c d>:kv -> $a, $b { say "$a|$b" }
exp_evalbot OUTPUT[*** ␤ Unexpected ":kv"␤ expecting term postfix, operator or block construct␤ at /tmp/87QA4HWkND line 1, column 14␤]
moritz_ pmurias: what's the syntax called? or where can I read more about it? 20:41
pmurias S09:527
right to using string as array indexes
moritz_ pmurias: thanks, looking
pmurias * next to 20:42
moritz_ ah, it's an adverb
it'll take some time for me to get used to it ;)
mncharity btw, elf ignoring :todo's is intentional. so some Test tests will fail indefinitely. 20:44
pmichaud in the suite I think we're planning to avoid :todo in favor of fudge anyway 20:45
mncharity re get used to, oh, yeah. I keep on thinking "some day I should actually try to learn p6". ;)
pmichaud (assuming that was in reference to the suite)
mncharity was, thanks :) 20:46
also planning on avoiding fudge, at least until test coverage is pugs-like broad, and regression avoidance and test-loss is critical. 20:47
pmichaud that works.
mncharity * test-loss avoidance 20:48
pmurias: something for the todo list, range op .. 20:50
err, no, hmm, why didn't that work... 20:52
pmurias what? 20:53
mncharity: the match tree looks much more readable withought the text position and the matched text but looses some info 20:54
mncharity re what?, turned out to be a $n<x> to $n.x regression. I should probably do a code walk to look for other such. :/ ah well. 20:57
re tree readability, best bet is to do a string clipper. ie, any string longer than n (say 30 chars) gets the middle clipped out of it and replaced by ... . 20:58
or have two different dumper formats
60 chars? 20:59
also can do s/\n/\\n/ which makes it more compact
pmurias mncharity: two formats might be sensible
mncharity more compact, but less useful for debugging, so yeah, perhaps two formats. we'll probably need to decompose -v at some point. -v -v2. -vSomeParticularThingToBeVerboseAbout. somesuch 21:01
pmurias the char pos & orginal string is usefull for debugging parsing 21:02
otherwise it's a hindrance
mncharity err, when would one look at a Match tree except when debugging parsing, or looking a the Match result from a regex? 21:05
pmurias ast->ir
if the match is correct it's obvious which part belongs to what 21:06
i mainly look at the Match out of curiosity 21:08
mncharity ah, ok.
what did you think of showcode?
apropos ast->ir
pmurias i'll look at it again 21:09
i don't like pink 21:10
the left pane turnes left when i click on it 21:11
mncharity re pink, :) could switch to external css. :) 21:14
"left pane turnes left", huh?
or just change the color :) 21:15
pmurias it turns red 21:19
mncharity I don't understand...
pmurias the text in the leftmost column turnes red permanently 21:22
mncharity oh, I see. "Match's clicked on in the left window turn red, but isn't changed back when you cli..." what you said.
pmurias yes
mncharity yeah. never got as far as dealing with that. I'm wondering what you think more "big picture" rather than "details'. 21:24
mncharity crosses fingers, runs t/ yet again...
pmurias can't think of a real use for it 21:25
mncharity: have you changed anything significant?
mncharity you mean since it was created? no
re use, ah, ok
primary motivation was to have a way to show non-local analysis info... but it doesn't do that yet so... 21:26
pmurias it could used for exploring a file and seeing what it compiles to 21:27
shower& 21:28
mncharity yeah. Emitter would have to add (lots of) position markers. 21:29
maybe could wrap Emitter methods.
pmurias the thing it you be usefull for is finding compiler errors in big pieces of code 21:40
checking if the compiler compiles the area near the assumed bug correctly 21:41
but it would need emitter integration 21:42
mncharity *nod 21:52
pmurias it could also be used as part of a "run elf in your browser and see how cool it is thingy" 21:53
but that sort of things don't seem a worthwhile time use 21:54
mncharity indeed 21:58
mncharity fights with svn... svn winning... :/
weary yay. 22:03
22:03 Psyche^ joined
pugs_svnbot r20522 | putter++ | [elf] Better hash/array/pair literal support. run-tests.result_faster updated. And tweaks. 22:03
mncharity perl6: +"foo" 22:04
exp_evalbot kp6: OUTPUT[syntax error at position 0, line 1 column 0:␤+"foo␤^ HERE␤]
..pugs: RESULT[0.0]
..rakudo: RESULT[Method 'perl' not found for invocant of class 'Integer'␤current instr.: '_block11' pc 38 (EVAL_11:18)␤called from Sub 'parrot;PCT::HLLCompiler;eval' pc 783 (src/PCT/HLLCompiler.pir:458)␤called from Sub 'parrot;PCT::HLLCompiler;evalfiles' pc 1065 (src/PCT/HLLCompiler.pir:587)␤called
..from Sub 'parrot;PCT::HLLCompiler;command_line' pc 1244 (...
..elf: RESULT[syntax error at (eval 11) line 3, near "GLOBAL::statement_prefix:"␤ at ./elf_f_faster line 4371␤]
moritz_ perl6: say +"foo"; 22:05
exp_evalbot kp6: OUTPUT[␤]
..pugs: OUTPUT[0␤]
..rakudo: OUTPUT[0␤]
..elf: OUTPUT[foo␤]
mncharity ah, tnx
nobody warned. :/ 22:11
moritz_ mncharity: I guess that's because warnings aren't really specced all that much (and tested, for that matter) 22:12
pmurias mncharity: it might usefull to do seperate compilation before attempting the CL backend to cut compile times 22:13
mncharity because of sbcl? it's fairly fast. 22:18
pmurias i'll get to sleep now, as i'm only rambling and yawing ;) 22:19
g'night
22:19 pmurias left
moritz_ good night 22:19
22:19 Patterner left, Psyche^ is now known as Patterner
moritz_ rakudo: say 4.perl 22:20
exp_evalbot OUTPUT[4␤]
22:20 vixey joined
moritz_ then why did it say Method 'perl' not found for invocant of class 'Integer 22:20
earlier on? 22:21
mncharity good night pmurias
moritz_ ah, something returned and Integer, not an Int
rakudo: say (+"foo").WHAT
exp_evalbot OUTPUT[Int␤]
mncharity Integer != Int ? 22:22
moritz_ intproto = p6meta.'new_class'('Int', 'parent'=>'Integer Any')
rakudo: my Integer $x = 3; say $x.WHAT
exp_evalbot OUTPUT[Int␤]
moritz_ rakudo: my Integer $x = 3; say $x.perl
exp_evalbot OUTPUT[3␤]
mncharity rakudo: my Int $x = 3; say $x.WHAT 22:23
exp_evalbot OUTPUT[Int␤]
mncharity rakudo: my Int $x = 3; say $x.perl
exp_evalbot OUTPUT[3␤]
mncharity pugs: +{3=>4,5=>6} 22:24
exp_evalbot OUTPUT[*** ␤ Unexpected end of input␤ Closing hash curly may not terminate a line;␤ please add a comma or a semicolon to disambiguate␤ at /tmp/Y4YMUi0HGt line 2, column 1␤]
mncharity pugs: my %h = (3=>4,5=>6); say +%h
exp_evalbot OUTPUT[2␤]
mncharity /me so wants to do multi prefix:<+> as a real multi... but just don't want a dependency on mmd working yet... :/ 22:27
moritz_ mncharity: for now you can just make prefix:<+>($x) call $x.Num, that's also correct 22:39
22:51 iblechbot left 22:52 jisom joined
mncharity re .Num, oh, neat. tnx. 22:57
perl6: +(:a<3>) 23:00
exp_evalbot kp6: OUTPUT[no method 'APPLY' in Class 'Undef'␤ at compiled/perl5-kp6-mp6/lib/KindaPerl6/Runtime/Perl5/MOP.pm line 345␤ KindaPerl6::Runtime::Perl5::MOP::__ANON__('HASH(0x824bdac)', 'APPLY', 'HASH(0x8e5335c)') called at compiled/perl5-kp6-mp6/lib/KindaPerl6/Runtime/Perl5/MOP.pm line 169␤
..main::DISPATCH('HASH(0x824bdac)', 'APPLY', 'HASH(0x8e5335c)') ca...
..pugs: RESULT[2]
..rakudo: OUTPUT[Null PMC access in type()␤current instr.: 'parrot;PAST::Compiler;keyed' pc 6062 (src/PAST/Compiler.pir:1694)␤called from Sub 'parrot;PAST::Compiler;post_children' pc 1671 (src/PAST/Compiler.pir:362)␤called from Sub 'parrot;PAST::Compiler;call' pc 2766
..(src/PAST/Compiler.pir:780)␤called from Sub 'parrot;PAST::Compiler;post_children' pc 167...
..elf: OUTPUT[Unquoted string "a" may clash with future reserved word at (eval 10) line 3.␤]
mncharity ok, let's see... 23:05
int is Int ? 23:06
err, no. int does Int ?
and what is Integer ?
what is the relationship between Bit Int and Num? Do they have a common role other than Any? 23:10
pugs: my $x = :a<3>; say $x.WHAT; say +$x; 23:14
exp_evalbot OUTPUT[Pair␤2␤]
mncharity rakudo: my $x = :a<3>; say $x.WHAT; say +$x;
exp_evalbot OUTPUT[Null PMC access in type()␤current instr.: 'parrot;PAST::Compiler;keyed' pc 6062 (src/PAST/Compiler.pir:1694)␤
mncharity sigh. neither roles nor recursive inheritance in p5. :/ 23:22
rakudo: Any.can('foo') 23:33
exp_evalbot OUTPUT[Method 'can' not found for invocant of class ''␤current instr.: '_block11' pc 35 (EVAL_11:18)␤
mncharity rakudo: Object.can('foo')
exp_evalbot OUTPUT[Method 'can' not found for non-object␤current instr.: '_block11' pc 35 (EVAL_11:18)␤
pugs_svnbot r20523 | putter++ | [elf] STRING now inherits from Str, etc. .Num added to Prelude. prefix:<+> calls .Num . Emit of Pair() tweaked. 23:42