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

IRC log for #mojo, 2017-11-24

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

All times shown according to UTC.

Time Nick Message
00:30 kaare_ joined #mojo
00:39 CandyAngel best window manager :P
00:45 Grinnz cinnamon scales pretty well for the most part. sticking to gtk3 apps is important
00:48 aborazmeh joined #mojo
01:58 dmanto joined #mojo
03:02 noganex_ joined #mojo
03:59 noganex joined #mojo
04:23 mohawk sri, https://promisesaplus.com/implementations#in-other-languages - now featuring mojo!
05:10 kaare joined #mojo
07:02 jamesaxl joined #mojo
07:05 dod joined #mojo
07:08 Vandal joined #mojo
07:10 karjala_ joined #mojo
07:10 geospeck joined #mojo
07:12 dod joined #mojo
07:15 jkp joined #mojo
07:25 inokenty-w joined #mojo
07:46 AndrewIsh joined #mojo
08:32 karjala_ joined #mojo
08:36 trone joined #mojo
08:44 marcus CandyAngel++
08:54 squiggy joined #mojo
09:05 morton joined #mojo
09:06 morton HI can anyone post a link to the mojo version change log please
09:07 CandyAngel morton: https://metacpan.org/changes/distribution/Mojolicious
09:09 morton Thanks a lot
09:11 morton During the week I seen a site (which I've forgot) which discussed various changes, reasons and alternative methods etc..) You don't happen to know that link do you? :)
09:14 CandyAngel No, sorry. I pretty much get my updates here :P
09:15 morton Thanks anyway, guess I'll have to start using search engines and the alike
09:27 jkp_ joined #mojo
09:32 morton found it - https://github.com/kraih/mojo/wiki/Upgrading - very useful having some insight for changes
09:34 sri morton: that has not been updated with recent changes
09:47 jkp joined #mojo
10:26 aborazmeh joined #mojo
10:41 tchaves joined #mojo
11:20 kilolife joined #mojo
11:28 kilolife I think I found a bug in Mojo::File. list_tree works on a mounted cifs network file system not as expected. For exampe perl onliner: perl -E 'use Mojo::File qw(path);$p=path(qw(a b c)); $p->make_path; say path("a")->list_tree({dir => 1})->each'  On regular filesystem it say "a/ba/b/c" as expected. But on mounted network filesystem it say only "a/b".
11:29 kilolife Please, someone, check. Thank you.
11:53 PsimanX1 kilolife:  The issue is in File::Find (see: http://www.perlmonks.org/?node_id=1180606 ).  Add $File::Find::dont_use_nlink=1 to your code to fix but be aware there is a performance penalty for this.
12:05 kilolife Yes you are right. :(
12:32 tchaves joined #mojo
12:58 mohawk sri, you could legitimately put the promises/a+ logo somewhere on Mojolicious's website now
13:00 pink_mist mohawk: 23:35 <sri> only when it's advantageous to the design <-- this was his reply the last time you suggested it
13:03 sri mohawk++
13:03 sri and yea, only when it looks good
13:06 mohawk yeah, it could be slicker looking
13:06 mohawk any graphics whizzes here could take a look?
13:07 pink_mist sri is the graphics whizz :P
13:07 mohawk we have definite proof they accept PRs
13:23 * CandyAngel finds the answer to her question in the documentation. Hurrah!
13:24 CandyAngel And as far as I can tell, it will work exactly as I want
13:27 CandyAngel Oh
13:27 CandyAngel And I have even come it with a name for this project :D
13:36 ipluta joined #mojo
13:41 dim0 joined #mojo
13:42 dim0 Hi there! Why not to move emit_chain from Mojolicious::Plugins to Mojo::EventEmitter?
13:43 ChmEarl joined #mojo
13:45 marty joined #mojo
13:46 marty joined #mojo
13:50 irqq__ joined #mojo
13:53 Lee_ joined #mojo
13:55 maschine joined #mojo
14:00 karjala_ batman, I think that I might have found an error in JSON::Validator
14:00 sri dim0: different arguments than ->emit
14:01 dim0 sri, not replace, just move
14:01 sri yes, it would not fit into EventEmitter, because it's inconsistent
14:02 sri EventEmitter callbacks get the invocant
14:02 karjala_ batman, https://gist.github.com/akarelas-pt/2e31f39445a039272aa33d1f6e74aa4a
14:10 batman karjala_: i see what you're saying, but i'm not sure if that's something i want to support
14:10 karjala_ It's ok, I don't mind that much. Just thought you wanted to be 100% .ompatible
14:10 batman it seems like a bug to me, if you provide a schema that doesn't have any "type" or a hint of what type that should be used.
14:11 batman i want to make a library that makes sense based on the spec.
14:11 batman if this case cause real-life issues for you, then open an issue and document that and i will fix it.
14:11 batman if it's just a theoretical problem, then i would rather "help" those who have a typo
14:12 batman does that make sense?
14:13 karjala_ Yes
14:13 batman cool
14:14 batman the smallest schema would be $jv->chema({type => "any"}), which is the same as {}
14:14 geospeck joined #mojo
14:18 karjala_ batman, I thought I should tell you, because I was thinking that maybe someone in the future will generate their schema dynamically, and it can be empty, but then you might find it will be too late to adjust this behaviour on schema={}, because it might break other people's code
14:18 karjala_ silly reason, ok
14:20 batman not a silly reason at all. i just don't want to change that behaviour until that is actually something that happens :)
14:21 batman thanks for letting me know about your findings
14:22 batman i do think it's weird that the spec allows a complete empty schema though... but that's not up to me to decide...
14:22 geospeck joined #mojo
14:23 mohawk it's a validation rule that says "everything is ok"
14:24 mohawk arguably that should be allowed. equally arguably, it should not be
14:25 batman i know what it means :)
14:26 karjala_ batman, shouldn't your library be here? http://json-schema.org/implementations.html#validator-perl
14:28 batman guess it should... i've only created https://github.com/swagger-api/swagger.io/pull/199/files
14:29 mohawk batman, i didn't doubt you knew ;-)
14:31 batman mohawk :)
14:45 haarg is {type => "any"} in the spec?
14:58 geospeck joined #mojo
15:05 CandyAngel The only thing worse than doing something wrong is then also not being able to figure out how >.<
15:06 mohawk there's things worse than those ;-)
15:19 batman haarg: yeah.
15:19 batman type can be any, array, object, string, number, integer, boolean, ... can't remember them all :)
15:23 haarg http://json-schema.org/latest/json-schema-validation.html#rfc.section.6.1.1
15:23 haarg i don't see it
15:26 karjala_ JSON::Validator rocks. Thanks batman.
15:36 ghenry joined #mojo
15:44 sh14 joined #mojo
15:58 frogzilla joined #mojo
16:05 batman haarg: that's so weird... i don't see it either :/
16:05 batman karjala_: thanks :)
16:11 batman i can't find it i in swagger either...
16:11 dim0 joined #mojo
16:15 batman haarg: it must be a bug, but i haven't documented where it comes from... `curl -s http://json-schema.org/draft-04/schema | grep -A1 '"simpleTypes"'`
16:15 batman karjala_: i need to investigate it further, but it seems like i messed up
16:16 karjala_ where did you think you messed up, batman?
16:16 karjala_ you talking to me?
16:21 batman https://tools.ietf.org/html/draft-fge-json-schema-validation-00#appendix-A <-- they removed "any" as possible type.
16:21 batman so... i need to figure out where i got "any" from.
16:28 batman karjala_, haarg: wanna chip in on https://github.com/jhthorsen/json-validator/issues/83 ? karjala_, you could mention that an empty schema should be supported if you like...
16:29 batman karjala_, haarg: there's also a #swagger channel
16:34 tchaves joined #mojo
16:45 cascardo_ joined #mojo
17:14 gizmomathboy joined #mojo
17:43 geospeck joined #mojo
17:59 dod joined #mojo
18:00 Lee joined #mojo
18:21 geospeck joined #mojo
18:26 geospeck_ joined #mojo
18:28 jamesaxl joined #mojo
18:31 geospeck joined #mojo
19:02 skippydippy joined #mojo
19:02 skippydippy ..
19:03 pink_mist wonder what that was about
19:09 sri ...
19:24 pirateFinn_ joined #mojo
19:52 mib_njapop joined #mojo
20:19 jamesaxl joined #mojo
20:19 niceperl joined #mojo
20:28 batman sri: do you have any perltidy tricks to format this in a better way? https://ssl.thorsen.pm/paste/c77729f97fde
20:30 mohawk batman, why not just use two-arg then rather than ->then(...)->catch?
20:30 batman that helps indeed
20:30 mohawk (fully aware that's not what was asked :-)
20:30 sri in case the ->then callback fails
20:31 sri if you add ->catch that catches both
20:31 sri rejected promise and failed closure
20:31 mohawk ok, that's semantically different
20:31 sri yes, ->catch matters
20:31 mohawk i'd have expected the 2nd arg to happen if the first one didn't work
20:32 sri it's not just syntax sugar as jberger said in the big promise discussion
20:32 sri luckily we made the right decision before understanding the problem
20:33 sri batman: and no, sadly i have no perltidy tricks yet, but welcome ideas
20:33 batman ok :/
20:33 sri i just assign the promise to a variable
20:34 sri my $promise = $ua->get_p->then(sub {...}); $promise->catch(sub {...})->wait;
20:34 batman i'm trying my best to understand the value of promises, but i can't seem to get it
20:34 sri not sure anyone has ever filed a bug for perltidy about that
20:34 sri maybe try that
20:35 batman sri: ok
20:35 sri it's most definitely a perltidy bug
20:35 sri in some way
20:37 sri what i would have expected from perltidy is https://ssl.thorsen.pm/paste/a9a495f102c4
20:37 sri but it can't seem to handle closures very well
20:38 batman what i would like is if it would move "sub {" up to the same line as "("
20:38 batman but i agree that what you just wrote is what i would expect...
20:38 sri that would be nice
20:39 batman i hope whoever blogs about promises can explain why it's better to use promises than just a callback
20:41 sri composablility
20:42 batman like ->all() and ->race() ?
20:42 sri Mojo::Promise->all()/race() and you can easily make more
20:45 batman hm... i need to think more about this :/
20:45 batman hopefully i will suddenly get it.
20:45 * batman <3 delay
20:47 sri we have a bit of a bloggin problem, nobody on the team wants to do it anymore :S
20:47 sri *g
20:49 batman i can't blog about this :(
20:49 sri so many cool new features recently, but nobody wants to write about them
21:14 marty joined #mojo
21:17 sri (roles, promises, signatures, minion ui, minion for non-mojo apps, minion jobs in foreground, minion job progress, minion rate limits...)
21:18 marty joined #mojo
21:27 sri perhaps we should retire the mojo blog
21:27 sri i keep hearing that people would prefer to blog on their own blogs
21:36 good_news_everyon joined #mojo
21:36 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vFhGl
21:36 good_news_everyon mojo/master 57f258e Sebastian Riedel: retire the blog
21:36 good_news_everyon left #mojo
21:36 jamesaxl joined #mojo
21:46 karjala_ joined #mojo
21:51 marty joined #mojo
22:08 suprise joined #mojo
22:08 suprise CALL 415-349-5666 L0DE RADIO HOUR
22:08 suprise https://www.youtube.com/watch?v=DIZqYgaOchY
22:09 suprise marty karjala_ jamesaxl pirateFinn_ geospeck gizmomathboy cascardo_ ghenry maschine irqq__ ChmEarl kaare noganex gordonfish sjn CHYC gregf_ anon Armen dexteruk zivester dotan_convos bjakubski zach eseyman Grinnz jabberwok mtths nic ashimema PsimanX1 Sebbe klapperl mishanti1 exp-innit caeles ilbot2
22:09 suprise mattp mohawk [vlad] ccakes VVelox jacoby hkclark chandwki mgrimes Dandre foursixnine bobkare garu BinGOs chansen omega da5id marcus mbudde Eke htaunay dabudabu stefan_ mrEriksson mikegrb Gedge charsbar cromedome jnap vinnix Xyem CandyAngel robinsmidsrod preaction mantov tyldis bc547_ graf tardisx_
22:09 suprise left #mojo
22:27 dmanto joined #mojo
22:34 xtq joined #mojo
22:34 xtq CALL 415-349-5666 L0DE RADIO HOUR
22:35 xtq https://www.youtube.com/watch?v=DIZqYgaOchY
22:35 pink_mist why?
22:35 xtq dmanto marty karjala_ pirateFinn_ geospeck gizmomathboy cascardo_ ghenry maschine irqq__ ChmEarl kaare noganex gordonfish sjn CHYC gregf_ anon Armen dexteruk dotan_convos bjakubski zach eseyman Grinnz jabberwok mtths nic ashimema PsimanX1 Sebbe klapperl mishanti1 exp-innit caeles ilbot2 mattp
22:35 pink_mist why do yoy do this?
22:35 xtq mohawk [vlad] ccakes VVelox jacoby hkclark chandwki mgrimes Dandre foursixnine bobkare Jonis trippeh eday michael sivoais ranguard saki romel nicomen esh renormalist jnbek a6502 wouter mudler genio haarg cfedde__ [0xAF] Kundun mtj purl geheimnis` diegok Peppard stryx` TBSliver cfedde_ cfedde coolo
22:35 pink_mist it's just annoying
22:35 xtq Bender suede dustinm tinita pink_mist crab Andreas3 stephanj tardisx_ graf bc547_ tyldis salva oalders hernan604 garu BinGOs chansen omega da5id marcus mbudde Eke htaunay dabudabu stefan_ mrEriksson mikegrb Gedge charsbar cromedome jnap vinnix Xyem CandyAngel robinsmidsrod preaction mantovani
22:35 pink_mist nobody is gonna click that shit
22:35 xtq left #mojo
22:35 pink_mist just give up
22:35 pink_mist crap
22:35 pink_mist also, s/yoy/you/
22:35 mohawk no k-lines
22:40 geospeck joined #mojo
22:52 vvv joined #mojo
22:52 vvv CALL 415-349-5666 L0DE RADIO HOUR
22:52 vvv https://www.youtube.com/watch?v=DIZqYgaOchY
22:52 vvv marty karjala_ pirateFinn_ gizmomathboy cascardo_ ghenry maschine irqq__ ChmEarl kaare noganex gordonfish sjn CHYC gregf_ anon Armen dexteruk dotan_convos bjakubski zach eseyman Grinnz jabberwok mtths nic ashimema PsimanX1 Sebbe klapperl mishanti1 exp-innit caeles ilbot2 mattp mohawk [vlad] ccakes
22:53 vvv VVelox jacoby hkclark chandwki mgrimes Dandre foursixnine bobkare Jonis trippeh eday michael sivoais ranguard saki romel nicomen esh renormalist jnbek a6502 wouter mudler genio haarg cfedde__ [0xAF] Kundun mtj purl geheimnis` diegok Peppard stryx` TBSliver cfedde_ cfedde coolo Bender suede dustinm
22:53 vvv left #mojo
22:53 PsimanX1 Well this isn't getting annoying at all..
22:53 gordonfish Anyone else read "CALL ... LODE RUNNER HOUR" at first?
22:54 gordonfish But yeah seems some klining is in order here
22:55 PsimanX1 yup
23:06 jberger nearly a worst-case scenario for irc opers
23:06 jberger holiday in the us and people in the uk assembling for LPW
23:08 gizmomathboy joined #mojo
23:09 PsimanX1 LPW?
23:09 purl i guess LPW is London Perl Workshop
23:09 mohawk irc.gimp.org is hit too
23:09 PsimanX1 ahh

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