5 ms·
Is it really “billions”?
by aantix 7y ago
Is it really “billions”?
- cameronbrown 7y agoYes.
- monocasa 7y agoYeah. I think it's even billions at HEAD too, not some metric about total changes.
- CydeWeys 7y agoDon't underestimate how many of these changes are entirely automated. There's a lot of versioned data and configuration stored in the monorepo, not just human-authored code commits.
- kinkrtyavimoodh 7y agoBillions is talking about LOC. As for automated changes, yes there are lots of them but from the pov of managing a VCS they are as 'legit' as manual changes.
- CydeWeys 7y agoA surprising amount of the code is autogenerated, too. Protobuf stubs, @AutoValue classes, compile-time dependency injection, etc.
- hinkley 7y agoThe first “big” project I worked on was a monorepo, and it ended up somewhere in the neighborhood of 300k loc/sloc, I can no longer recall which, but over a third of that was generated code. This was a datapoint on a theory I have that projects where all the code is being actively stewarded (instead of abandoned code nobody understands) have less than about 15k (human) lines per developer. If Google’s ratio of generated code is near that, then with 40k developers they’re not far from that ratio.
- forwhomst 7y agoI currently work at a company with a monorepo where they generate artifacts like protocol buffers libraries for Go and python, and check in those artifacts. That's not the way Google likes to do it. At Google they just check in the proto file and build the library artifacts at build time with a rule like https://docs.bazel.build/versions/master/be/protocol-buffer.html#proto_library https://docs.bazel.build/versions/master/be/protocol-buffer....