Camelia, the Perl 6 bug

IRC log for #mojo, 2013-07-11

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

All times shown according to UTC.

Time Nick Message
00:01 russum joined #mojo
00:04 jberger I'd be happy for any comment on this before I release (probably later tonight): https://github.com/jberger/Generator-Object
00:04 jberger I want it on CPAN before tomorrow's Chicago.pm
00:34 shmuel joined #mojo
00:34 punter joined #mojo
00:35 phillipadsmith Zx3: np
00:58 Averna joined #mojo
01:14 btyler joined #mojo
01:29 egopro joined #mojo
02:03 hesperaux joined #mojo
02:12 tempire congratulations jberger!
02:12 tempire http://www.mammalsociety.org/2​013-leopold-award-joel-berger
02:12 tempire the camera adds a couple decades
02:16 crab wow, i didn't know jberger was a conservationist
02:16 crab on top of being a physicist and a programmer
02:23 asarch joined #mojo
02:27 jberger oh yeah, I've come across that guy several times (not in person)
02:27 whitebook joined #mojo
02:28 jberger people named Joel Berger are likely to have a Ph.D. and be interested in Moose :-)
02:28 btyler hi mojoites. trying to figure out event emitters, running into a funky error: "can't locate object method 1 via package <packagename>". example: http://pastebin.com/HwHqwq2N
02:30 d4rkie joined #mojo
02:30 d4rkie joined #mojo
02:31 zivester joined #mojo
02:38 jberger btyler, the emitter emits the events, others subscribe
02:38 jberger $self->emit('clicked')
02:41 HtbaaPi joined #mojo
02:42 btyler oh, I see. I was thinking of them like nodejs emitters, where the message is specific to the object that emitted it
02:51 btyler hm, still confused. they seem to behave just like I expected them to in the simplest situation: node: http://pastebin.com/0UD6XRy5 vs mojo: http://pastebin.com/RzBqTbWp
03:01 whitebook joined #mojo
03:01 Britzel_ joined #mojo
03:05 whitebook1 joined #mojo
03:07 Mad_Dud joined #mojo
03:58 btyler ah, figured it out. the second argument on 'on' needs to be a coderef, and $object->method isn't one. sticking a closure there: http://pastebin.com/yEMfGp75 did what I was hoping.
04:16 punter joined #mojo
05:35 rem_lex| joined #mojo
05:43 dod joined #mojo
06:02 dod joined #mojo
06:04 dpetrov_ joined #mojo
06:07 trone joined #mojo
06:08 rem_lex|pivo joined #mojo
06:15 basiliscos joined #mojo
06:15 rem_lex|pivo joined #mojo
06:24 russum joined #mojo
06:33 xablor joined #mojo
06:33 xablor Hello?
06:33 russum left #mojo
06:33 xablor Lol. I see!
06:33 xablor So I'm playing with Mojo::Test and json_hasnt isn't responding as expected.
06:34 xablor I'm sure it's a PEBCAK error, but would appreciate easy enlightenment if any is to be found at this hour.
06:36 dod joined #mojo
06:38 xablor 'sup dod
06:40 Vandal joined #mojo
06:53 tholen joined #mojo
06:57 rem_lex|pivo joined #mojo
07:00 rem_lex|pivo joined #mojo
07:13 rem_lex|pivo joined #mojo
07:15 iankent anyone tried using mojolicious with EV? if I call multiple unique routes, they all work even if one blocks, but if I call the same route multiple times, each request for that route blocks later requests
07:18 iankent actually does the same just using AnyEvent (see https://gist.github.com/ian-kent/5973234 for example)
07:18 rem_lex|pivo joined #mojo
07:21 Tiger joined #mojo
07:30 iankent looks as though the example in mojo docs (http://mojolicio.us/perldoc/Mojoli​cious/Guides/Cookbook#Event_loops) also doesn't work (first request blocks subsequent requests)
07:36 yakudza joined #mojo
07:38 Meiermann joined #mojo
07:39 iankent extending the mojo doc example, if I add in another route it works (https://gist.github.com/ian-kent/5973339), just not multiple calls to one route
07:43 MeierM joined #mojo
07:44 Molaf__ joined #mojo
07:58 trone joined #mojo
08:01 dod xablor[away]: hi. You wanted to ask me something ?
08:02 dod iankent: I think calling directly AE::timer  may lead to trouble. Why don't you use Mojo::IOLoop->timer ?
08:05 egopro joined #mojo
08:15 basic6 joined #mojo
08:19 hesperaux joined #mojo
08:25 cosmincx joined #mojo
08:27 Meiermann joined #mojo
08:32 yakudza joined #mojo
08:34 jzawodn joined #mojo
08:53 iankent dod: was using it like the example in mojo docs, will try ioloop->timer now though
08:54 iankent (although, what happens if I have other code that internally uses EV timer?)
09:00 iankent IOLoop->timer has the same problem... https://gist.github.com/ian-kent/5973814
09:03 mire__ joined #mojo
09:05 dod iankent: ok. I guess you'll have to wait for sri to come back...
09:10 Dandre joined #mojo
09:16 egopro joined #mojo
09:27 Dandre hello,
09:32 Dandre I have a route that calls a subroutine and just send back the result formatted as json. In another part I have to "call" this service.
09:32 Dandre if I use mojo user agent and connect to this url will it be too expensive in terms of cpu/memory usage ? is it recommanded to directly call the subroutine implementing the service ?
09:37 batman Dandre: are you doing $ua->get('/internal/resource', sub { ... }); from within the app?
09:38 batman Dandre: you should call the method directly instead and then store the data inside the stash
09:38 batman you could also move the logic to a helper and call the helper from both resources
09:38 Dandre not yet but that's the idea
09:39 batman don't do it. doesn't make sense :/
09:40 Dandre I intended to do this way because I wanted to keep the oportunity to move both parts on tow different servers. But that's not the cas for now
09:41 batman Dandre: right. i would keep it simple until you need to make it complicated :)
09:41 Dandre sure
09:42 batman but i'm pretty sure the $ua->get() would work. at least as long as you make it non-blocking
09:43 yakudza joined #mojo
09:46 moltar joined #mojo
10:01 mire__ joined #mojo
10:04 yakudza joined #mojo
10:05 dod joined #mojo
10:22 fhelmber_ joined #mojo
10:30 dod joined #mojo
10:50 trone joined #mojo
10:59 russum1 joined #mojo
11:27 russum joined #mojo
11:33 entro joined #mojo
11:34 russum left #mojo
11:44 kamu joined #mojo
11:46 kamu Hi, i'm experiencing some issues to upgrade to Mojolicious-4.18
11:46 kamu seems to fail log.t
11:49 nicomen let me quote https://twitter.com/petdanc​e/status/354692633735602176
11:49 kamu ok
11:51 kamu http://pastebin.com/nzfBpkLR
11:54 nicomen building perl 5.16.2 ...
11:54 kamu thanks
11:55 kamu i've upgraded Mojo ok in another box with same perl version...
11:55 kamu maybe any outdated dep ?
11:56 alexeiras joined #mojo
12:01 moltar joined #mojo
12:02 libsysguy joined #mojo
12:03 libsysguy left #mojo
12:08 dod joined #mojo
12:16 maxhq joined #mojo
12:19 whitebook joined #mojo
12:23 batman joined #mojo
12:23 marcus_ joined #mojo
12:26 rem_lex| joined #mojo
12:27 SmokeMachine joined #mojo
12:31 russum1 joined #mojo
12:37 btyler joined #mojo
12:40 libsysguy joined #mojo
12:43 libsysguy left #mojo
13:00 jegade joined #mojo
13:03 bpmedley joined #mojo
13:12 dod joined #mojo
13:19 whitebook joined #mojo
13:22 bluescreen joined #mojo
13:41 btyler joined #mojo
13:58 russum1 left #mojo
14:06 alexeiras joined #mojo
14:12 hrupp_ joined #mojo
14:23 dod joined #mojo
14:43 russum joined #mojo
14:43 russum left #mojo
14:43 sh4 joined #mojo
14:49 russum1 joined #mojo
14:51 russum1 left #mojo
15:02 russum joined #mojo
15:07 russum left #mojo
15:09 russum joined #mojo
15:17 russum1 joined #mojo
15:24 russum joined #mojo
15:39 bluescreen joined #mojo
15:52 mire__ joined #mojo
16:10 bowtie_ joined #mojo
16:22 delias joined #mojo
16:25 delias joined #mojo
16:34 Adurah joined #mojo
16:39 russum joined #mojo
16:42 asarch joined #mojo
16:47 denisboyun joined #mojo
16:55 russum joined #mojo
16:56 russum left #mojo
17:19 phillipadsmith Quick thoughts on the best way to respond to a web hook post that has the wrong "handshake?" $self->render_exception(…) or $self->render({ data => '', status => '401'}) or …?
17:41 dotan joined #mojo
17:46 d4rkie joined #mojo
17:58 trone joined #mojo
17:59 russum joined #mojo
17:59 russum left #mojo
18:04 dotandimet joined #mojo
18:04 russum1 joined #mojo
18:15 doby 401 seems the most natural
18:18 russum1 left #mojo
18:30 denisboyun joined #mojo
18:31 whitebook joined #mojo
18:32 whitebook1 joined #mojo
18:36 whitebook2 joined #mojo
18:36 whitebook3 joined #mojo
18:38 whitebook joined #mojo
18:39 BeDa joined #mojo
18:51 met joined #mojo
19:04 denisboyun joined #mojo
19:05 dotandimet joined #mojo
19:32 phillipadsmith doby: yah, that's what I went with
19:52 inokenty joined #mojo
20:13 whitebook joined #mojo
20:28 dotandimet joined #mojo
20:59 dotandimet joined #mojo
21:09 mire__ joined #mojo
21:46 punter joined #mojo
22:02 whitebook joined #mojo
22:02 punter Does anyone know with certainty whether a web browser will automatically try to reconnect to a Websocket after a dropped connection?
22:03 lukep joined #mojo
22:12 basiliscos joined #mojo
23:16 whitebook joined #mojo
23:25 freman joined #mojo
23:26 freman Greetings gentlefolks
23:26 freman As we're well aware, I'm doing scary things with mojo
23:26 freman I've run into a problem where my mojo daemon stops accepting requests
23:27 freman I added a before dispatch that prints out the number of requests it's served and it appears to fall over on request 1051
23:27 freman it's not doing anything special, in fact almost all the previous 1000 requests are identical
23:27 freman any ideas?
23:30 freman the daemon doesn't appear to have locked up or crashed, timers still run and websockets remain open but it won't take any more requests
23:48 freman hmmm appears to be a hypnotoad relation - running in daemon mode I exceed the 1050 rquests easily
23:49 freman that'd be the "accepts" parameter :D
23:59 whitebook joined #mojo

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