Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> These anti-bloat libraries

This probably isn't true, but more importantly this statement misses the point because you're bundling a bunch of stuff into the "anti-bloat libs" bucket with no consideration for the individual architectures of each.

To come back to the example above—React—the core react library is 3.2kb[0] gzipped. (and it hasn't died out). What I'm selectively omitting here is the architectural detail that React have separated their API implementation (core), their renderers (DOM, Server, Native) and their templating (JSX), all of which are loosely coupled optional components. That's a very effective approach to omitting bloat, and is a model that can be copied in an approximately compatible way (see e.g. the anti-bloat Preact and Inferno, further examples of anti-bloat approaches that have not "died out")

[0] https://unpkg.com/react@17.0.1/cjs/react.production.min.js

[1] https://preactjs.com/

[2] https://infernojs.org/



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: