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

IRC log for #mojo, 2017-11-25

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

All times shown according to UTC.

Time Nick Message
00:00 zivester joined #mojo
00:04 marty joined #mojo
00:18 zivester joined #mojo
01:06 aborazmeh joined #mojo
01:30 disputin joined #mojo
01:32 mohawk preaction, may i ask why CPAN::Testers::API is min 5.24?
01:51 preaction mohawk: because i can
03:24 zivester joined #mojo
03:58 noganex_ joined #mojo
07:08 Armen138 joined #mojo
07:32 jamesaxl joined #mojo
07:40 Vandal joined #mojo
08:06 sh14 joined #mojo
08:34 dim0 joined #mojo
08:34 dod joined #mojo
08:50 trone joined #mojo
09:00 ghenry joined #mojo
09:49 geospeck joined #mojo
10:05 trone joined #mojo
11:20 karjala_ joined #mojo
11:25 dim0 joined #mojo
11:40 kaare joined #mojo
11:46 mishanti1 Has anyone here added markdown-rendering to their mojo-apps? Specifically combining ep and markdown to be able to use helpers etc.
11:55 mishanti1 Looking at Mojolicioua::Plugin::PODRenderer now. Seems pretty much like what I'm after. :)
11:55 mishanti1 s/Mojolicioua/Mojolicious/
12:28 trone joined #mojo
12:45 sri yea, PODRenderer is similar
13:07 dod joined #mojo
13:09 dod joined #mojo
13:19 geospeck joined #mojo
13:19 geospeck joined #mojo
14:16 karjala_ joined #mojo
14:18 geospeck joined #mojo
14:59 PsimanX1 joined #mojo
15:06 Psiman joined #mojo
15:09 PsimanX2 joined #mojo
15:30 kes joined #mojo
15:50 trone_ joined #mojo
15:56 PsimanX1 joined #mojo
16:17 dim0 joined #mojo
16:28 ChmEarl joined #mojo
17:23 jberger preaction++
17:54 karjala_ joined #mojo
19:08 geospeck joined #mojo
19:08 dod joined #mojo
19:23 bpmedley joined #mojo
19:24 vicash joined #mojo
19:50 trone joined #mojo
20:41 mishanti1 Finding a module for converting markdown/commonmark to html has been surprisingly difficult, at least when trying to support something with the featureset of Github Flavored Markdown.
20:42 mishanti1 Text::Markdown::GFM::Lite doesn't look too bad though. Anyone here used it?
20:45 mishanti1 Doh.. "uses the Github API". Back to browsing cpan. :p
21:04 Grinnz maybe https://metacpan.org/pod/Markdent::Simple::Document
21:04 Grinnz it has a github dialect
21:04 Grinnz https://metacpan.org/pod/distribution/Markdent/lib/Markdent/Dialect/GitHub.pod
21:09 mishanti1 Grinnz: Thanks :) I missed that one earlier. Looking through it now.
21:29 trone joined #mojo
21:43 xarcus joined #mojo
21:43 Leffe joined #mojo
21:46 Leffe Hi friends
21:46 mishanti1 \o
21:47 Leffe I would like some advice on 'minion'
21:47 Leffe anyone has ever used it?
21:49 Leffe I have a webapp done with mojoliciuos (thanks to everyone that helped me in the process)
21:50 mishanti1 I have not, at least not to any extent that makes me qualified to say anything about it. But I get the impression that several people here use it to do pretty cool things.
21:51 Leffe Some requests take time, they move files, compress directories and so on ..
21:51 Leffe Thanks mishanti1 :)
21:52 Leffe I think I should use minion for this things. What do you think?
21:52 mishanti1 Best of luck to you. :) What you describe sounds like a perfect fit for Minion, at least from my extremely limited understanding of it.
21:53 Leffe I think there are other possibilities like run these processes in background.
21:54 Leffe Or even perl threads .... if they work, I have read warnings against them.
21:55 Leffe What about perl threads? something to avoid?
21:55 pink_mist avoid yes
21:55 pink_mist like the plague
21:55 pink_mist they're only useful for emulating fork on windows
21:58 Leffe How do perl gurus run things in parallel? creating new processes using some kind of queues like minion?
22:01 pink_mist depends on what the problem actually is
22:01 pink_mist if you're IO bound you can just do async instead
22:02 pink_mist but if you're CPU bound, yes, creating new processes is the way to deal with that
22:02 Leffe My problem is that I'm using a web app done with mojolicious
22:02 pink_mist however, if you're CPU bound, perhaps you should consider writing your program in a different language than perl
22:03 pink_mist Leffe: Minion is a good fit for your problem
22:03 Leffe normally there is just one user running it.
22:04 Leffe it is used to configure an embedded system
22:04 Leffe it runs on a single process.
22:05 Leffe So whenever I do something that takes time the web app frezes.
22:05 Leffe it's ok that it does not serve any request, but it's ugly.
22:06 Leffe I would like to change the state of the web server during this long processes, and just redirect to a page that says working ... on something.
22:06 pink_mist Mojo::IOLoop::Subprocess might also help you
22:07 Leffe mmmm
22:07 Leffe what does this?
22:07 Leffe launch another process?
22:08 Leffe Sounds good
22:09 Grinnz minion is useful if the response doesn't need to wait for the task to happen. subprocesses are good if you need to wait for it, but don't want it to block the web worker
22:11 pink_mist if it's an embedded system, not having to run a DB might also be useful
22:12 pink_mist Minion requiers a DB of some form
22:12 Leffe Yes ... the DB is a problem
22:12 pink_mist *requires
22:12 pink_mist Mojo::IOLoop::Subprocess doesn't require anything
22:17 Leffe If I request something like 'POST replicate_contents' that launch a Mojo::IOLoop::Subprocess, does the original request freeze until it finish?
22:25 dmanto joined #mojo
22:49 pink_mist depends how you write it
22:49 pink_mist http://mojolicious.org/perldoc/Mojolicious/Guides/Cookbook#Subprocesses
23:02 Leffe Thanks pink_mist. I don't fully understand how single process / event loop server work. I'll have a look at this and hopefully I'll come latter with better questions. Tks.
23:37 karjala_ joined #mojo
23:38 ChmEarl joined #mojo

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