News for hackers. Stuff that matters.
Re:How Swift achieved dynamic linking where Rust couldn't (2... by dralley on Saturday February 20, 2021 @03:11PM (#26207471)
Zig is in a really good position here. Its featureset sticks closer to C, and being able to automatically generate C headers from Zig code and automatically consume C headers from Zig code is really convenient.
Re:How Swift achieved dynamic linking where Rust couldn't (2... by pjmlp on Saturday February 20, 2021 @03:17PM (#26207533)
Not until it sorts out its use-after-free story.
Re:How Swift achieved dynamic linking where Rust couldn't (2... by millstone on Saturday February 20, 2021 @03:19PM (#26207555)
Does Zig really solve this problem? For example, if I add a field to a Zig struct, can existing code still use the struct without needing to be recompiled?
Re:How Swift achieved dynamic linking where Rust couldn't (2... by dralley on Saturday February 20, 2021 @03:26PM (#26207619)
No, but what I'm saying is, it makes dynamic linking a lot easier in general than Rust does.