Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2007-10-31

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:05 theorb joined #perl6
00:15 Khisanth joined #perl6
00:38 amnesiac joined #perl6
00:42 Timm3h joined #perl6
00:44 Jamtech joined #perl6
00:51 qmole_ joined #perl6
01:01 lyokato joined #perl6
01:18 FreshCat joined #perl6
02:02 Khisanth joined #perl6
02:15 qmole joined #perl6
02:25 dlocaus joined #perl6
02:25 dlocaus left #perl6
02:37 agentzh dlocaus: re Trac interface: http://dev.pugscode.org/changeset/18737
02:37 lambdabot Title: Changeset 18737 - Pugs - Trac
02:43 Khisanth joined #perl6
02:55 justatheory joined #perl6
03:06 elmex joined #perl6
03:07 sili_ joined #perl6
03:16 audreyt joined #perl6
03:20 kamue joined #perl6
03:40 kamue left #perl6
03:47 REPLeffect joined #perl6
04:16 weinig joined #perl6
04:17 weinig joined #perl6
04:26 amnesiac joined #perl6
05:18 cls_bsd_ joined #perl6
05:34 Timm3h joined #perl6
05:44 jisom joined #perl6
05:46 Ashizawa joined #perl6
06:24 devogon joined #perl6
06:45 bsb_ left #perl6
06:48 pugs_svn r18738 | moritz++ | [irclog] fixed a templated that caused broken links on the index page
07:07 kanru joined #perl6
07:14 BinGOs joined #perl6
07:35 BinGOs joined #perl6
08:01 franck___ joined #perl6
08:15 iblechbot joined #perl6
08:15 audreyt joined #perl6
08:20 masak joined #perl6
08:22 cognominal_ joined #perl6
08:37 jrockway joined #perl6
09:00 pugs_svn r18739 | agentz++ | [PCR] some POD added
09:20 jrockway_ joined #perl6
09:42 rindolf joined #perl6
09:56 franck___ left #perl6
09:59 franck___ joined #perl6
10:07 ebassi joined #perl6
10:19 gongyiliao joined #perl6
10:26 iblechbot joined #perl6
10:26 ruoso http://ldeniau.web.cern.ch/ldeniau/oopc.html
10:26 lambdabot Title: Object Oriented Programming in C
10:26 ruoso ^ interesting C Object System...
10:29 wolverian COS is pretty clean compared to gobject.. :)
10:34 ebassi it has more boilerplate macros as well, compared to gobject :-)
10:37 pnu joined #perl6
10:40 wolverian yes :)
10:42 fglock joined #perl6
10:56 gongyiliao left #perl6
11:04 funktio joined #perl6
11:09 pugs_svn r18740 | agentz++ | [PCR] updated my email address to agentzh@yahoo.cn
11:11 agentzh PCR 0.27 is on CPAN now :)
11:11 agentzh http://search.cpan.org/~agent/Pugs-Compiler-Rule-0.27/
11:11 lambdabot Title: Agent Zhang (章亦春) / Pugs-Compiler-Rule-0.27 - search.cpan.o ...
11:11 ruoso fglock, had you take a look in the link I just posted?
11:12 fglock ruoso: looking
11:13 gongyiliao joined #perl6
11:13 gongyiliao left #perl6
11:16 theorbtwo joined #perl6
11:23 fglock agentzh++
11:26 kanru joined #perl6
11:36 moritz_ agentzh++ indeed
11:58 agentzh thanks :)
12:20 pugs_svn r18741 | agentz++ | [PCR] added a SEE_ALSO section to gen-tracer-view.pl's POD
12:39 fglock agentzh: do you know how is <?xyz> different from <?before <xyz> > and from <before <xyz> > ?
12:40 agentzh fglock: no, sorry :(
12:41 agentzh fglock: haven't read S05 for a long time ;)
12:42 fglock also, how to tell if <.ws> is a sub-token or a method call
12:42 fglock agentzh: np
12:49 faxathisia joined #Perl6
13:03 gongyiliao joined #perl6
13:05 rindolf joined #perl6
13:14 weinig joined #perl6
13:20 FreshCat joined #perl6
13:21 gongyiliao left #perl6
13:21 Jedai joined #perl6
13:22 cmarcelo joined #perl6
13:23 gongyiliao joined #perl6
13:30 elmex_ joined #perl6
13:32 pjcj joined #perl6
13:33 f0rth joined #perl6
13:38 pugs_svn r18742 | fglock++ | [kp6-perl5] refactored class initializations, docs
13:49 lisppaste3 joined #perl6
13:57 rindolf joined #perl6
14:00 pugs_svn r18743 | fglock++ | [kp6-kp6] t-bootstrap/ - temporary tests for debugging the bootstrapped compiler
14:02 pmurias joined #perl6
14:03 pugs_svn r18744 | fglock++ | [kp6-kp6] more tests
14:22 iblechbot joined #perl6
14:23 pmurias fglock: why do you write this tests in p5?
14:23 JannAZi joined #perl6
14:23 JannAZi left #perl6
14:29 franck____ joined #perl6
14:32 pmurias fglock: where should the perl6 version of mangle_name live?
14:33 moritz_ pmurias: perhaps Runtime::Perl6::Name ?
14:33 moritz_ or ::Names or something
14:34 pmurias or Emit::Perl5?
14:54 pmurias fglock: kp6 treats '\'' into "\\'"
14:54 pmurias s/into/as/
14:56 amnesiac joined #perl6
14:57 pugs_svn r18745 | pmurias++ | [onion] Emit::Perl5 emits hello world (output broken by wrong handling of '\'' in kp6)
14:59 gongyilia1 joined #perl6
14:59 gongyilia1 left #perl6
15:04 fglock b
15:05 fglock pmurias: re write in perl 5, because these are just for debugging
15:08 ingy joined #perl6
15:08 gugod joined #perl6
15:08 * fglock longs for a non-smoking workplace
15:18 pmurias fglock: how is work on getting the grammars to work going?
15:24 fglock the regexes seem to work fine, but there is still some problem in the closures
15:25 ruoso http://globalnerdy.com/2007/10/23/the-real-reason-goto-is-considered-harmful/
15:25 lambdabot Title: Global Nerdy � Blog Archive � The REAL Reason GOTO is Considered Harmful, http://tinyurl.com/24etxx
15:25 fglock I needs a public caldav server for running some tests
15:25 ruoso heh
15:27 fglock * need
15:28 ruoso fglock, davical formerly rscds
15:45 TJCRI joined #perl6
15:58 gongyiliao left #perl6
15:59 pmurias does #line impose a runtime penaly?
16:00 rgs what, the cpp directive ?
16:01 pmurias in perl5
16:01 rgs nope
16:01 pmurias thought saw, but wasn't certain
16:01 rgs zero penalty at runtime, infinitesimal one at compiletime
16:02 rgs (as in: if you're worried about such penalties, remove all your comments first :)
16:02 PerlJam comments don't exist at run-time  :)
16:02 rgs unless you're MAD
16:02 pmurias rgs: kp6 dosn't emit comments
16:02 TimToady it would be possible for #line to have a runtime effect, but that would also be very small
16:03 TimToady you'd have to be relying on the line number somehow
16:03 TimToady and feed it a large line#
16:03 PerlJam #line 9827398723628728376283746  (perl, please don't barf)
16:03 TimToady for example, if your program took the factorial of the current line number...
16:05 pmurias taking the factorial was the example which also came first to my mind
16:06 rgs and is it a sign of sanity ?
16:06 TimToady is the sign of sanity + or -?
16:06 PerlJam pmurias: rejoice! Your brain is warped into a similar configuration as TimToady's
16:06 PerlJam pmurias: er, I mean ... you poor poor soul
16:07 TimToady one of us must be redundant... :)
16:07 pmurias ;)
16:08 TimToady rudundant array of insane developers
16:09 PerlJam less like an array and more like a hash I think
16:09 TimToady maybe it's a match
16:09 PerlJam Or some chaotic thing
16:11 dlocaus joined #perl6
16:11 * [particle] smartmatches against a Bag of Junctions full of filehandles containing #line decls
16:13 chris2 joined #perl6
16:14 Daveman joined #perl6
16:14 TimToady just put it into the IO monad, and everything will work out
16:15 TimToady or rather, you will have worked everything out by the time the compiler is happy  :/
16:16 barney joined #perl6
16:17 kanru joined #perl6
16:19 [particle] hope i've got enough memory
16:32 weinig joined #perl6
16:33 TimToady memory is a necessary but not sufficient condition to make the Haskell compiler happy :)
16:33 [particle] happiness is a warm memory bank
16:35 justatheory joined #perl6
16:38 dlocaus I was snooping around yesterday and I noticed that http://svn.perl.org/perl6/pugs/ is at revision 14468 and http://svn.pugscode.org/pugs/ is at 18745 ... is this a problem? :)
16:38 lambdabot Title: Revision 14468: /pugs
16:39 [particle] svn.perl.org seems like an out-of-date mirror
16:39 TimToady dlocaus: did you feel the earthquake last night?
16:39 dlocaus urhmm... shouldn't "perl.org" be up to date?
16:39 dlocaus oh man...
16:40 dlocaus I was afraid my dog would pee on the bed. :)
16:40 [particle] svn.pugscode.org is the primary repo. i don't know who made the perl.org mirror, or why
16:40 TimToady I figured you did, given your pacbell location
16:40 dlocaus :)
16:40 TimToady which is very close to my home's
16:40 dlocaus The epicenter is about 2 hours drive south of me.
16:40 TimToady I'm also on snfc21
16:40 dlocaus oh cool!
16:41 TimToady though not as far as irc knows...
16:41 TimToady let's see, that puts you at about Santa Rosa
16:41 TimToady or Dunnigan :)
16:42 dlocaus a little bit south of that... about a cross the bridge. :)
16:42 dlocaus Its nice to know my dog trusts me to fix everything, I just wish she wouldn't let me know during an earth quake.
16:42 elmex joined #perl6
16:42 TimToady our cats always wanted us to stop the rain
16:43 TimToady I was on top of a stepladder when it hit, so now I've fulfilled one of my life's goals.
16:44 * Tene fears a pun.
16:45 dlocaus I remember when one of my cats first saw snow.  His eyes just popped wide open.  Of course, I had to throw him into the yard.  I got tired of him testing the snow with his foot.
16:45 TimToady cats always do that in the doorway even when there isn't snow
16:46 dlocaus well, I was out there with him watching it... freezing...
16:46 TimToady anyway, the epicenter was only about 15 miles east of me, so I got a pretty good ride
16:47 dlocaus what were you doing on a step ladder at 8pm?
16:48 elmex joined #perl6
16:49 TimToady I was about to do a circuit test on the tweeter of the right speaker in my church, which has refrained from tweeting.
16:49 TimToady the speaker, not the church
16:49 Tene So the church tweets?
16:49 TimToady it's an ancient Yamaha speaker that weighs about two tones
16:49 TimToady *tons
16:49 dlocaus uhrmm... I don't know much about electricity, but the earthquake's timing wasn't that great...  ~zap~
16:50 TimToady well, 1 volt is not usually much of a problem
16:50 TimToady funny thing is that I was the guy who put the extra earthquake straps on those speakers 15 years ago
16:51 TimToady 'cause they're right over some of the exits, and I could just imagine them coming down on people panicking and running out...
16:51 dlocaus Test::Harness
16:52 TimToady actually, they only weigh about 119 lb each...
16:52 TimToady but that would still be a bad day for someone
16:53 TimToady anyway, I didn't realize at the time that it could have been a bad day for me.  :)
16:53 kolibrie so the straps held?
16:53 dlocaus I was thinking of the next big one... where the west coast of california was supposed to sink into the sea.
16:54 TimToady yup
16:54 Psyche^ joined #perl6
16:54 [particle] so are sf and la closer or further apart now?
16:54 TimToady not really, wasn't the SAF this time
16:54 [particle] oh well
16:55 TimToady but given the overall trend here, they're probably a few fractions of an inch further apart now
16:55 dlocaus Calvadarous(sp?)
16:55 TimToady calavaras
16:56 TimToady interesting question is now whether the hayward will pop off, given this was right at one end of it
16:56 dlocaus I've got my emergency food & supplies ready for the big one.   I haven't been able to figure out what to do about water though...
16:57 dlocaus The problem mostly is trying to figure out how to get a 55gallon (208 liters) into my house.
16:57 dlocaus 55 gallon drum.
16:58 TimToady water is divisible, y'know...
16:58 dlocaus its the drum that is the problem.
16:58 dlocaus it won't fit in my car.
16:58 dlocaus and shipping is expensive.
16:59 dlocaus also... I'm not sure my floor would hold 55 gallon's of water :)
17:01 [particle] how far are you from a water source? filters and pumps are cheap.
17:01 dlocaus that's not a problem, I can run a hose into the house np
17:02 dlocaus or do 1 gallon 2x a day by hand.
17:02 dlocaus its getting the drum and transporting it into my house.
17:02 * [particle] will be drinking filtered and carried water for the next 3+ weeks
17:02 TimToady what's so sacred about 55 gallons?
17:02 dlocaus no one can steal it.
17:02 dlocaus also, since it's a common container its pretty cheap.
17:03 [particle] they do roll.
17:03 dlocaus I would like to see someone roll a 55 gallon container on the hill I'm on. :)
17:03 TimToady rock on.  now all we need is the drummer.
17:04 dlocaus http://svn.pugscode.org/pugs/v6/v6-KindaPerl6/src/KindaPerl6/Runtime/Perl5/DispatchSugar.pm
17:04 dlocaus package KindaPerl6::Runtime::Perl5::DispatchSugar::Dispatch;
17:04 dlocaus That package has an AUTOLOAD routine in it.  Does anyone have an idea of how I can find out if it is being used?
17:04 lambdabot http://tinyurl.com/27k624
17:04 [particle] change the routine to die when called?
17:04 TimToady darn it, now you've gone off topic.  :)
17:05 dlocaus [particle]: that only works if the code I try, has an execution path that will invoke it.
17:05 [particle] is there a test suite to run?
17:06 dlocaus [particle]: not sure.
17:06 dlocaus there is a test suite, but I don't know how through it is.
17:06 elmex joined #perl6
17:07 dlocaus I'll give that die a try.
17:07 pmurias dlocaus: i used warn last time
17:08 pmurias it's only used from MOP
17:10 dlocaus so, the AUTOLOAD routine is actually used?
17:11 justatheory joined #perl6
17:11 elmex joined #perl6
17:12 penk joined #perl6
17:12 pmurias yes
17:12 pmurias what would be the use of the module otherwise?
17:13 dlocaus I was hoping it might be some unused code that someone had put in there.
17:13 pmurias AUTOLOAD works on methods also
17:15 pugs_svn r18746 | dlo++ | Fixed a comment, that sugar_off was not in use.  It is used in t/p5/test_dispatch_sugar.t
17:15 jjore-w left #perl6
17:16 Psyche^ joined #perl6
17:17 elmex joined #perl6
17:17 blindfish joined #perl6
17:18 pmurias dlocaus: you documented what the AUTOLOAD is used for yourself ;)
17:18 barney joined #perl6
17:24 elmex joined #perl6
17:26 dlocaus pmurias: Yes, I know what AUTOLOAD is used for, I don't know if it is in use. :)
17:26 drrho joined #perl6
17:27 dlocaus I'm sorry, I should know this, but how do you run the test suite for kp6?
17:32 fglock perl Makefile.PL ; make test
17:33 IllvilJa joined #perl6
17:33 dlocaus oh duh
17:33 elmex joined #perl6
17:39 Psyche^ joined #perl6
17:44 pugs_svn r18747 | pmurias++ | INTENTIONS section has been changed to NOTES (content also makes sense now)
17:49 marmic joined #perl6
18:02 dlocaus pmurias: ping
18:03 dlocaus pmurias: when you said to remove Runtime::Perl5::DispatchSugar, a few days ago, you ment replacing $var = sugar { }; with $var = bless { }, ...Runtime::Perl5::DispatchSugar::Dispatch'; correct?
18:05 dlocaus pmurias: http://irclog.perlgeek.de/perl6/2007-10-29#i_133836
18:05 lambdabot Title: IRC log for #perl6, 2007-10-29
18:06 fglock dlocaus:  $var = { ... };
18:06 dlocaus fglock: ?
18:07 fglock perl 6 objects can be plain perl 5 hashes
18:07 pmurias dlocaus: yes
18:07 pmurias no
18:08 dlocaus yes/no?
18:08 pmurias i meant what fglock said
18:08 dlocaus but MOP.pm isn't perl6, but perl5.  $var has to be blessed into DispatchSugar::Dispatch so that the AUTOLOAD will still be invoked.
18:09 pmurias you can use ::DISPATCH($obj,'method',...) instead of $obj->method(...)
18:10 fglock i meant what pmurias said :)
18:11 dlocaus pmurias: that is what I was looking into earlier, there are a lot of instances of $obj->method is invoked via AUTOLOAD.  How would I find them?
18:11 pmurias warn in the AUTOLOAD
18:11 pmurias or grep|ack|editor search on MOP.pm for '->'
18:12 marmic_ joined #perl6
18:15 marmic__ joined #perl6
18:17 dlocaus ok, I think I got it
18:28 Psyche^ joined #perl6
18:33 jisom joined #perl6
18:41 dlocaus pmurias: ping
18:42 dlocaus I'm not sure that removing $obj->method is a good idea.
18:42 dlocaus ::DISPATCH( $meta_Method, 'add_parent', $meta_Routine );
18:42 dlocaus $meta_Method->add_parent($meta_Routine);
18:42 dlocaus the later case is much more readable...
18:42 dlocaus Do you still want me to go though with it?
18:42 cognominal_ joined #perl6
18:45 pasteling "dlocaus" at 63.192.210.11 pasted "readability?" (21 lines, 394B) at http://sial.org/pbot/28366
19:02 pmurias dlocaus: most of the ::DISPATCH calls in MOP could be turned into a call to make_class
19:05 weinig joined #perl6
19:05 dlocaus pmurias: hurmm, not sure I'm up to that yet.
19:05 dlocaus pmurias: let me finish with just turning it into ::DISPATCH...
19:06 pmurias i hope you aren't converting all of them by hand...
19:08 dlocaus :)
19:08 dlocaus !no... no I'm not!
19:08 dlocaus really!
19:09 pmurias should we believe you? ;)
19:10 jisom joined #perl6
19:13 moritz_ parrot has problems again with parallelized make
19:14 moritz_ [particle]: are these problems known, or should I report them?
19:14 rindolf joined #perl6
19:15 [particle] moritz_: it's been mentioned in channel iirc but please email the details to parrotbug@parrotcode.org with [BUG] in the subject
19:15 iblechbot joined #perl6
19:16 moritz_ [particle]: ok, will do
19:16 [particle] moritz_++
19:19 moritz_ I tried it twice, and both times it ended with a segfault. Now I started `script' and tried again, and it works like a charm
19:19 moritz_ heisenbug
19:19 [particle] the best kind.
19:24 danga joined #perl6
19:28 lichtkind joined #perl6
19:29 dlocaus pmurias: I've converted everything to ::DISPATCH, and removed Runtime::Perl5::DispatchSugar.pm
19:29 dlocaus The test results look the same as before I futzed, with everything.  Should I commit?
19:30 pmurias yes
19:30 dlocaus I've also removed DispatchSugar's test cases, and entries and Makefile.PL, still want me to commit?
19:30 pmurias yes
19:31 pmurias the policy here is to commit if in doubt and revert if wrong
19:31 dlocaus what about entires in compiled/perl5-kp6-mp6/...
19:31 [particle] ...and when you're sure of something, delete it and start over.
19:32 dlocaus pmurias: ping?
19:34 pmurias dlocaus: pong
19:34 dlocaus commit compiled/perl5-kp6-mp6/* changes as well?
19:34 chris2 joined #perl6
19:34 meppl joined #perl6
19:34 pmurias yes
19:34 _meppl joined #perl6
19:35 pmurias to save on the long compiles the practice here is to keep the compiled image in the repo
19:38 pugs_svn r18748 | dlo++ | Factored Runtime::Perl5::DispatchSugar out of MOP.pm.
19:38 pugs_svn r18748 | dlo++ |
19:38 pugs_svn r18748 | dlo++ | The test case for DispatchSugar was removed, since DispatchSugar was the only test case for the perl5 script/run_tests_kp6_mp6.pl section, the code
19:38 pugs_svn r18748 | dlo++ | now checks to SEE if there ANY test cases for the p5 code, before executing.  A warning (not an error) is issued if there are no test cases found.
19:38 pugs_svn r18748 | dlo++ |
19:38 pugs_svn r18748 | dlo++ | This code produces the same test case results as before I started the refactoring.
19:38 pugs_svn r18748 | dlo++ |
19:38 pugs_svn r18748 | dlo++ | TODO:  convert ::DISPATCH code into make_class()
19:38 dlocaus I get 1 karma point for each line of "svn commit" comment? hummm...
19:38 dlocaus karma dlo
19:40 moritz_ @karma dla
19:40 lambdabot dla has a karma of 0
19:40 moritz_ @karma dlo
19:40 lambdabot dlo has a karma of 22
19:40 dlocaus pmurias: can you look that over before you go to bed?  I'll do the next iteration if that looks good to you (convert it into make_class)
19:40 moritz_ dlocaus: the idea is to encourage verbose log messages
19:41 moritz_ ;-)
19:41 dlocaus yep, bring back the meaning of "kloc"
19:41 [particle] ok kpok (thousand points of karma)
19:42 pmurias dlocaus: ok
19:42 justatheory joined #perl6
19:43 BinGOs joined #perl6
19:45 perlbot joined #perl6
19:48 pmurias shower&
19:50 avar dlocaus: s/make_class/make_instance/ :)
19:53 dlocaus avar: can you elaborate on that more?
19:54 dlocaus avar: I think pmurias is refering to the sub make_class on line 214.
19:56 avar nothing, really:)
19:57 dlocaus ok
19:57 dlocaus I'll be back in a bit.
19:57 dlocaus left #perl6
20:07 weinig joined #perl6
20:09 pmurias @tell dlocaus looks fine
20:09 lambdabot Consider it noted.
20:11 pugs_svn r18749 | pmurias++ | [kp6] removed DispatchSugar completly
20:11 weinig_ joined #perl6
20:12 pmurias should done stuff in TODO be removed or marked as such?
20:15 moritz_ pmurias: marked
20:21 audreyt joined #perl6
20:21 pmurias moritz_: there are there different styles of marking in TODO
20:23 weinig joined #perl6
20:25 * spinclad has a cushion stuffed with kpok
20:26 Tene @karma spinclad
20:26 lambdabot spinclad has a karma of 0
20:26 spinclad that's cause i sit on em
20:28 spinclad good for cultivating bodhicitta
20:28 dlocaus joined #perl6
20:29 dlocaus hello
20:29 lambdabot dlocaus: You have 1 new message. '/msg lambdabot @messages' to read it.
20:29 pmurias dlocaus: rehi
20:29 spinclad wb dlocaus
20:29 dlocaus hi!
20:29 dlocaus cool.
20:30 dlocaus pmurias: would you have time to walk me though the conversion for ::DISPATCH to make_class() for one of the MOP.pm's objects?
20:30 pmurias yes
20:30 dlocaus cool
20:30 dlocaus I figured out most of it, but there appears to be some nesting I can't quite figure out how to unravel
20:31 pasteling "dlocaus" at 63.192.210.11 pasted "convert this to make_class methods=> { new => ... }" (17 lines, 449B) at http://sial.org/pbot/28372
20:31 spinclad ah... that would be the metacircularity of the metaobject protocol
20:32 pmurias some stuff and the top needs to be node in a special way to bootstrap the metamodel
20:32 pasteling "dlocaus" at 63.192.210.11 pasted "and this one as well." (13 lines, 232B) at http://sial.org/pbot/28373
20:32 spinclad (i node that... really!)
20:34 pmurias spinclad: node that means?
20:35 spinclad node: past tense of new
20:36 spinclad sorry, can't make english today ... past tense of no.
20:36 dlocaus past tense of "no"?
20:36 dlocaus knew?
20:36 spinclad right, that.
20:36 spinclad past tense of new
20:37 dlocaus ah, "I knew that.. really!",
20:37 tuxdna joined #perl6
20:38 dlocaus new => "something is brand new, just came out"
20:38 dlocaus know => "a fact, information that is in one's head"
20:38 dlocaus knew => "a fact, or infomration that one knows"
20:38 dlocaus pmurias: ?
20:38 [particle] knowed => slangy word for 'knew', sounds like 'node'
20:39 dlocaus knowed?
20:39 [particle] it works better as an audible joke.
20:39 spinclad "a place in a network, that one was once aware of, but no more"
20:39 * dlocaus eyes cross
20:40 [particle] don't trust anyone clad in spin
20:40 [particle] ...they're bound to be lying :)
20:40 spinclad that's right!
20:41 pmurias dlocaus: working on it
20:41 spinclad snakes in the grass, belly crawlers, the lot of em!
20:42 obra left #perl6
20:42 spinclad (afk... dinner calls) &
20:42 dlocaus brb, the connection to my mouse died.  I have to reboot.  (Stupid DVI KVM Switch + Motherboard)
20:42 dlocaus left #perl6
20:42 obra joined #perl6
20:47 dlocaus joined #perl6
20:48 pugs_svn r18750 | pmurias++ | [kp6] moved ::Routine to make class
20:50 dlocaus reading...
20:59 pmurias dlocaus: anything unclear? I do not understand what do you mean by nesting
21:00 dlocaus bringing it up
21:01 dlocaus http://dev.pugscode.org/browser/v6/v6-KindaPerl6/compiled/perl5-kp6-mp6/lib/KindaPerl6/Runtime/Perl5/MOP.pm?rev=18749#L1849
21:01 lambdabot Title: /v6/v6-KindaPerl6/compiled/perl5-kp6-mp6/lib/KindaPerl6/Runtime/Perl5/MOP.pm - P ..., http://tinyurl.com/2omfse
21:02 dlocaus that code for instance APPLY, uses $::Method->{ _dispatch } -> new -> $::Routine
21:03 dlocaus I find it a bit hard to follow the actual line of execution
21:03 dlocaus http://dev.pugscode.org/browser/v6/v6-KindaPerl6/compiled/perl5-kp6-mp6/lib/KindaPerl6/Runtime/Perl5/MOP.pm?rev=18749#L1864
21:03 lambdabot Title: /v6/v6-KindaPerl6/compiled/perl5-kp6-mp6/lib/KindaPerl6/Runtime/Perl5/MOP.pm - P ..., http://tinyurl.com/2omfse
21:04 dlocaus Why is there no ::DISPATCH($::Method ... ) to be returned, for your code.  Your code just directly executes the sub routine.
21:07 rindolf joined #perl6
21:07 dlocaus and why is there no $meta_Hash, $meta_HashCell, $meta_ArrayCell.
21:07 dlocaus pmurias ...
21:07 pmurias you mean why i pass subs to make_class instead of Methods?
21:07 dlocaus for the $::Hash, $::HashCell, $::ArrayCell
21:08 dlocaus well, no.  I don't understand why we have a $meta_(something)
21:08 pmurias the $meta_(something) is the metaobject for a given class
21:09 pmurias $::(something) is the prototype
21:09 pmurias object
21:10 pmurias they are diffrent things
21:10 pmurias the $meta_(something) is the thing returned by .HOW()
21:11 dlocaus but you are using $meta_(something) to define the object.
21:11 dlocaus my $meta_Role = ::DISPATCH( $::Class, 'new', "Role" );
21:11 dlocaus $::Role = ::DISPATCH( $meta_Role, 'PROTOTYPE' );
21:12 pmurias yes
21:13 dlocaus where is $meta_Role->PROTOTYPE() defined?
21:13 pmurias 850
21:15 pmurias dlocaus: what's the point of the metaclass example?
21:15 dlocaus The documetnation at the bottom?
21:15 pmurias metaobject actually
21:15 pmurias yes
21:16 dlocaus I put it there, so people could get an idea of what the _isa inheriticae looked lik
21:16 dlocaus like
21:17 dlocaus All of the ::DISPATCH() content didn't make a lot of stuff to me, because I couldn't see what was being built.  So I Data::Dumper::Dumper'ed it.
21:18 pmurias i figured it out it was dumped
21:18 pmurias can't people dump it themself if they want to?
21:19 dlocaus Yes.  But why not dump it for them?  They shouldn't have to execute the code to find out what is being produced.
21:19 pugs_svn r18751 | pmurias++ | [kp6] ::Cell is not used by anything
21:19 pmurias it needs to be updated anyway after DispatchSugar removal
21:20 dlocaus http://dev.pugscode.org/browser/v6/v6-KindaPerl6/compiled/perl5-kp6-mp6/lib/KindaPerl6/Runtime/Perl5/MOP.pm?rev=18749#L1736
21:20 lambdabot Title: /v6/v6-KindaPerl6/compiled/perl5-kp6-mp6/lib/KindaPerl6/Runtime/Perl5/MOP.pm - P ..., http://tinyurl.com/2omfse
21:20 dlocaus true
21:20 dlocaus http://dev.pugscode.org/browser/v6/v6-KindaPerl6/compiled/perl5-kp6-mp6/lib/KindaPerl6/Runtime/Perl5/MOP.pm?rev=18749#L1849 (sorry, I ment this line)
21:20 lambdabot Title: /v6/v6-KindaPerl6/compiled/perl5-kp6-mp6/lib/KindaPerl6/Runtime/Perl5/MOP.pm - P ..., http://tinyurl.com/2omfse
21:21 dlocaus As I read that code... it says that Apply should point to an object $meta_method(?)  that has a dispatched' method of new that returns  the $self->{value}(and then some)
21:22 dlocaus APPLY=> sub {
21:22 dlocaus my $self = shift;
21:22 dlocaus local $::ROUTINE = $self->{_value}{cell};
21:22 dlocaus $self->{_value}{cell}{_value}{code}->(@_);
21:22 dlocaus },
21:22 dlocaus your code, just calls it directly.
21:24 dlocaus what happened to the intervening object?
21:24 pmurias dlocaus: could you phrase it diffrently
21:26 dlocaus The original APPLY, is created via a new object created via ::DISPATCH( $::Method, 'new', &sub )
21:26 dlocaus however, your APPLY just directly accesses the &sub.
21:26 dlocaus What happened to the new object that was created via ::DISPATCH( $::Method,'new', &sub )
21:26 pmurias i understand, wait
21:27 pmurias 220 MOP
21:28 pmurias make_class calls ::DISPATCH($::Method,'new',&subroutine) for you
21:28 dlocaus ah, I got it
21:28 dlocaus ok.  That was the nesting I couldn't figure out.
21:28 dlocaus ty
21:28 pmurias ty == ?
21:29 dlocaus Thank you.
21:30 Tene http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme-Z-H-16.html#node_chap_14 -- interesting
21:30 lambdabot Title: Teach Yourself Scheme in Fixnum Days, http://tinyurl.com/hyw76
21:30 Tene amb
21:32 pmurias amb=?
21:32 dlocaus pmurias: line 1864 & 1866 are the same, did you mean for that to happen?
21:35 dlocaus brb, must reboot
21:35 pugs_svn r18752 | pmurias++ | [kp6]
21:35 pugs_svn r18752 | pmurias++ | fixed repeated line
21:35 pugs_svn r18752 | pmurias++ | moved HashCell,ArrayCell to Hash.pm & Array.pm
21:35 dlocaus left #perl6
21:36 pugs_svn r18753 | pmurias++ | typo & doc fix
21:38 dlocaus joined #perl6
21:38 Tene pmurias: explained at that link
21:41 pmurias sleep&
21:41 ebassi joined #perl6
21:46 Tene I'm having trouble producing a concise description of amb.
21:47 moritz_ it's a backtracking tool that automagically guessed the right answer by backtracking
21:47 moritz_ did I understand that correctly?
21:48 Tene Yeah.
21:54 moritz_ bed &
22:13 dvorak__ joined #perl6
23:11 pugs_svn r18754 | dlo++ | A list of useful link that are commonly used.
23:32 dlocaus left #perl6
23:56 ludan joined #perl6

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

Perl 6 | Reference Documentation | Rakudo