Sam Clegg

Results 1119 comments of Sam Clegg

OK, closing this one out for now then.

scanf is hard / impossible to implement on the web in a generic way since there is no general notion of stdin. emscripten tries to do a very hacky thing...

@cyk2018, but in practice are you actually going to use the `windows.prompt` thing to do input for your program. It seems unlikely that anyone would actually want that.

If there are code size saving that result then we should certainly do this. Could you point the code that you think can be elided in this case?

Do you mean `INCOMING_MODULE_JS_API`? I think one issue is that inclusion in this list just tells emscripten "I may set this as an incoming argument".. and not "you can depend...

BTW , if we really want to shave some serious code size we should be looking at the `wasm` or `wasmBinary` settings which could also allow is to avoid including...

@dasa, BTW can I ask what you are using `locateFile` for? Is it because you cannot host your wasm file alongside your js file?

I guess one option would be to add new setting such `GUARANTEED_INCOMING_MODULE_JS_API` (but with a better name). Alternatively we could keep the existing setting and change its meaning for certain...

Or perhaps as you suggest we create a specific new setting just for this? I've always disliked the setting name `INCOMING_MODULE_JS_API` so maybe this is our chance to come up...

Can we imagine a use case were a developer want to be able to supply `locateFile` ... but not all the time?