News for hackers. Stuff that matters.
Re:Chrome Won by lewisl9029 on Thursday May 25, 2017 @08:45PM (#14421288)
Agreed that Mozilla's original mission has been accomplished in spades, but I wouldn't count Mozilla out of the browser race just yet.

Servo and Webrender[0] will completely shake up the browser landscape, and will allow web apps to match (maybe even surpass?) native mobile apps in terms of rendering performance. Unless Chrome, IE, and Safari can develop an answer to Servo and Webrender by the time those technologies are ready for prime time, I wouldn't be surprised to see "Best viewed in Firefox" badges start popping up everywhere.

[0]

https://github.com/servo/webrender/wiki

https://air.mozilla.org/bay-area-rust-meetup-february-2016/

Re:Chrome Won by gkoberger on Thursday May 25, 2017 @09:03PM (#14421381)
Mozilla has had "we'll be #1 again once X is launched!" things since I was there 5 years ago (and servo was one of those things back then). It won't happen.

Mozilla won the browser war. Firefox lost the browser fight. But there's many wars left to fight, and I hope Mozilla dives into a new one.

Re:Chrome Won by larsberg on Friday May 26, 2017 @10:03AM (#14424093)
I'm not quite ready to throw in the towel yet, though that's certainly a sentiment I hear a lot of around town :-)

As technology shifts to a world where most people do not have a monitor on their home computer or a screen on their phone, what it means to be a browser will dramatically change. Certainly, we could post-it the current user experience into whatever we will have tomorrow, but if VR, AR, Speech, and AI and ample cheap private computing power don't excite people for the future of browsers and user agency, I don't know what will.

I know we've been working on tech such as Servo for a long time, but sometimes even just being "better" isn't enough, especially when there's a large legacy gap to close. You also need to get lucky with a point where consumers are making massive changes and open to new things.

I think that time is much sooner than the "always 5--10 years quoted", and you're going to see mind-blowing things on the web in general and supported by the browser and related services specifically. And I'm betting (at least with my current career) that Mozilla will lead the charge.

Re:Chrome Won by andreasgal on Thursday May 25, 2017 @11:36PM (#14421823)
"Mozilla won the browser war. Firefox lost the browser fight. But there's many wars left to fight, and I hope Mozilla dives into a new one." Very poetic way of putting it. Couldn't agree more!
Re:Chrome Won by diminish on Friday May 26, 2017 @02:19AM (#14422303)
Mozilla lost the mobile OS war unfortunately if that what's inspiring you.

What's next isn't clear to me

Re:Chrome Won by Joeri on Friday May 26, 2017 @03:19AM (#14422483)
Everybody lost the mobile OS war.

Apple lost it by getting boxed into a market share corner by android. Google lost it by losing control over android. Android OEM's lost it by getting stuck in a cutthroat competition. Microsoft lost it by being microsoft. Users lost it by having no good choices left (either go with the golden cage iphone, or go with the privacy and security mess android).

Re:Chrome Won by eloisant on Friday May 26, 2017 @08:18AM (#14423513)
Google regained control of Android many years ago by progressively moving every bit that matters from AOSP to Google Apps and Google Play Services.

Now OEM have to obey to Google because losing the Google apps and services licence (thus losing the Play store and the whole ecosystem) basically means they're dead as an Android manufacturer.

Re:Chrome Won by hooluupog on Friday May 26, 2017 @08:29AM (#14423557)
Except china.
Re:Chrome Won by scholia on Friday May 26, 2017 @02:08PM (#14426026)
And except Amazon ;-)
Re:Chrome Won by willhslade on Friday May 26, 2017 @01:37PM (#14425813)
Can you elaborate for people not in the loop as much?
Re:Chrome Won by scholia on Monday May 29, 2017 @10:32AM (#14439259)
Android is pretend-open. Technically, you have to use Google Play to use the Android name. If you use AOSP then you lose the store and Google's proprietary apps, so you have to build an alternative store and plead for third-arty app support.

That works in China because Google is relatively weak there. It also works for Amazon, which has its own store for Fire products.

Re:Chrome Won by toyg on Friday May 26, 2017 @06:01AM (#14422990)
> Apple lost it by getting boxed into a market share corner by android.

Apple was never likely to license iOS to other manufacturers, nor were they likely to have enough capacity to satisfy the whole market. I reckon they are where they always wanted to be: owning a very profitable and locked-in niche.

Re:Chrome Won by mamon on Friday May 26, 2017 @07:42AM (#14423348)
>> Apple lost it by getting boxed into a market share corner

You mean the corner where they are the premium smartphone vendor, taking 90% share of global profits? That's a great corner to be boxed into :)

Re:Chrome Won by ysavir on Friday May 26, 2017 @08:57AM (#14423671)
Profits and usage are different categories. Apple might be taking more money home, but that's not what is being discussed. The points being made were about having control and influence over the ecosystem.
Re:Chrome Won by kbutler on Friday May 26, 2017 @10:47AM (#14424414)
Do web developers feel like their applications must support iOS? Why?

Because iOS users are a significant source of potential profit.

Apple doesn't need to maximize usage in order to control the ecosystem - they just need to maximize profit potential.

Re:Chrome Won by cptskippy on Friday May 26, 2017 @01:26PM (#14425744)
Our team has become more and more focused on supporting two platforms with our App Development effort, Apple and Samsung. 75% of our users have an iPhone 5S or newer. The remaining 25% is a mix of Android, other iOS devices and older iPhones. Of the Android users, 80% are using some Samsung device.
Re:Chrome Won by qznc on Friday May 26, 2017 @03:12AM (#14422464)
The Mobile OS war can still be continued. Mozilla should join forces with Lineage OS instead of wasting time with their own. Do the embrace, extend, extinguish strategy with Android.

Secure messaging is also still a hot topic. Join forces with Signal or Wire or Matrix or XMPP. For example, Wire intends to open source their server code and enable federation [0].

Voice control requires some weight for an Open Source solution. Specifically, we could use something which does not rely on the internet. PocketSphinx is an ok foundation, but needs more work.

[0] https://medium.com/@wireapp/open-sourcing-wire-server-code-e...

Re:Chrome Won by rabimba on Friday May 26, 2017 @07:22PM (#14427917)
You should definitely have a look at Mozilla's DeepSpeach https://github.com/mozilla/DeepSpeech/blob/master/README.md
Re:Chrome Won by pjmlp on Friday May 26, 2017 @03:45AM (#14422558)
I don't know a single Android user that even knows what Lineage OS is all about.
Re:Chrome Won by kogepathic on Friday May 26, 2017 @04:36AM (#14422738)
A vast majority of Android users know nothing about custom ROMs.

However I would say that among those who do know, Lineage OS has a fairly good reputation for quality. You wouldn't be targeting mass adoption with this, you'd be targeting the influencers.

Re:Chrome Won by vanderZwan on Friday May 26, 2017 @09:47AM (#14423965)
I never heard of it before, and this about page isn't exactly helping:

https://lineageos.org/about/

Re:Chrome Won by asfdsfggtfd on Friday May 26, 2017 @09:30AM (#14423847)
I bet all the OEM manufactures do. Its not that they care at all about users installing custom ROMs. They will be looking for options to not be tied to Google forever (assuming they have looked at the history of IBM and Microsoft). The problem is they never have to actually release a Lineage OS/Tizen/${insert other phone OS here} they just need a viable option for what they would use instead when they talk to Google about licensing (E.g. Samsung and Tizen).
Re:Chrome Won by LamaOfRuin on Friday May 26, 2017 @09:11AM (#14423744)
Fork/Successor to Cyanogen would probably net slightly more recognition.
Re:Chrome Won by pcwalton on Thursday May 25, 2017 @09:35PM (#14421511)
Servo barely existed 5 years ago.
Re:Chrome Won by gkoberger on Thursday May 25, 2017 @09:42PM (#14421523)
But it did exist, no?
Re:Chrome Won by kibwen on Thursday May 25, 2017 @10:02PM (#14421576)
Yes, but even five years ago people acknowledged that it was going to take more than five years to write a browser engine from scratch. I'm on the record as stating in ~2012 not to expect a usable Servo any sooner than 2017 at the earliest (basing my estimation on the time it took to write V8 from scratch). And that was indeed optimistic, but we are seeing bits of Servo (most importantly WebRender and Stylo) being integrated into Firefox this year.
Re:Chrome Won by lelandbatey on Thursday May 25, 2017 @10:53PM (#14421714)
Hey, you weren't totally wrong. If you want to use a simple and fast web-browser on the bleeding edge of development, you can use Servo today. On all the computers I've tried it on it's been really fast, though with plenty of rendering issues.
Re:Chrome Won by pcwalton on Thursday May 25, 2017 @10:07PM (#14421595)
It started in 2012. It was a total toy for most of that year, though. I would barely consider it a real engineering project in that state--heck, for quite a while it was a readme and nothing else :)
Re:Chrome Won by arontopp on Monday May 29, 2017 @03:20AM (#14437858)
https://vivaldi.com

The Vivaldi browser has copied the original Firefox user interface and stole the best ideas from the Firefox extension makers so if you want the Chromium web rendering engine with the original Firefox user interface you are served by the Vivaldi browser. Hopefully they will become profitable and release their modification under a free software license.

Re:Chrome Won by mozillatw on Sunday May 28, 2017 @06:39AM (#14433836)
Mozilla also lost its proud feature - freedom of internet. There is no going back ever.
Re:Chrome Won by cbryan on Thursday May 25, 2017 @10:01PM (#14421574)
The problem with your point is that it assumes users' are using Chrome because of its rendering speed. I don't think that's the case.
Re:Chrome Won by lewisl9029 on Thursday May 25, 2017 @10:12PM (#14421610)
No, I'm not actually assuming that, because I realize there is only negligible difference between major browsers today in terms of rendering performance, and none can approach the rendering performance of native UI frameworks on mobile.

But I am assuming that a browser offering a gigantic leap in UX through native-like rendering performance will entice web app developers to recommend that browser over others, because it's nigh impossible to build a consistently 60fps non trivial app with native-like interactions and transitions on the web today, while Servo and Webrender aim to make 60fps on the web the norm rather than the exception.

Re:Chrome Won by ajdlinux on Friday May 26, 2017 @12:42AM (#14422038)
I think it's different now, but when I first switched to Chrome it was absolutely because of performance.
Re:Chrome Won by rspeer on Thursday May 25, 2017 @11:18PM (#14421775)
I occasionally run Firefox (out of nostalgia, idealism, or the need to test a site), and the fact that it is so slow is absolutely what stops me from switching back to it.
Re:Chrome Won by wolco on Thursday May 25, 2017 @11:45PM (#14421853)
If you ran it again it would be fast. Chances are you are going through an update/check process
Re:Chrome Won by rspeer on Friday May 26, 2017 @06:27AM (#14423065)
Nah. One piece of rendering I particularly care about is interactive SVG performance, and -- while, as another thread says, we can't expect smooth 60 FPS experiences from current desktop browsers -- the difference between Chrome and Firefox is the difference between 15 FPS and 1 FPS.
Re:Chrome Won by johnp_ on Sunday May 28, 2017 @01:05PM (#14435196)
Recently all toolbar icons in Firefox have been converted to SVGs [1] and in the process several performance problems were found and fixed or are in the process of being fixed [2]. You may want to try out a recent Nightly build.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1347543 [2] https://bugzilla.mozilla.org/show_bug.cgi?id=1054016

Re:Chrome Won by Joeri on Friday May 26, 2017 @03:23AM (#14422493)
I adopted chrome because of the speed, but I keep using it because I'm used to it and it works fine. I know my way in and out of chrome's dev tools. On firefox it would be a struggle to figure out a web development routine.
Re:Chrome Won by Mathnerd314 on Thursday May 25, 2017 @09:18PM (#14421446)
Firefox already wins the "Best viewed in Firefox" badge for native MathML. See e.g. http://caniuse.com/mathml

Not that anyone cares, because MathJax...

Re:Chrome Won by na85 on Thursday May 25, 2017 @11:21PM (#14421785)
I care, because I browse with JavaScript disabled.

The web is better without JavaScript.

Re:Chrome Won by coldtea on Friday May 26, 2017 @03:08AM (#14422450)
>Servo and Webrender[0] will completely shake up the browser landscape, and will allow web apps to match (maybe even surpass?) native mobile apps in terms of rendering performance.

Unless Firefox (and Servo) gets it GUI to not feel alien and clunky, it wont matter if it has a faster rendering engine. Rendering engines are plenty fast as it is anyway, it's CPU use and battery impact that matters to users. And when performance does matter, it's mostly Javascript performance, which Servo doesn't address.

It also wont matter for mobile, since Android will still keep Chrome browser, and iOS will still keep Mobile Safari -- they're both made by the platform's creators.

Re:Chrome Won by Klathmon on Friday May 26, 2017 @07:23AM (#14423284)
Actually JS performance isn't the bottleneck in the vast majority of cases now. JS is more than fast enough, it's the DOM that's slow. And that is what Servo is going to help with.

And as for Firefox on Android, I have plenty of hope for it. I'm seeing more and more people switch to alternative browsers for speed (the most common one is samsung's "browser" which everyone says is "super fast" but really only is a weird hack to make scrolling smooth which breaks a few standards).

Ios is another story, but at least on android if they make a damn good product, people will use it.

Re:Chrome Won by pcwalton on Friday May 26, 2017 @10:35AM (#14424320)
> Rendering engines are plenty fast as it is anyway, it's CPU use and battery impact that matters to users.

That's at odds with almost every single sentiment I've seen regarding native vs. Web apps. Take one look at any HN thread about the two.

> And when performance does matter, it's mostly Javascript performance, which Servo doesn't address.

If that were true, then there wouldn't be a performance differential between native and Web, since Objective-C and Dalvik are slower than modern JS engines. (Look at how method call dispatch works in Objective-C!)

Besides, a lot of what shows up as "JS performance" in a profiler is actually blocking on DOM operations. With off-main-thread layout, these operations can be done in the background, resulting in improved DOM performance.

Re:Chrome Won by coldtea on Friday May 26, 2017 @11:35AM (#14424777)
>That's at odds with almost every single sentiment I've seen regarding native vs. Web apps. Take one look at any HN thread about the two.

If we're talking about e.g. Electron apps, the problem I see mentioned (and felt myself) is almost always the memory hogging, the GC-pauses, the battery impact and such -- not the rendering speed. Although, there is talk of getting to 60fps web apps etc.

For something like Atom, is the slow redrawing because "DOM is slow" or because "doing the calculations needed for a sizable file, with syntax highlighting regexes, compiler checks, freeing memory, etc takes lots of processing time"?

>If that were true, then there wouldn't be a performance differential between native and Web, since Objective-C and Dalvik are slower than modern JS engines. (Look at how method call dispatch works in Objective-C!)

That's not entirely true, as Objective-C dispatch was thoroughly optimized [1]. Besides, the performance differential is also in the time to process logic (and the network latency) which you don't address. And of course, aside from rendering (which often is just "show a few forms, buttons and lists" for most apps) a part of the heavy logic in Objective-C for lots of tasks is done in C or C++ frameworks at much faster speeds than modern JS engines.

[1] https://www.mikeash.com/pyblog/performance-comparisons-of-co...

Re:Chrome Won by pcwalton on Friday May 26, 2017 @12:01PM (#14424964)
> If we're talking about e.g. Electron apps, the problem I see mentioned (and felt myself) is almost always the memory hogging, the GC-pauses, the battery impact and such -- not the rendering speed.

I see the opposite. VS Code feels somewhat slow, mostly because of rendering—it doesn't hit 60 FPS.

You cite GC pauses. One of the best ways to mitigate GC pauses is to move the noticeable rendering logic off the main thread so that your app doesn't freeze during GCs, which is precisely what Servo is designed to do.

> For something like Atom, is the slow redrawing because "DOM is slow" or because "doing the calculations needed for a sizable file, with syntax highlighting regexes, compiler checks, freeing memory, etc takes lots of processing time"?

The performance differential is because of many things, but regex performance and freeing memory relative to native aren't among them. JS engines' regex engines are best in class and easily exceed the performance of popular C regex libraries; this is a side effect of SunSpider and V8 including regex benchmarks. Memory deallocation in popular JS engines is faster than in native, because sweeping takes place all at once and generational GC nursery evacuation is very fast.

> That's not entirely true, as Objective-C dispatch was thoroughly optimized [1].

Those numbers are precisely what I'm referring to. In most cases, JS method dispatch is more like a C++ method call or an IMP-cached message send than a slow hash table lookup. Often it's even better, because the inliner kicks in, while inlining is very difficult in Objective-C. Objective-C's "fast path" is the slowest path in JavaScript, one that's only hit for megamorphic call sites.

> Besides, the performance differential is also in the time to process logic (and the network latency) which you don't address.

Pure computation in most apps is not appreciably slower for the end user in JS than it is in Android or iOS. And if it is, there's always Web Assembly! We're doing lots of work to improve JS performance; it's just not all under the Servo umbrella.

> And of course, aside from rendering (which often is just "show a few forms, buttons and lists" for most apps) a part of the heavy logic in Objective-C for lots of tasks is done in C or C++ frameworks at much faster speeds than modern JS engines.

That same "heavy logic"—by which I assume you mean audio/image/video decoding, JSON/XML parsing, image filters, vector graphics work—is also done in native code in browsers. And it's those very same tasks that we're optimizing in Servo.

Re:Chrome Won by camgunz on Friday May 26, 2017 @11:39AM (#14424810)
Modern JS is pretty fast yeah, but I still don't think it rivals Objective-C does it? If we stipulate it's 1/2 as fast as Swift, it's still much faster than v8 on the benchmarks game [1]. Can you be trickier with JS code than those toy programs are?

[1] http://benchmarksgame.alioth.debian.org/u64q/compare.php?lan...

Re:Chrome Won by pcwalton on Friday May 26, 2017 @12:54PM (#14425458)
Objective-C and Swift are completely different beasts, especially on those kinds of workloads. Idiomatic Objective-C would be much worse than that.
Re:Chrome Won by camgunz on Friday May 26, 2017 @05:00PM (#14427137)
Well now that I think about it, maybe in the context of your original argument a comparison against Swift makes sense. It's hard for me to see JS ever being competitive with Swift or a similar compiled language.
Re:Chrome Won by majewsky on Friday May 26, 2017 @04:59AM (#14422807)
> it wont matter if it has a faster rendering engine [...] its CPU use and battery impact that matters to users

You make it sound like these are two orthogonal aspects. When rendering is faster, CPU usage obviously goes down. As does battery impact, since the CPU can go back to a sleep state faster.

Re:Chrome Won by coldtea on Friday May 26, 2017 @11:35AM (#14424782)
>You make it sound like these are two orthogonal aspects. When rendering is faster, CPU usage obviously goes down.

Only as much as its the rendering, and not the core logic that consumes the CPU.

Degenerative case: a page with a single text entry field, where you enter a number and it calculates e.g. the fibonnaci sequence up to that number or factor primes etc. There's hardly any rendering, but lots of CPU.

Re:Chrome Won by lurenjia on Thursday May 25, 2017 @10:14PM (#14421623)
Major browser engines all have about 20 years of development history. Web specs are ever growing and piled higher and higher. Major web browsers have large engineering team and lot resources. It's unlikely Servo can catch up.
Re:Chrome Won by lelandbatey on Thursday May 25, 2017 @10:51PM (#14421712)
Servo is already a runnable browser, and I'm amazed how fast it is. It still has rendering issues with plenty (any reasonably complicated media-heavy site, i.e.: cnn.com) of sites, but even then, it's already an amazing piece of technology. On top of that, the point of Servo isn't to be a brand new full on browser, it's to be a proving ground for a next-gen engine.

And it's proving to be fast, safe, and the future of browsers.

Re:Chrome Won by markdog12 on Friday May 26, 2017 @08:16AM (#14423500)
> Servo is already a runnable browser, and I'm amazed how fast it is

First of all, I think the idea behind Servo is awesome, and I follow it. But I've been testing it on Mac OS and Windows, and it is not a runnable browser, nor fast (as expected!). CPU is often fully pegged and it's very iffy if any UI elements or page loads work. Not to say they won't get there, but it's still very, very early and buggy.

Re:Chrome Won by Manishearth on Friday May 26, 2017 @01:15PM (#14425651)
Yeah, we don't track perf regressions like released browsers so often we land something that negates the performance benefit. The current servo releases are just alpha, so it's not too important to stay on top of, but we should probably start caring about this more.

We had a similar issue with Stylo (Servo style system in gecko) recently where there were bugs in the parallelism code making us slower than gecko. Fixed, now we're faster again. We only recently started tracking performance properly, and it was caught and fixed in a few weeks.

Re:Chrome Won by bobajeff on Thursday May 25, 2017 @08:52PM (#14421326)
Servo won't be ready for quite some time. (I'm thinking maybe 5 years) Project Quantum might be out sooner but it won't be that big of a leap ahead of other browsers.
Re:Chrome Won by lewisl9029 on Thursday May 25, 2017 @09:00PM (#14421373)
Fair point, and I'm not suggesting that other browser vendors can't possibly have an answer to Servo and Webrender by the time they're ready, but just that I haven't heard about any such efforts from them yet.

So it's not entirely unreasonable to suggest that Mozilla's next-gen engine efforts could be first-to-market, and that everyone else might have to play catch up.

Re:Chrome Won by jhasse on Friday May 26, 2017 @12:17AM (#14421958)
> (maybe even surpass?)

As Servo would be a mobile app itself, I think no ;)