YAMAMOTO Takashi

Results 259 comments of YAMAMOTO Takashi

some apps are using `emscripten_num_logical_cores`, which iirc maps to `navigator.hardwareConcurrency`, as a hint to decide the default number of threads. cf. https://github.com/ffmpegwasm/x264/commit/266eb136adc29f80669d35d0564cd7ae7a0bd29d i guess it makes sense to provide an...

> the description of `wasi_thread_spawn` says: > > ``` > instantiate the module again — this child instance will be used for the new thread > ``` > > it...

questions are answered. it seems there is no plan to decide behavior with multiple modules in near future. closing.

reopening because it's a real problem, not just a question.

> > @sunfishcode and I had talked some time ago about switching the WASI paradigm from "export the memory" to "import the memory." It might break some things but I...

the current wasi-libc implementation seems to use `wasi_proc_exit` for both of thread exit and process exit. i guess it's simpler to distinguish them.

i guess choices are: a-1. use `wasi_proc_exit` for process exit. introduce `wasi_thread_exit` for thread exit. a-2. use `wasi_proc_exit` for process exit. introduce no extra api for thread exit. just make...

> Can you explain a little more why you have concerns about `a-1`? It seems like the most obvious solution to me. I'm not sure what you mean by "non...

a datapoint: 4M [pthread_create](https://github.com/search?q=pthread_create&type=code) 1M [pthread_exit](https://github.com/search?q=pthread_exit&type=code) 3M [pthread_join](https://github.com/search?q=pthread_join&type=code) 2M [pthread_mutex_init](https://github.com/search?q=pthread_mutex_init&type=code) 1M [pthread_cond_init](https://github.com/search?q=pthread_cond_init&type=code) 0.3M [pthread_barrier_init](https://github.com/search?q=pthread_barrier_init&type=code)

> Thanks @yamt , I was more interested in real usecases than just a number of occurrences of a specific function on github - i.e. do we know for sure...