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

IRC log for #mojo, 2017-11-27

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

All times shown according to UTC.

Time Nick Message
00:18 jberger I'll probably get a switch at some point too
00:18 jberger zelda and mario
00:46 aborazmeh joined #mojo
03:05 rickbol joined #mojo
03:22 noganex joined #mojo
04:26 sh14 joined #mojo
05:52 inokenty-w joined #mojo
06:41 dod joined #mojo
06:46 dod joined #mojo
06:58 Vandal joined #mojo
07:02 kes joined #mojo
07:15 ste joined #mojo
07:18 Mojolearner joined #mojo
07:21 geospeck joined #mojo
07:33 dim00 joined #mojo
07:35 Leffe joined #mojo
07:49 AndrewIsh joined #mojo
07:52 dod joined #mojo
07:52 Leffe joined #mojo
07:57 ashimema joined #mojo
08:02 Leffe joined #mojo
08:21 Lee joined #mojo
08:50 Leffe Hi, I don't understand how IOLoop really works. How can it attend many requests?
08:52 Leffe does the operating system queues tcp/ip requests?
09:31 karjala_ joined #mojo
09:41 Leffe joined #mojo
09:42 dim0 joined #mojo
09:44 dim00 joined #mojo
10:10 dim0 joined #mojo
10:31 Leffe joined #mojo
10:37 simon_ joined #mojo
10:38 simon_ hello.
10:41 simon_ I've just made a custom validator that checks if one date field is chronologically after another.
10:41 tchaves joined #mojo
10:43 simon_ I've also got a validator that checks that dates are valid. I'm setting them up like this: $v->optional('startdate')->valid_date; $v->optional('enddate')->valid_date->date_is_after('startdate'); and inside the validator I'm failing the validator ... if $self->param($earlier) && $date < $self->param($earlier);
10:44 simon_ which means the validator only compares and fails if the end-date is specified (otherwise I'm getting warnings about comparing undef). but this means that my validator *assumes* that the fields that it validates are optional. is there a way I can make the validator check the $self->param($earlier) not if it's there but if it's optional?
11:00 Leffe joined #mojo
11:04 batman sri: i've commented. thanks for creating the issue :)
11:05 sri \o/
12:26 Leffe joined #mojo
12:57 dod joined #mojo
12:57 dotan_convos joined #mojo
13:09 geospeck joined #mojo
13:24 mib_gspi1x joined #mojo
13:30 dotan_convos joined #mojo
13:34 gizmomathboy joined #mojo
13:37 maschine joined #mojo
13:51 dod joined #mojo
13:57 marty joined #mojo
13:58 marty joined #mojo
14:02 zivester joined #mojo
14:09 jberger technically off topic, but interesting: https://6guts.wordpress.com/2017/11/24/a-unified-and-improved-supply-concurrency-model/
14:14 Leffe joined #mojo
14:16 exp-innit jberger: yeah a good article, if a bit far down the rabbit hole
14:16 jberger yeah, but that's the hard stuff
14:16 jberger jnthn++
14:20 gryphon joined #mojo
14:21 * sri has a really annoying problem at work, a minion task only works in the foreground, but not with a normal worker
14:21 sri it's something about the module File::Unpack
14:22 sri my first guess was signal handlers, since File::Unpack uses a lot of external commands, but that doesn't appear to be it
14:25 jberger yikes there's a lot of code to audit in there
14:26 bwf joined #mojo
14:28 sri yea, there's surprisingly few alternatives
14:35 jberger I remember using something under Archive::
14:35 jberger Archive::Any perhaps?
14:36 jberger anyway, that isn't really your question
14:37 sri we need to unpack archives in archives and so on
14:38 sri and not fail too badly when encountering borked archives
14:39 sri (you know borked data included in tests and so on)
14:41 sri at some point i guess i might have to rewrite File::Unpack sanely
14:46 batman sri: can't you just call the shell directly, if that's what File::Unpack does?
14:46 batman using something like https://github.com/moonpyk/dtrx
14:53 noganex_ joined #mojo
14:55 sri batman: yes, i could
14:55 dod joined #mojo
15:15 perlpilot joined #mojo
15:39 noganex joined #mojo
15:47 noganex_ joined #mojo
15:48 dr_bibble joined #mojo
15:49 sh14 joined #mojo
15:57 noganex joined #mojo
16:00 noganex__ joined #mojo
16:02 noganex_ joined #mojo
16:09 ChmEarl joined #mojo
16:12 dotan_convos joined #mojo
16:25 dim0 joined #mojo
16:48 trone joined #mojo
16:51 mohawk sri, when i've had differences between fg and as a daemon, usually it's been about flushing
17:13 Kharec joined #mojo
17:16 jamesaxl joined #mojo
17:41 karjala_ joined #mojo
17:42 pink_mist jberger: yeah, the concurrency and async bits of perl6 are the ones I'm most tempted by
17:55 dod joined #mojo
18:23 Seth joined #mojo
18:44 geospeck joined #mojo
18:52 jberger pink_mist: they were tempting but every time I had tried them there were prominent rough spots
18:53 jberger I don't remember if they were exactly the ones jnthn is talking about there, but I do recall examples that I followed that seemed to mix in low-level logic into what should have been high level
18:53 suchanoob joined #mojo
19:41 geospeck joined #mojo
19:43 blonewolfs joined #mojo
20:09 maschine joined #mojo
20:16 ghenry joined #mojo
20:18 petra85 joined #mojo
20:22 jacoby joined #mojo
20:43 trone joined #mojo
20:52 pink_mist https://imgur.com/gallery/vG3trCZ
21:14 wouter is it possible to tell Mojo::Template not to add newlines, ever?
21:14 wouter (I can do chomp(), but it seems silly)
21:17 Grinnz doesn't seem to be
21:22 Grinnz aha: "A newline character gets appended automatically to every template, unless the last character is a backslash."
21:23 Grinnz https://perlbot.pl/p/hw5659
21:47 disputin joined #mojo
22:00 disputin joined #mojo

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