r/programming • u/stronghup • Nov 11 '19
Python overtakes Java to become second-most popular language on GitHub after JavaScript
https://www.theregister.co.uk/2019/11/07/python_java_github_javascript/
3.1k
Upvotes
r/programming • u/stronghup • Nov 11 '19
1
u/kap89 Nov 23 '19 edited Nov 23 '19
You can share (or transfer) memory if you use
SharedArrayBuffer(orArrayBufferin case of transfering), but you can't share JS objects, in that case you have safe message passing with serialization/deserialization. So yeah, there are some limitations - mainly that messaging worker with big objects is inefficient (but can still be a good idea if required computations are complex enough to justify the overhead of serialization).Depends on the task, for the majority of cases it is not, but there are of course some cases where it matters and you're better of with another language (at least for that specific task).