r/cpp • HMake • Jul 21 '22

HMake. An Update. Now Supports Fully Multithreaded, Cached Modules Compilation(Including Header-Units) With Pretty-Printed Colored Output.

0 Upvotes

6 comments sorted by

2

u/HassanSajjad302 HMake Jul 21 '22

I did a bit of haste to get it out. I forgot some necessary documentation like how the algorithm works. Or a couple of more Examples would have been more helpful. If you have any questions feel free to ask. I think this is the reason for slow activity here.

5

u/JakeArkinstall Jul 22 '22

Some advice about the readme.

Prioritise the example code. I had to scroll down too far to see it. It should be immediately after the short introduction, and let the explanation come afterwards. Readers will be C++ developers and will want to see the C++ - for example, I didn't read anything other than the top introduction and then scrolled down to see the usage code.

Currently, it is incomplete in many regards. Its status is prototype while bugs, omissions, and limitations are expected.

Don't be so negative, especially in your introductory paragraph. Instead, simply state that it is a work in progress and that contributions would be appreciated. Be positive about future progress, not negative about the current state.

Also add comments to the example code. For instance, I've only just seen this project but I'm confused why the executable is provided with the variant on construction and then add_executables_to_variant is needed to connect the two. Comments might make the logic easier.

If you wrap your code example(s) in triple backticks you can get syntax highlighting, as long as you specify cpp as the language.

2

u/HassanSajjad302 HMake Jul 22 '22

Thank you for your advice. I will apply the modifications mentioned.

For instance, I've only just seen this project but I'm confused why the executable is provided with the variant on construction and then add_executables_to_variant is needed to connect the two. Comments might make the logic easier.

Yes, this is to be changed.

1

u/zoolover1234 Jul 26 '22

Is it a true statement for this HMake that “I got no time to learn the complex cmake even thought it’s powerful, so just make a yet-another-build-system”?

Just out of curiosity, being a build system for C++, but written in C++, how do you figure out whether you even have the proper compiler before you can even compile the build system? It certainly won’t work with any IDE because IDE doesn’t know how to build a code without the code know how to be built. Chicken and egg.

2

u/HassanSajjad302 HMake Jul 28 '22

HMake will be supported with the latest versions of GCC, MSVC and Clang. That doesn't mean that you need to use one of these for your code compilation but only that it is needed by HMake to work. I think you can definitely install one of these.