Camelia, the Perl 6 bug

IRC log for #mojo, 2011-05-19

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

All times shown according to UTC.

Time Nick Message
00:24 AigleNoi1 left #mojo
00:30 AigleNoir joined #mojo
01:59 metaperl joined #mojo
02:48 D4RK-PH0ENiX joined #mojo
02:50 d4rkie left #mojo
03:05 espent_ joined #mojo
03:05 espent left #mojo
03:20 d4rkie joined #mojo
03:22 D4RK-PH0ENiX left #mojo
03:27 D4RK-PH0ENiX joined #mojo
03:29 d4rkie left #mojo
03:49 D4RK-PH0ENiX left #mojo
03:51 d4rkie joined #mojo
04:03 D4RK-PH0ENiX joined #mojo
04:05 d4rkie left #mojo
04:07 d4rkie joined #mojo
04:09 D4RK-PH0ENiX left #mojo
04:15 D4RK-PH0ENiX joined #mojo
04:17 d4rkie left #mojo
04:27 d4rkie joined #mojo
04:28 D4RK-PH0ENiX left #mojo
04:57 mattastrophe joined #mojo
05:06 d4rkie left #mojo
05:10 mattastrophe left #mojo
05:20 arpadszasz joined #mojo
05:54 koban` joined #mojo
06:03 arpadszasz left #mojo
06:23 AmeliePoulain joined #mojo
06:23 d4rkie joined #mojo
06:35 ysyrota joined #mojo
06:39 marcus 16 distributions to install moose on 5.14
06:40 d4rkie left #mojo
07:01 arthas joined #mojo
07:34 marcus sri: I don't like that c.req.url.query(...) modifies the object in place. Would be much nicer if it returned a new clone of the url.
07:34 marcus really, changing the request object at all seems wrong to me.
08:07 cosmincx joined #mojo
08:15 mikemagowan joined #mojo
08:22 Alias left #mojo
08:27 ajgb joined #mojo
08:49 dolmen sri: https://jira.mongodb.org/browse/PERL-129
08:53 sh4 joined #mojo
09:01 Sugar joined #mojo
09:13 yko joined #mojo
09:48 spleenjack joined #mojo
09:55 sri marcus: just use .clone
09:55 sri or url_for of course
09:55 dwierenga left #mojo
09:56 dwierenga joined #mojo
09:56 sri marcus: changing the request object is perfectly fine, just imagine not being able to rewrite anything...
10:05 sri the whole thought of a read only request object is silly
10:06 moritz ... unless you're programming Haskell :-)
10:07 marcus sri: url_for with no params matches the current url?
11:59 d4rkie joined #mojo
11:59 spleenjack left #mojo
12:00 spleenjack joined #mojo
12:10 sri marcus: ye
12:13 sri quite sure you knew that at some point
12:15 marcus sri: I thought it matched the current route.
12:15 marcus sri: does it include query params as well?
12:18 sri marcus: ok, what *exactly* do you want to achieve?
12:19 marcus sri: pagers
12:19 sri more specific
12:19 marcus for instance search?q=foo search?q=foo&page=2 search?q=foo&page=3
12:20 D4RK-PH0ENiX joined #mojo
12:20 marcus so I want to generate the two second ones in a loop from the first one
12:20 sri so you want an exact clone of the current request url?
12:20 sri with absolutely everything?
12:20 marcus yeah, and add a query param. I do c.req.url.clone.query(...) now
12:20 sri then that's the right way
12:21 marcus ok. seemed a bit clumsy compared to c.req.uri_with(page=>1) in catalyst
12:21 sri make a helper ;)
12:21 sri release a plugin
12:21 sri you know the drill =)
12:22 sri you could just have c.url_with(page=> 1) if you wanted
12:24 d4rkie left #mojo
12:26 Akron joined #mojo
12:29 sri marcus: i also want my json patch!
12:29 * sri cracks the whip
12:35 sri hmmm
12:35 sh4 left #mojo
12:35 D4RK-PH0ENiX left #mojo
12:36 sri now that lite has a "hook" keyword, i wonder if a "helper" keyword would make sense too
12:43 GitHub114 joined #mojo
12:43 GitHub114 mojo: master Sebastian Riedel * ca90712 (1 files in 1 dirs): improved test case - http://bit.ly/m1iLGj
12:43 GitHub114 left #mojo
12:51 sri helper function in Mojolicious::Lite or not?
12:52 moritz +1 to having it
12:52 moritz it feels weird to write 'get', 'under', 'post' etc. but thingidontknowyet->help(...)
12:53 sri it's app->helper(foo => sub {...}) vs helper foo => sub {...}
12:53 moritz right, that's what I meant :-)
12:54 moritz ::Lite hides most of the ->app stuff
12:54 moritz it could just as well hide it for helper() and start()
12:54 sri hmm
12:54 sri dunno about start
12:55 sri just start seems wrong
12:55 moritz because it's a verb without subject?
12:55 sri ye
12:55 sri helper would be in line with plugin and hook
12:56 sri i've also thought about secret()
12:57 GitHub85 joined #mojo
12:57 GitHub85 mojo: master Sebastian Riedel * 9deddc7 (5 files in 4 dirs): added experimental helper function to Mojolicious::Lite - http://bit.ly/iHyPGi
12:57 GitHub85 left #mojo
12:58 sri not sure about start and secret... need more opinions
12:58 * moritz can form more opinions any time :-)
12:59 sri ;p
13:16 mattastrophe joined #mojo
13:33 sri heh, that twitter discussion with ovid is funny
13:41 AmeliePoulain left #mojo
13:49 metaperl left #mojo
13:54 marcus I like how he's raising the issue half a year in advance.
13:57 koban` left #mojo
13:58 koban` joined #mojo
13:59 marcus https://twitter.com/hanekom​u/status/71212571084070913 say what?
14:00 marcus sri: did you document the 5.8 regex issue somewhere?
14:01 perlrocks Twitter: "@shadowcat_mdk It's mentioned in the mojolicious faq at least - http://t.co/arrOtvf" --marcusramberg http://twitter.com/marcusramb​erg/status/71213806759579648
14:02 sri marcus: example on the list
14:03 sri http://groups.google.com/group/mojolicio​us/browse_thread/thread/510dcf2219371deb
14:03 marcus thanks
14:03 sri perl5.8.9 -e'("a" x 15000) =~ /(((\w|\w(?:\d)))*)/ and print $1'
14:03 sri that one fits in a tweet :)
14:04 sri http://rt.perl.org/rt3/Publi​c/Bug/Display.html?id=49956
14:04 perlrocks Twitter: "@shadowcat_mdk Also, here's the thread from the mailing list - http://t.co/VxNfhav" --marcusramberg http://twitter.com/marcusramb​erg/status/71214622803374080
14:06 sri chromatic also told me about memory leaks in 5.8
14:06 Foxcool joined #mojo
14:07 perlrocks Twitter: "What is @ wtnabe WAF? Mojolicious framework called using Perl, Sass and I try to use it in a separate unit." (ja) --taiju http://twitter.com/taiju/status/71215397151576064
14:08 sh4 joined #mojo
14:11 perlrocks Twitter: "@marcusramberg thanks :) People were asking and i knew I had read it on Mojolicious but wanted the doc links ;)" --shadowcat_mdk http://twitter.com/shadowcat_​mdk/status/71216455089262592
14:18 sri finally got ben and jerrys chocolate fudge brownie ice cream...mmmmmm
14:21 * sri drools
14:25 amoore joined #mojo
14:40 vel joined #mojo
14:42 kaare joined #mojo
14:50 metaperl joined #mojo
14:52 koban` left #mojo
15:22 Sugar left #mojo
15:27 cosmincx left #mojo
15:33 Akron how can I use shortcuts in ML?
15:36 sri my $r = app->routes;
15:36 sri there is no special lite syntax though
15:36 sri would be a bit beyond the scope of lite imo
15:37 Akron Thanks.
15:37 Akron Really? I've got a Plugin that relies on Shortcuts.
15:37 sri how?
15:38 Akron A webfinger plugin. You define the webfinger uri with route('/webfinger/:uri')->webfinger; and then this uri is defined in the hostmeta.
15:39 Akron (In fact - that's not really a good path for webfinger, but that's the way it works - and I like the simplicity.)
15:39 sri get(...)->webfinger;
15:39 sri ?
15:40 sri my $g = get '/' => sub {...}; $g->webfinger;
15:41 Akron That works? Wait a minute ...
15:42 cosmincx joined #mojo
15:42 Akron Nice.
15:42 sri it's not exactly pretty, but i don't think there are alternatives
15:42 Akron No - nice enough to me.
15:42 * sri doesn't like "no pretty"
15:42 sri *+t
15:43 Akron :)
15:44 Akron However - the use case seems to be okay, or not?
15:45 sri dunno
15:45 AigleNoir left #mojo
15:46 sri we have not many shortcut best practices established yet actually
15:52 AigleNoir joined #mojo
15:55 ysyrota left #mojo
15:55 sh4 left #mojo
15:59 * sri wonders what is happening to tv
16:00 sri all the good shows get cancelled due to bad ratings
16:01 sri is it because people that are into scifi download their episodes?
16:03 ispy_ joined #mojo
16:03 ispy_ left #mojo
16:05 supernaut Exams over for a few days so finally a chance to play with Mojo properly! yay!
16:16 abra joined #mojo
16:30 ajgb left #mojo
16:42 fhelmber_ left #mojo
16:48 kaare left #mojo
16:55 dolmen left #mojo
16:55 Akron sri: I tried to establish a patch to the issue I posted, but it broke some tests.
16:56 sri plugins are too powerful
16:58 Akron You mean, reregistering can sometimes be wanted behaviour?
16:59 sri yes
16:59 sri you could register an embedded application in a plugin with different configurations
17:00 Akron Then how about a test if a plugin is already registered?
17:00 sri how?
17:01 sri anyway, if you want it, make a plugin that does it ;p
17:02 Akron Just to say "unless $mojo->plugin_loaded('yeah) ) { $mojo->plugin('yeah') };".
17:02 sri "...make a plugin that does it"
17:03 Akron Okay ... or I circumvent it somehow.
17:05 sri anyway, why would you ever check if a plugin is loaded?
17:05 Akron I gave a use case in the issue.
17:06 Akron If I have multiple plugins relying on the same other plugin - and I don't want to reregister it.
17:06 sri very bad one
17:06 Akron Because reregistering is a strange thing as shown.
17:06 Akron Why is it bad?
17:06 sri you could just check exists app->renderer->helpers->{wordlist};
17:07 Akron Ah.
17:07 Akron Oh - yes. That's simple. Thank you. Solves my problem.
17:07 sri you don't depend on the plugin, but the functionality it provides
17:08 Akron You are right.
17:08 sri checking for registered functionality is mostly trivial
17:08 Akron Absolutely right. I did not think of that.
17:08 sri make a wiki page :)
17:09 Akron On my way to GitHub.
17:09 sri \o/
17:33 d4rkie joined #mojo
17:34 Akron Plugin-page started. The functionality check makes totally sense. Thanks again.
17:38 spleenjack left #mojo
17:40 sri Akron++
17:50 sh4 joined #mojo
18:07 Akron left #mojo
18:18 marty akron++ sri++  good stuff to know.  Thanks
18:20 * marty thinks mojolicous and mongodb is a VERY powerful combination.
18:20 metaperl never fooled with mongodb
18:20 metaperl i'm afraid of non-relational stores
18:20 metaperl mojo is definitely da shiznit
18:21 marty I was skeptical about mongo at first but the more I play with it the more I go WOW!  Not good at all things but it makes some things very easy and fun
18:21 * marty agree with metaperl, mojo is da shiznit
18:22 marty best new framework out there, hands down
18:23 marty the whole idea of throwing JSON objects back and forth between mojo and mongo gives me the giggles
18:24 metaperl ah
18:24 metaperl well i'm headng home. I iwll chat with you in about 30-45 min
18:31 metaperl left #mojo
18:43 tempire sri: have you used any ipad vector drawing tools?
18:43 tempire do you even have an ipad?
18:43 sri no ipad
18:44 tempire boo
18:44 sri send me ipads!
18:50 phillipadsmith sri: you want an iPad?
18:51 phillipadsmith tempire: have you tried Sketchbook?
18:51 tempire hadn't heard of it
18:51 arpadszasz joined #mojo
18:51 tempire I just downloaded freeform
18:52 tempire now all I need is a stylus
18:52 tempire since this dumb ipad won't let me use a pen cap
18:54 sri which geek wouldn't want an ipad? :)
18:56 tempire I want an ipad2
18:56 tempire if anyone's taking orders
19:01 metaperl joined #mojo
19:03 metaperl ok marty so you enjoy serializing and deserializing data into JSON with mojo and mongodb ...
19:03 abra left #mojo
19:12 metaperl well time for a nap.
19:12 arpadszasz left #mojo
19:18 sh4 left #mojo
19:35 arthas left #mojo
19:36 arthas joined #mojo
19:40 vel left #mojo
20:07 sri wonder why people keep sending me links to new websites running on mojolicious in private but never add them to the wiki list :S
20:11 moritz sri: because you're such a good wiki editor?
20:12 sri unless they give me permission i don't talk about it
20:13 miyagawa i guess *they* don't have permission from their clients/boss but just wanted to share with you
20:14 moritz as soon as my website runs under the domain it should run on, I'll put it on the wiki
20:17 sri https://github.com/kraih/mojo/wiki/Pro​jects-and-companies-using-mojolicious
20:17 sri GO ADD YOUR COMPANIES AND PROJECTS!!!
20:17 * sri cracks the whip
20:21 sri perl people really suck at this
20:22 sri i suppose new hipster technologies have it easier because people use their names to grab venture capital
20:23 moritz wtf
20:23 moritz "sombody has edited the page, please reload and reapply your changes"
20:23 tempire that was me
20:23 sri lol
20:23 moritz I thought github used git, and that was great for merging?
20:23 tempire mu
20:23 tempire ah
20:26 moritz if I'd store wiki pages in git, merging was the main reason for it
20:27 jwang left #mojo
20:28 perlrocks Twitter: "This #mojolicious wiki page needs some love. http://t.co/nroWtt8 #perl" --kraih http://twitter.com/kraih/status/71311395064520705
20:33 tempire I loved it!
20:36 sri it wants a long term relationship
20:44 arpadszasz joined #mojo
21:22 sri lol
21:22 sri i tweet that i'm quitting cigars and i get spammed with cigarette ads
21:23 sri stay classy tobacco industry
21:26 cosmincx left #mojo
21:41 Akron joined #mojo
21:49 Foxcool left #mojo
21:49 amoore left #mojo
22:12 arthas left #mojo
22:16 mattastrophe left #mojo
22:41 arpadszasz left #mojo
23:05 vel joined #mojo
23:16 janus left #mojo
23:16 janus joined #mojo
23:30 Akron left #mojo

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