News for hackers. Stuff that matters.
Re:How to Structure C Projects: These Best Practices Worked ... by flykespice on Friday March 08, 2024 @09:38AM (#39641424)
> Have you tried using a more modern tool like Meson? It is more comparable to Cargo.

Not comparable at all.

The difference is Cargo is the official standard package manager of the Rust language. Meson is one among the sea of incompatible build systems for the C language.

Re:How to Structure C Projects: These Best Practices Worked ... by tialaramex on Friday March 08, 2024 @10:29AM (#39641917)
Right, crucially cargo is in the box with your Rust compiler, you have to go out of your way to have just the actual Rust compiler but not cargo.

As with the lesson gofmt taught, you must supply the basic feature in the box. Humans are lazy, so if it doesn't come in the box only people who know they can't live without it will even bother, put it in the box and only people who can't live with it will remove it.

Re:How to Structure C Projects: These Best Practices Worked ... by binary132 on Friday March 08, 2024 @09:43AM (#39641470)
That's why we need a new build system / package manager for C. /s (but not really)
Re:How to Structure C Projects: These Best Practices Worked ... by funnyflywheel on Friday March 08, 2024 @09:50AM (#39641533)
https://xkcd.com/927 comes to mind.
Re:How to Structure C Projects: These Best Practices Worked ... by binary132 on Friday March 08, 2024 @01:20PM (#39644110)
Yeah, that's the joke. But I mean, you have to admit the status quo isn't that good. Something really very much better might be able to claw its way to the top.
Re:How to Structure C Projects: These Best Practices Worked ... by keybored on Friday March 08, 2024 @02:14PM (#39644954)
Please perish the thought.
Re:How to Structure C Projects: These Best Practices Worked ... by humanrebar on Friday March 08, 2024 @01:10PM (#39643953)
But C ships to all sorts of places, so why would C limit its options by limiting its support to its own package manager?
Re:How to Structure C Projects: These Best Practices Worked ... by kerkeslager on Friday March 08, 2024 @04:00PM (#39646416)
How would having a builtin build system (I'm not even asking for a package manager) limit where C can ship to?