Alon Zakai
Alon Zakai
@TyOverby Interesting question! Maybe we can find a good way to do that. I'd lean towards something modular, maybe using dynamic linking of native plugins, or loading wasm modules and...
Ah, right, functions are the exception. You can compare struct and array references, but not function references. I guess you do need function reference equality? If so, it might be...
Can you not ensure a 1:1 mapping of boxes to JS objects? One way is to keep a reference on the JS object to the wasm box, so that you...
> I'm not sure how we could implement this without leaking memory, since JavaScript weak maps do not work with primitive objects such as strings and numbers. To make sure...
Looking at the output with `BINARYEN_PASS_DEBUG=1` in the env, `ssa-nomerge` is very slow, and uses over 5 GB even when using a single core. The function that happens on is...
Thanks for the update, good to know things work now. I agree things shouldn't crash like that, but I'm not sure what we can do. The problem isn't a memory...
Yeah, I've seen similar OOM behavior on Ubuntu, sometimes forcing a reboot... I suspect it is `O(n^2)` in the worst case, yes. The pass computes the "influences" of sets on...
A point of interest: ``` $ bin/wasm-opt ~/Downloads/hegelmote-wasm/Hegelmote.wasm --extract-function=github.com_yuin_goldmark_util.map.init.0 --metrics --no-validation -O1 --metrics --ssa-nomerge --metrics extracting github.com_yuin_goldmark_util.map.init.0 Metrics total [exports] : 1 [funcs] : 1 [globals] : 2 [imports] :...
As this is a Firefox bug, the best place to file it is on their tracker, https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox&_gl=1*i27ttf*_ga*NzUxODQ5NzA4LjE3NDQxNDQ4MjY.*_ga_2VC139B3XV*czE3NTIwOTk4NzYkbzEkZzAkdDE3NTIwOTk4NzYkajYwJGwwJGgw
This could be a WasmFS issue, but I confirmed it hangs in Firefox and not Chrome, so there is a relevant browser difference. But whether it's a bug or a...