News for hackers. Stuff that matters.
Re:I Hope Rust Does Not Oxidize Everything by olalonde on Tuesday July 16, 2024 @05:27AM (#40974855)
Maybe that will sound banal to some but C would be so much more enjoyable to me if it had a "cargo" system and no implicit imports.
Re:I Hope Rust Does Not Oxidize Everything by rational_indian on Tuesday July 16, 2024 @05:43AM (#40974930)
That's the problem with C. It cannot have a sane cargo like system. The language is not built for writing libraries. There is a reason why everyone keeps reinventing the wheel when it comes to datastructures in C. Where is STL for C?
Re:I Hope Rust Does Not Oxidize Everything by Ragnarork on Tuesday July 16, 2024 @06:21AM (#40975122)
The closest is GLib and it's absolutely not fun to work with.
Re:I Hope Rust Does Not Oxidize Everything by simon_void on Tuesday July 16, 2024 @11:18AM (#40977374)
you could use the Zig build system as your C build system. See https://zig.news/kristoff/make-zig-your-c-c-build-system-28g...
Re:I Hope Rust Does Not Oxidize Everything by rational_indian on Tuesday July 16, 2024 @01:33PM (#40978530)
Cargo is just half the story. The other half is rust itself. It is an excellent language for writing abstractions.
Re:I Hope Rust Does Not Oxidize Everything by dragonelite on Tuesday July 16, 2024 @05:56AM (#40974999)
That's why i like zig it has at least the very basic with build.zig for build script. You have build.zig.zon for build.zig dependencies.