Camelia, the Perl 6 bug

IRC log for #mojo, 2013-06-25

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

All times shown according to UTC.

Time Nick Message
00:12 ilbot2 joined #mojo
00:12 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
00:30 ilbot2 joined #mojo
00:30 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
00:52 ilbot2 joined #mojo
00:52 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
01:42 ilbot2 joined #mojo
01:42 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
01:55 ilbot2 joined #mojo
01:55 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
02:09 ilbot2 joined #mojo
02:09 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
02:17 ilbot2 joined #mojo
02:17 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
02:30 ilbot2 joined #mojo
02:30 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
02:34 ilbot2 joined #mojo
02:34 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
03:21 ilbot2 joined #mojo
03:21 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
03:44 ilbot2 joined #mojo
03:44 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
03:51 ilbot2 joined #mojo
03:51 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
04:00 ilbot2 joined #mojo
04:00 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
04:25 ilbot2 joined #mojo
04:25 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
04:31 ilbot2 joined #mojo
04:31 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
04:44 ilbot2 joined #mojo
04:44 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
04:46 ilbot2 joined #mojo
04:46 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
05:03 ilbot2 joined #mojo
05:03 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
05:15 ilbot2 joined #mojo
05:15 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
05:33 ilbot2 joined #mojo
05:33 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
05:57 ilbot2 joined #mojo
05:57 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
06:02 ilbot2 joined #mojo
06:02 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
06:11 ilbot2 joined #mojo
06:11 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
06:33 ilbot2 joined #mojo
06:33 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
06:55 ilbot2 joined #mojo
06:55 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
07:04 ilbot2 joined #mojo
07:04 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
07:06 ilbot2 joined #mojo
07:06 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
07:06 dod joined #mojo
07:22 ilbot2 joined #mojo
07:22 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
08:09 ilbot2 joined #mojo
08:09 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
08:28 ilbot2 joined #mojo
08:28 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
08:32 ilbot2 joined #mojo
08:32 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
08:40 ilbot2 joined #mojo
08:40 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
08:44 ilbot2 joined #mojo
08:44 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
09:03 ilbot2 joined #mojo
09:03 Topic for #mojo is now 🎩, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
09:04 marcus_ sri: so scary.
09:26 mire joined #mojo
09:30 dpetrov_ jberger: or just mibbit?
09:37 yakudza joined #mojo
09:41 denisboyun joined #mojo
09:41 jamesaxl joined #mojo
09:43 Adurah joined #mojo
09:51 SmokeMachine joined #mojo
10:00 dod joined #mojo
10:10 dod joined #mojo
10:11 dod joined #mojo
10:12 Dandre Hello,
10:14 Dandre I need some module discovery mecanism at run time. In fact I must find all installed module providing some interface. Is there something in mojo that can do this or must I use Modele::Pluggable?
10:15 Dandre oups Module::Pluggable
10:57 jamesaxl_ joined #mojo
11:20 denisboyun_ joined #mojo
11:33 libsysguy joined #mojo
11:41 abra_ joined #mojo
11:42 fhelmber_ joined #mojo
11:48 kermit joined #mojo
12:08 bd bpmedley, tempire: waht about POE?
12:17 whitebook joined #mojo
12:28 btyler joined #mojo
12:45 nicomen how do I send all routes trough a specific function to store some common things in the stash?
12:46 nicomen bridge?
12:49 whitebook joined #mojo
12:58 denisboyun_ joined #mojo
13:02 nicomen I can't seem to get access to the controller through a bridge callback?
13:11 zekame joined #mojo
13:16 zekame Hi all! How can i redirect to another method in my controller? I have controller#login, controller#auth and form with action to auth. When code in auth isi complete, i render('controller/login', ... ) but in browser i see path /login/auth.
13:18 bpmedley joined #mojo
13:18 nicomen got it
13:19 nicomen to get a different path in the browser, you need to do a HTTP redirect
13:20 nicomen http://mojolicio.us/perldoc/Moj​olicious/Controller#redirect_to
13:22 tba joined #mojo
13:24 zekame nicomen thank you
13:28 zekame joined #mojo
13:31 btyler joined #mojo
13:35 kwa nicomen: The bridge is before the controller, so you don't have access to it.
13:36 kwa You can obviously just add stuff to the stash, however, which can be picked up from the controller.
13:36 nicomen sorry, I meant something I can get the stash from
13:37 maxhq1 joined #mojo
13:40 kwa nicomen: I'm confused. :D
13:41 kwa The bridge seems the most sensible thing from what you've said. Why do you need access to the controller if you're just building up the stash?
13:45 gryphon joined #mojo
13:46 maxhq joined #mojo
13:51 bluescreen joined #mojo
13:51 dotan joined #mojo
13:51 nicomen kwa: I managed earlier, not sure why I wasn't getting the bridge
13:52 kwa As in you've fixed it now?
13:53 asarch joined #mojo
13:53 nicomen kwa: yes yes ;)
13:53 mire joined #mojo
13:53 nicomen half an hour ago ;)
13:54 kwa nicomen: Ah, heh. Good stuff. :P
13:54 kwa nicomen: I was gonna say. If you do need access to the controller and want to build the stash, you can use the around_action hook.
13:55 kwa But in your example it didn't seem necessary. :)
14:05 nicomen kwa: http://pastebin.geany.org/wqstb/
14:14 rem_lex joined #mojo
14:31 pertze joined #mojo
14:36 kwa nicomen: Gotcha. :)
14:45 sivoais joined #mojo
14:51 sh4 joined #mojo
15:16 tempire bpmedley: yes, and I have
15:16 rem_lex|pivo joined #mojo
15:16 tempire but I don't see how event loops will ever give the performance that threads will
15:17 tempire bd: I don't like POE. I find it aesthetically unpleasing.
15:20 bd tempire: anything specifically?
15:25 bpmedley tempire: Could you use http://perldoc.perl.org/pe​rlthrtut.html#Boss/Worker where there Boss is doing a select()?
15:27 Jonis am I the only one who finds $self->flash hilarious after 10 hours?
15:29 bd ;)
15:30 nikita_ https://groups.google.com/forum/​#!topic/mojolicious/Xwe4619ta1Q
15:31 nikita_ help appreciated
15:32 bpmedley nikita_: Can you make a minimal Mojolicious::Lite app that doesn't work?
15:35 Dandre joined #mojo
15:41 mire joined #mojo
15:41 d4rkie joined #mojo
15:46 Jonis does session store all its information in the actual cookie or just a reference to it?
15:47 tempire Jonis: cookie
15:48 Jonis tempire: thanks, was curious.
15:49 Kulag joined #mojo
16:00 sri tempire: that sounds silly
16:01 sri the point of event loops is not performance but scalability
16:02 sri and event loops in multiple processes is a common pattern to scale to multiple cpu cores, like hypnotoad does
16:04 sri if you want to crunch numbers in a web app, you can always use a task queue with many many tiny worker processes
16:10 gryphon joined #mojo
16:11 perl2012 joined #mojo
16:12 gryphon joined #mojo
16:12 perl2012 I'm about to deploy a small internal production mojo lite app using hypnotoad. It works great, but I'm just wondering how you deploy it so that it starts up at boot time. Do you just create a script and add it to /etc/rc.d? What do most people do?
16:13 bd perl2012: i use supervisor
16:14 bpmedley perl2012: This is overkill: sudo -u root sh -c "cd /opt/infoservant.com/docroot/info_servant && /opt/perl /opt/perl-5.16.2/bin/hypnotoad script/info_servant"; although, it has worked for me.
16:14 bpmedley perl2012: I had that in /etc/rc.d/rc.local
16:14 sri tempire: let me put it this way... i don't think you will ever find a high performance server using threads/processes that doesn't use an event loop as well... see nginx
16:15 perl2012 ok - cool - thanks for your input bd and bpmedley
16:15 cfedde joined #mojo
16:15 bpmedley perl2012: https://github.com/kraih/mojo/wi​ki/Hypnotoad-prefork-web-server
16:16 bpmedley perl2012: Also, as another option, you could use upstart.
16:17 perl2012 bpmedley - I thought I had scoured the docs, but I missed the github docs
16:17 bd my $auth = $r->under(); $auth->get('/menu')->render('menu', layout => 'default'); leads to Can't use string ("layout") as a HASH ref while "strict refs" in use at /usr/share/perl5/Mojolicious/Routes/Pattern.pm
16:17 bd so how do i just render a template directly for a route.
16:22 marty bd: $r->route('/my/route')->to(template => 'my/template');
16:23 bd marty: sweet, thx.
16:31 jamesaxl joined #mojo
16:35 nic joined #mojo
16:42 Kulag joined #mojo
17:35 sawtooth joined #mojo
18:02 Adura joined #mojo
18:02 Kulag joined #mojo
18:20 jnbek joined #mojo
18:29 sri tempire: http://www.aosabook.org/en/nginx.html # this is a very good read btw.
18:31 Mike-PerlRecruiter_ joined #mojo
18:35 PerlJam joined #mojo
18:36 mire joined #mojo
18:53 zekame joined #mojo
18:58 basiliscos joined #mojo
19:02 jamesaxl_ joined #mojo
19:02 denisboyun_ joined #mojo
19:11 libsysguy sri I was looking at your gist for c10k and I was wondering if you *had* to fire up your own websocket server or if morbo handled it
19:11 sri morbo *is* that daemon
19:12 sri same as hypnotoad
19:12 libsysguy that is what I thought
19:13 libsysguy so, in reality, I shouldn't have to deal directly with Mojo::IOLoop
19:27 Kulag joined #mojo
19:28 russum1 joined #mojo
19:32 dod joined #mojo
19:43 abstract joined #mojo
19:56 sivoais I didn't make this, but <http://www.the-blend.net/> is a cool use of Perl and it uses Mojolicious. Wanted to point it out here because I've seen no marketing of it. Stumbled across it while looking for an Echo Nest API for Perl.
19:58 zekame left #mojo
20:00 salparadise joined #mojo
20:03 bluescreen joined #mojo
20:06 jamesaxl joined #mojo
20:21 jamesaxl_ joined #mojo
20:30 Dandre left #mojo
20:34 whitebook joined #mojo
20:34 alnewkirk joined #mojo
20:38 gryphon joined #mojo
20:51 dvinciguerra joined #mojo
20:53 dvinciguerra sri: hi
20:53 dvinciguerra sri: can I make a t-shirt with your raptor art?
20:55 sri dvinciguerra: is it to promote perl and non-commercial?
20:57 sri (that's the case where i don't care about the attribution part required by the license)
21:01 MeierM joined #mojo
21:02 dvinciguerra sri: yes! :-)
21:02 dvinciguerra sri: I'm thinking to make only one t-shirt to me!
21:03 sri ah, then you can do whatever you like with it :)
21:03 dvinciguerra sri: thanks then, man! :-)
21:04 dvinciguerra sri: (but is ever good idea to ask the author haha)
21:30 lukep joined #mojo
21:40 nic sivoais: nice find
21:48 libsysguy joined #mojo
21:55 Averna joined #mojo
22:35 Kulag joined #mojo
22:40 rem_lex| joined #mojo
22:41 whitebook joined #mojo
22:50 abstract joined #mojo
23:08 whitebook joined #mojo
23:30 tba joined #mojo
23:39 Gedge joined #mojo

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