The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2017-11-08

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

All times shown according to UTC.

Time Nick Message
00:25 gryphon joined #mojo
00:25 Seth joined #mojo
00:38 disputin joined #mojo
01:13 disputin joined #mojo
01:24 vicash hi. a question regarding Mojo::Pg. if i want to get all rows in a large table with 100K-500K rows in a single SELECT query and perform some Perl processing on it, does Mojo::Pg send all the results at once or in a streaming fashion ? Before I overload the database I just wanted to make sure I am not doing something stupid.
01:35 Grinnz I believe DBD::Pg only supports retrieval of all results at once
01:40 itaipu joined #mojo
01:43 TBSliver joined #mojo
01:54 marty joined #mojo
02:07 aborazmeh joined #mojo
02:31 disputin joined #mojo
03:20 noganex_ joined #mojo
03:55 namotco joined #mojo
03:56 marty joined #mojo
04:03 garo joined #mojo
04:32 CHYC_ joined #mojo
04:32 dugword joined #mojo
04:43 namotco joined #mojo
05:04 dboehmer joined #mojo
05:52 dugword joined #mojo
06:16 inokenty-w joined #mojo
06:58 Vandal joined #mojo
06:58 dod joined #mojo
06:58 marty joined #mojo
07:05 dod joined #mojo
07:14 geospeck joined #mojo
07:44 dod joined #mojo
07:46 AndrewIsh joined #mojo
07:51 Armen joined #mojo
07:54 kes joined #mojo
08:08 ashimema joined #mojo
08:21 trone joined #mojo
08:48 mtths joined #mojo
08:50 ribasushi jberger: so how do you like it in the Perl6 awesome community? https://twitter.com/zoffix/status/927189904257437696
08:59 rshadow joined #mojo
09:22 hkclark joined #mojo
09:22 stryx` joined #mojo
09:31 PsimanX1 joined #mojo
09:32 PsimanX1 joined #mojo
09:32 Psiman joined #mojo
09:57 dod joined #mojo
10:01 marty joined #mojo
10:06 karjala_ joined #mojo
10:20 rshadow joined #mojo
10:20 garo joined #mojo
10:49 tchaves joined #mojo
11:04 garo joined #mojo
11:11 garo joined #mojo
11:16 tchaves joined #mojo
11:19 tchaves joined #mojo
12:02 marty joined #mojo
12:17 tchaves joined #mojo
12:49 ChmEarl joined #mojo
12:52 nic joined #mojo
12:54 aborazmeh joined #mojo
12:59 nic On my system, Mojo::Server::Morbo::Backend::Inotify appears to be broken -- ignores changes to the main file
12:59 nic Anyone got a min to see if it's easily repeatable?
13:06 garo joined #mojo
13:06 nic https://m.perlbot.pl/p/awj6j6
13:07 nic but there are no issues against the package, making it unlikely a bug is more than niche
13:12 nic marcus: Does that^^ work for you?
13:24 nic yay, if you have 'root' access, there's a workaround using hardlinks
13:25 nic (I'll have a look into the Inotify code at the weekend)
13:26 gizmomathboy joined #mojo
13:31 dod joined #mojo
13:32 garo joined #mojo
13:48 jberger ribasushi: sure, that's a bit shady, but there was perl6 and indeed perl5-perl6 (mostly around cpantesters) work going on, so need to add me to any squabbles
13:48 jberger err, "no need"
13:52 geospeck joined #mojo
14:04 marty joined #mojo
14:04 dod joined #mojo
14:14 perlpilot joined #mojo
14:45 dugword joined #mojo
14:58 mohawk jberger, a snarkier person than me would ask whether that was a photo of the entire p6 userbase
15:02 gryphon joined #mojo
15:02 Pyritic joined #mojo
15:03 pau4o joined #mojo
15:07 garo joined #mojo
15:08 jberger heh
15:08 jberger I'm trying hard to be supportive of perl6 while still staying true to my own convictions, so I'll stay out of it
15:09 jberger mohawk: were you in those pictures? I don't see you there
15:09 jberger or am I blind?
15:11 haarg i seem to remember him opting out
15:16 mohawk as do i
15:17 Lee mohawk opted out and i did my best to respect that request
15:17 Lee ribasushi: that photo also appears at https://www.instagram.com/p/BUQ8no8jszR/?taken-by=perl_events and http://blogs.perl.org/users/book/2017/05/try-this-awesome-trick-to-make-your-language-toolchain-better.html
15:17 Lee and also in the flickr album
15:19 CandyAngel I'm a little confused. I thought one of the big things about Perl6 was not having to write bindings..
15:19 ribasushi Lee: there is nothing wrong with the photo itself, it is in fact pretty awesome
15:20 ribasushi jberger: sure thing, was only meant as a sarcastic poke
15:20 jberger mohawk: ahh, fair enough
15:31 mohawk Lee, that was an awesome photo and an awesome event
15:39 Lee ribasushi: understood, just saying it's appeared with the correct context before. anyway, i've poked Zoffix about it as well as i think your point is fair
15:53 geospeck_ joined #mojo
15:53 geospeck_ joined #mojo
16:10 gizmomathboy joined #mojo
16:39 dotan_convos joined #mojo
16:51 kaare joined #mojo
17:05 disputin joined #mojo
17:10 kaare joined #mojo
17:23 mr_sticky joined #mojo
17:27 mudler joined #mojo
17:28 namotco joined #mojo
17:34 dod joined #mojo
17:35 dod joined #mojo
17:44 dugword joined #mojo
17:45 dod joined #mojo
17:46 ChmEarl joined #mojo
17:46 trone joined #mojo
17:48 bwf joined #mojo
18:19 garo joined #mojo
18:34 marcus nic: so your problem is related to it being /tmp? I'm a bit confused
18:38 marcus nic: probably explains the test failures seen in grinnz pull request too then https://github.com/marcusramberg/mojo-server-morbo-backend-inotify/pull/3
18:44 mcsnolte joined #mojo
18:49 garo joined #mojo
18:58 garo joined #mojo
19:01 Grinnz nic: i don't think morbo watches the 'main file' unless you tell it to
19:01 Seth joined #mojo
19:02 geospeck joined #mojo
19:02 Grinnz hmm, https://metacpan.org/source/SRI/Mojolicious-7.55/lib/Mojo/Server/Morbo/Backend.pm#L6
19:03 Grinnz but https://metacpan.org/pod/release/SRI/Mojolicious-7.55/script/morbo#SYNOPSIS says "defaults to the application script as well as the "lib" and "templates" directories"
19:04 Grinnz i don't see anything that will actually add the application script to watch
19:07 garo joined #mojo
19:07 Grinnz oh it's here https://metacpan.org/source/SRI/Mojolicious-7.55/lib/Mojo/Server/Morbo.pm#L28
19:08 Grinnz nic: maybe add some debugging to see what's actually in $morbo->backend->watch
19:15 garo joined #mojo
19:17 disputin joined #mojo
19:23 garo joined #mojo
19:27 kaare_ joined #mojo
19:32 ghandi joined #mojo
19:32 ghandi Hi there!
19:32 ghandi Short question: Wasn't url_for() picking up stash values for route parameters by default in the past?
19:33 pink_mist sure it was
19:37 ghandi And is it still doing so? Because currently i don't observe that behavior?
20:12 jberger I don't think it behaved like that, did it?
20:12 jberger i just tested on current and 7.0
20:12 jberger installing 6.0 now
20:12 jberger not on 6.0
20:15 preaction that's url_with i thought
20:15 jberger I thought that was with query parameters
20:16 jberger I don't know, I've never used url_with before
20:23 ghandi And can't find anything in the docs, that it worked that way. But all the time i believe that it works that way and come back after testing to my url_for calls :D
20:23 ghandi If it never did: Is there a reason not to pick up stash values by default? Afraid of wrong picks?
21:05 jberger well there's that, but you could just do it yourself of course
21:05 jberger and the reverse isn't true
21:06 jberger $c->url_for('name', %{ $c->stash })
21:06 jberger but if they were used by default how would you unset them?
21:06 jberger maybe that isn't a real-world problem, I don't know
21:06 jberger but anyway, the point is it can be done manually fairly easily
21:57 marty joined #mojo
21:59 nic I had that situation earlier today with url_{for,with}
22:00 nic When I didn't pass the binding to use, each instance in my loop got the same value; I couldn't understand how it got any value at all.  Turned out it was picking up the value from my stash
22:02 nic marcus: The problem as I see it is... "morbo myapp" watches the myapp file... until you switch to using the Inotify backend
22:03 nic At the very least the Inotify docn should mention that its behaviour is different to expected behaviour of morbo
22:03 garo joined #mojo
22:03 nic For now I have a workable workaround
22:03 Grinnz nic: from the code I don't see why that would be the case. the application script is added to the watch array the same way, not affected by the backend
22:04 Grinnz but maybe it's interpreting the watch array differently
22:04 nic I could do with someone on linux seeing if they can reproduce the behaviour I'm seeing
22:04 Grinnz yes, I think it's a bug, https://metacpan.org/source/MRAMBERG/Mojo-Server-Morbo-Backend-Inotify-0.04/lib/Mojo/Server/Morbo/Backend/Inotify.pm#L17
22:04 nic The Inotify backend deals with dirs vs files differently
22:04 Grinnz it assumes watch contains only directories, not filenames
22:05 Grinnz maybe that's why the tests in my PR fail as well, like marcus said
22:05 nic (the workaround is to watch a dir that contains a hardlink to the file)
22:05 Grinnz heh
22:12 Grinnz hmm, but the file is included itself in the list too
22:29 disputin joined #mojo
23:10 Seth joined #mojo
23:52 garo joined #mojo
23:55 karjala_ joined #mojo

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