IRC channel logs

2024-02-02.log

back to list of logs

<encryptedwhisper>riiight, that makes sense!
<encryptedwhisper>thank you so much!
<encryptedwhisper>I have managed to get my one-way chat app working properly, with a much more tamed event loop
<encryptedwhisper>What does this mean? "CompileError: wasm validation error: at offset 12: gc types not enabled" - in firefox
<encryptedwhisper>Do I need to enable a flag in about:config, or is it perhaps a Gentoo build flag I've missed?
<encryptedwhisper>oh I'm silly. " Starting with Firefox 120 and Chrome 119, GC is enabled by default. "
<encryptedwhisper>wait no I'm not. I have FF 122
<dthompson>encryptedwhisper: check about:config and search "wasm". javascript.options.wasm_gc and javascript.options.wasm_tail_calls should be enabled
<dthompson>as of firefox 121 these are both on by default
<encryptedwhisper>I do'nt see javascript.options.wasm_gc - should I add it manually?
<dthompson>any wasm options at all? looks like you are using a special build of firefox with some features disabled or something
<dthompson>the option should appear whether you've customized it or not
<encryptedwhisper>I do see wasm options just not the gc version. And yeah I'm on gentoo so I've built it manually - let me see if I can get 121 built.
<encryptedwhisper>or wait I have 122, lol i'm bad at numbers. Yeah maybe it's an option Gentoo hasn't packaged yet :3
<dthompson>I don't know much about how firefox is actually built to know what might be missing to cause wasm gc to be unavailable
<dthompson>maybe gentoo's chrom(e|ium) build will just work?
<encryptedwhisper>it's gentoo's package yeah. they build with --disable-wasm-gc
<encryptedwhisper>going to try to track down why this is the case and see if I can patch it...
<bremner>slightly OT, is wasm-gc supported outside chromium yet?
<encryptedwhisper>Okay so after digging, it looks like --disable-wasm-gc is just there as of 120 and below - which mirrors how it used to be disabled by default. They probably just don't know it's no longer disabled by default
<encryptedwhisper>just gonna make my own package and see if if it works!
<dthompson>bremner: yeah, also in firefox
<dthompson>encryptedwhisper: ah nice find. good luck with a fresh build!
<bremner>dthompson: thanks.
<bremner>hmm. fwiw firefox 121 on debian has wasm_gc and wasm_tail_calls enabled
<dthompson>yeah that's the default
<dthompson>gentoo is passing a flag to disable it in their build, as discovered by encryptedwhisper
<encryptedwhisper> https://github.com/gentoo/gentoo/pull/35149
<encryptedwhisper>hopefully this gets merged :)
<dthompson>our community forum now has open registration! (no more invite code) https://spritely.institute/news/developer-community-forum-open-for-everyone.html
<encryptedwhisper>yay!!!
<encryptedwhisper>And the gentoo ff package is merged! hooray
<dthompson>encryptedwhisper: 🎉 that was fast!
<encryptedwhisper>it was!
<encryptedwhisper>they aren't making a new rev for it so my understanding is that it will only make it into whatever the next version is, but i'm okay with that.
<dthompson>yeah that's cool
<dthompson>glad it will get fixed