Rust meets the web – a clash of programming paradigms (2020)
jakobmeier.ch
jakobmeier.ch
> They [...] decided that no concurrency between threads is allowed, for the safety of everybody. This resolves the race conditions by removing the possibility that multiple threads ever run at the same time.
Nope! It's very easy to write a JS program with a race condition. Like this one, which sometimes outputs 0, sometimes 1:
var a = 0;
setTimeout(function() { a = 1; }, 50);
setTimeout(function() { console.log(a); }, 49);But why are people interested in rust on client side web? Does front end development need yet another paradigm?