<november-wiki.org> <github.com/viklund/november> <irclog.perlgeek.de/november-wiki> <nopaste.snit.ch>
Set by moderator on 2 June 2010.
02:28 p6eval joined 05:35 szabgab joined 09:38 ruoso joined 09:57 masak joined 15:11 ruoso joined 18:57 ruoso joined 20:13 masak joined
masak hi :) 20:13
20:13 pmichaud joined
Tene hi 20:13
zarah hi Tene
masak so, last bit of Web.pm.
pmichaud lurks.
masak zarah: oh, you're here, too :)
zarah masak: eh... wha'?
masak zarah: you're a smart girl. 20:14
zarah masak: Isn't it time you married me? Over.
masak pats zarah on the metallic head
anyway.
20:14 jnthn joined
masak three things on the agenda: (a) simple templater (b) three webapps (c) tutorial. 20:15
I'll be happy to do (c) on my own, since I started it already and have it more or less laid out in my mind. 20:16
Tene: I think you'd like to do (a). I know I would. maybe I can get a kick out of watching you make the templater. :)
Tene: I'm thinking something exceedingly simple, whipup-able in 30 minutes or so. something very much like the way JSP works; it'd turn mostly-HTML into mostly-Perl 6. 20:17
masak mocks up a cute example of what he means
"<ol><% for @reasons -> $reason { %><li><%= $reason %></li><% } %>" ----> "<ol><li>It's small</li><li>It has few moving parts</li><li>The grant proposal says we should have one</li></ol>" 20:20
Tene sorry, was AFK laptop crashed.
masak that's OK, I'm still typing.
the (b) one is the one I fear the most, and I don't really have a good plan of action yet. I think we might have to deviate a bit from the letter of the grant proposal to reach that one. (but probably live up to the spirit of it) 20:21
specifically, converting November to Web.pm might still be too much work. I haven't tried, but that is my suspicion.
might be better to put together small-but-useful apps that showcase Web.pm somehow. 20:22
Tene That's what I'd prefer
jnthn Does there need to be three web apps, or do you (plural) personally need to write three web apps? :-)
masak converting November is still a long-term goal, but perhaps not a Web.pm grant one.
jnthn was planning on trying to put on together as a kinda demo thingy for his "yes you can do stuff in Rakudo *" talks this month
masak jnthn: three apps are to be written as part of the grant.
jnthn OK.
masak jnthn: cool. 20:23
jnthn I'll help by filing bug reports. ;-)
masak much appreciated.
the idea behind 'three apps', if I recall correctly, was to give the API a whirl.
er, APIs.
Tene something like, pastebin, simple blog or simple forum, and November 20:24
jnthn BTW, could (b) and (c) be somewhat merged in that at least one of the apps you build and write a tutorial about "how to make it" but then peoiple have a finsihed thing as a reference?
ffs...can I have a webapp that types stuff correctly for me too...
Tene I like that.
masak Tene: I could give converting November a serious try. but I'm still not sure it'll lead anywhere within a sensible amount of time. 20:25
Tene nodnod
masak jnthn: interesting idea. 20:26
Tene I think the catalyst docs used a book database example.
masak by the way, the Druid web app could count as one app already.
I think I intended for it to do that.
and I sorta-kinda started on a database webapp example. it's in the old blog posts somewhere.
Tene a simple CRUD app
masak mine wasn't that advanced :)
Tene masak: how is squirrel these days?
squerl? 20:27
masak not moving much, just like the rest of Web.pm.
but it's definitely usable.
just not ready.
Tene did that get killed by the hll interop stuff too, like other stuff I worked on?
ah
masak checks the Squerl tests 20:28
I still believe a lot in Squerl. I haven't marketed it nearly enough.
it's a bit of an accident that it ended up under the Web.pm umbrella. but we need something like Squerl as a backend for the frontend stuff in Web.pm. 20:29
Tene You okay with using it for the examples?
masak define 'it'. 20:30
Tene squerl
masak Squerl isn't a web app.
Tene I'll try again:
masak it could be used in one, though.
I'd be fine with that.
Tene When writing web apps, should I use squerl for data persistence?
'k 20:31
masak up to you. I'd be happy if you found it suitable for your needs, or easily extendable.
Tene 'k
masak Tene: check out github.com/masak/web/blob/master/t/...-dataset.t for an indication of its capabilities.
zarah masak's link is also tinyurl.com/2v28vc2
Tene Argh. Still grumpy over the hll library stuff. I need to get over that. Not worth holding on to grumpiness like that. 20:32
masak I think I missed that part.
I don't know if that has affected Squerl. 20:33
I know it did use one of your projects.
Tene Tried running squerl against recent rakudo?
one of my projects?
I don't remember having relevant projects.
masak some sql binding. 20:34
Tene ah
masak Tene: I don't think we should try running against Rakudo master within the scope of the grant. that's not being fair to ourselves.
Tene 'k
masak the grant was started in the alpha branch of Rakudo. we can upgrade it to master afterwards.
ah; SQLite3. 20:35
in other words, if the Parrot hll disasters occurred after the January release of Rakudo, we should be fine.
but we might encounter problems as soon as we try to upgrade to Rakudo master. 20:36
my network connection is wobbly; you have been warned. 20:37
Tene Okay, so you want me to make a mason/jsp/asp/php/whatever-style templating thing? 20:45
that sounds reasonable.
masak yes, please. did my example make sense? 20:46
Tene yes.
masak it should be mosly a matter of concatenation and eval.
Tene I expect I could hack something reasonable out.
masak the exact syntax was just an example, by the way. if you find better alternatives along the way, prefer those. 20:47
Tene as written, it gets awkward.
would you object to requiring: say $reason; 20:48
?
masak that's why I put a = in <%= $reason %>
I've seen that somewhere.
Tene Hmm.
masak but it's a small piece of sugar. explicit 'say' works, too. 20:49
Tene 'cos then I could just invert it, and replace %><li><% with print q{<li>}
;)
anyway, there are a couple of options.
masak 'just invert' sounds like that kind of transformation I had in mind. 20:50
a simple templater for simple people with simple needs.
Tene more like... set the match object as a contextual, and replace quoted hunks with calls to a function that indexes into the contextual match object. 20:51
or something
replace each hunk with a call using an identifier that represents its indexes into the match object. 20:52
masak will that cope with the fact that the opening brace of the for loop is in a different hunk than the closing brace? 20:53
Tene s/quoted hunk/unquoted hunk/ and try reading again 20:54
replace the setting/template/non-perl parts 20:55
masak yeah, that might work.
aye.
give it a shot. I'll have a look at the tutorial, and try to absorb what people said here about web apps. 20:56
Tene I don't have anything to do at work right now, lemme try it.
masak it would indeed be fun to use Squerl in one of them. doesn't have to be too elaborate.
\\o/ 20:57
Tene Let me see what version of rakudo fedora has.
[sweeks@sweeks-laptop ~]$ perl6 -v
This compiler is built with the Parrot Compiler Toolkit, parrot version 2.4.0.
is that right?
[sweeks@sweeks-laptop ~]$ perl6 --help
perl6 This compiler is based on PCT::HLLCompiler.
masak that sounds too new. 20:58
you need January 2010.
Tene Oh. Hmm.
grumble. 20:59
I'll just try running web tests and see what happens. 21:00
if it fails, it's wrong.
masak with a recent Rakudo? you won't get far.
Tene hence, I'll know it's the wrong rakudo.
masak I don't think you realize the scope of the changes we're talking about here. 21:01
Rakudo has basically gotten a new Rakudo.
Parrot 2.4.0 is May.
hm. I'll be heading offline soon. tomorrow I'll be on a bus for 7 hours. plenty of time to dig into various aspects of Web.pm. 21:02
my weekend will probably consist of intermittent coding too. and another bus journey. 21:03
Tene where you headed?
masak just home to my parents.
I hope we'll meet like this at least once or twice more before Sunday night. if not, at least this meeting was good enough to give us direction and allow us to work independently. 21:05
Tene I'll be busy-ish. 21:08
masak even so; if you commit a templater to the web repo, I might be able to run with it. 21:09
also, there's always asynchronous conversation. phenny, gist, commit messages etc.
zarah: you're a smart girl. smarter than phenny, even.
zarah masak: So smart I'm looking for another job. Over.
masak o.O 21:10
23:26 ruoso joined 23:53 jnthn left