"sleep" support
yeah i know this is not something easy (unless JSPI is used), but having a sleep support... so programs can be compiled for the web without having to be stricly designed to the web way, would make this already a very good alternative to emscripten, specially since the bloat of the python and node requirements of emscripten.
i'm slowly attempting a port of emscripten with those converted to C, but it's a huge job... however if a minimum of a sleep or any waitiable event could be used... then i would include this is as target for freebasic for WEB as well...
Hey there. I've done a follow-up project to what I started in this project called WAjic and it does a lot more fancy stuff. On the samples page there is a Coroutines Sample which does show off coroutines (fake threads if you will) and support for a sleep function. BUT (and this is a big BUT) WAjic has been neglected for many years... I've never really gotten back into WebAssembly because the whole thing bums me out a bit. Why can't we have real threads, why can't we have proper audio output, why did (P)NaCl do everything basically on day one and WebAssembly still can't do it a decade or more in makes me a bit sad.
yes! i agree... if it was not for mobile... where coding for mobile is WORSE than emscripten, i would also stay away from the web... but right now WEB is the best compromise for tablets/tvs/mobile that i have, but then becoming dependant on asincify, to keep allowing programs for the language to work as is on different platforms, i dont really need threads yet... but being forced to do everything in separate function calls... it's worse than it was even on win3.11 with cooperative multitask :P, i will take a look at thosee and see if i can incorportate that seamlessy.