Author Topic: Firefox WebAssembly (WASM) on ppc64le? Jitsi Meet, Zoom, etc not working  (Read 4089 times)

pocock

  • Sr. Member
  • ****
  • Posts: 297
  • Karma: +33/-0
    • View Profile
Does anybody know about support for Firefox WebAssembly (WASM) on ppc64le?

Some web sites like Zoom don't work without it.

Since March, it looks like Jitsi Meet may require WebAssembly too

Is WASM available in any recent version of Firefox?  Can it be enabled if I rebuild Firefox from source?
Debian Developer
https://danielpocock.com

ClassicHasClass

  • Sr. Member
  • ****
  • Posts: 473
  • Karma: +37/-0
  • Talospace Earth Orbit
    • View Profile
    • Floodgap
There is no Wasm support currently. It's being worked on and we'd love contributors (right now it's primarily me with some help from chmeee): https://github.com/chmeeedalf/gecko-dev/commits/master


bobpaul

  • Newbie
  • *
  • Posts: 11
  • Karma: +3/-0
    • View Profile
Re: Firefox WebAssembly (WASM) on ppc64le? Jitsi Meet, Zoom, etc not working
« Reply #2 on: December 03, 2024, 12:06:57 pm »
What's the status on this these days?

I found an open Mozilla issue for WASM. Is that just for the WASM portion (and there's other bugs tracking other portions), or is that tracking the entire JIT+WASM effort?

It looks like kth includes your patch for Firefox-esr v128 in his archlinux package. And running that build of firefox in an archpower chroot scores quite a bit higher than fedora's firefox v133 on BrowserBench (but also higher than the Firefox v130 from Archpower; it's not clear to me if the JIT patches are included there..)

ClassicHasClass

  • Sr. Member
  • ****
  • Posts: 473
  • Karma: +37/-0
  • Talospace Earth Orbit
    • View Profile
    • Floodgap
Re: Firefox WebAssembly (WASM) on ppc64le? Jitsi Meet, Zoom, etc not working
« Reply #3 on: December 03, 2024, 12:15:44 pm »
It was working for awhile in internal test builds but changes to Firefox have caused it to crash on Wasm startup, deep within the code. I'm continuing to struggle with this and I'm trying to work on a better debugging setup as time permits.

A similar thing happens with Ion (second-stage) compilation, so they are probably related. Right now the JIT works but is limited to Baseline (first-stage) JS compilation and irregexp.

I haven't updated the patches for anything later than 128ESR yet but it's possible it may apply directly to more recent versions.

Borley

  • Full Member
  • ***
  • Posts: 181
  • Karma: +17/-0
    • View Profile
Re: Firefox WebAssembly (WASM) on ppc64le? Jitsi Meet, Zoom, etc not working
« Reply #4 on: December 03, 2024, 04:06:05 pm »
Well that explains why certain interactive pages have been erroring "WebAssembly not defined" when checking the developer console.

I just chalked it up to my user.js template disabling WASM.


bobpaul

  • Newbie
  • *
  • Posts: 11
  • Karma: +3/-0
    • View Profile
Re: Firefox WebAssembly (WASM) on ppc64le? Jitsi Meet, Zoom, etc not working
« Reply #5 on: December 03, 2024, 08:10:59 pm »
Right now the JIT works but is limited to Baseline (first-stage) JS compilation and irregexp.

I haven't updated the patches for anything later than 128ESR yet but it's possible it may apply directly to more recent versions.

Ah, sweet! With the patches I can go into about:config and enable wasm and baseline_jit and now my password manager works! That's honestly a big quality of life increase, lol.

ClassicHasClass

  • Sr. Member
  • ****
  • Posts: 473
  • Karma: +37/-0
  • Talospace Earth Orbit
    • View Profile
    • Floodgap
Re: Firefox WebAssembly (WASM) on ppc64le? Jitsi Meet, Zoom, etc not working
« Reply #6 on: December 04, 2024, 10:01:53 am »
Well that explains why certain interactive pages have been erroring "WebAssembly not defined" when checking the developer console.

I just chalked it up to my user.js template disabling WASM.

Although it may be possible to use some sort of Wasm interpreter or polyfill, obviously the best solution is to get the actual JIT working, of course. Otherwise, yes, there is no Wasm if there is no JIT.