Earlier quoted context omitted.
I'm not personally a rust zealot, but I know that rust builds on LLVM and therefore benefits from some of that very same engineering effort that was built to optimize C and C++.
Clang usually has worse performance than GCC.
Servo’s new home
271–280 of 326 posts
Re: Servo’s new home
#272Earlier quoted context omitted.
Servo last time I checked used the same if not more memory (100MB) for basic pages. There doesn't appear to be major differences for that application yet.
Why should there be any great difference? Firefox is already written in a language where compilers have been optimized since decades. Rust will not bring that magic.
It’s not an automatic magic bullet, but in a world where humans are still writing the code, Rust’s feature set makes many performance optimizations much more practical.
Re: Servo’s new home
#273Wow, this is awesome. - Mozilla engineering finally gets the green light to beat Chrome through a from-scratch rendering stack - This skunkworks initative popularizes the world's first viable C++ contender and interesting "mainstreamable" programming language - Manglement suddenly lays off the teams responsible for both projects (Rust and Servo) - Some awesome person from the trenches convinces said manglement to rel…
Why is Mozilla not betting on Rust anymore?
Re: Servo’s new home
#274Earlier quoted context omitted.
What's the plan exactly? Will there be a Servo browser that integrates the servo rendering engine with some open source components (for instance from Firefox, WebKit or Chromium) that will let us use the engine stand-alone, or is it "just" going to be an engine for embedding in third-party programs? The former seems like it would be a huge amount of work, but if it's the latter I fear for the long term survival of th…
A third-option that I would like to see is extending the latter to an Electron alternative (aka using Servo as a cross-platform GUI). There's definitely positives to Electron, but it would be nice to see a more performant, less memory hungry, and more battery friendly alternative.
Re: Servo’s new home
#275Earlier quoted context omitted.
Clang usually has worse performance than GCC.
Is there anything specific GCC does for performance that Clang/LLVM could adopt? How is this race expected to evolve over time?
Re: Servo’s new home
#276I am confused. I thought it is the raison d'être of Mozilla to develop a browser. So how does it come that the brand new browser engine they developed is being given away? I mean, even if they need to cut costs, isn't Servo part of the team they should keep until the end?
>I am confused. I thought it is the raison d'être of Mozilla to develop a browser. To put it bluntly: Mozilla is no longer a browser company. It is a patsy for google to point to and say "See we're not a monopoly.". Secondary goals are increasing the supply of devs for big tech and lowering wages.
Re: Servo’s new home
#277I am confused. I thought it is the raison d'être of Mozilla to develop a browser. So how does it come that the brand new browser engine they developed is being given away? I mean, even if they need to cut costs, isn't Servo part of the team they should keep until the end?
A lot of people misunderstand what Servo was. It was for developing components that could be integrated into a browser. Firefox integrated most of those and continues to develop more code in Rust. Servo lost it's use.
Re: Servo’s new home
#278Earlier quoted context omitted.
Is there anything specific GCC does for performance that Clang/LLVM could adopt? How is this race expected to evolve over time?
Not answering your question but in my experience reading assembly output of the two compilers the unoptimized output of Clang is atrocious while GCC is closer of what a human could have wrote. Clang seems to have to do better in optimization passes to archive similar results. Usually Clang was a faster compiler in O1 but I don’t think it’s true anymore.
(that said gcc -O0 is still absolutely nothing like what a human would write)
Re: Servo’s new home
#279Earlier quoted context omitted.
Clang usually has worse performance than GCC.
Is there anything specific GCC does for performance that Clang/LLVM could adopt? How is this race expected to evolve over time?
that said this makes it an excellent testbed but compilation time will keep getting slower every release until they start caring about it
Re: Servo’s new home
#280Earlier quoted context omitted.
What's the plan exactly? Will there be a Servo browser that integrates the servo rendering engine with some open source components (for instance from Firefox, WebKit or Chromium) that will let us use the engine stand-alone, or is it "just" going to be an engine for embedding in third-party programs? The former seems like it would be a huge amount of work, but if it's the latter I fear for the long term survival of th…
The latter would be better, imo. Chromium won because it introduced a sane API before Mozilla's Gecko. That's why you see so many Electron apps. Seriously, we don't need to wrap a whole browser. Just the engine and a debugger would've been fine. The engine could be distributed as a lib and other frameworks could just bind it. Apps could be distributed without an 150MB behemoth just to have a chat client. Making the e…
Also, 150MB is not really that scary of a size in today's world. Also, a huge part of it is simply because of static linking - if they split it into dynamic libraries, the actual content of any individual Electron-based app would be reduced significantly. But people are mostly allergic to dynamic libraries, so we pay the cost in larger binaries. Also note that vim with all its dependencies is ~40 MB, without a GUI.