Re: [dev-servo] Crazy idea: CSS selector JITting at parse time

2014-03-30 Thread Patrick Walton
On 3/29/14 7:22 PM, Patrick Walton wrote: On a related note, I have been tossing around ideas today for using SIMD to match multiple selectors that have the same "shape" in parallel. For example, if we have ".foo #a" and ".bar #a" it may be possible to use the packed comparison instructions in SS

Re: [dev-servo] character encoding in the HTML parser

2014-03-30 Thread Simon Sapin
On 29/03/2014 22:56, Simon Sapin wrote: On 10/03/2014 23:54, Keegan McAllister wrote: Speaking of which, [5] Any character that is a not a Unicode character, i.e. any isolated surrogate, is a parse error. (These can only find their way into the input stream via script APIs such as document.wri

Re: [dev-servo] character encoding in the HTML parser

2014-03-30 Thread Simon Sapin
On 29/03/2014 23:15, Boris Zbarsky wrote: On 3/29/14 6:56 PM, Simon Sapin wrote: Or I guess we could use what I’ll call "evil UTF-8", which is UTF-8 without the artificial restriction of not encoding surrogates. http://en.wikipedia.org/wiki/CESU-8 CESU-8 is evil too, but it’s not what I had i