r/cpp • build2 • Aug 05 '26

Faster Than Ninja

https://build2.org/blog/faster-than-ninja.xhtml
65 Upvotes

69 comments sorted by

View all comments

Show parent comment

-3

u/TheRavagerSw Aug 05 '26

I disagree, headers make code organization a mess, eventually modules will take over.

With llm tools porting existing libs to modules is easier than ever

7

u/shadowndacorner Aug 05 '26

In fairness, "eventually" is theoretically later than "2040".

4

u/mapronV Aug 05 '26

Yeah, I am very proud of my grandchildren not caring about header files.

1

u/13steinj Aug 06 '26 edited Aug 06 '26

Fable and Sol both were unable to one-shot "replace std::format with fmt::format," on a relatively small project.

I was able to with 4 (greps+pipes+perl -p)s. E: before someone asks, at current pricing I think it would still be cheaper to let Fable/Sol cycle until it got it. But I wanted some determinism here.

I dread to think how an LLM would fumble modules, which are more involved if you want to get any benefit.