Camelia, the Perl 6 bug

IRC log for #november-wiki, 2009-04-19

| Channels | #november-wiki index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
07:16 szabgab joined #november-wiki
07:28 masak joined #november-wiki
07:31 masak 14 users in here, 11 of which are non-bots.
07:44 ihrd joined #november-wiki
08:33 Tene hi masak, ihrd
08:33 Tene ihrd: you around?
08:34 Tene ihrd: masak said you'd be interested to look at my sketch...
08:34 ihrd Tene: hi
08:34 Tene http://pleasedieinafire.net:5080/585778
08:34 zarah Tene's link is also http://tinyurl.com/d6mujj
08:34 masak Tene: hi
08:35 Tene implemented on a plane last night
08:35 ihrd yes I am
08:35 Tene the output of that is here: http://pleasedieinafire.net:5080/640319
08:35 masak Tene: I still don't get how you manage that 'is handler' thing.
08:35 zarah Tene's link is also http://tinyurl.com/d7morg
08:35 masak it looks utterly magical.
08:35 Tene masak: just define a '!sub_trait_handler' subroutine
08:35 Tene didn't I paste the code?
08:36 masak o_O
08:36 masak Tene: I believe you did.
08:36 masak Tene: I think your strength here is that you are familiar with Parrot stuff.
08:36 Tene http://pleasedieinafire.net:5080/4641
08:36 zarah Tene's link is also http://tinyurl.com/cl536u
08:36 masak under-the-hood things
08:36 Tene yeah
08:36 Tene you need to do some hackery to define a subroutine with ! in the name
08:36 Tene which is the awkward part there
08:37 masak Tene, ihrd: you two need to standardize on dispatch stuff, though.
08:37 masak use some common core.
08:37 Tene I'm not using that sketch, just playing
08:37 masak ok.
08:37 Tene but yes
08:38 ihrd Tene: it looks like catalyst
08:39 Tene yeah, that's the inspiration
08:39 ihrd Tene: didi you look at my Routes.pm?
08:40 Tene ihrd: I have not yet... I'll look now
08:41 ihrd I like ide to specify patterns in one place, and pattern can be more or less precise
08:41 ihrd s/ide/idea/
08:42 masak I'm a bit occupied, unfortunately.
08:42 ihrd routes specify you app structure
08:43 ihrd you can have any structure you like and can add another application, with another structure in your app
08:46 ihrd so, benefit is -- developer can see structure of his app in one place, and f/w know this structure (f/w can provide helpers based on this knowledges)
08:50 ihrd Tene: so, do you understand what I mean?
08:50 Tene I do.
08:52 ihrd With this Routes we can cover theses
08:53 ihrd ah, Tene, mb you can help my with | %args
08:53 Tene interpolate a hash as named args to a function call?
08:53 Tene is that right?
08:53 ihrd it is NYI in Rakudo and this is blocks me
08:53 ihrd yes
08:53 Tene like |@args is interpolate a list as positionals?
08:53 ihrd yes
08:53 Tene there is a problem.
08:54 ihrd :(
08:54 Tene I can do it only for the case where it's in a % var
08:54 Tene if it's in a $ var, I can't.
08:54 Tene lemme update rakudo and try an impl...
08:55 ihrd if % var will work, it will be enough for now
08:57 ihrd Tene, I am loking on yor example, and still do not fully understand how you make 'is handler...' works
08:58 Tene ihrd: when rakudo tries to deal with 'is something' in a sub definition, it looks for a sub named '!sub_trait_something' and calls it with some args...
08:58 Tene with args of the trait name, the block, and any arguments passed to the something()
08:59 Tene so for 'is something(1)'
08:59 Tene it's called with args: ('something', &block, [1])
09:00 ihrd aha
09:00 Tene okay, I have |%args working...
09:00 ihrd so fast!
09:00 Tene I suppose I really should do a spectest run, just in case...
09:00 Tene it's only two lines, really, but better to be safe.
09:00 Tene yes?
09:01 ihrd yes, add ~40 min of spectests to be sure
09:02 Tene ihrd: see the patch here: http://nopaste.snit.ch/16310
09:03 ihrd and about trait, I do not see  !sub_trait_handler in you LolDispatcher, but
09:03 ihrd ::LolDispatch::EXPORT::DEFAULT = sub ($trait, $block, $arg) {
09:03 ihrd warn "installing handler for $block";
09:03 ihrd @routes.push({:route($arg[0]), :block($block)});
09:03 ihrd }
09:04 ihrd this is change behavior for evere sub?
09:04 Tene ihrd: oh, view source
09:04 Tene the source isn't urlencoded
09:04 Tene so it missed the hash access in a <>
09:11 Tene ihrd: it's committed
09:11 ihrd cool!
09:11 masak we're in deep hacking mode here, so I'll have to baklog you guys later.
09:12 Tene masak: what are you working on?
09:13 masak Tene: Rakudo-native sockets, client and server.
09:13 Tene :)
09:13 ihrd Tene: so, what you think about Routes.pm? I really need feedback.
09:14 Tene okay, lemme really read it this time
09:14 * Tene hides all other windows, including IRC.
09:14 masak ihrd: you will get feedback from me too.
09:15 masak I'll likely read it on the bus.
09:15 masak I have a 9-hour commute tonight. :)
09:15 ihrd thank you
09:18 ihrd masak: very cool, I am happy to see this progress with sockets, if you saw disscussion after my first web.pm-related post, you know bacek speaking about it implementation in parrot
09:23 ihrd so, idea to have perl6 web f/w in place catalyze people to have progress in implementation
09:26 ihrd I mean, my part of this is very small, but I happy to see this motion around :) it is inspire
09:32 masak ...if we succeed... :)
09:48 masak Tene: bug in kopipasta :)
09:49 masak it repeats the first test title you use for subsequent postings.
12:42 ihrd left #november-wiki
15:37 masak joined #november-wiki
15:47 masak ok, so kopipasta now uses the brand new internal Rakudo sockets.
16:04 masak Tene++ for providing the first half of the solution.
18:06 Tene masak: kopipasta just used what I put in httpd::daemon...
18:07 masak Tene: aye. meant that.
18:07 masak we used the former to make sure that the latter survived the transition.
18:30 Tene ah
19:02 sri_kraih_ joined #november-wiki
19:33 wayland76 joined #november-wiki
20:52 szabgab joined #november-wiki
23:28 wayland joined #november-wiki

| Channels | #november-wiki index | Today | | Search | Google Search | Plain-Text | summary