#jsmess 2017-04-20,Thu

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)

WhoWhatWhen
baihmm
unity's loader seems to have some way of detecting wasm
I think you can just look if (typeof window.WebAssembly != 'undefined')
[00:14]
............... (idle for 1h11mn)
phethere is a fallback provided by emscripten, you can try a wasm module and emscripten fallback to interpret it if !window.WebAssembly but it's way too slow [01:27]
hmm, I thought the fallback was to generate asmjs from the .wasm in the client browser but it look like very experimental [01:40]
Vito`maybe that makes sense for tiny apps
but I'm going be delivering tens of MBs of JS I'm not going to have a client browser deal with something they don't have to
I want to either insert a .wasm or a .js depending on the browser's support
[01:41]
phe(typeof window.WebAssembly != 'undefined') is the way then, btw chrome as real issue with big module wasm,, it compile the whole .wasm file before starting, on a mame/pacman build it freeze my browser using 4 core for 15 seconds, unsure if it's a good idea to provide .wasm, I bailed out from was after seeing that [01:45]
Vito`wasm isn't already compiled? [01:49]
pheit is to byte code, what freeze is chrome compling the whole thins to native machine code, it doesn't jit function by function actually [01:50]
Vito`ah [01:50]
pheI hope they'll fix it for 58 [01:50]
Vito`if it's a "just for now" thing I'm not too concerned [01:53]
pheyeah, I liked to experiment wasm :) [01:54]
***phe has quit IRC (Quit: Leaving) [02:06]
....... (idle for 30mn)
baihmm, I don't see that sort of delay on my wasm builds
there's a wasm interpreted mode fallback but it's eaaay slower than asm.js was
[02:36]
........................................................................................ (idle for 7h17mn)
***phe has joined #jsmess [09:53]
................................................................ (idle for 5h16mn)
Vito`https://jamesfriend.com.au/porting-pce-emulator-browser
I want to read the MESS/MAME version of this
[15:09]
................. (idle for 1h20mn)
SketchCowIt'd be nice [16:29]
.... (idle for 17mn)
I've asked a dev to plunk in the new loader.js.
We'll see how long it takes.
[16:46]
............................. (idle for 2h20mn)
***zino has joined #jsmess [19:06]
......................................... (idle for 3h22mn)
db48xVito`: wouldn't you be the one writing the MESS/MAME version of that article?
as for wasm, I wrote some code to load a wasm module
but from what I've seen, emscripten still generates some javascript, even when compiling the bulk of it to wasm
[22:28]
baiyeah, there's a .js and a .wasm file
and a .wasm.mem
[22:38]

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)