[dev-servo] HTML parsing alternatives

2014-03-05 Thread Keegan McAllister
Gecko's HTML5 parser is based on machine-translating the validator.nu parser from Java into C++. We are developing [1] a Rust translation for use in Servo. I've been working on that recently and I have some doubts about this approach. Java and C++ share some features that Rust does not have.

Re: [dev-servo] JS guide

2014-03-05 Thread Simon Sapin
On 04/03/2014 22:33, Josh Matthews wrote: I've started a guide to try and clear up how to use them; please feel free to suggest further topics or make edits yourself:https://github.com/mozilla/servo/wiki/JS-smart-pointers The guide says: Downcasting is an unsafe operation, so you must be conf

Re: [dev-servo] JS guide

2014-03-05 Thread Niko Matsakis
Note: the first PR related to overloadable deref has landed. This means that the `get()` and `get_mut()` methods can go away and be replaced with an overloaded `*` operator. For now, the derefs must be explicit. I'm still reviewing the second part of this work, which integrates with auto-deref. B