3 ms·
The cost of it is that when you need to make something explicitly async, you have to wrap it into a greenlet in a much more involved way. JavaScript lets you d
by nine_k 3y ago
The cost of it is that when you need to make something explicitly async, you have to wrap it into a greenlet in a much more involved way.
JavaScript lets you do it much more ergonomically.
- gpderetta 3y agoDoesn't seem very involved; for example (cilk inspired syntax): let f = spawn { print() } // fork ... wait f // join. f is a linear type You only pay the complexity cost if you need it.