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.
00:09 ruoso joined 01:21 ihrd joined 01:58 ihrd left
Tene got something pretty cool working on the plane 02:20
sub item($request, $match) is handler(/item\\/(\\d+)/) { ... } 02:21
sri_kraih_ looks interesting 02:24
Tene will nopaste a demo when I get home
pleasedieinafire.net:5080/714641 03:49
zarah Tene's link is also tinyurl.com/dza5eh
Tene pleasedieinafire.net:5080/871770 is the output 03:50
zarah Tene's link is also tinyurl.com/cvxtcp
05:06 szabgab joined 07:48 szabgab joined 08:40 ihrd joined 09:54 ihrd left 16:09 masak joined
masak oh hai 16:09
zarah hi masak
masak: You have new messages. Write '/msg zarah @messages' to read them.
masak @massage
zarah masak: 3 d 4 h 32 m 24 s ago, olass said I'd like to write bug 887, 901, 858 as P2 on your TODO-postit
masak: 2 d 10 h 1 m 31 s ago, Tene_ said I got HTTPKKDaemon using parrot sockets... no socat required. will build pastebin during work tomorrow, then commit when I can get to cafe after work
masak: 2 d 9 h 59 m 14 s ago, Tene_ said I am also looking at mod-parrot on apache again
masak: 2 d 2 h 53 m 20 s ago, Tene said to check out the sockets branch in web repo
Tene masak: I got a basic pastebin running, it's in the sockets branch 16:10
masak Tene: people have been hacking on sockets here too.
Tene fixed some issues with Tags
masak we should compare your efforts. :)
Tene pleasedieinafire.net:5080/
zarah Tene's link is also tinyurl.com/dgyqj2
masak wow, a pastebin! :D 16:11
Tene++
Tene github.com/masak/web/blob/5ab471f52...pipasta.pl
zarah Tene's link is also tinyurl.com/cuscah
masak Tene: let me just spend a minute being amazed by what you just said.
Tene which part? 16:12
masak well, both the sockets part and the pastebin part.
Tene github.com/masak/web/commit/01cca04...866dfdd0b5 is the patch that moves it to use sockets
zarah Tene's link is also tinyurl.com/cxkrsm
masak ihrd talked to me today and asked whether you were up to anything.
I said I didn't know. :)
Tene masak: if you really want to see something fun, lemme paste something cool I got running on the plane...
masak sure. 16:13
you're on a plane?
Tene I was last night 16:14
masak Tene: when I hit 'paste', I get "can't establish a connection".
Tene masak: I was just kicked offline for a bit. should be back up now
masak ok. 16:15
Tene pleasedieinafire.net:5080/585778
zarah Tene's link is also tinyurl.com/d6mujj
Tene pleasedieinafire.net:5080/640319 is the output
zarah Tene's link is also tinyurl.com/d7morg
masak ok, so the 'is handler' thing is the fun part? 16:16
Tene Right.
masak does that work?
Tene Yes.
masak wow.
Tene 22 LOC
masak how... what...?
I'm...
I don't know what to say. 16:17
Tene pleasedieinafire.net:5080/4641
zarah Tene's link is also tinyurl.com/cl536u
Tene is the code
It's not localizing the routing table to the caller namespace yet, but that's simple
masak Tene++
Tene I thought you'd enjoy it. 16:18
No idea if it's a good solution, but it reminds me of catalyst.
Certainly not a default/recommended solution, but nice to have.
masak aye.
we're here to evolve solutions, and then try to provide the best ones.
Tene I wrote it because I noticed that kopipasta.pl's dispatch table was just a bunch of regex -> funcall
masak this at least puts an idea on the table.
Tene: you should really talk to ihrd about this. 16:19
he's deep into dispatchers, and might have some feedback.
Tene I'd much prefer 'handles(...)' to 'is handler(...)', but rakudo doesn't do that yet.
masak: I would, but neither of you have been around for the past few days (when I've actually been working on this).
masak right. 16:20
Tene masak: what was the other app you wanted me to work on after pastebin?
masak I've been to NPW2009.
Tene: I'd like to start working with you on the Genshi clone.
we need a name for that, just as for Happle.
Tene Sure, okay. xml-based templating seems very wrong to me, but I think we've already had this discussion. 16:21
masak we can have it as many times as you like. :)
Tene oh, should I blogpost about this? do I have enough for a blog post yet, do you think?
masak it's not that I want XML-based only, it's that I want it among the other alternatives.
Tene: definitely blog about it. 16:22
Tene: re XML, I think there are benefits to it, as well as costs.
Tene kopipasta needs much work, nicer error handling, etc.
masak: OH! 16:23
The big thing I needed to ask you.
masak it needs Web::Request and Web::Response :)
Tene Can I merge that sockets branch into trunk?
masak Tene: oh, definitely.
Tene Thanks. :)
masak the guys here at the hackathon have been working on a solution, but I don't think it's ready.
Tene rakudo needs much better sockets handling. I'm just using inline PIR to build a socket. 16:24
Because I didn't want to figure out the right way to do it with rakudo.
Oh, and I need to update my rakudo and switch split() back again.
masak Tene: cosimo has been working on sockets in Rakudo.
omega Tene: I have fixed the split-problems in my fork 16:25
masak Tene: sorry about the split() thing. I glared at TimToady for breaking November, and he changed it back.
so now it's like in Perl 5 again.
Tene yeah, I know.
masak: does it affect something like: $line.split(' '); ? 16:26
masak no.
the method form is the same.
Tene :)
masak see the appropriate spec change.
I like the name Kopipasta. it reminds me of the Swedish pirates. 16:28
Tene Estonian version of "copypasta" 16:29
for "stuff that gets posted over and over"
masak aha. 16:32
our first Estonian-named module. :)
Tene oh, and kopipasta just keeps pastes in memory. Doesn't save to filesystem yet. 16:33
masak so if it crashes...
Tene So is useless if run from CGI :)
yes
masak right.
Tene that's my next goal
masak goodie.
Tene I really need to think a lot about dispatching... we need to have a backend system that can dispatch correctly from a persistent perl-based server, fastcgi, mod_perl6, etc. 16:34
masak Tene: meantime, I'll spend some portion of the evening making a small plan for porting Genshi.
Tene but not yet, I think.
Okay.
I think I'll try writing a social news site next.
Post urls, vote on them, comment, etc. 16:35
masak ok.
Tene that might be a good space to try playing with templating.
masak sounds like something that'd have use for a Rails-like thing.
Tene: yes, and November could use that kind of templating too.
Tene eh?
masak "eh?" on Rails-like? well, 16:36
it sounds like a sufficiently large app that it might benefit from MVC. 16:37
Tene ah
masak (at least in my very limited understanding)
anyway,
the nice thing we can do with the Ganshi clone 16:38
is compile the templates down to PIR
which will be much faster than the HTML::Template we have now
Tene nodnod
so you're thinking genshi templates will just be another Parrot language?
masak I'll be seriously looking into that in the coming week. if not sooner.
Tene: yes, quite possibly. 16:39
Tene That would be ideal for me.
masak it will probably be on the PCT.
Tene I'll reprioritize getting cross-hll working in rakudo again, then.
masak oh, please do.
I thought that worked already.
I'm not sure exactly how I want to do the HLL yet, because I would like to do the same thing with just XML too. 16:40
Tene I keep getting discouraged every time I work on it, because it seems sometimes like I'm the only person who cares.
masak and the former could ideally use the latter.
Tene: now you're no longer the only person who cares.
Tene It used to work, but with languages living out of the parrot tree, the hardcoded paths no longer work
so allison added a load_language opcode
masak ok.
Tene which uses a language search path
so I need to get rakudo to use it
masak ok. 16:41
Tene also, because of issues with PMCs and HLLs, no other language can call rakudo right now.
masak heh.
but we probably don't need that.
Tene rakudo can call any other language (as long as its in its own HLL namespace), but nobody can call rakudo, and rakudo can't move into its own HLL namespace.
Which means that no other language can use modules written i Perl 6.
masak pity. 16:42
Tene Yeah. Allison keeps saying she'll fix it when I ask her about it, and then she forgets until the next time I ask her.
I'm thinking I might need to dive into it, but that's required extended concentration I haven't had available for a while 16:43
but it's starting to look like I'm sleeping better lately, so I might be able to soon.
masak excellent.
Tene: we'll try to hack your sockets thing into the Rakudo setting now. I have mberends here beside me as a guide. 16:52
Tene :) 16:53
18:59 sri_kraih joined