Camelia, the Perl 6 bug

IRC log for #mojo, 2011-05-16

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

All times shown according to UTC.

Time Nick Message
00:49 sherr_ left #mojo
00:51 j3nnn1 joined #mojo
00:56 jpablobr joined #mojo
01:09 Curt joined #mojo
01:12 sherr joined #mojo
01:14 Curt__ left #mojo
01:17 kmx left #mojo
01:19 kmx joined #mojo
01:36 perlrocks Twitter: "[Xslate] / moe characters and what was the earth: Mojolicious:: Lite + Teng + SNBinder + Xslate (+ SQLite / OnMemory) I created a CRUD application in http://htn.to/QDnVcn" (ja) --__gfx__ http://twitter.com/__gfx__​/status/69939339366383617
01:39 perlrocks Twitter: "Was the character and what Moe: Mojolicious:: Lite + Teng + SNBinder + Xslate (+ SQLite / OnMemory) I created a CRUD application in http://htn.to/8Xite7" (ja) --riywo http://twitter.com/riywo/status/69939919367315456
01:41 Curt_ joined #mojo
01:42 Curt__ joined #mojo
01:44 j3nnn1_ joined #mojo
01:44 j3nnn1 left #mojo
01:45 perlrocks Twitter: "[Xslate] [mojolicious] / moe characters and what was the earth: Mojolicious:: Lite + Teng + SNBinder + Xslate (+ SQLite / OnMemory) to create an app with ... http://htn.to/vSuSXy CRUD" (ja) --nqounet http://twitter.com/nqounet​/status/69941623911497728
01:46 Curt left #mojo
01:47 perlrocks Twitter: "Was the character and what Moe: Mojolicious:: Lite + Teng + SNBinder + Xslate (+ SQLite / OnMemory) I created a CRUD application in http://htn.to/ANEiFU" (ja) --toritori0318 http://twitter.com/toritori0​318/status/69942128687587328
01:48 Curt_ left #mojo
01:49 perlrocks Twitter: "[Perl] / moe characters and what was the earth: Mojolicious:: Lite + Teng + SNBinder + Xslate (+ SQLite / OnMemory) I created a CRUD application in http://htn.to/K4VX7j" (ja) --hide_o_55 http://twitter.com/hide_o_5​5/status/69942530229284865
01:55 perlrocks Twitter: "[H] and moe characters is what I did: Mojolicious:: Lite + Teng + SNBinder + Xslate (+ SQLite / OnMemory) I created a CRUD application in http://bit.ly/jFeCsW" (ja) --bb_auto http://twitter.com/bb_auto​/status/69944021069471745
01:55 Alias left #mojo
01:57 perlrocks Twitter: "Was the character and what Moe: Mojolicious:: Lite + Teng + SNBinder + Xslate (+ SQLite / OnMemory) I created a CRUD application in http://dlvr.it/RqQ18" (ja) --hatebuit http://twitter.com/hatebui​t/status/69944476919013376
02:10 perlrocks Twitter: "Was the character and what Moe: Mojolicious:: Lite + Teng + SNBinder + Xslate (+ SQLite / OnMemory) I created a CRUD application in: Mojolicious ::... http://bit.ly/maSpXB" (ja) --feed4tnk http://twitter.com/feed4tn​k/status/69947698110935041
02:10 perlrocks Twitter: "Was the character and what Moe: Mojolicious:: Lite + Teng + SNBinder + Xslate (+ SQLite / OnMemory) I created a CRUD application in: Mojolicious ::... http://bit.ly/jFeCsW" (ja) --Hydie_Katori http://twitter.com/Hydie_Kat​ori/status/69947708663808001
02:10 perlrocks Twitter: "Was the character and what Moe: Mojolicious:: Lite + Teng + SNBinder + Xslate (+ SQLite / OnMemory) I created a CRUD application in: Mojolicious ::... http://bit.ly/jFeCsW" (ja) --mamasan84 http://twitter.com/mamasan8​4/status/69947710953881600
02:10 perlrocks Twitter: "Was the character and what Moe: Mojolicious:: Lite + Teng + SNBinder + Xslate (+ SQLite / OnMemory) I created a CRUD application in: Mojolicious ::... http://bit.ly/jFeCsW" (ja) --ksd6700kp http://twitter.com/ksd6700k​p/status/69947712052801536
02:10 perlrocks Twitter: "Was the character and what Moe: Mojolicious:: Lite + Teng + SNBinder + Xslate (+ SQLite / OnMemory) I created a CRUD application in http://bit.ly/jFeCsW" (ja) --windows14 http://twitter.com/windows1​4/status/69947708114354177
02:10 perlrocks Twitter: "Was the character and what Moe: Mojolicious:: Lite + Teng + SNBinder + Xslate (+ SQLite / OnMemory) I created a CRUD application in http://bit.ly/jFeCsW" (ja) --hisayadaikokudo http://twitter.com/hisayadaiko​kudo/status/69947711964708864
02:10 crab wtf?
02:13 perlrocks Twitter: "Was the character and what Moe: Mojolicious:: Lite + Teng + SNBinder + Xslate (+ SQLite / OnMemory) I created a CRUD application in: Mojolicious ::... http://bit.ly/k0TAzy" (ja) --qpackjp http://twitter.com/qpackjp​/status/69948458815062016
02:14 perlrocks Twitter: "Was the character and what Moe: Mojolicious:: Lite + Teng + SNBinder + Xslate (+ SQLite / OnMemory) I created a CRUD application in http://bit.ly/iYxbcz" (ja) --wPerlnews http://twitter.com/wPerlnew​s/status/69948697932333056
02:24 perlrocks Twitter: "Was the character and what Moe: Mojolicious:: Lite + Teng + SNBinder + Xslate (+ SQLite / OnMemory) I created a CRUD application in http://dlvr.it/RqWPb" (ja) --tkhk_ymd http://twitter.com/tkhk_ym​d/status/69951245749714944
02:28 perlrocks Twitter: "Was the character and what Moe: Mojolicious:: Lite + Teng + SNBinder + Xslate (+ SQLite / OnMemory) I created a CRUD application in http://bit.ly/m3rbYh" (ja) --hayarian http://twitter.com/hayaria​n/status/69952273043824640
02:30 perlrocks Twitter: "Was the character and what Moe: Mojolicious:: Lite + Teng + SNBinder + Xslate (+ SQLite / OnMemory) I created a CRUD app in Mojolicious:: Lite ... http://bit.ly/mg76aA" (ja) --webdesignStatio http://twitter.com/webdesignSt​atio/status/69952850746281984
02:31 miyagawa left #mojo
02:31 perlrocks Twitter: "Was the character and what Moe: Mojolicious:: Lite + Teng + SNBinder + Xslate (+ SQLite / OnMemory) I created a CRUD application in http://dlvr.it/RqXkV" (ja) --HiroshiNTCS http://twitter.com/HiroshiNT​CS/status/69953116975546368
02:35 perlrocks Twitter: "Was the character and what Moe: Mojolicious:: Lite + Teng + SNBinder + Xslate (+ SQLite / OnMemory) I created a CRUD application in http://dlvr.it/RqYkT" (ja) --yotasurf2 http://twitter.com/yotasurf​2/status/69954162351284225
02:53 garu goro fuji is famous in japan, lots of retweets oO
03:56 jpablobr left #mojo
04:26 j3nnn1_ left #mojo
04:58 kaare joined #mojo
05:49 edenc left #mojo
06:00 preflex left #mojo
06:02 preflex joined #mojo
06:13 koban` joined #mojo
06:20 Foxcool joined #mojo
06:29 cosmincx joined #mojo
06:34 d4rkie joined #mojo
06:52 perlrocks Twitter: "@kraih can you post any numbers/percents regarding memory and cpu usage, at least for #mojolicious?" --gracnar http://twitter.com/gracnar​/status/70018792134152192
06:58 crab "hi gracnar. mojolicious takes 3.4% of memory and 17% of cpu on tuesdays"
07:00 crab "also, here are some numbers: 272, 1873, 38748, 287392, and 9898472"
07:08 fhelmber_ joined #mojo
07:11 jwang joined #mojo
07:12 yko you provided wrong numbers!
07:12 yko 42 is right one
07:14 moritz "CPU and memory usage are primarily influenced by your application and database, the framework is irrelevant"
07:21 marcus "drink beer and fuck hoes"
07:25 ysyrota joined #mojo
07:34 arthas joined #mojo
07:46 crab moritz: how very official sounding :)
07:48 ysyrota left #mojo
07:59 ilyuhan joined #mojo
08:10 perlrocks Twitter: "Vuln: Mojolicious CVE-2010-4803 HMAC-MD5 Checksums Unspecified Vulnerability http://www.securityfocus.com/bid/47714" (es) --D3Seguridad http://twitter.com/D3Segurid​ad/status/70038312534028289
08:10 ajgb joined #mojo
08:19 AmeliePoulain joined #mojo
08:28 perlrocks Twitter: "Vuln: Mojolicious CVE-2010-4803 HMAC-MD5 Checksums Unspecified Vulnerability http://dlvr.it/Rrv4x" --pikipiki_net http://twitter.com/pikipiki_​net/status/70042900372799488
08:30 perlrocks Twitter: "#hacking #security Vuln: Mojolicious CVE-2010-4803 HMAC-MD5 Checksums Unspecified Vulnerability http://dlvr.it/Rrvv0 #slingnews" --secureslinger http://twitter.com/secureslin​ger/status/70043330435747840
08:51 perlrocks Twitter: "Vuln: Mojolicious CVE-2010-4803 HMAC-MD5 Checksums Unspecified Vulnerability: Mojolicious CVE-2010-4803 HMAC-MD5... http://bit.ly/kQ3g7N" --infotechmike http://twitter.com/infotechm​ike/status/70048743927455745
08:56 Foxcool left #mojo
09:01 ysyrota joined #mojo
09:08 perlrocks Twitter: "#hacking #virus Mojolicious CVE-2010-4803 HMAC-MD5 Checksums Unspecified Vulnerability http://goo.gl/fb/GrkP3" --secureslinger http://twitter.com/secureslin​ger/status/70053047753121792
09:15 Foxcool joined #mojo
09:20 perlrocks Twitter: "Advisories/Exploits: Vuln: Mojolicious CVE-2010-4803 HMAC-MD5 Checksums Unspecified Vulnerability: Mojolicious C... http://bit.ly/kQ3g7N" --itsecurityfeed http://twitter.com/itsecurity​feed/status/70055891512213504
09:20 perlrocks Twitter: "Advisories/Exploits: Vuln: Mojolicious 'link_to helper' HTML Injection Vulnerability: Mojolicious 'link_to helpe... http://bit.ly/mIk7OE" --itsecurityfeed http://twitter.com/itsecurity​feed/status/70055893638713345
09:21 memowe WTF!?
09:24 stephan48 werent these old?
09:34 spleenjack joined #mojo
09:43 sh4 joined #mojo
09:54 perlrocks Twitter: "Mojolicious CVE-2010-4803 HMAC-MD5 Checksums Unspecified Vulnerability http://bit.ly/ilmQN6" --Alltop_TM http://twitter.com/Alltop_T​M/status/70064465420357633
10:03 yko left #mojo
10:27 Curt__ left #mojo
10:28 Foxcool left #mojo
10:29 perlrocks Twitter: "Mojolicious CVE-2010-4803 HMAC-MD5 Checksums Unspecified Vulnerability http://t.co/PbNSdyP , reference GitHub - http://t.co/q4fZs3J" --unixfreaxjp http://twitter.com/unixfreax​jp/status/70073388177174528
10:33 yko joined #mojo
10:45 ilyuhan left #mojo
10:47 Foxcool joined #mojo
10:56 perlrocks Twitter: "When using a reverse proxy hostname and port number, which is recognized as a valid path / Mojolicious Tips - Getting Started with Perl code samples http://bit.ly/lH56n5" (ja) --wPerlnews http://twitter.com/wPerlnew​s/status/70080064305364992
10:56 perlrocks Twitter: "Using the layout of the template / Mojolicious Tips - Getting Started with Perl code samples http://bit.ly/lu439o" (ja) --wPerlnews http://twitter.com/wPerlnew​s/status/70080067518218240
11:00 perlrocks Twitter: "To include other templates / Mojolicious Tips - Getting Started with Perl code samples http://bit.ly/kjO6xE" (ja) --wPerlnews http://twitter.com/wPerlnew​s/status/70081115259543552
11:09 sri wtf?
11:12 sri those are spambots...
11:24 Curt joined #mojo
11:51 Curt left #mojo
11:53 sri it's annoying how those tweets always differ a little bit, don't see a way to filter them out :/
11:54 yko just ignore them untill thing go too bad
11:54 moritz .oO( hire mechanical turks to filter them out )
11:58 Foxcool left #mojo
12:05 edenc joined #mojo
12:17 Foxcool joined #mojo
12:35 Curt joined #mojo
12:35 perlrocks Twitter: "Deployment Templates / Mojolicious Tips: Mojolicious:: Lite if Mojolicious:: Lite if the world interest in the script, you can embed the template. Template Name ... http://bit.ly/lpBRmZ" (ja) --gadget7abot http://twitter.com/gadget7ab​ot/status/70105175330783232
12:39 sh4 left #mojo
12:46 Curt left #mojo
12:49 perlrocks Twitter: "Was the character and what Moe: Mojolicious:: Lite + Teng + SNBinder + Xslate (+ SQLite / OnMemory) I created a CRUD application in http://htn.to/89T6WP" (ja) --memememomo http://twitter.com/memememo​mo/status/70108555759464449
12:51 sri Oo
12:52 sri that's not a spam bot i guess
12:52 sri what's up with these japanese spammy retweets?
12:53 sri they all got a new shortened url
12:53 tabbi joined #mojo
12:53 sri prolly not the best solution, but i could block japanese tweets
12:54 Akron joined #mojo
12:58 yko hey dont do that! ill miss those tweets :)
13:13 jfuller Gentlemen, what is the best way to handle data passed as xml as opposed to body or query parameters?
13:13 moritz with Mojo::DOM
13:14 jfuller moritz: Oh, right. I guess what I meant to ask is how should would I know that is what the user is trying to do
13:15 moritz jfuller: that's a weird way to put it. Do you expect the user to send you arbitrary free-form requests, and you want to handle them?
13:16 moritz jfuller: usually you define a server-side API, and the user sticks to it. If not, he gets a 500 or 501
13:16 jfuller Well, in this particular application, the authentication request can come in as either body parameters, or xml
13:16 moritz check the content-type?
13:17 moritz or provide different URLs for different authentication methods
13:17 jfuller I actually do have different urls, but client only wants to use one
13:19 moritz so use a header to differentiate the content types
13:19 jfuller I'm drawing a blank trying to remember how to look at the content type of the request, could you point me towards the correct doc?
13:22 moritz $self->req->headers or so
13:22 GitHub73 joined #mojo
13:22 GitHub73 mojo: master Sebastian Riedel * 50b595b (3 files in 3 dirs): fixed small XML semantics bug in Mojo::DOM - http://bit.ly/kaWrj7
13:22 GitHub73 left #mojo
13:23 jfuller Sorry about the basic questions, I am revisiting a mojolicious project after working symfony for the last month so everything feels two inches to the left
13:32 metaperl left #mojo
13:32 sri maybe you should keep bookmarks at strategic points in the documentation
13:33 dekimsey joined #mojo
13:35 GitHub2 joined #mojo
13:35 GitHub2 mojo: master Akron * bfcb804 (1 files in 1 dirs): Fixing Typos
13:35 GitHub2 mojo: master Sebastian Riedel * 24b30f2 (1 files in 1 dirs): Merge pull request #144 from Akron/typos ...
13:35 GitHub2 mojo: master commits 50b595b...24b30f2 - http://bit.ly/lHcw8L
13:35 GitHub2 left #mojo
13:36 sri green-button++
13:37 Akron :)
14:09 metaperl joined #mojo
14:12 metaperl_ joined #mojo
14:13 sri interesting, Mojo::DOM got like 4 times faster since march
14:14 sri (using the boingboing frontpage as a benchmark)
14:15 metaperl left #mojo
14:16 sri 12 boingboing frontpages per second on my laptop seems quite respectable for a pure perl parser
14:16 sri HTML::TreeBuilder does 7 with HTML::Parser
14:16 stephan48 boingboing=
14:16 sri (which is xs)
14:17 sri guess atm there is only libxml that can beat both
14:18 sri and that just refused to compile here again... yay
14:22 sri http://boingboing.net # of course
14:23 sri they tend to have a lot of broken html while being read by gazillions of people
14:23 sri good test cases
14:23 stephan48 ah
14:24 stephan48 and it loads really slow
14:28 preflex left #mojo
14:31 sri https://github.com/kraih/mojo/​blob/master/t/mojo/dom.t#L1541 # one of the boingboing inspired html healing tests
14:32 preflex joined #mojo
14:34 stephan48 k
14:40 sri http://www.cpantesters.org/distro​/M/Mojolicious.html#Mojolicious-1.32 # and still supergreen with 120 reports
14:42 stephan48 mh... i should fail some reports!
14:42 stephan48 to much green!
14:43 * sri pushes stephan48 into the alligator pit and closes the trapdoor
14:43 stephan48 i thought i am already inside....
14:55 koban` left #mojo
14:58 AmeliePoulain I'm sending text data (cyrillic) to controller for inserting it to the database, but when I dumping it ($self->req->params->to_hash;), I've got \x{fffd} instead of cyrillic symbols
14:59 AmeliePoulain It's works good on the local computer but wrong on the server (same as my computer).
14:59 AmeliePoulain What is wrong?
14:59 purl but it feels so right
14:59 moritz AmeliePoulain: is it properly encoded to UTF-8 and then html-escaped?
15:00 moritz AmeliePoulain: and check the locales on both setups. I found that Perl with non-UTF-8 locales behaves weirdly, even though I think it should not
15:00 AmeliePoulain It sending via AJAX
15:00 AmeliePoulain Where I need to check locales?
15:01 moritz typle 'locale' in the shell
15:01 moritz *type
15:02 AmeliePoulain Hmm...en_US.UTF-8
15:02 moritz also on the server?
15:02 AmeliePoulain It's on the server. I have ru_RU.UTF-8 on the local computer
15:03 moritz so much for "same as" :-)
15:03 AmeliePoulain =) I'll try to fix it now
15:03 moritz it shouldn't matter much though
15:04 sh4 joined #mojo
15:04 moritz as long as both have UTF-8 as character encoding
15:04 moritz next step: use wireshark or so to check that server actually receives the same bytes as your local server
15:05 AmeliePoulain OK, I will try it tomorrow and ask here because it's time to go home :)
15:06 moritz have the appropriate amount of fun
15:08 amoore joined #mojo
15:11 AmeliePoulain left #mojo
15:19 yko left #mojo
15:29 d4rkie left #mojo
15:35 tabbi left #mojo
15:36 jfuller Is param('cb') relatively recently? It appears to be passing sub { 'DUMMY' }, and is conflicting with a user param
15:37 moritz sub { 'DUMMY' } is just Data::Dumper output for a subref if you haven't set the deserializaton option to 1
15:40 jfuller moritz: That makes sense
15:40 jfuller However, what exactly is this 'cb' param used for?
15:41 moritz see Mojolicious::Gudes::Routing
15:41 moritz $r->route('/bye')->to(cb => sub { ... })
15:42 sri http://mojolicio.us/perldoc?Mojolicious/​Guides/Cheatsheet#RESERVED_STASH_VALUES
15:43 * moritz finds it a bit sad that those pollute the global stash
15:43 sri find a better solution
15:43 jfuller Interesting... So how does it end up in Controller->param with query/body params?
15:44 sri see documentation
15:44 moritz jfuller: the params are mixed into the stash
15:45 jfuller moritz: So, all the reserved stash values could end up in params?
15:45 sri http://mojolicio.us/perldoc?​Mojolicious/Controller#param
15:45 moritz jfuller: correct
15:46 jfuller moritz: Ugh *headdesk*
15:46 sri i challenge both of you to find a better solution and implement it *cough*
15:47 jfuller I'll have to think on that one. In the mean time I suppose I can just manually parse the body parameters
15:47 moritz sri: is there a particular routing feature or so that depends on the mixing of params and callbacks?
15:47 sri manually parse, wtf?
15:48 sri did you actually read the documentation i linked to?
15:48 jfuller sri: I need to accept a param named "cb" from a user form post
15:48 sri so?
15:48 sri YOU CAN!
15:48 jfuller I must be missing something
15:49 jfuller AH
15:49 jfuller $c->req->param('foo');
15:49 jfuller I see what you're saying
15:49 sri moritz: tons
15:49 jfuller So, $c->req->param is only the request parameters, and $c->param is mojolicious soup
15:49 moritz sri: care to name one?
15:50 sri moritz: just look at the routing code
15:50 moritz aka "no" :-)
15:50 sri well, the simplest is obviously the one you mentioned above
15:51 sri ->to(cb => sub {...})
15:51 moritz I don't see how it depends on it. ->to could be looking in a different hash, as well as the code that actually calls stash('cb')
15:51 sri all of Mojolicious::Lite is built around that
15:52 sri i'm looking forward to your patch :D
15:52 sri i've spent a lot of time banging my head against the problem, would love to see someone else solve it
15:52 moritz sri: I've done virtually no looking into any internals, which is why I'm asking these questions (and which is why I'm unlikely to touch "deep" things soon)
15:53 moritz sri: that doesn't prevent me as a user to spot problems and point to them. If you say "I don't know how to fix them", that's fine by me too
15:53 moritz and I don't imply that I know how to fix it, but I can toss ideas around
15:53 ysyrota left #mojo
15:55 sri sure, knock yourself out :)
15:55 sri but don't expect too many answers, i would have to look through the code again too
15:56 moritz ok
15:56 sri there is a workaround though
15:56 sri we already have an autogenerated regex for reserved stash values
15:57 sri could use that in ->param() to skip checking the stash
15:57 sri or actually it's just a hash lookup these days
15:57 sri no real overhead
15:57 cosmincx left #mojo
16:02 sri yes, works flawless and is simple
16:08 Foxcool left #mojo
16:09 cosmincx joined #mojo
16:10 GitHub85 joined #mojo
16:10 GitHub85 mojo: master Sebastian Riedel * 82ae1bb (4 files in 3 dirs): fixed reserved GET/POST param handling in Mojolicious::Controller - http://bit.ly/ksuspj
16:10 GitHub85 left #mojo
16:11 sri not a proper solution, but should be good enough
16:11 * sri pokes moritz and jfuller
16:11 moritz nice cheat :-)
16:20 cosmincx left #mojo
16:22 d4rkie joined #mojo
16:26 Foxcool joined #mojo
16:27 ajgb left #mojo
16:37 Akron left #mojo
16:37 perlrocks Twitter: "Recommendation # corrected vulnerabilities package perl-Mojolicious http://dlvr.it/RvcPL # # security hrcert" (hr) --HRCERT http://twitter.com/HRCERT/status/70166023545954304
16:45 D4RK-PH0ENiX joined #mojo
16:47 d4rkie left #mojo
16:57 yko joined #mojo
17:02 snearch joined #mojo
17:24 metaperl_ is now known as metaperl
17:38 Foxcool left #mojo
17:55 Foxcool joined #mojo
17:57 * crab whistles happily
18:01 * sri starts whistling too
18:24 spleenjack left #mojo
18:36 sri https://github.com/kraih/mojo/issues/145 # another wishlist item
18:43 sh4 left #mojo
18:53 sri marcus: you also owe us a patch again
19:10 jfuller sri: What's the point of the any selector, just that it is more terse?
19:10 sri yes
19:11 jfuller sri: So are you looking for a low level way to implement that, or something that would expand any selectors into regular selectors?
19:12 sri don't know yet
19:12 sri wishlist issues are supposed to be discussed
19:13 sri so far it doesn't work out so good though
19:13 jfuller sri: That's why I'm discussing it ;-)
19:14 sri it's syntactic sugar, so the implementation should be clean and simple
19:14 sri if it complicates the code there would be no point
19:15 snearch left #mojo
19:15 jfuller sri: I think the most straight forward thing to do would be to just expand it, and pass that query to your normal selector. Otherwise, you'd have to change your selector logic
19:16 sri expand it how?
19:16 jfuller any(section, article, aside, nav) h1 -> section h1, article h1, aside h1, nav h1
19:17 sri currently we only use a tokenizer and interpret the tokens in the matching code, there is no step in between
19:19 jfuller Is the relevant code just in Mojo::DOM, or should I look at a different package?
19:19 sri it's all there
19:23 jfuller Hmm... well I see two ways to go in _parse_css
19:24 jfuller First, you could do a preprocessing before you loop on CSS_TOKEN_RE where you expand the any selectors
19:25 sri very ugly
19:25 jfuller Or, you factor out the internal token handler so that you could call it recursively and expand any selectors as you encounter them
19:26 sri i don't see how that could work
19:27 jfuller Actually, you could probably just call _parse_css recursively
19:28 sri :not() already does that
19:30 jfuller Yup, I just noticed that, you'd basically be looking at handling it in a similar fashion
19:31 jfuller So if you got this: any(section, article, aside, nav) h1
19:31 jfuller You'd call _parse_css on "section h1, article h1, aside h1, nav h1"
19:33 sri yes
19:33 sri and add a "any" token, which in a post-processing gets expanded into multiple selectors
19:33 sri *+step
19:34 sri i don't really like it :/
19:34 jfuller That's what I'm thinking
19:34 purl i guess thinking is see `made of meat`
19:34 jfuller lol
19:35 sri purl: made of meat?
19:35 purl hmmm... made of meat is http://www.terrybisson.com/page6/page6.html
19:37 stephen "Hi, meat, how's it going?" I love that story.
19:38 jfuller sri: So what would other options look like? You could probably unroll it into a bunch of or's when you check against it
19:41 sri something like that
19:41 sri really doesn't seem worth all the trouble
19:41 sri how often do we use that many selectors at once?
19:44 jfuller Its something that I can see being more useful in CSS than in Mojo::DOM. I usually only use that when I am looking for something in particular
19:44 crab jfuller: note that any(section,article,aside,nav) h1 isn't just "section h1, article h1, aside h1, nav h1"
19:44 crab it's also article section h1, section aside h1, article nav section h1, etc.
19:45 jfuller crab: Wouldn't that be :any(section,article,aside,nav) :any(section,article,aside,nav) h1?
19:45 jfuller crab: At least based on the mozilla implementation: https://developer.mozilla.org/en/CSS/%3A-moz-any
19:45 sri quite sure that's how it works
19:46 sri otherwise the first mozilla example wouldn't make much sense
19:46 crab yes. i suck.
19:46 crab i misread the examples.
19:46 * sri hands crab a cookie
19:50 jfuller sri: Would it make since to have a flag, something like "0 = most commonly used selectors, 1 = CSS 3 complient, 2 = CSS 3 + experiemental" so that you can support the spec, but not hinder performance for typical use?
19:51 sri don't think so
19:51 sri i've closed the issue now btw.
19:51 jfuller Actually, better yet, is there a hook that someone could use to add the functionality if the actually needed it?
19:52 sri starting with experimental selectors is another can of worms... they can always change (and most of the time do)
19:52 sri well, you can always access the tree... ;p
19:53 jfuller good enough for me
19:53 sri and it's not like any() gives you any new superpowers
19:54 jfuller I think that the functionality of :any is simple enough that people could just script the generation of their selectors rather than using it
19:54 jfuller Exactly
19:54 sri if there are new css3 selectors that give us more power we will surely add them
19:55 jfuller Would you like me to talk you out of any of your other wishlist items ;-)
19:56 sri in fact i would :D
19:56 sri i've closed another one already though
19:57 sri csrf was open for discussion 3 months now, don't think there would happen much even if we gave it more time
19:58 jfuller CSRF is one of those things that everyone should be doing but no one is interested it
20:00 jfuller And, the Mojolicious-Plugin-CSRFDefender already covers the functionality, is only in a suboptimal way
20:01 sri yea, i expect the topic to come up again once we reach a higher level of abstraction
20:03 jfuller What do you mean by higher level of abstraction?
20:04 sri going full stack with optional model layer
20:05 sri that always leads to crud frameworks
20:06 sri (not a bad thing)
20:08 bosphorus joined #mojo
20:08 bosphorus left #mojo
20:15 dekimsey left #mojo
20:19 kaare left #mojo
20:24 sugar joined #mojo
20:24 bosphorus joined #mojo
20:24 bosphorus left #mojo
20:28 jfuller sri: Cool
20:30 marty full stack?  sri++
20:30 marty I'm assuming you are reffereing to your mongo project
20:30 * sri nods
20:31 marty \o/
20:33 marty I'm really looking forward to playing with that.  The more I get my head around mongo, the more I like it.  It's just so hard to get rid of years of RDBMS think and start thinking schemaless.
20:38 metaperl left #mojo
20:39 Curt joined #mojo
20:58 baton8 left #mojo
20:58 baton8 joined #mojo
21:05 mattp joined #mojo
21:10 sugar left #mojo
21:12 metaperl joined #mojo
21:17 Akron joined #mojo
21:20 Foxcool left #mojo
21:25 Akron left #mojo
21:31 sri damn, game of thrones keeps getting better and better
21:36 sri can't believe they canceled stargate universe... now that it finally got good...
21:43 Curt left #mojo
21:46 miyagawa joined #mojo
21:53 amoore left #mojo
22:12 tty234 joined #mojo
22:13 arthas left #mojo
22:16 s0va left #mojo
22:27 s0va joined #mojo
22:36 trone left #mojo
22:48 trone joined #mojo
23:13 Alias joined #mojo
23:13 perlrocks Twitter: "Just discovered #mojolicious by @kraih Looks promising!" --robertfriberg http://twitter.com/robertfrib​erg/status/70265677646270464

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