where can I find the file which created by emscipten ?

2017-08-10 Thread Wanghb Wang
I learn from the website https://kripken.github.io/emscripten-site/docs/api_reference/Filesystem-API.html . I use the followed code to create a file, However, I cannot find the file. Where is it? EM_ASM( FS.mkdir('/IDBFS'); FS.mount(IDBFS,{},'/IDBFS');

Re: Emscripten errors when used with a React App

2017-08-10 Thread Jukka Jylänki
Sorry, I have not used the React linter, but perhaps someone else might have, and would know more experience there. 2017-08-10 0:08 GMT+03:00 Lubo Astinov : > Have you ever been successfull in getting something compiled with Emscripten > to pass the React linter? I'm wondering if I'm just doing so

Re: asm.js very slow compile time

2017-08-10 Thread Jukka Jylänki
Is that on latest Emscripten 1.37.18? That looks like a new error that is not known. What does the generated code around that location look like? What should __ZN6Editor10s_instanceE be, is that a singleton pointer? 2017-08-10 6:55 GMT+03:00 Александр Гурьянов : > Update on compile time: > -O2 - ~

Re: where can I find the file which created by emscipten ?

2017-08-10 Thread Jukka Jylänki
IDBFS uses browser's IndexedDB to persist the files. See https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API and https://developer.mozilla.org/en-US/docs/Tools/Storage_Inspector. 2017-08-10 13:08 GMT+03:00 Wanghb Wang : > I learn from the website > https://kripken.github.io/emscripten-s

Re: where can I find the file which created by emscipten ?

2017-08-10 Thread Wanghb Wang
Can I save the "IndexedDB" file into disk?? 在 2017年8月10日星期四 UTC+8下午6:13:53,jj写道: > > IDBFS uses browser's IndexedDB to persist the files. See > https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API and > https://developer.mozilla.org/en-US/docs/Tools/Storage_Inspector. > > 2017-08-10 1

Re: asm.js very slow compile time

2017-08-10 Thread Александр Гурьянов
emcc (Emscripten gcc/clang-like replacement) 1.37.18 (commit cb2260892ddc2c73aa40dbe0821f5a8ce3f79975) bin.js: function __ZN6Editor10s_instanceE() { Module["printErr"]("missing function: _ZN6Editor10s_instanceE"); abort(-1); } // ... getBinaryPromise().then((function(binary) { retur

Re: asm.js very slow compile time

2017-08-10 Thread Александр Гурьянов
Chrome error: failed to asynchronously prepare wasm: LinkError: Import #3 module="env" function="__ZN6Editor10s_instanceE" error: global import must be a number testing.html:160 LinkError: Import #3 module="env" function="__ZN6Editor10s_instanceE" error: global import must be a number at http:/

Re: About vanilla wasm and emcc SIDE_MODULE

2017-08-10 Thread Alon Zakai
Global destructors aren't called for you, and so far the dynamic library spec (which is the basis for current side module support) doesn't have a feature for that. So you'd need to do that manually. There are some differences between how asm2wasm and the wasm backend (vanilla llvm) allocate the st

Re: Please help get Emscripten Module to load into NodeJS environment, supplied example

2017-08-10 Thread Michael Uman
Hello once again, Is this the place to post questions about emscripten? This group was listed on the emscripten official site and I was hoping to be able to get some answers regarding actually using this thing. Is there anyone out there who knows what I am asking here? It should not be too diff

Re: where can I find the file which created by emscipten ?

2017-08-10 Thread Michael Uman
Hello, I am no expert but the little experience i have tells me that from within a browser you cannot write to the local file-system. I am working in the NodeJS environment and have access to the NodeFS file-system which is capable of writing to the users local filesystem. Maybe someone else c

Re: About vanilla wasm and emcc SIDE_MODULE

2017-08-10 Thread Jean Valjean
Thanks for your detailed answer, it's really helpful. For the "WebAssembly.Table" feature, I was talking about this https://github.com/mdn/webassembly-examples/blob/master/js-api-examples/table2.wat On Thursday, August 10, 2017 at 7:23:15 PM UTC+2, Alon Zakai wrote: > > Global destructors aren't

Re: where can I find the file which created by emscipten ?

2017-08-10 Thread Wanghb Wang
thanks you for your advice! 在 2017年8月11日星期五 UTC+8上午3:58:29,Michael Uman写道: > > Hello, > > I am no expert but the little experience i have tells me that from within > a browser you cannot write to the local file-system. I am working in the > NodeJS environment and have access to the NodeFS file-s