News for hackers. Stuff that matters.
Re:Falsehoods programmers believe about build systems (2012) by rumanator on Saturday July 18, 2020 @08:53PM (#23886086)
Cake came into existence because all other alternatives were pure crap.

And since cmake's inception, all cmake alternatives are still pure crap.

The definition of "well" is relative.

Re:Falsehoods programmers believe about build systems (2012) by btschaegg on Sunday July 19, 2020 @03:43AM (#23887724)
> And since cmake's inception, all cmake alternatives are still pure crap.

…including CMake. :-)

Although, to be fair, I think CMake did at least achieve to prove that creating a turing complete "jack of all trades" meta build system is not a good idea in pretty much every case (although I'd argue that boost had done that well in advance).

It's too sad that with the myriad of legacy patterns around in the C/C++ build space (in production), there is pretty much 0 chance of simplifying the problem for a majority of cases instead.

Re:Falsehoods programmers believe about build systems (2012) by rumanator on Sunday July 19, 2020 @06:30AM (#23888385)
Yeah cmake is pretty crappy, and it's a shame that nothing better popped up in the last, say, 20 years.

However, to be fair cmake's main problem is it's appalingly poor documentation and user experience. It's very telling that since the release of cmake 3 the main source of info on how to do cmake the right way is not anythig churned out by cmake, whose docs are pretty much unintelligible, but random blog posts that manage to put together basic idiomatic code snippets.

This poor state of affairs is reflected in collaborative sources of info such as stack overflow, where well-meaning users reiterate poor or straight-out wrong ways of doing things mainly because they don't and can't know better.

Re:Falsehoods programmers believe about build systems (2012) by jnxx on Monday July 20, 2020 @07:14AM (#23896666)
> cmake's main problem is it's appalingly poor documentation and user experience.

"I thought I was dumb until I realized it's the book".

Top Amazon review of the top book on CMake. And I am still wondering whether it is the book, or the tool.

Re:Falsehoods programmers believe about build systems (2012) by jnxx on Monday July 20, 2020 @07:12AM (#23896656)
So, while not just use distribution package creation and managing tools, like the Debian ones? Or even better Guix?
Re:Falsehoods programmers believe about build systems (2012) by btschaegg on Monday July 20, 2020 @08:42AM (#23897166)
As I said, to me the whole thing looks like a giant log jam made of bad tools causing other bad tools and there is no simple way of cleaning up the landscape without whipping out a chainsaw and breaking existing workflows and use cases first.

However, if you are in the privileged position of being able to address every use case by compiling and/or cross-compiling from a nix or Guix setup for a project, I'd certainly go with that, too.

The problem there is that this is likely never the case if you can't just containerize your application or prescribe which system it will run on -- which holds true for a lot of software.