Camelia, the Perl 6 bug

IRC log for #mojo, 2010-12-12

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

All times shown according to UTC.

Time Nick Message
00:00 MojoGuest5 joined #mojo
00:00 MojoGuest5 From: http://www.google.com/url?sa=t&source=web&a​mp;cd=2&sqi=2&ved=0CBsQFjAB&url=htt​p%3A%2F%2Fdev.xantus.org%2F&rct=j&q=htm​l5%20irc%20client&ei=3A8ETdmzNsys8AbAg4izAQ​&usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (2 hits)
00:00 MojoGuest5 /server irc.gtanet.com
00:00 MojoGuest5 left #mojo
00:30 GitHub163 joined #mojo
00:30 GitHub163 mojo: master Sebastian Riedel * c6b96c8 (1 files in 1 dirs): cleanup - http://bit.ly/hkfyOS
00:30 GitHub163 left #mojo
00:35 sri yay, updated textmate bundle again
00:38 sri tempire: just the favicon or also the logo on the page?
00:38 tempire the black cloud in general.
00:38 sri hmm
00:38 tempire It reminds me of the evil guys from cartoon wars.
00:38 tempire (iphone app)
00:38 sri lol
00:41 sri well, this surely won't be the last iteration
00:49 kk0 Hi all.
00:49 * sri waves
00:49 kk0 I've been playing a bit with Mojolicious, great work!
00:50 kk0 I have a performance question:
00:50 kk0 on a Win7 64 box with Strawberry
00:50 kk0 i am seeing typical responses in the ~1,5s range
00:51 sri i have a quick performance answer, it's only a problem if it is a problem :)
00:51 sri well,windows
00:51 kk0 That's where i was going :)
00:51 kk0 It is not a problem currently, but is there something obvious i can tune?
00:52 sri on my little laptop i'm at 1k req/s for lite apps
00:52 kk0 Is this considered ok for a Windows box?
00:52 sri depends
00:52 kk0 Well, i am at ~1,5s for "Hello world"! :S
00:52 sri do you use a database?
00:52 kk0 Nope, nothing.
00:52 sri ouch
00:52 sri thats very bad
00:53 kk0 I am measuring the time with Chrome's facilities. Is this a proper way?
00:53 sri no
00:53 sri i tend to use tools like ab for that
00:53 kk0 Maybe i am at fault then. How do you suggest i do, and why isn't it proper?
00:54 sri i have no clue about windows i'm afraid
00:54 kk0 I have an Ubuntu installation as well, hit me!
00:56 sri realistic results would be something above 100 req/s with ab
00:57 sri those 1k req/s for hello world dimish quickly once the app has to do real work
00:57 kk0 I see. I will investigate.
00:58 sri well, on windows you are lucky it works at all :)
00:59 kk0 One more thing, more like a suggestion. When using the app generator, inside /script we have a file <appname>
00:59 kk0 presumably the entrypoint for the app. Maybe on Windows, it should have a .pl extension so that it can, well, be run.
00:59 kk0 Or no?
01:00 sri like i said, no clue about windows
01:01 sri the "mojo" script has no extension either though
01:03 kk0 Yes, because there is a mojo.bat in /site/bin. I think.
01:07 sri then thats generated during installation
01:08 kk0 Indeed it is.
01:08 sri .pl files are rather ugly in script directories
01:09 kk0 For some, Windows is ugly :)
01:19 und3f is now known as und3f[A]
01:19 kk0 Well, fired up ab. Shows ~15 reqs/sec for a dummy app.
01:23 tempire left #mojo
01:25 tempire joined #mojo
01:26 Alias_ left #mojo
01:27 Alias_ joined #mojo
01:48 MojoGuest644 joined #mojo
01:48 MojoGuest644 left #mojo
02:43 tempire hrm.  I think I may be close to moving to spaces as opposed to tabs.
02:44 tempire maybe.
02:53 fhelmber_ joined #mojo
02:57 MojoGuest193 joined #mojo
02:57 MojoGuest193 From: http://news.ycombinator.com/item?id=1277067 (97 hits)
02:57 MojoGuest193 left #mojo
03:00 MojoGuest66 joined #mojo
03:00 MojoGuest66 left #mojo
03:12 Akron joined #mojo
03:15 Akron sri: When using $c->render_exception("WTF?!"); there is a useless dot visible.
03:34 Akron left #mojo
03:38 kk0 left #mojo
03:56 perlrocks Twitter: "Playing with web framework #mojolicious by @kraih. It could be my new favorite if there was a #perl ORM I liked." --lathropd http://twitter.com/lathrop​d/status/13804309565153280
04:03 tholen42 joined #mojo
04:05 tl left #mojo
04:13 MojoGuest889 joined #mojo
04:13 MojoGuest889 From: http://news.ycombinator.com/item?id=1277067 (98 hits)
04:14 MojoGuest889 /who
04:16 MojoGuest760 joined #mojo
04:16 MojoGuest889 test
04:16 MojoGuest760 left #mojo
04:16 MojoGuest889 left #mojo
04:31 polvo joined #mojo
04:44 perlrocks Twitter: "PATH problem is solved, but something to Suspend the tea Mojolicious:: Lite it feels like there's been mad" (ja) --aerith http://twitter.com/aerith/status/13816441291669504
04:55 polvo what's the PATH problem?
05:10 vel joined #mojo
05:10 vel left #mojo
06:11 MojoGuest717 joined #mojo
06:11 MojoGuest717 left #mojo
06:36 MojoGuest921 joined #mojo
06:36 MojoGuest921 From: http://www.google.com.pr/search?aq=0&​amp;oq=websockets+ir&amp;sourceid=chr​ome&amp;ie=UTF-8&amp;q=websockets+irc (1 hits)
06:36 MojoGuest921 left #mojo
08:05 und3f[A] is now known as und3f
08:46 su-bzero_ What about adventcalendar.mojolicious.org? ;))
09:17 daviddelikat joined #mojo
09:20 daviddelikat1 left #mojo
10:52 memowe_ joined #mojo
10:52 memowe left #mojo
11:22 perlrocks left #mojo
11:33 MojoGuest378 joined #mojo
11:33 MojoGuest378 From: http://www.google.com/search?hl=zh-C​N&amp;q=websocket+demo&amp;aq=f&amp;​aqi=&amp;aql=&amp;oq=&amp;gs_rfai= (1 hits)
11:33 MojoGuest378 hi
11:41 crab hi
12:19 Akron joined #mojo
12:22 arthas joined #mojo
12:43 Alexandru20 joined #mojo
12:48 MojoGuest378 left #mojo
12:54 marcus joined #mojo
12:56 marcus Moo.
12:58 crab hi marcus.
12:58 marcus Sup crab
13:00 avkhozov joined #mojo
13:03 crab i'm working on a mojo-based thingy called gadwall (which for you would be Snadderand, iirc)
13:05 avkhozov Hello everyone, can I create a redirected routes?
13:05 avkhozov That all requests for /test/xxx will be
13:05 avkhozov redirected to /xxx?
13:05 crab it's my "bag of tricks", such that i can clone it for each "real" app i want to work on and rename it and start from there
13:08 crab avkhozov; $r->route('/test/xxx')->to(cb => sub { shift->redirect_to('/xxx') }) or so
13:10 crab though i guess you really should do my $self=shift;$self->redirect_to('/xx​x');$self->render_text("Redirecting to /xxx");
13:11 avkhozov If I have a more then one route, I will need create a new route for each existing route?
13:11 crab what does that mean?
13:12 crab do you want to redirect many different existing routes, or something else?
13:12 avkhozov I have a route /a, /b, /c .... I will need create a new routes /test/a, /test/b, /test/c ... ?
13:12 yko avkhozov: depends
13:13 yko you can create route $r->route('/test/(:name')
13:13 crab you could make a route /test/:word and redirect to "/" . $self->stash('word')
13:13 yko ouch. '/test/:name', ye and then redirect to that name
13:13 avkhozov Oh yes, thanks :)
13:14 crab i think you should read the routing guide.
13:14 yko and all other guides after that
13:15 yko and then growing guide. and then... than sri will write something else interesting to read in evening :)
13:15 crab but not the lonely planet guides.
13:15 yko i mean Mojolicious/Guides
13:15 yko btw, what is lonely planet guides?
13:16 crab yko: famous serious of detailed guide books about various travel destinations.
13:16 yko shame on me :)
13:16 yko i usually travel with only map of my city. one id drowe arround almost whole country with that single map
13:17 yko *many typo autofixes
13:18 su-bzero_ On the aeroplan?
13:20 yko Nope! On my good old VAZ-2107 with broken steering wheel. I called that car Marry
13:22 yko su-bzero_: if i drove airplane i'd use map from Belomor cigarettes box, as all russians usually do :p
13:23 yko and then i can travel arround your country also, not only mine :D
13:38 Alexandru20 left #mojo
13:42 Alexandru20 joined #mojo
13:46 avkhozov For information, better way is write $r->route('/test/:word', word => qr/.*/)->to..., in other way many urls not redirected
13:48 Alexandru20 left #mojo
13:51 Alexandru20 joined #mojo
13:53 al left #mojo
13:55 Akron avkohozov: Or do you mean '/test/(*word)/?
13:55 Akron Sorry: avkhozov.
13:56 Akron But remind yourself: ->redirect_to is 302 - not 301! So it may not be, what you want.
14:01 al joined #mojo
14:07 GitHub135 joined #mojo
14:07 GitHub135 mojo: master Sebastian Riedel * 6b40b14 (1 files in 1 dirs): cleanup - http://bit.ly/hV3Ex2
14:07 GitHub135 left #mojo
14:14 dotan joined #mojo
14:25 sri su-bzero_: advent calendars are so last decade...
14:30 su-bzero_ yko: ;))
14:38 perlrocks joined #mojo
14:49 perlrocks Twitter: "Updated the #mojolicious TextMate bundle to make indented #perl lines look better in templates. http://bit.ly/eBFtuF" --kraih http://twitter.com/kraih/status/13968790043754497
14:53 perlite_ joined #mojo
14:53 perlite left #mojo
14:54 perlite_ is now known as perlite
14:55 crab metaperl: what did you decide about mustache, just out of curiosity?
15:02 ablufufu joined #mojo
15:02 ablufufu hi
15:02 * sri waves
15:04 ablufufu i'm new to this whole perl an mojolicious thing. currently i'm simply trying to get a GET-variable and print it. but i'm kind of failing http://privatepaste.com/859c8d90ce
15:05 ablufufu any ideas
15:05 ablufufu ?
15:05 sri read the guides
15:06 sri $collo is not visible from the template
15:07 sri <%= param 'collo' %> would work
15:07 ablufufu sri: so i ned to 'send' it to the template?
15:07 sri yes you do
15:08 sri $self->stash(collo => $self->param('collo')); would make your version work
15:08 sri same for $self->render(collo => $self->param('collo'));
15:08 ablufufu ah ok now i get it. i went through some guide but didn't get the whole stash thing
15:14 crab sri: am i going crazy, or was there something about stash('foo') being turned into $foo in templates at some point?
15:15 sri crab: you should know about that by now :o
15:15 ablufufu thanks again. gotta go. bye
15:15 ablufufu left #mojo
15:15 crab oh, you mean it happens now? eeexcellent.
15:16 sri *mr burns gesture*
15:18 crab sri: i was actually rubbing my hands together and grinning evilly
15:18 crab but of course i couldn't type while rubbing my hands together, so that lost some of the effect
15:27 omega crab: your not on the mind controlled computers yet?
16:08 Alexandru20 left #mojo
16:11 und3f left #mojo
16:40 snearch joined #mojo
16:41 vel joined #mojo
16:41 vel left #mojo
16:44 arthas left #mojo
16:55 tempire left #mojo
17:24 perlrocks Twitter: "RT @ kraih: And this is how all errors in # mojolicious will look from now on. :) # Perl http://twitpic.com/3eyvhr/full" (de) --2mad4milk http://twitter.com/2mad4mil​k/status/14007571979444224
17:25 perlrocks Twitter: "RT @ kraih: You can even look at the raw # perl code of your templates, just tap on the black box. :) # Http://twitpic.com/3eywlw/full mojo ..." (de) --2mad4milk http://twitter.com/2mad4mil​k/status/14008026239340544
17:26 dotan left #mojo
17:35 su-bzero_ left #mojo
17:35 su-bzero joined #mojo
17:36 avkhozov left #mojo
17:51 snearch left #mojo
17:56 GitHub108 joined #mojo
17:56 GitHub108 mojo: master Sebastian Riedel * 9f034d5 (1 files in 1 dirs): hint at additional information when available - http://bit.ly/gW1mD5
17:56 GitHub108 left #mojo
17:57 ok22_ joined #mojo
17:58 sri btw. for those already sending me html/css/js cleanup patches, please don't! :)
17:59 sri i'm still working on it
18:00 ok22 left #mojo
18:00 ok22_ is now known as ok22
18:06 MojoGuest190 joined #mojo
18:06 MojoGuest190 left #mojo
18:08 alnewkirk joined #mojo
18:33 perlrocks Twitter: "@kraih what do you recommend for geographic capable model layer in Mojolicious? #perl" --lathropd http://twitter.com/lathrop​d/status/14025030983753728
19:30 und3f joined #mojo
19:36 MojoGuest384 joined #mojo
19:36 MojoGuest384 From: http://www.google.co.uk/search?sourceid=​chrome&amp;ie=UTF-8&amp;q=irc+websocket (1 hits)
19:41 MojoGuest86 joined #mojo
19:41 MojoGuest86 From: http://www.reddit.com/r/html​5/comments/bt76k/irc_client/ (23 hits)
19:42 MojoGuest86 left #mojo
19:43 GitHub196 joined #mojo
19:43 GitHub196 mojo: master Sebastian Riedel * fba7a4b (1 files in 1 dirs): use more html5 - http://bit.ly/guFUXI
19:43 GitHub196 left #mojo
19:51 sri http://www.openswartz.com/20​10/12/12/mason-2-attributes/ # oh my
19:52 sri you either use perl or you don't, but i don't think anybody could be happy with such a mashup
19:55 * sri wonders why so many people still think everything gets better if you throw moose at it
19:56 MojoGuest384 left #mojo
20:11 Akron left #mojo
20:16 perlite_ joined #mojo
20:19 perlite left #mojo
20:20 perlite_ is now known as perlite
20:36 tempire joined #mojo
20:37 tempire sri: what are your thoughts on vti's boose?
20:37 sri tempire: not looked yet
21:04 al left #mojo
21:13 al joined #mojo
21:19 perlrocks Twitter: "Compiled #mojolicious templates can be scary and pretty at the same time. :) http://twitpic.com/3fdf1p/full #perl" --kraih http://twitter.com/kraih/status/14066880708870145
21:22 al left #mojo
21:44 * yko enjoys of a first caught exception via new template
21:55 yko sri: you see what you did to me? i'm enjoing of errors!
21:55 sri :D
21:55 yko http://korshak.name/ra/whatdydo.jpg
22:05 alnewkirk left #mojo
22:14 sri but it wasn't the aliens :o
22:16 perlrocks Twitter: "Mojolicious  обзовёлся няшными exception pages ^_^ #mojolicious #perl" --rdtft http://twitter.com/rdtft/status/14081101500776448
22:17 al joined #mojo
22:24 MojoGuest551 joined #mojo
22:24 MojoGuest551 From: http://www.google.co.uk/url?sa=t&amp;source=web&a​mp;cd=7&amp;sqi=2&amp;ved=0CEUQFjAG&amp;url=http%​3A%2F%2Fdev.xantus.org%2F&amp;rct=j&amp;q=websock​et%20DEMO&amp;ei=FUoFTbGBA8ayhAfD-IjuBw&amp;usg=A​FQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg&amp;cad=rja (1 hits)
22:24 MojoGuest551 left #mojo
22:44 GitHub24 joined #mojo
22:44 GitHub24 mojo: master Sebastian Riedel * 90bf164 (4 files in 3 dirs): catch many more exceptions - http://bit.ly/fz742g
22:44 GitHub24 left #mojo
22:46 sri exception template now works for compile time exceptions too
22:46 sri (in templates)
22:58 und3f is now known as und3f[A]
23:21 perlrocks Twitter: "Did i mention #mojolicious now comes bundled with #jquery since we use it internally? http://bit.ly/gkpi2q #perl" --kraih http://twitter.com/kraih/status/14097436121239552
23:24 josh damn sri you're on fire this weekend
23:24 sri :)
23:25 perlrocks Twitter: "RT @kraih: Did i mention #mojolicious now comes bundled with #jquery since we use it internally? http://bit.ly/gkpi2q #perl" --web2feed http://twitter.com/web2fee​d/status/14098430880129024
23:26 josh i ought to start tracking mojo via git instead of cpan
23:26 sri indeed
23:28 perlrocks Twitter: "RT @ kraih: Did i mention # mojolicious eat now bundled with # jquery Since Internally we use it? perl http://bit.ly/gkpi2q" (es) --urbanjahvier http://twitter.com/urbanjahv​ier/status/14099362468601856
23:29 sri eat?
23:29 josh haha comes = eat in spanish
23:30 sri oh xD
23:30 josh i suppose thats the (es)
23:30 sri yay for google translate
23:31 josh odd though, that it would assume spanish as the source language of that obviously-english sentence
23:35 alnewkirk joined #mojo
23:37 sri didn't expect looking inside templates to be so much fun :)
23:37 sri moritz++ # idea
23:41 su-bzero left #mojo
23:50 su-bzero joined #mojo
23:58 Akron joined #mojo

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