Comment on Node.js worker threads are problematic, but they work great for usComments−esprehn5moThe worker situation would be much better with inline workers (or modules).https://github.com/tc39/proposal-module-declarationsUnfortunately the JS standards folks have refused so far to make this situation better.Ex. it should just be `new Worker(module { ... })`.−bakkoting5moWe haven't refused, it just takes time! There was an update at the meeting two weeks ago [1]. There's a lot of other machinery which needs to be specified and implemented before module declarations will work but it's coming along.[1] https://docs.google.com/presentation/d/1inTcnb4hugyAvKrjFX_X...−whizzter5moIt's all about security, see my other comment. https://news.ycombinator.com/item?id=47480080
Comments
The worker situation would be much better with inline workers (or modules).
https://github.com/tc39/proposal-module-declarations
Unfortunately the JS standards folks have refused so far to make this situation better.
Ex. it should just be `new Worker(module { ... })`.
We haven't refused, it just takes time! There was an update at the meeting two weeks ago [1]. There's a lot of other machinery which needs to be specified and implemented before module declarations will work but it's coming along.
[1] https://docs.google.com/presentation/d/1inTcnb4hugyAvKrjFX_X...
It's all about security, see my other comment. https://news.ycombinator.com/item?id=47480080