cppcoro icon indicating copy to clipboard operation
cppcoro copied to clipboard

We need emscripten support!

Open unicomp21 opened this issue 4 years ago • 5 comments

With the latest switch to clang, this lib would be a "huge" add for emscripten.

unicomp21 avatar Aug 27 '19 01:08 unicomp21

What is missing/required to make it work?

lewissbaker avatar Aug 27 '19 02:08 lewissbaker

https://v8.dev/blog/emscripten-llvm-wasm

unicomp21 avatar Aug 27 '19 10:08 unicomp21

I'm not sure anything is missing, other than somehow telegraphing the existence of this library. Maybe all that's needed is a few emscripten tests or examples, which exercise classes in cppcoro, that don't step outside the webassembly sandbox? This library is beautiful. Combining it w/ the latest emscripten, HUGE deal. For browser games, having generators and coroutines within c++, a dream we've had for decades. I can hardly believe it's finally here :)

unicomp21 avatar Aug 27 '19 10:08 unicomp21

An emscripten test or sample showing the DelayedScheduler running under emscripten, think that would get everyone's attention.

unicomp21 avatar Aug 27 '19 10:08 unicomp21

https://github.com/emscripten-core/emsdk/issues/335

unicomp21 avatar Aug 28 '19 09:08 unicomp21