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