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

3.6M lines of code seems so much that it sets off my "are you sure that's counted right?" alarm.

I'm not very familiar with Rust, but all of Go is 1.6M lines of Go code. This includes the compiler, stdlib, tests for it all: the lot.

Not that I doubt the sincerity of the author of course, but maybe some irrelevant things are counted? Or things are counted more than once? Or the download tool does the wrong thing? Or there's tons of generated code (syscalls?)? Or ... something? I just find it hard to believe that some dependencies for web stuff in Rust is twice all of Go.



This other person wrote their own async runtime and web server from scratch to reduce bloat, and their rust app still vendors 2 million lines of code:

https://news.ycombinator.com/item?id=43942055


Sounds like a lot is just (generated) syscall stuff? Either way, that doesn't really explain anything.


That's one part of Rust bloat and slow compilation times.

But there's still a ton of dependency code there.




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

Search: