News for hackers. Stuff that matters.
Re:DARPA project for automated translation from C to Rust (2... by heavyset_go on Wednesday October 01, 2025 @10:44PM (#45445877)
These are honest questions and not rhetorical: how does Zig handle versions with syntax changes or breaking changes?

Can you mix Zig libraries written X years ago with modern Zig? Will today's code work in 5-10 years if I want to use it in a project then?

Re:DARPA project for automated translation from C to Rust (2... by james7132 on Thursday October 02, 2025 @03:43AM (#45447200)
Zig has not hit 1.0 yet, and as recently as a few months ago completely reworked how every form of IO is written. AFAIK, this wasn't a syntax change, but it changed the function signature or type definition of every piece of code that reads/writes a file, establishes a connection, etc. At the current time, there is little guarantee that the code you write today will still work in 5-10 years time.
Re:DARPA project for automated translation from C to Rust (2... by heavyset_go on Thursday October 02, 2025 @06:34PM (#45456420)
Thanks for the info, I was hoping there was something like Rust's editions that would allow for mixing libraries with differing language versions that have breaking changes.