Path to emscripten directory on linux from all users

2017-09-19 Thread ilia . galashko
Hi, I want to install emscripten on linux and open acess to all users to use it. I installed it to etc/... directory but during compilation I got errors: Info:Root (running sanity checks) permission denied. I read manual and it seems that I should not install it with sudo rights. How can I

Re: Change WASM location in JS glue code

2017-09-11 Thread ilia . galashko
Thank you for explanations. But with this approach I cannot get access to web worker wasm module. Is there any ways to do this in main html file or somewhere else? I would like to set the location of wasm worker file too. суббота, 9 сентября 2017 г., 18:34:34 UTC+3 пользователь

Change WASM location in JS glue code

2017-09-09 Thread ilia . galashko
Hi, I am compiling my project to WASM code with JS glue and put them on server side. Then I have to load them from server and use. Is it possible to control path to wasm file from JS glue during compilation? Perhaps there are some flags or something else. I did not find this option in

Re: Memory release during operations.

2017-08-29 Thread ilia . galashko
Thank you. But is there any way to allocate memory and release it from JavaScript and then pass it to C++. If from C++ side it is impossible. понедельник, 28 августа 2017 г., 19:16:15 UTC+3 пользователь ilia.g...@gmail.com написал: > > Hi, > I am porting comlex logic inside C++ to WASM. > When

Memory release during operations.

2017-08-28 Thread ilia . galashko
Hi, I am porting comlex logic inside C++ to WASM. When I run it in browser. It looks like there is no memory release at all till I reload page. I even tried it on simple program. I usually allocate memory with new operator and release it with delete inside C++ code. But browser does not release

Re: Several web workers under WASM low performance

2017-08-19 Thread ilia . galashko
Thank you!! пятница, 18 августа 2017 г., 15:50:45 UTC+3 пользователь ilia.g...@gmail.com написал: > > Hello, > I tried to use several web worker in my project and noticed that when we > have more than one worker at the same time, they do not perform operations > in parallel mode. > Looks like

Re: Several web workers under WASM low performance

2017-08-19 Thread ilia . galashko
Thank your for explanations!! I would like to clarify a few moments. If I have 4 physical cores. The optimal number of paralell workers will be from 3 to 4 ? I want to paralell several algorithms. The performance of those alogrithms from 5 to 7 seconds. When I divide this algorithm to chunks

Several web workers under WASM low performance

2017-08-18 Thread ilia . galashko
Hello, I tried to use several web worker in my project and noticed that when we have more than one worker at the same time, they do not perform operations in parallel mode. Looks like they do operations step by step. I compile code to WASM and run worker form C++ code with

Passing data file path from JS to web worker.

2017-08-15 Thread ilia . galashko
Hi, I need to download some files and work with them in main thread and in webworkers. So I cannot use --preload-files options to build JS files from C++. I am using Ajax to load file to temporary browser directory. Then with Module['FS_createDataFile']('/dir", "file.dat", data, true, true) I

Re: OpenCV and complex objects in webworkers

2017-08-15 Thread ilia . galashko
Thank you. After proper serialization everything works fine. пятница, 11 августа 2017 г., 10:29:47 UTC+3 пользователь ilia.g...@gmail.com написал: > > Hi, > I am practicing to call webworker inside C++ with emscripten_call_worker() > and I want to pass complext object, lile > class Object > { >

OpenCV and complex objects in webworkers

2017-08-11 Thread ilia . galashko
Hi, I am practicing to call webworker inside C++ with emscripten_call_worker() and I want to pass complext object, lile class Object { std::vector bytes; std::string name; cv::Mat image; }: Before passing I use memcpy to copy memory to char and pass it, but it looks like web worker loose some

Re: Run web worker inside static library

2017-08-09 Thread ilia . galashko
I create worker with emscripten_create_worker inside C++ code. It is not an special error. When I try to get access to string member of class after passing to web worker. I just get TypeError: str is undefined. It happens only if I pass member of class in static library. If I pass class work

Run web worker inside static library

2017-08-09 Thread ilia . galashko
Hi, in my code there are several static libraries which were written by me. I want to use web workers inside this libraries. Is there any chance to do this ? When I instantiate object from static lib in my main file and pass it to web worker everything is ok, but when I do this inside static

Re: Emscripten test suite

2017-08-03 Thread ilia . galashko
Thank you. But as I understood there is no way to write and run tests in C++ with emscripten? четверг, 3 августа 2017 г., 13:48:20 UTC+3 пользователь ilia.g...@gmail.com написал: > > Hi, I am porting C++ code to webassembly with emscripten and I want to > write my own unit tests. > I know that

Emscripten test suite

2017-08-03 Thread ilia . galashko
Hi, I am porting C++ code to webassembly with emscripten and I want to write my own unit tests. I know that there is a test/runner.py but it works only with emscripten test suites. Are there any ways to build and run my tests with emscripten? -- You received this message because you are