Perl 6 - the future is here, just unevenly distributed

IRC log for #plparrot, 2010-07-30

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

All times shown according to UTC.

Time Nick Message
00:14 dukeleto do the irc logs still work?
00:15 dukeleto yes, they do
00:34 eggyknap joined #plparrot
00:34 eggyknap joined #plparrot
05:11 darbelo joined #plparrot
06:10 cxreg dukeleto: around?
06:12 cxreg lol
06:12 cxreg i was gonna ask what the deal was with perm_fmgr_info
06:13 cxreg and then i realized it was cargo culted from plperl
06:13 cxreg which says
06:13 cxreg "This routine is a crock, and so is everyplace that calls it."
06:14 dukeleto cxreg: hola
06:15 dukeleto cxreg: heh, yeah, that was cargo-culted
06:15 cxreg which is from Tom, from a commit in 2001.  heh.
06:15 dukeleto cxreg: does everything work if it is removed?
06:15 cxreg his commit message ends with "I don't have Python installed --- would someone check it?"
06:15 cxreg dukeleto: no idea :)
06:16 cxreg it's only used in plparrot_make_sausage when the return value is a String
06:16 cxreg im still not sure why
06:17 dukeleto cxreg: i cargo-culted some stuff from plperl that is half-implemented, like caching function info
06:18 cxreg right, but i'm reading the block of else if (Parrot_PMC_isa(interp,pmc,create_string_const("String"))) {
06:19 cxreg ohh
06:19 cxreg the entire point of that was to get result_typioparam
06:22 dukeleto cxreg: yeah, it is kind of dirty
06:24 cxreg so why only do that for strings?
06:28 dukeleto cxreg: that it probably cargo-culted as well
06:28 dukeleto cxreg: it might have something to do with strings having an arbitrary size
06:30 dukeleto cxreg: i remember that i had to fiddle with that for a while to get it to work
06:31 dukeleto cxreg: InputFunctionCall needs that typioparam and then that whole other mess of code is needed
06:31 dukeleto cxreg: it should be abstracted to a separate function at least, and deleted if not needed
06:32 cxreg joined #plparrot
06:33 cxreg hmm
06:40 dukeleto cxreg: i just pushed some refactoring of the PL/Perl6 wrapper code
06:43 cxreg what exactly is a Parcel anyway?
06:44 cxreg oh, it's a superclass of List?
06:45 dukeleto cxreg: basically a read-only array, as I understand it
06:45 cxreg hrm ok
06:45 dukeleto cxreg: yes, it is a superclass of Array
06:47 dukeleto http://perlgeek.de/blog-en/perl-6/perl-6-in-2009.html explains a bit about Parcels
06:48 dukeleto it might be slightly outdated
06:49 cxreg oh hey
06:49 cxreg non-flat lists
06:49 cxreg nice
07:02 dukeleto cxreg: do you mind if I try to add some tests to your SPI branch?
07:02 cxreg i dont mind
07:08 dukeleto cxreg: i like to ask permission before working on others branches, to make sure I am not duplicating work or stepping on toes
07:11 dukeleto cxreg: i am trying to use a pointy block inside of a stored procedure, but it is not working
07:12 dukeleto cxreg: something about the outer sub having (@_), perhaps
07:14 dukeleto i see the issue
07:18 dukeleto > my $f = sub (@_) { -> $a, $b { say "a=$a, b=$b" } }; my @a = (2,3); my $x = $f(@a); $x(4,5)
07:18 dukeleto a=4, b=5
07:18 dukeleto > my $f = sub (@_) { -> $a, $b { say "a=$a, b=$b" } }; my @a = (2,3); $f(@a).WHAT
07:18 dukeleto Block()
07:19 dukeleto a nested pointy inside of a sub needs another invoke, i.e. ()
07:40 cxreg right
07:40 cxreg that's how i'd written it in my example
07:40 cxreg -> $a, $b { say "a=$a, b=$b" }.(|@_)
15:56 justatheory joined #plparrot
16:08 davidfetter joined #plparrot
17:08 dukeleto mornin'
21:46 davidfetter joined #plparrot
22:20 dukeleto ahoy
22:22 darbelo o/

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