Urgent.News

What's breaking now, across thousands of outlets.

Tech

Zig 0.17.0 Release Notes

Zig 0.17.0, a general-purpose programming language and toolchain, has been released. This release is the result of 5 months of work by 206 contributors, spread across 925 commits. The development of Zig is funded by the Zig Software Foundation, a 501(c)(3) non-profit organization.

The new version introduces several significant changes. The @bitCast builtin has been modified to reinterpret the logical bit representation of a value as a different type, providing an endianness-agnostic operation. This change may break existing code involving array or vector types, so it is recommended to audit such uses when upgrading to Zig 0.17.0. The definition of @bitCast no longer permits casts involving extern struct or extern union types.

Additionally, several builtins have been deprecated or removed in this release. @cImport has been deprecated and removed, and std.Build.Step.TranslateC is now deprecated in favor of an explicit package dependency on the official ZSF translate-c package. New builtins @backingInt and @fromBackingInt have been introduced, replacing the now-deprecated @intFromEnum and @enumFromInt builtins.

Written by urgent.news from Lobsters's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at ziglang.org →

More in Tech

More from Friday 2 October →