News for hackers. Stuff that matters.
Re:JavaScript in Parallel: Web Workers and SharedArrayBuffer by ridiculous_fish on Friday March 03, 2017 @08:54PM (#13788654)
This didn't work in my case because I had references to other functions, for complex number handling and the like. I ended up just loading the whole minified .js file again in the Worker, which worked though it felt ridiculous.
Re:JavaScript in Parallel: Web Workers and SharedArrayBuffer by btbuildem on Saturday March 04, 2017 @12:42AM (#13789501)
One of the native functions available in a web worker is importScript - it allows to load include other scripts (eg lodash) into the worker scope.