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

IRC log for #mojo, 2017-07-29

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

All times shown according to UTC.

Time Nick Message
01:15 kavuria joined #mojo
02:57 noganex joined #mojo
03:10 coetry joined #mojo
03:38 coetry joined #mojo
03:46 coetry_ joined #mojo
04:08 aborazmeh joined #mojo
05:12 stryx` joined #mojo
05:22 coetry joined #mojo
05:41 coetry_ joined #mojo
06:05 howitdo joined #mojo
06:09 mib_t10vmc joined #mojo
06:09 mib_t10vmc left #mojo
07:23 zerah_ joined #mojo
07:37 marty joined #mojo
07:48 Vandal joined #mojo
09:13 trone joined #mojo
09:16 howitdo joined #mojo
10:34 stryx` joined #mojo
10:50 petru joined #mojo
10:52 trone joined #mojo
11:01 mib_y376t3 joined #mojo
11:12 CandyAngel Nevermind, I found lock and I can do what I want with that <3
11:18 kiwiroy joined #mojo
11:45 irqq joined #mojo
12:37 good_news_everyon joined #mojo
12:37 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/v7WgP
12:37 good_news_everyon mojo/master a7cdf6f Sebastian Riedel: improve Mojo::URL performance significantly
12:37 good_news_everyon left #mojo
12:37 sri perl -Ilib -Mojo -E 'n { Mojo::URL->new("http://mojolicious.org/foo/bar?baz=yada")->to_string } 10000'
12:38 sri goes from 18518.52/s to 47619.05/s
12:39 sri but, it's a pretty ugly hack and the patterm escaping is hard to follow... really annoying
12:40 sri should make https://github.com/kraih/mojo/issues/1114 go away too though
12:45 petru I've written a helper module for tests and  something inside a function fails. How can I view why the function fails?
13:22 kavuria joined #mojo
13:35 karjala_ joined #mojo
13:54 petru joined #mojo
13:56 PryMar56 joined #mojo
13:58 petru why if I have my $t = Test::Mojo::Session->new('SuperSecret'); and then pass it to a helper function which does my $t = shift; and then $t = 0; the code after the helper still runs successfully?
14:07 sri i really want to like https://github.com/kraih/mojo/pull/1115
14:07 sri but there is soooo much code in there that does absolutely nothing
14:09 irqq joined #mojo
14:25 petru I've posted on stack overflow https://stackoverflow.com/questions/45390293/testmojo-save-routes-inside-helper-function
14:36 karjala_ What does toadfarm have to offer over running multiple hypnotoads the plain way?
14:37 karjala_ ok, I'm reading the instructions, sorry to bother this
14:37 karjala_ room before this
14:38 someuser joined #mojo
14:41 bianca joined #mojo
14:49 kaare joined #mojo
14:51 gryphon joined #mojo
14:59 trone joined #mojo
15:22 iamb joined #mojo
15:26 sri ok, there are big problems with #1115
15:46 sri jberger: another problem https://github.com/kraih/mojo/pull/1115#issuecomment-318839305
16:00 kaare_ joined #mojo
16:05 kavuria joined #mojo
16:11 sri well, i give up on #1115
16:11 sri don't really have a need for the feature personally, so can't justify investing more time
16:12 jnbek joined #mojo
16:12 sri sadly i think that kills the feature, since only jberger and me know the code, and the topic is rather complicated
16:21 tchaves joined #mojo
16:48 stryx` joined #mojo
17:05 CandyAngel I have to admit, I'm confused by the comment. I thought $dom->at('foo') would return the first foo, so that the find('foo > bar') could only find the first bar, because the second isn't really preceeded by 'foo' (because that's currently the node we're at)
17:05 CandyAngel I dunno, CSS isn't my thing but that's how I thought it worked :P
17:05 pink_mist CandyAngel: that's what the comment says
17:05 pink_mist CandyAngel: with :scope it's different though
17:06 pink_mist or perhaps should be different
17:06 pink_mist I'm unsure what the comment is saying about that :P
17:11 marty joined #mojo
17:19 kes joined #mojo
17:37 Lee joined #mojo
17:48 bianca joined #mojo
17:53 kaare_ joined #mojo
18:12 marty_ joined #mojo
18:18 kaare_ joined #mojo
18:19 jberger That whole thing is a brain bender
18:19 jberger It takes me hours to get it back into my head :/
18:31 itaipu joined #mojo
18:31 kavuria joined #mojo
18:53 kavuria joined #mojo
19:14 itaipu joined #mojo
19:34 itaipu joined #mojo
19:41 petru joined #mojo
21:05 irqq_ joined #mojo
21:50 sri CandyAngel: we follow the jQuery way (i think), and :scope was designed with the browser api in mind, which matches both
21:50 sri jberger: definitely is
21:51 sri CandyAngel: so, if we ever get :scope, it would be reasonable to change the default matching, so we can have both with :scope
21:53 sri :matches() and :not actually do not respect the ->at/find scoping rules
21:53 sri so, we already have inconsistency
22:04 good_news_everyon joined #mojo
22:04 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/v7Wh3
22:04 good_news_everyon mojo/master 0147516 Sebastian Riedel: the memory leak has been fixed too
22:04 good_news_everyon left #mojo
22:07 sri jberger: it gets easier to understand the patch when you know that he makes matching start at the parent of the current element and preprends a :scope to the selector
22:08 sri to make :scope with sibling combinators work
22:08 sri it's a pretty huge workaround
22:08 sri with many bad side effects
22:09 sri basically every selector has a :scope prepended if there is no :scope already
22:10 sri i wouldn't mind the workaround too much if it wasn't for this mess https://github.com/kraih/mojo/pull/1115/files#diff-a497a33049109dc96208d13a14c1612aR89
22:12 itaipu joined #mojo
22:23 sri hmm
22:24 sri i think this would be the correct way to implement :scope https://gist.github.com/anonymous/c22ed2ec1ef8779872b71528b23d6cd3
22:25 sri honestly, i have no clue how foo:has(+ bar) is supposed to work
22:34 sri this explains the implicit :scope thing too https://drafts.csswg.org/selectors/#relative
22:51 sri think i get it, :has() needs to match from the root
23:00 sri OMG
23:00 sri i get it now
23:00 sri it's so much simpler than it looks

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