4 ms·
This a true, but the advantage is probably more than offset by the relative cost of JS vs Rust developers. You can also add Flow types. A single threaded envir
by rienbdj 7y ago
This a true, but the advantage is probably more than offset by the relative cost of JS vs Rust developers. You can also add Flow types.
A single threaded environment does not yield the usual advantages of the Rust borrow checker.
- zozbot234 7y ago> the relative cost of JS vs Rust developers I.e. pay peanuts, get code monkeys? > A single threaded environment does not yield the usual advantages of the Rust borrow checker. This is quite wrong - reference invalidation and async code that's being scheduled within a single thread are two common examples where it matters a lot.
- Eikon 7y agoLots of boilerplate and error-prone code can also be avoided by implementing `drop` on relevant types, this can yield to pretty interesting APIs in the web space.
- steveklabnik 7y agoThe borrow checker still helps quite a bit with a single thread: http://manishearth.github.io/blog/2015/05/17/the-problem-with-shared-mutability/ http://manishearth.github.io/blog/2015/05/17/the-problem-wit...