Elektrine lite

← Feed

@desttinghim@gamedev.lgbt

2026-03-24 02:35 UTC

@lunathemoongirl@cailincat.cloud I'm a big fan of zig and have written quite a bit of code in it. Big changes are still happening in the standard library and language. The next major release (0.16.0) will introduce a new Io & async API, and the current release (0.15.2) introduced a streaming reader/writer api. I would say Zig feels like a modern version of C, with many of the jagged edges rounded off. Precision, verbosity, and explicitness are preferred over brevity and convenience.

Replies (1)

  • @desttinghim@gamedev.lgbt 2026-03-24 02:49

    @lunathemoongirl@cailincat.cloud I am generally a fan of the explicitness, but one area it can be annoying is with math. No operator overloading means geometric vector math is function/method calls. On the plus side, math is checked for overflow/underflow by default and zig has separate operators for wrapping and saturating arithmetic; I don't use them every day but it is quite handy when you do need them.

    Open ##4794743