News for hackers. Stuff that matters.
Re:Type-erased generic functions for C: A modest non-proposal by SubjectToChange on Friday October 04, 2024 @03:02PM (#41744550)
Rust ain't gonna displace C any time soon. For C++, you might have a better argument.

Incrementally replacing C code with Rust is far, far easier than C++. For instance, passing null-terminated strings to Rust code is quite straightforward, whereas a std::string absolutely is not.

C will live for a very long time, but C++ will live even longer. Maybe that sounds absurd, but the fact is that every major C compiler is written in C++, and the rest of the toolchain is moving that direction if it isn't already there.

Re:Type-erased generic functions for C: A modest non-proposal by bsder on Friday October 04, 2024 @05:17PM (#41745675)
> Incrementally replacing C code with Rust is far, far easier than C++.

And yet other languages manage to do that far better than Rust.

Interfacing to C from Zig is both pleasant and straightforward, for example.