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

IRC log for #mojo, 2016-04-25

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

All times shown according to UTC.

Time Nick Message
00:30 jasanj_ joined #mojo
01:17 kaare joined #mojo
01:24 lluad joined #mojo
02:20 ivi joined #mojo
02:20 ivi joined #mojo
02:29 noganex joined #mojo
03:41 inokenty-w joined #mojo
03:54 asarch joined #mojo
04:11 inokenty-w joined #mojo
04:12 irqq joined #mojo
06:09 dod joined #mojo
06:15 dod joined #mojo
06:23 salva joined #mojo
06:52 McA joined #mojo
06:57 kes joined #mojo
06:58 AndrewIsh joined #mojo
07:50 mishanti1 Anyone got any good tips on which namespace-aliasing module works best these days? I see the cpan has a multitude of them.
07:58 McA2 joined #mojo
08:11 Vandal joined #mojo
08:13 meshl joined #mojo
08:34 mtj joined #mojo
08:35 bobkare joined #mojo
08:40 csroli joined #mojo
08:57 CHYC With jberger on a plane (I presume) I'm happy to wait for him to land before having this discussion, but before I commit any more time to mojo-pg/pull/18, I would like to get to the stage that the only reason for rejection is code quality. How far am I from that goal?
08:59 jberger Interestingly I'm between flights at the moment
08:59 CHYC Oh!
08:59 jberger pink_mist: there is value in delay without using steps
09:00 jberger I haven't read thowe's code to see if he's done it :)
09:00 jberger But it does work that way
09:01 odc joined #mojo
09:03 jberger CHYC: Sorry I haven't read your posted code for more explicit comment yet
09:03 jberger Been a very busy few days for me
09:04 jberger Even more than usual
09:05 CHYC jberger: I appreciate you're busy, and please don't let my messages come across as pushing you for a response.
09:05 jberger No worries :p
09:06 jberger sri: it wouldn't be for 5.24 but i think there might be a polyfill for __SUB__ in Sub::Util soon
09:07 jberger I did the work at qah and LeoNerd seems happy
09:10 irqq joined #mojo
09:12 ribasushi jberger: what is the audience for this polyfill? (I am asking seriously) Perls which would come with a newer S::U already have __SUB__ so do not need it. For older perls there is Sub::Current (which has the same prerequisites to installing as Sub::Util (xs) and is less risky (does not upgrade List::Util and Scalar::Util from under the user)
09:13 ribasushi what am I missing?
09:14 jberger ribasushi: as a core module and with the same name, interface, and semantics as the token it is more likely to be used by frameworks like say mojo
09:14 jberger Sub::Current is actually not exactly like the token
09:14 jberger As i found out during the migration
09:15 ribasushi I aw that part, though it can be updated to match
09:15 ribasushi *saw
09:15 jberger At the risk of breakage for users of that module? Surely not
09:16 jberger Also it is a true polyfill
09:16 ribasushi I guess I missed some of the differences (from cursory glance it looked like BEGIN/INIT-time missing functionality)
09:16 ribasushi anyway you answered my main question, thanks
09:16 jberger If the user has 5.16 installed they get the language token
09:17 jberger ribasushi: that functionality isn't missing
09:17 jberger It is tested as not being present
09:17 ribasushi I see (as I said - I just glanced at #p5p yesterday )
09:18 jberger (BEGIN etc)
09:18 jberger Grrr airport WiFi
09:50 cpan_mojo Etherpad-1.2.13.0 by LDIDRY https://metacpan.org/release/LDIDRY/Etherpad-1.2.13.0
09:54 odc joined #mojo
10:55 dvinciguerra joined #mojo
11:02 sri CHYC: this is where non-blocking expand breaks https://github.com/kraih/mojo-pg/blob/master/lib/Mojo/Pg/Database.pm#L143
11:03 CHYC Thanks
11:13 ashimema joined #mojo
11:20 kaare joined #mojo
11:31 irqq joined #mojo
11:33 vytas joined #mojo
12:11 sri CHYC: made the current expand code a little faster https://github.com/kraih/mojo-pg/commit/f854bdd4dd9cba3f676eb4a9b5189633e5d1e67c
12:11 sri should not be possible for pluggable expanders to be faster anymore
12:15 asarch joined #mojo
12:16 Kripton joined #mojo
12:35 punter joined #mojo
12:37 tchaves joined #mojo
12:38 perlpilot joined #mojo
12:43 punter joined #mojo
12:48 CHYC sri: If the expanders proposal had failed, I would have suggested what you just did anyway for performance gains.
12:48 gizmomathboy joined #mojo
12:51 CHYC https://github.com/kraih/mojo-pg/blob/f854bdd4dd9cba3f676eb4a9b5189633e5d1e67c/lib/Mojo/Pg/Results.pm#L49 <- this is run every time ->hash is called. If I understand correctly, this is redundant and can be cached.
12:54 ramortegui joined #mojo
13:07 mojo185 joined #mojo
13:08 mojo185 I'm trying to create Asterisk::AMI helper in MOJO
13:08 mojo185 http://pastie.org/10812277
13:09 mojo185 but when I call that  specific route it keeps loading and nothing happening
13:10 mojo157 joined #mojo
13:10 sri CHYC: you seem to be misunderstanding
13:10 sri $idx is already cached
13:11 CHYC Ah yes, thanks.
13:20 odc joined #mojo
13:23 sri we have a real bug https://github.com/kraih/mojo/issues/947#issue-150850542
13:26 sri looks really complicated
13:26 sri didn't someone have the same problem recently?
13:26 sri with connections getting rejected a lot?
13:27 sri afraid i don't have much time to look into it atm
13:27 sri maybe someone else wants to give it a try
13:42 mcsnolte joined #mojo
14:02 sri oh, it's actually super easy
14:03 sri ¯\_(ツ)_/¯
14:03 pink_mist oh?
14:03 tchaves joined #mojo
14:04 irqq joined #mojo
14:05 anparker http://pastebin.com/bEjPMy3g - would switching it like this fix it?
14:05 sri anparker: haha, that is exactly it
14:06 sri ok, you get credit too, since we figured it out at the same time :)
14:07 pink_mist irqq: oh, you're here ... jhthorsen/batman responded early this morning: https://paste.fedoraproject.org/359500/59314614/
14:12 good_news_everyon joined #mojo
14:12 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vwusn
14:12 good_news_everyon mojo/master 80a4f3f Sebastian Riedel: fix bug in Mojo::IOLoop where stopping gracefully would sometimes result in connections getting closed too early (closes #947)
14:12 good_news_everyon left #mojo
14:15 sri oh hey, the metacpan indexer now uses minion Oo
14:18 sri wonder what backend
14:23 lluad joined #mojo
14:27 punter well done
14:41 good_news_everyon joined #mojo
14:41 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vwuC1
14:41 good_news_everyon mojo/master 794939f Sebastian Riedel: test worker restarts too
14:41 good_news_everyon left #mojo
14:45 sri so, this is what my new laptop will look like on the inside https://www.ifixit.com/Teardown/Retina+MacBook+2016+Teardown/62149
14:45 pink_mist still haven't gotten it? :P
14:46 sri it's not even shipped yet :/
14:46 pink_mist d'oh
14:46 sri guess my order is a little unusual and takes longer
14:46 irqq joined #mojo
14:47 sri german ac adapter, us keyboard, m7 cpu
14:49 orev pretty crazy how the whole machine fits on that little board.  it's mostly just a battery case
14:50 sri seriously, we've come a lomg way in the last few years
14:51 orev it's not to big of a leap once you give up on the idea of end-user upgradability though
14:57 dod joined #mojo
15:00 sri wierd how there's 3 x 4gb chips on the board
15:01 sri 2 from samsung and 1 from micron
15:01 Grinnz for ram?
15:01 sri ddr3 modules, yea
15:01 Grinnz odd
15:01 sri maybe ssd cache
15:01 Grinnz no pun intended :P
15:02 sri heh
15:02 Grinnz yeah the micron looks isolated for a different purpose
15:03 Grinnz also it's low power while the samsungs aren't
15:03 Grinnz unless LP is another way to specify that
15:03 sri all are low power
15:03 sri LPDDR3
15:03 Grinnz ah, it is
15:04 sri so, apple made their own ssd controller, interesting
15:14 sri argh, apple is torturing me... got a shipping confirmation mail... but it's only a usb-c adapter :S
15:35 asarch joined #mojo
15:37 bpmedley http://bmedley.org/mojo.pdf <-- anyone have time and can skim?
15:37 dotan joined #mojo
15:40 pink_mist bpmedley: I'm about to take the dog for a walk, but I'll be back in half an hour and check it then unless someone else has already volunteered =)
15:43 good_news_everyon joined #mojo
15:43 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vwuVS
15:43 good_news_everyon mojo/master 655492c Sebastian Riedel: more consistent formatting
15:43 good_news_everyon left #mojo
15:44 sri this feature (not the specific implementation) also needs more opinions https://github.com/kraih/mojo-pg/pull/18
15:56 s1037989 http://codeahoy.com/2016/04/23/what-is-http2/
16:06 bc547 joined #mojo
16:15 pink_mist bpmedley: checking it now -- what kind of feedback would you prefer? should I point out spellingmistakes for example?
16:15 cpan_mojo AnyEvent-WebSocket-Client-0.33 by PLICEASE https://metacpan.org/release/PLICEASE/AnyEvent-WebSocket-Client-0.33
16:16 bpmedley pink_mist: I would accept anything besides "it's perfect".. :).  Perhaps via direct msg.
16:20 pink_mist alright, pm coming in then =)
16:20 jabberwok is it really true that  $self->pg->db->query($sql, $capability, $username); # can change $sql? Because if $sql = "SELECT capability \\? ?" , then it works the first time, but upon return, $sql is modified and the '\' is gone, so it fails the second time. Huh?
16:20 jabberwok with Mojo::PG that is
16:21 sri DBD::Pg handles sql for us
16:22 sri i'd like to say you're doing something wrong... but we've seen weird DBD::Pg bugs
16:22 jabberwok =digs deeper=
16:23 punter joined #mojo
16:28 pink_mist jabberwok: providing a small sample script which exhibits the issue would be useful
16:29 pink_mist jabberwok: also trying doing the same thing using raw DBD::Pg
16:29 pink_mist or raw DBI rather
16:38 irqq joined #mojo
16:38 punter joined #mojo
16:41 inbioz joined #mojo
16:49 PryMar56 joined #mojo
17:10 gizmomathboy joined #mojo
17:23 trone_ joined #mojo
17:50 bc547_ joined #mojo
18:16 lluad joined #mojo
18:47 Kripton joined #mojo
19:16 asarch joined #mojo
19:28 Shaeto joined #mojo
19:41 sri lots of good information in this article https://blog.jooq.org/2016/04/25/10-sql-tricks-that-you-didnt-think-were-possible/
19:55 Grinnz_ neat, kind of raised an eyebrow at the part about xml and json though
19:59 sri hehe
20:11 jabberwok http://wlindley.com/mojo/dbi-bug  ...  $dbh->prepare($sql) that modifies $sql, so if you call prepare again Boom.  Surely prepare should not modify its argument?
20:13 Grinnz_ what does that statement even do?
20:14 jabberwok select capabilities ? 'edit_items' as can from users where username='admin'; -- This looks into the jsonb field "capabilities" to see whether there is an entry "edit_items".
20:15 pink_mist jabberwok++ alright, it does indeed seem to alter $sql
20:15 pink_mist jabberwok: next step is to see if it's already on https://rt.cpan.org/Public/Dist/Display.html?Name=DBD-Pg
20:15 pink_mist jabberwok: and if it isn't, add it
20:16 jabberwok ahhhh excellent
20:16 pink_mist jabberwok: make sure to include the test script when you create the issue (if there isn't already one)
20:16 Grinnz_ jabberwok: as a workaround, you might try https://metacpan.org/pod/DBD::Pg#pg_placeholder_dollaronly-boolean and use a dollar placeholder (https://metacpan.org/pod/Mojo::Pg::Database#dollar_only)
20:17 Grinnz_ which came about because of this ? operator
20:18 Grinnz_ and others
20:21 jabberwok right-o.  am finishing a presentation for tonite right now but perhaps i can even chase down what's going wrong, along with a possible patch.  so i can be sure what i'm reporting is really what's happening.  y'all rock.
20:24 pink_mist jabberwok: oh, one thing though: I had to change your shebang ... it's messed up :P
20:24 Grinnz_ oh I didn't notice, I run with explicit perls by default lol
20:25 jabberwok oops /usr/bin/env perl
21:12 dvinciguerra joined #mojo
21:27 punter joined #mojo
21:55 Kripton joined #mojo
22:17 stryx` joined #mojo
22:24 bpmedley joined #mojo
22:38 tempire http://ecx.images-amazon.com/images/I/414x98p642L.jpg
22:39 sri :O
22:45 hernan604 let me guess.. they use mojo framework
22:58 bpmedley_ joined #mojo
23:55 tchaves joined #mojo

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