News for hackers. Stuff that matters.
Re:Tiny Treeshaker: JavaScript tree shaking in 200 lines of ... by specialist on Tuesday June 29, 2021 @09:23AM (#27675430)
Ages ago, I dimly recall debug tracing the classloader to see what is actually used. Something about troubleshooting Spring or some such.

Same strategy could be used for "tree shaking"?

I'll ponder how unused functions might be identified (during runtime).

Re:Tiny Treeshaker: JavaScript tree shaking in 200 lines of ... by ygra on Tuesday June 29, 2021 @09:34AM (#27675546)
Well, there are techniques. One of the hackier ones is probably the one described here: https://fgiesen.wordpress.com/2012/04/08/metaprogramming-for...