<div>If I understand correctly the whole point of lightweight threads is that they are more lightweight than native threads. Thus having 1 native thread for each 1 lightweight thread kinda defeats the purpose.<br></div><div>
<br></div><div>I wonder isn't it possible to implement it completely on user level, via closures, closure-passing-style transformation or something like that.</div><div>Then it can work on any implementation, you just need code walker adaptation and bindings to implementation's native threading/IO.</div>
<div><br></div><div>If you don't implement it on user level then you'd have to vivisect the whole implementation...</div>
<br>