Hacker News new | ask | show | jobs
by rirze 4 days ago
> the llms write pretty good zig

I doubt this from my personal experience. Every week after a release, I see tweets complaining how AI wrote some depreciated code because Zig is making breaking changes every release. (They are valid in doing so, it's just not AI friendly yet)

1 comments

claude and codex are pretty quick to figure out "oh that's not a thing anymore" and figure out what they need to do?

i did a 0.15 -> 0.16 port of this library and most of it the LLM did

https://github.com/E-xyza/zigler

I agree, when agents realize they're using old Zig semantics, they will adapt.

Doesn't help the training sets that Zig changes frequently though.

nah. zig doesn't have weird macros/dsls and most zig authors are reasonably good about sticking to conventions. easiest thing to do is to put a "reminder here is changelog" in the agents file