by cinntaile · 4y ago · 0 comments
The hot paths in most important high-end computing are mostly quite efficient.
it’s hard to determine the lower bound on a lot of these things. in scientific computing (e.g. physics sims) i still run across a lot of runtime branching that could easily be compiled out if we were using languages that had stronger type systems/templates. we use linear approximations for a lot of things, but it’s been shown that smarter interpolation can let you decrease your resolution without losing accuracy/stability. there’s an easy 2x or more perf gain every time you do that successfully. there’s also the boundary conditions: we always simulate more volume of space than we’re actually interested in so as to avoid certain types of distortion (reflections from the boundary of the simulation). over time we’ve learned tricks for reducing those reflections: we’ve applied a lot of general-purpose optimizations, but there’s evidence that we can go further if we encode more simulation-specific information at these boundaries. this whole area has just been slow, steady, compounded optimizations.
i don’t work in ML, but i find it very unlikely that (a) optimizing neural networks is a completely solved problem or (b) that you all know how to train them using the fewest iterations.
you make sweeping statements that just aren't obvious to me.
Look at your average website with 85 megabytes of JavaScript and Bootstrap for the UI.
TreeShaking in theory can get rid of all that unneeded JS - and there should be something that can do it for CSS, too.
But most people aren't using it. And even if they did, there would still be a lot of bloat left over from using the libraries to make life a little bit easier.
Go to average midsize startup and the amount of this going on is multiplied exponentially by the number of developers.
There's not really a cure here.
There's not enough engineers that know how to do things absent these frameworks - that even if you do know - it's still not worth it because the people you'll be working with probably don't.