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

I provided precisely the commands you need to run to get the output I got. Not only did you not run 'cargo vendor', but you're using 'cloc' instead of 'tokei', which has a less precise line counting algorithm.


but, cargo vendor will fetch the dependencies, which should definitely not be counted as part of the source code of a given program ? else every program should also count the kernel, graphics driver, etc.. which would make it a pretty useless metric


This conversation is super frustrating. This is occurring in the context of compilation speed. So if you're measuring compilation speed by LoC (which is itself just a heuristic), then you should, at minimum, count as many lines of code that are actually being compiled. That's what `cargo vendor` does: it fetches the source code of all dependencies that are needed to build the project.

You are losing sight of the forest through the trees here. This isn't an abstract argument about what is or isn't part of a program. This is a concrete measurement heuristic that has precisely defined inputs.


.. you mean that the dependencies aren't downloaded as binaries but compiled from source every time ? damn




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

Search: