News for hackers. Stuff that matters.
Re:Mozilla's Servo Engine Now Capable of Rendering GitHub by steveklabnik on Wednesday August 19, 2015 @12:55PM (#10086810)
Abandoning ~90k LOC certainly seems like a bad idea, but since Rust can basically pretend to be C, you could just peel off a certain part of your app, and have a hybrid codebase. Your C++ would just link to the Rust like any other C library. This is the approach Firefox is taking.
Re:Mozilla's Servo Engine Now Capable of Rendering GitHub by k__ on Wednesday August 19, 2015 @12:59PM (#10086842)
Firefox' C parts are getting incrementally rewritten in Rust?
Re:Mozilla's Servo Engine Now Capable of Rendering GitHub by steveklabnik on Wednesday August 19, 2015 @01:01PM (#10086851)
Slowly. There's two patches right now: using Rust for URL parsing, and an MP4 parser. They're not being built by default, but you can set an option at compile time to use them. There's some more work to be done before they'll start appearing in regular builds.

See here for more:

  * https://developer.mozilla.org/en-US/Firefox/Building_Firefox_with_Rust_code
  * https://bugzilla.mozilla.org/show_bug.cgi?id=1175322
  * https://bugzilla.mozilla.org/show_bug.cgi?id=1151899
(and Firefox is mostly C++, not C)
Re:Mozilla's Servo Engine Now Capable of Rendering GitHub by Manishearth on Wednesday August 19, 2015 @01:02PM (#10086859)
Addendum: The URL parser is a replacement (it's the same parser we use in Servo), but the MP4 thingy adds new functionality.
Re:Mozilla's Servo Engine Now Capable of Rendering GitHub by vvanders on Wednesday August 19, 2015 @01:04PM (#10086876)
Yeah, this is very appealing, ideally migrating new features/submodules rather than rewrite.