5 ms·
How is that any different from build tooling for any other language? On my system, gcc with a bunch of commonly used dependencies requires just about the same s
by throwaway8941 6y ago
How is that any different from build tooling for any other language? On my system, gcc with a bunch of commonly used dependencies requires just about the same space (and it's a full Linux system, not a trimmed down container).
- parhamn 6y agoObvious: Because GCC is a compiler not a runtime. Node is a runtime. You (usually) don't ship the compiler. Less obvious: You probably wont need Nginx, especially for small static files, in languages where the native servers are fast enough (e.g. http.FileServer)
- abraham 6y agoFor a static site Node is a compiler not a runtime dependency.
- JustFinishedBSG 6y agoNode is a compiler too..
- masklinn 6y ago> How is that any different from build tooling for any other language? On the one hand yes, on the other hand it's a large amount of crap just to build a static site. `npm install @11ty/eleventy` pulls 600 packages and yields a 100MB node_modules folder. Even Sphinx (whose scope goes way beyond static site generation) "only" pulls in about 75MB worth of stuff (a third of that being Babel) over two dozen dependencies (half a dozen being sphinx's own subcomponents).
- parhamn 6y agoTo be fair, you still have a tree shaking and minification step that would reduce this quite a bit.
- ashishb 6y agoThe problem with JS ecosystem is less about size and more about the number of files.
- onion2k 6y agoThere are real problems with NPM, like the proliferation of packages that include things they shouldn't (babel included a picture of Guy Feiri for a while...) but the simplistic "there's a lot of files" argument is nonsense. If you need a lot of files then you need a lot of files.
- filleduchaos 6y ago> babel included a picture of Guy Feiri for a while... I refuse to believe that there are real people so eager to jump on the JS hate bandwagon that they unironically believed every word of an obviously satirical article. (babel has never included a picture of Guy Fieri.)
- oplav 6y agoIt might not have been a picture, but there was an ASCI art of his face that got checked in. https://github.com/babel/babel/blob/f36d07d30334f86412a9d2771880cb566a82a9b6/packages/babel-core/src/api/node.js https://github.com/babel/babel/blob/f36d07d30334f86412a9d277...
- filleduchaos 6y agoIt was checked in as a humorous response to the very satirical article I'm talking about, and never actually published to the package registry. But again, people are so ready to froth at the mouth wherever JS is even mildly concerned that I really shouldn't be surprised they'd take a meme that lasted for a handful of days seriously.
- indymike 6y agoUm... deploy the binary, don't build it in the image.
- andybak 6y agoA closer comparison - an average node folder weighs a lot more than an average Python virtualenv.