Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I'm also a little surprised there hasn't been an attempt to launch a completely new Firefox from the ground up.

Check out Servo: https://servo.org/



As a fully rewritten browser engine, how will they handle malformed HTML? Will it, like other browsers, try to 'understand' and fix some errors or will it stick to the specification?


The HTML5 specification now fully specifies what to do in the face of malformed input. That's one of the biggest differences between HTML5 and previous specifications.


Servo is "just" a new rendering engine, though, not a whole browser.


Well, it is for now. This isn't yet a concrete plan that Mozilla has, but from what I've read, the Servo developers would definitely also like to write a JavaScript-engine in Rust, simply because of the gain in security.

Also, browser.html already exists in an early form (and is bundled with Servo). It provides a new UI written in HTML, CSS and JavaScript, so it can be rendered by Servo as well.

https://github.com/browserhtml/browserhtml


> Servo developers would definitely also like to write a JavaScript-engine in Rust, simply because of the gain in security.

(Servo developer here)

This isn't really the case. There is interest in doing this, but it's not something we definitely want to do. The problem with writing a new JS engine is that you need to duplicate years of performance tuning so while it might be safe, it would take immense amounts of work to make it efficient. Rust's safety benefits get reduced when you have JITs and all involved, too.

It would be nice to have, sure, but the amount of work in making a usable one is huge.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: