News for hackers. Stuff that matters.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by patrickmcnamara on Friday August 30, 2019 @01:35PM (#20840693)
YouTube is faster on Firefox on my laptop for some reason. I get zero dropped frames on Firefox too, compared to Chrome/Chromium.

Still waiting on Firefox to support hardware-accelerated decoding of videos though.

Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by mehrdadn on Friday August 30, 2019 @01:58PM (#20840913)
> Still waiting on Firefox to support hardware-accelerated decoding of videos though.

Wait, Firefox doesn't do this already? Didn't know.

Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by MrRadar on Friday August 30, 2019 @02:04PM (#20840971)
It does on Windows and Mac. On Linux it does not but hopefully WebRender should pave the way to enabling it (see https://bugzilla.mozilla.org/show_bug.cgi?id=1210726).
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by jorvi on Friday August 30, 2019 @05:23PM (#20842852)
Something is still extremely funky with video on macOS Firefox. Playing MP4s on YouTube still uses 200-400% more power than on Safari, and that's with transparent window disabled. Hell, Twitch turns my 2015 MBP into a vacuum cleaner but Safari barely breaks a sweat.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by MrRadar on Friday August 30, 2019 @05:55PM (#20843083)
Have you tried using a Nightly build of Firefox? There's recently been some work to use CoreAnimation on MacOS to reduce power consumption that hasn't made it to the Beta or Release channels yet. (See: https://bugzilla.mozilla.org/show_bug.cgi?id=1429522)
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by jiripospisil on Friday August 30, 2019 @06:35PM (#20843348)
There's also [0] which investigates streamed video including YouTube specifically.

While for all major platforms even including Windows on ARM64 the performance is good for VP9, and somewhat degraded for high resolution H264 videos, the results for Mac are bad across all of them. It's not even possible to playback videos with a 480p resolution, without being affected by a lot of framedrops.

In those 15s of playback a 480p VP9 video produces around 5 dropped frames, a 720p and 1080p video already ~45 dropped frames. Really worse it is with 4k@60fps videos which have more than 400 dropped frames even with a playback speed of 1.0x!

[0] https://bugzilla.mozilla.org/show_bug.cgi?id=1576107

Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by patrickmcnamara on Friday August 30, 2019 @03:17PM (#20841678)
Forgot to mention that I use GNU/Linux. My bad.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by pitaj on Friday August 30, 2019 @02:04PM (#20840967)
I'm fairly certain it does it already.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by michaelmrose on Friday August 30, 2019 @02:54PM (#20841471)
It says its using the GPU but if you look at the cpu time required to play a 1080p video within firefox vs playing the same video with mpv

www.mpv.io : a lightweight player that among other things can transparently stream any url understood by youtube-dl

It uses 20x as much cpu as mpv. For purposes of comparison this is like Toyota selling a car that goes just as fast as your Ford so long as you are OK with only getting 4MPG.

There is an addon if you prefer to right click on a url and open in mpv or in an addon like Tridactyl you can do the same with your keyboard. It also lets you speed up and slow down the playback speed which is nice for speakers who talk too slow and take a while to get to the point.

Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by cmcaine on Sunday September 01, 2019 @02:15PM (#20853745)
I use mpv on my laptop to get more out of the battery and to stop the fan annoying me.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by michaelmrose on Friday August 30, 2019 @03:12PM (#20841636)
It uses the GPU but doesn't use it to actually decode video on linux.

https://bugzilla.mozilla.org/show_bug.cgi?id=1210726

Bug opened 4 years ago. Hundreds of millions in revenue and can't task one person for a summer to hook into the support that already exists.

Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by leeoniya on Friday August 30, 2019 @03:21PM (#20841712)
> Hundreds of millions in revenue

and probably < 0.5% of it due to its linux userbase?

Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by vetinari on Friday August 30, 2019 @04:20PM (#20842281)
It's not that they have huge userbase lately, so they could afford to lose it any further.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by JohnBooty on Saturday August 31, 2019 @12:53AM (#20844668)
What would you consider a huge userbase?

Firefox has 230 million monthly users, using FF for an average of over 5 hours per day.

https://data.firefox.com/dashboard/user-activity

Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by vetinari on Saturday August 31, 2019 @05:01AM (#20845299)
Given that Linux has 2% desktop market share (let's be generous) and Firefox has 10% (let's be generous the same way), that would mean that Linux has potential to be 20% of Firefox users. Is that something you are going to ignore?

Many executives would sell their families for less opportunity.

Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by pjmlp on Saturday August 31, 2019 @08:01AM (#20845801)
The big difference is that those executives would be getting money out of those 20% customer base.

I seriously doubt that those 20% Firefox users even consider doing a $1 donation.

Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by zaphirplane on Saturday August 31, 2019 @10:40AM (#20846538)
Firefox makes money from the install base via the search engine default setting. Fairly sure more so than donations
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by pjmlp on Saturday August 31, 2019 @03:39PM (#20848379)
Might be, is there any official numbers?

After all plenty also switch to other search engines.

Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by michaelmrose on Sunday September 01, 2019 @12:26AM (#20850475)
Are you sure? I bet 99% just leave it configured to use google.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by michaelmrose on Friday August 30, 2019 @04:39PM (#20842469)
Linux distros tend to ship with firefox and linux users are more concerned with open source. It would be strange if the percentage of mozillas userbase using linux was smaller than the general percentage of pc users running linux.

Its probably more fair to go on profit not revenue.

100 million in revenue * 2.18% is 2.2 million. A decrease of 10% of that is 220k. If engineers at mozilla are 150k then 3 months of work is aprox 38k.

This would put the break even point at losing 2% of its linux users by not spending the money.

Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by leeoniya on Friday August 30, 2019 @05:44PM (#20843008)
there are a lot of assumptions in your reply.

> 3 months of work

according to whom? this will almost certainly need more than a single engineer's eyes on it. and even if it is 3 months, that's 3 months they don't spend working on features for 98% of their userbase.

i want this to happen as much as anyone, but i just don't see the compelling math here. it's a chicken-egg problem (if FF could use VA API [1], then more might switch to linux).

personally, i'm happy that Panfrost recently got mainlined.

[1] https://en.wikipedia.org/wiki/Video_Acceleration_API