News for hackers. Stuff that matters.
Re:A large crash spike affecting Firefox users on Linux by Izkata on Saturday June 24, 2023 @04:18AM (#36456663)
> In fact, today it's almost a recommended practice for large web applications and it's called "tree shaking". ECMAScript modules are inlined into the same scope. It makes the JIT work easier because it now works with symbols instead of `require(foo).bar` calls to speculate on. It makes most web apps run better, both in bandwidth and compute.

That's bundling, not tree shaking. Tree shaking is an optional additional process during bundling where unreachable code is automatically removed.

Re:A large crash spike affecting Firefox users on Linux by fathyb on Saturday June 24, 2023 @04:33AM (#36456732)
Bundling does not inline all symbols into a single scope, tree shaking does. I was one of the people implementing tree shaking in the first Parcel bundler. https://github.com/parcel-bundler/parcel/pull/1135
Re:A large crash spike affecting Firefox users on Linux by uhryks on Saturday June 24, 2023 @09:31AM (#36458548)
Scope hoisting is the technique used there (it's in the title of your link) to simplify tree shaking a.k.a dead code elimination. Also yeah it's unlikely to be what's happening in that bug due to Google using Closure compiler.