AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Interop: How JavaScript and Workers Work Together
Multi threading in the JavaScript runtime environment has been a major open question with lots of different proposals and attempts at it. There is an impedance mismatch between how static language developers like Kotlin developers think of multi threading and co-routines. And so we have to figure out a model for that. This, of course, opens up a whole bunch of questions around Interop, which was your earlier question. But right now, workers is the path forward for multi-threading in JavaScript and WebAssembly.