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

IRC log for #mojo, 2017-12-08

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

All times shown according to UTC.

Time Nick Message
00:22 Seth joined #mojo
01:23 robx joined #mojo
02:40 gizmomathboy joined #mojo
02:57 ilbot2 joined #mojo
02:57 Topic for #mojo is now 🍩 nom nom | http://mojolicious.org | http://irclog.mojolicious.org | http://code-of-conduct.mojolicious.org
03:42 Leffe joined #mojo
03:53 Leffe joined #mojo
04:45 hkclark joined #mojo
04:56 Lee_ joined #mojo
05:22 itaipu joined #mojo
05:31 jberger and once again, thanks to preaction for the next blog post: https://twitter.com/joelaberger/status/939004244866211840
05:31 jberger two days off was a delight, I'll be refreshed and raring to go tomorrow!
05:36 lodin joined #mojo
06:23 mohawk preaction++ # again
06:35 girlbeach joined #mojo
06:35 girlbeach www.triphile.com/2017/06/paris_10.html ,the second is me
06:37 coolo now that was strange :)
06:37 mohawk actual commercial spam rather than russian trolling
06:55 dod joined #mojo
07:00 dod joined #mojo
07:25 Vandal joined #mojo
07:38 lodin joined #mojo
07:38 inokenty-w joined #mojo
08:05 Lee joined #mojo
08:11 geospeck joined #mojo
08:22 Leffe joined #mojo
08:51 kaare joined #mojo
09:04 tyldis Should the docs for Mojo::Role point to "use Mojo::Base -role;"? A quick Google for "mojolicious roles" provides the latter as first hit.
09:16 Kharec joined #mojo
09:52 dod joined #mojo
10:21 dod joined #mojo
10:23 Jonis joined #mojo
10:23 Jonis joined #mojo
10:33 dod joined #mojo
11:10 trone joined #mojo
11:12 bjakubski joined #mojo
11:15 trone_ joined #mojo
11:27 trone_ joined #mojo
11:30 trone_ joined #mojo
11:36 hkclark joined #mojo
11:47 itaipu joined #mojo
12:03 irqq___ joined #mojo
12:07 Leffe joined #mojo
12:09 tyldis Solving repetetive work by chaining 4 vim macros gives me a God-like feeling.
12:33 kaare joined #mojo
12:45 Leffe joined #mojo
14:11 ChmEarl joined #mojo
14:13 jacoby joined #mojo
14:32 preaction joined #mojo
14:35 Leffe joined #mojo
14:35 gizmomathboy joined #mojo
14:44 preaction joined #mojo
14:53 dod joined #mojo
14:56 gryphon joined #mojo
14:59 jamesaxl joined #mojo
15:05 dod joined #mojo
16:04 perlpilot joined #mojo
16:13 UncleCarl joined #mojo
16:17 UncleCarl How can I share websocket transactions between workers? A "has" in the application doesn't do this, right? IPC::Shareable complains about CODE refs. Is there anything built into Mojolicous?
16:21 sri you use a pub/sub message bus to communicate between workers
16:21 sri example https://github.com/kraih/mojo-pg/blob/master/examples/chat.pl
16:21 sri that chat works with multiple workers
16:22 sri another one https://st.aticpan.org/source/DBOOK/Mojo-Redis2-0.30/examples/chat.pl
16:22 sri Grinnz: make that use -signatures :)
16:25 UncleCarl Thank you. I will check it out. BTW, the controller docs imply that a WS on() or send() will finalize the handshake. While it does set the rendered code to 101 and emits a debug message that it has switched protocols, the HTTP response isn't sent to the UA at that time. The socket is still not ready to send().
16:37 Grinnz tyldis: you'd have to ask the author.  as for Google results the best way is probably to write blog posts about using roles in mojo
17:00 Leffe joined #mojo
17:16 dod joined #mojo
17:22 Leffe joined #mojo
17:23 dod joined #mojo
17:36 itaipu joined #mojo
17:48 Leffe joined #mojo
17:51 Lee joined #mojo
17:53 lodin joined #mojo
18:08 preaction if UncleCarl were still here i could suggest Mercury as a pure-Mojolicious message bus :(
18:21 marcus joined #mojo
18:22 batman joined #mojo
18:38 itaipu joined #mojo
18:53 Vandal left #mojo
19:19 Seth joined #mojo
19:37 jamesaxl joined #mojo
19:43 geospeck joined #mojo
21:00 sri guess sooner or later Minion::Backend will need a ->list_locks method
21:01 Grinnz thats easy enough
21:02 Leffe joined #mojo
21:17 Seth joined #mojo
21:17 pirateFinn_ joined #mojo
21:19 mohawk_pts joined #mojo
21:40 jacoby joined #mojo
21:40 sri and done https://github.com/kraih/minion/commit/524b6b74c269a8a6d01b3e987f1fa63eddfd75d6
21:40 sri it's needed for debugging imo
21:41 sri sucks when your job dies and you have to track down a lock
21:41 sri think i'll also add the count to stats
21:48 sri and done too
21:48 sri not sure if i'll show them in the ui
21:49 Grinnz you should add github announcements for mojo-pg and minion here :P
21:49 sri kinda boring since they only have a name and expires date
21:49 sri hmm, i originally didn't since they were not part of the project
21:50 Leffe joined #mojo
21:50 sri but now they are official spin-off projects, so i guess it would be on topic
21:50 sri and i'd have to remember how to set up irc announcements
21:51 Grinnz repository settings, integrations, irc
21:54 gryphon joined #mojo
21:58 good_news_everyon joined #mojo
21:58 good_news_everyon [minion] kraih pushed 1 new commit to master: https://git.io/vb4WV
21:58 good_news_everyon minion/master 4bb27ca Sebastian Riedel: fix descriptions and tests
21:58 good_news_everyon left #mojo
21:58 sri guess it works
22:03 Grinnz what do you think about making Minion::Backend a role? since Minion already has non-core deps to be functional
22:04 Grinnz obviously would be a breaking change for the backends
22:08 dmanto joined #mojo
22:10 good_news_everyon joined #mojo
22:10 good_news_everyon [minion] kraih pushed 1 new commit to master: https://git.io/vb48q
22:10 good_news_everyon minion/master ee1ecf3 Sebastian Riedel: allow locks to be filtered by name
22:10 good_news_everyon left #mojo
22:11 sri Grinnz: what's the advantage?
22:12 Grinnz https://metacpan.org/source/SRI/Minion-8.03/lib/Minion/Backend.pm would just be "use Mojo::Base -role; has 'minion'; requires qw(broadcast dequeue enqueue ...);"
22:12 Grinnz no explicit technical advantage
22:15 sri meh
22:15 good_news_everyon joined #mojo
22:15 good_news_everyon [minion] kraih pushed 1 new commit to master: https://git.io/vb48D
22:15 good_news_everyon minion/master 4d9bc93 Sebastian Riedel: fix a bug in Mojolicious::Plugin::Minion::Admin where filtering jobs by task or queue would not reset the offset
22:15 good_news_everyon left #mojo
22:16 sri Grinnz: i don't like roles like that
22:16 sri abstract base classes should be abstract base classes
22:16 Grinnz i don't like base classes that aren't intended to be instantiated, but fair enough
22:21 sri what i'd really like is design ideas for how to show locks in the minion ui :)
22:43 jberger speaking of roles
22:43 jberger I typically use roles for Test::Mojo additions
22:43 jberger what other things do people like roles for in Mojo ... nudge nudge wink wink
22:46 Grinnz well... https://metacpan.org/pod/Mojo::Collection::Role::UtilsBy, and i use it for Test::Mojo at $work
22:46 Grinnz specifically to manage the login session
22:49 karjala_ joined #mojo
23:21 CandyAngel jberger: Persistent cookies for CookieJar
23:22 CandyAngel and i will probably use them for interface for packets if the performance is there
23:23 Grinnz role overhead is primarily going to be at compose-time, except method modifiers would introduce sub calls of course
23:25 Grinnz whereas inheritence has to be consulted every time you call a method, composed methods are literally just stuck in your class
23:25 Grinnz maybe a little more complicated than that but :P
23:26 CandyAngel Hm.. oh yeah! i only have to compose each type once
23:29 Seth joined #mojo
23:52 mohawk_pts CandyAngel, did you publish your CookieJar doodah?
23:54 mohawk and that's a graphql app, in a container, with a "prereqs container" stage in between
23:54 mohawk #winning
23:54 Grinnz docker docker docker ansible
23:55 mohawk https://github.com/graphql-perl/sample-mojolicious-openapi/tree/docker
23:55 mohawk Grinnz, if you know something about docker could you glance at the above? i literally started on docker yesterday morning
23:55 Grinnz i don't know anything about docker
23:55 mohawk oh
23:55 mohawk boo
23:56 mohawk i'll be blogging about it soon, which will function as a rubbish tutorial on docker as well
23:57 mohawk including my vast knowledge of best practice based on those two days of activity so far

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