News for hackers. Stuff that matters.
Re:Large-Scale Automated Source Code Refactoring with OpenRe... by henning on Saturday August 14, 2021 @12:02AM (#28177790)
How does this compare to systems like https://coccinelle.gitlabpages.inria.fr/website/ ? What will happen if you try to refactor a large code base the size of the Linux kernel with this apparently Java-based tool?
Re:Large-Scale Automated Source Code Refactoring with OpenRe... by davvid on Saturday August 14, 2021 @12:32AM (#28177920)
Background for folks not familiar with cocinnelle: the Linux kernel has a fairly extensive cocinelle setup. Cocinelle has been leveraged extensively for large tree-wide code transformations in the kernel.

https://www.kernel.org/doc/html/latest/dev-tools/coccinelle....

Re:Large-Scale Automated Source Code Refactoring with OpenRe... by jkschneider on Saturday August 14, 2021 @12:12PM (#28181772)
OpenRewrite started at Netflix originally where it operated on Netflix's entire codebase (10s of thousands of repositories). The Moderne platform runs OpenRewrite recipes on hundreds of millions of lines of code.
Re:Large-Scale Automated Source Code Refactoring with OpenRe... by Zababa on Saturday August 14, 2021 @07:19PM (#28184764)
Very naive question, why does Netflix has so much code? I don't mean it in a "they could do it with way less" way, I'm geniunly curious about all of the things that they are doing.
Re:Large-Scale Automated Source Code Refactoring with OpenRe... by jkschneider on Saturday August 14, 2021 @09:17PM (#28185404)
Not a naive question at all!

One of our early partners has over 250 million lines of Java code alone. I don't think they're unusual. Every large scale organization we've worked with has a similar situation though the circumstances are different.

For Netflix, the easy answer is probably "microservices", but also there is more going on behind the scenes than it seems. They had to become at least partially their own content producer, so there is a great deal of tech around the studio itself. There's a rich data platform. There are 200+ repositories in Netflix OSS, 100+ in Netflix Skunkworks, and then there are the larger projects like Spinnaker (50+ repositories).

Software engineering has reached a level of industrialization, it's not cottage industry anymore. And that's why I'm so fascinated by this project -- software supply chain activities are masquerading as technical debt, and engineers are left with the responsibility of it. It's time we start applying automation where we can.

Re:Large-Scale Automated Source Code Refactoring with OpenRe... by Zababa on Sunday August 15, 2021 @11:05AM (#28189324)
Thanks for the detailed answer. And thanks for the new perspective, I've never heard it put this way before and it's very interesting.