Live data from Hacker News

How Stylo Brought Rust and Servo to Firefox

bholley.net

121–130 of 199 posts

Re: How Stylo Brought Rust and Servo to Firefox

#121
post #66

Earlier quoted context omitted.

Stylo is now enabled in Firefox for Android's Nightly builds. You can install Nightly from the Google Play Store to see if Stylo makes a difference for the animation problems. https://play.google.com/store/apps/details?id=org.mozilla.fe...

since when? I've been running Nightly for months.

According to this tweet, four hours ago: https://twitter.com/cpeterso/status/935594491339161600

Re: How Stylo Brought Rust and Servo to Firefox

#122

Earlier quoted context omitted.

> most benchmarks Which benchmarks are you talking about? It depends on what those benchmarks measure. For example, a lot of the Quantum work was in user-percieved UI latency; unless the benchmark is measuring that, and I imagine that's a hard thing to measure, it's not going to show up. > Does Rust have a runtime penalty as Golang does? Rust has the same amount of runtime as C does: very very little. https://github.…

Not sure if this is normal, but I have very noticeable lag in the search/address bar autocomplete which does make the whole browser feel a bit slow (MacOS Sierra, using Developer Edition). And since we are here, the prompt/dialog windows in FF are still not native looking too. These are my two major complaints :)

I've noticed this on Windows. The new Firefox seems to be a bit more chatty to the disk. If some other process is hammering the disk then autocomplete gets really laggy. I suspect it is optimized for SSDs.

On the other hand, if the disk is idle it is blazing fast.

Re: How Stylo Brought Rust and Servo to Firefox

#123

I'm a huge, huge fan of Rust, Stylo, Servo, WebRender, etc. Hats off to everyone involved.

Yeah - it's really inspiring to see the grit and determination poured in over many years starting to pay off. Truly great software engineering happening over at Mozilla!

Re: How Stylo Brought Rust and Servo to Firefox

#125
post #120
post #42

It's gratifying to see how successfully the same organization has learned from the debacle that was the rewrite from Netscape 4 to Mozilla in the first place. That time, they didn't release for years, losing market share and ceding the web to Internet Explorer for the next decade. Joel Spolsky wrote multiple articles[1][2] pointing out their folly. This time, their "multiple-moonshot effort" is paying off big-time be…

Wasn't the original Mozilla leading into Firefox wildly successful, though? It certainly put a dent in IE's market share. The opposite has been true for Chrome so it seems their recent history is not one of successful adaptation.

The first thing to consider is that MS let IE stagnate, and had large deviations from W3C standards. Mozilla rode in on the cry for standard adherence.

Chrome on the other hand is not stagnant, far from it. And Google is not letting Chrome stagnate.

Never mind that Google is using their marketing muscle to push Chrome every chance they get.

Just try downloading some shareware on Windows, and you are bound to get Chrome along for the ride. Hell, even Adobe offers Chrome as a Flash bundle even though Google is using Chrome to effectively kill Flash...

Re: How Stylo Brought Rust and Servo to Firefox

#126
post #12

Congratulations, it's really an unparalleled performance of parallel performance.

Speaking of which: does anyone know if some new optimization land in the beta versions a couple of days ago? Or if some bug that caused delays on Linux got fixed? I updated my developer version yesterday and it was as if Firefox - already ludicrously fast compared to before - turned on the turbo booster. Obviously, I'm not complaining ;)

OMTP maybe? It has already been on for windows for several beta releases, but I'm not sure about linux. You can check under about:support

Of course it could be any incremental improvement instead of some big named feature.

Re: How Stylo Brought Rust and Servo to Firefox

#127
post #45

> For example, register allocation is a tedious process that bedeviled assembly programmers, whereas higher-level languages like C++ handle it automatically and get it right every single time. Ideal register allocation is NP-complete, so a compiler can't get it right every single time. I'm not sure how good in practice modern compilers are at this, but would be curious to know if there's some asm writers who can actu…

I found this example interesting. I found myself comparing it to how Rust does memory management, which is certainly not "automatic" as that would describe a garbage collected language.

Re: How Stylo Brought Rust and Servo to Firefox

#128
post #59

Earlier quoted context omitted.

> I find it hard to justify developing Rust just for a web browser "just for", our browsers are already very complex. The browser is responsible for sandboxing and in effect taming the wild web.. and the web is not looking to become less wild :) in the future browsers will have to prioritize CPU time between tabs seeking to mine bitcoin, crazy ad schemes, and battery power. In terms of security, browser bugs scares m…

effectively, browsers are growing up to gain most of the same functionality as modern operating systems, with all the complexity that brings.

We keep stacking those turtles, don't we.

Re: How Stylo Brought Rust and Servo to Firefox

#129

> Stylo was the culmination of a near-decade of R&D, a multiple-moonshot effort to build a better browser by building a better language. This is the most impressive, and useful aspect of all the recent work in Firefox. Rust is an amazing language. It really brings something new to the table with its borrow checker. The fact that rust was created as part of a greater effort to work on a web browser is amazing.

What I wonder, and I do not mean this in negative way, is whether this would have happened in a more commercially oriented organisation. Mozilla remains a foundation, and I consider Rust a fruit of their labour in itself. To put it another way, I find it hard to justify developing Rust just for a web browser. But if you consider it from the perspective of a foundation developing tools for the developer community as a…

Imagine if some company were to make a completely new language just for an IDE.

Re: How Stylo Brought Rust and Servo to Firefox

#130

Earlier quoted context omitted.

Not sure if this is normal, but I have very noticeable lag in the search/address bar autocomplete which does make the whole browser feel a bit slow (MacOS Sierra, using Developer Edition). And since we are here, the prompt/dialog windows in FF are still not native looking too. These are my two major complaints :)

I've noticed this on Windows. The new Firefox seems to be a bit more chatty to the disk. If some other process is hammering the disk then autocomplete gets really laggy. I suspect it is optimized for SSDs. On the other hand, if the disk is idle it is blazing fast.

Reminds me of behaviors i have seen on Android for the longest time (to the point that i have effectively given up on using Firefox on Android because it slows down so easily there).
Post reply on HN