Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2008-07-13

Perl 6 | Reference Documentation | Rakudo

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:07 pugs_svn r21322 | ruoso++ | [smop] use sm0p labels in test/14... still with some memory leaks...
00:10 Caelum joined #perl6
01:04 pugs_svn r21323 | ruoso++ | [smop] Some more changes trying to catch the memory leak... but this kind of debug is incredibly hard...
01:08 alester joined #perl6
01:11 meppl good night
01:38 teejj joined #perl6
01:46 thepler_ joined #perl6
02:11 teejj left #perl6
02:13 peepsalot joined #perl6
02:29 thepler_ joined #perl6
03:02 elmex_ joined #perl6
03:14 alester joined #perl6
03:59 silug joined #perl6
04:00 redicaps joined #perl6
04:04 kanru joined #perl6
05:19 peepsalot joined #perl6
05:24 Psyche^ joined #perl6
05:59 c9s joined #perl6
05:59 silug joined #perl6
06:55 c1sung joined #perl6
06:57 redicaps left #perl6
07:39 pmurias joined #perl6
07:39 sri_work joined #perl6
07:54 kanru joined #perl6
08:03 silug joined #perl6
08:08 Caelum joined #perl6
08:09 zostay joined #perl6
08:09 frobnitz joined #perl6
08:09 lumi joined #perl6
08:17 jan__ joined #perl6
08:19 barney joined #perl6
08:20 iblechbot joined #perl6
08:32 jan__ joined #perl6
09:15 barney joined #perl6
09:43 pugs_svn r21324 | pmurias++ | [sm0p] move_capturize is no longer a special case
09:53 pugs_svn r21325 | pmurias++ | [sm0p] moved misc/sm0p to v6/smop/sm0p
10:06 wknight8111 joined #perl6
10:07 chris2 joined #perl6
10:22 b0xd joined #perl6
10:23 jovs joined #perl6
10:31 sri_work_ joined #perl6
10:38 rindolf joined #perl6
10:40 silug joined #perl6
10:46 pmurias how should i get hold of the stack backtrace in c (i need to to get it to print where the reference counters get --/++) what's the best way to do it?
10:47 pmurias using gdb, inline assembler, or gprof output are things which come to my mind
11:06 jfredett joined #perl6
11:11 redicaps joined #perl6
11:11 ruoso joined #perl6
11:11 pmurias ruoso: hi
11:12 ruoso pmurias, hi
11:12 pmurias re copy, are you sure you haven't fixed something, it didn't work when i tried
11:13 ruoso I've just changed the test count... you had 1..2 where you had only one tes
11:13 ruoso test
11:13 ruoso and I added a SMOP_RELEASE call for the value you initialized outside the sm0p block
11:16 pmurias well i find things work strangely sometimes, evil spirits living inside my laptop most likely ;)
11:16 meppl joined #perl6
11:17 pmurias C
11:17 pmurias SORRY
11:17 pmurias (caps lock)--
11:20 pmurias ruoso: regarding .call, implementing it would require lots of code duplication if it was possible to specifiy the responder interface would the move_* methods be required?
11:21 ruoso pmurias, doesn't move_* accept 0 as target parameter?
11:24 pmurias ruoso: you mean making .call all the move_stuff?
11:25 ruoso calling the move_* from the .call method
11:25 ruoso moving to the current node...
11:27 pmurias would it be possible to use a q:sm0p block for that?
11:28 ruoso hmmm... I don't think so...
11:32 pmurias what would be the main problem?
11:32 pmurias (besides it being slow)
11:33 ruoso the fact that you would need to recurse, and the CurrentFrame wouldn't be the frame you want to move the values from
11:37 kanru joined #perl6
11:37 pmurias ruoso: i would use a diffrent frame
11:37 ruoso yes... how would you move_responder from the original frame?
11:39 pmurias the code duplication starts to look more inviting now ;)
11:39 ruoso heh...
11:39 ruoso but you can SMOP_DISPATCH manually
11:39 ruoso and then you stay in the same frame
11:40 pmurias doing SMOP_DISPATCH manually is horrible
11:40 ruoso heh...
11:41 pmurias so i think it's either having the move methods or call
11:45 pmurias if nodes was an array we could have the move methods in sm0p/perl6
11:45 pbuetow joined #perl6
11:46 ruoso pmurias, the nodes are an array... you just need to expose the api
12:15 pmurias i'm looking at libjit now, have you thought how are we going to do NCI?
12:29 pbuetow joined #perl6
12:41 silug joined #perl6
13:17 Pe_Elle joined #perl6
13:30 snooper joined #perl6
13:58 sri_work joined #perl6
14:44 silug joined #perl6
14:55 redicaps joined #perl6
15:25 pugs_svn r21326 | pmurias++ | sm0p was moved to v6/smop
16:01 justatheory joined #perl6
16:44 silug joined #perl6
17:00 jan_ joined #perl6
17:12 barney left #perl6
17:27 Limbic_Region joined #perl6
17:32 icwiener joined #perl6
17:50 xinming_ joined #perl6
17:55 diakopter left #perl6
18:29 Schwern joined #perl6
18:40 ruoso joined #perl6
18:52 Auzon t/spec/S02-builtin_data_types/multi_dimensional_array.t seems to assume that $foo[0][0] means the same as $foo[0;0]. Is that correct? It doesn't seem like it to me.
18:53 Auzon Also, is there any difference between using an array or an array stored in a scalar when it comes to multidimensional arrays?
18:54 * moritz_ tries to check
18:54 Auzon The spec was pretty silent about the [0][0] syntax
18:55 moritz_ the difference between an array and an array in a scalar is purely syntactical, because the array container forwards method calls to its content
18:55 moritz_ so my Array of Int @x declares an array of Arrays of Int
18:56 moritz_ whereas my Array of Int $x; declares an Array of Int (afaict)
18:57 Auzon OK. As far as I can tell, @foo[0][0] or $foo[0][0] is like the Perl 5 style, but @foo[0;0] is true multidimensional (in the sense that it has a defined boundary) and isn't the same thing.
18:58 moritz_ those @array[0][0] tests are pretty old, if you look at svn blame
18:58 moritz_ r1653
18:58 Auzon wow
18:58 moritz_ maybe send a mail to p6l asking for clarification
18:59 moritz_ autovivification.t has a lot of redundant smartlinks
18:59 moritz_ 5 consecutive smartlinks that are displayed in a row in the spec doc
19:00 Auzon re mail, sounds good
19:01 Auzon re smartlinks, I'll clean that up unless you've started on it already
19:01 moritz_ I haven't
19:03 Auzon ok, done
19:03 moritz_ Auzon++
19:03 pugs_svn r21327 | Auzon++ | [gsoc_spectest] smartlink cleanups
19:05 Schwern joined #perl6
19:05 Auzon hm. I was descriptive there ;)
19:05 moritz_ sufficient ;)
19:07 Auzon What is the terminology for $foo[0][0] in Perl 6? $foo is a capture of an array, and $foo[0] is also a capture of an array, right?
19:07 moritz_ I think so, yes
19:08 moritz_ or you can just say that both $foo and $foo[0] are Array objects
19:08 Auzon and $foo[0;0] refers to a multidimensional array object, right?
19:08 moritz_ pugs: my @x = <a b c>; my $y = @x; my $z = \@x; say $y.perl, ' ', $z.perl
19:09 p6eval pugs: OUTPUT[\\("a", "b", "c") \\("a", "b", "c")␤]
19:09 moritz_ $foo in $foo[0;0] referst to a multidim array object
19:09 Auzon ok, create
19:09 Auzon *great
19:09 moritz_ $foo[0;0] referst to a stored item
19:09 moritz_ s:first /st/t/
19:10 * Auzon doesn't know how 'great' became 'create'
19:11 moritz_ my $str = 'create' ; # ;-)
19:12 silug joined #perl6
19:28 wknight8111 joined #perl6
19:53 moritz_ Auzon: still around?
19:55 moritz_ rakudo: say ("a" ~~ m/a/).WHAT
19:55 p6eval rakudo 29398: OUTPUT[Statement not terminated properly at line 1, near "/).WHAT"␤current instr.: 'parrot;PGE::Util;die' pc 120 (runtime/parrot/library/PGE/Util.pir:82)␤]
19:57 Schwern joined #perl6
19:59 Auzon moritz_: I am now.
20:00 moritz_ Auzon: I'm looking at rakudo's ROADMAP, and collecting stuff that's missing there
20:00 moritz_ http://nopaste.snit.ch/13574 this is what I've got so far
20:01 moritz_ Auzon: do you know other major stuff (from top of your head) that's missing?
20:02 Auzon Something that's a big deal for the tests is that eval's scope is wrong (e.g. my $foo = 5; eval 'say $foo'; doesn't see $foo in the eval)
20:02 moritz_ that's a big annoyance, but nothing that has to appear in the roadmap; pmichaud is workiing on that (mostly parrot issues blocking)
20:03 Auzon Right.
20:03 Auzon I can't think of anything big missing.
20:03 moritz_ ok, thanks for looking
20:12 pmurias ruoso: if libjit is GPL, can we use it?
20:27 moritz_ rakuo: say "abc".bytes
20:27 moritz_ rakudo: say "abc".bytes
20:27 p6eval rakudo 29398: OUTPUT[Method 'bytes' not found for invocant of class 'Perl6Str'␤current instr.: '_block11' pc 21 (EVAL_13:13)␤]
20:28 moritz_ rakudo: say "abc".codes
20:28 p6eval rakudo 29398: OUTPUT[Method 'codes' not found for invocant of class 'Perl6Str'␤current instr.: '_block11' pc 21 (EVAL_13:13)␤]
20:28 moritz_ rakudo: say "abc".graphs
20:28 p6eval rakudo 29398: OUTPUT[Method 'graphs' not found for invocant of class 'Perl6Str'␤current instr.: '_block11' pc 21 (EVAL_13:13)␤]
20:28 Auzon rakudo: say "abc".chars
20:28 p6eval rakudo 29398: OUTPUT[3␤]
20:28 Auzon At least it has one of them ;)
20:30 moritz_ rakudo: say "äü".chars
20:30 p6eval rakudo 29398: OUTPUT[2␤]
20:31 moritz_ rakudo: say "A҄".chars
20:31 p6eval rakudo 29398: OUTPUT[2␤]
20:31 moritz_ ok, current .chars corresponds to .codes actually
20:31 moritz_ (the A҄ was entered as two codepoints)
20:33 Auzon ah
20:33 Auzon Is there a one-char version of that?
20:33 moritz_ don't think so
20:33 moritz_ it's a cyrillic combining accent
20:33 moritz_ ;-)
20:34 moritz_ rakudo: say "a????".chars
20:34 p6eval rakudo 29398: OUTPUT[2␤]
20:34 moritz_ I have no font that would display it correctly ;)
20:34 moritz_ U+1D244 COMBINING GREEK MUSICAL PENTASEME
20:35 donaldh joined #perl6
20:36 pugs_svn r21328 | moritz++ | [irclog] dalek in #parrot is a bot
20:38 Auzon ^ a statement of fact.
20:44 jovs joined #perl6
21:07 pmurias ruoso: how should pure sm0p file (without c) be distinguished a 'use sm0p;' at front or a heuristic?
21:31 silug joined #perl6
21:36 Alias_ joined #perl6
21:53 justatheory joined #perl6
22:40 meppl joined #perl6
23:28 s1n left #perl6
23:37 bacek joined #perl6
23:37 wknight8111 joined #perl6
23:57 wknight8111 joined #perl6
23:57 rindolf joined #perl6

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

Perl 6 | Reference Documentation | Rakudo