Mastodon Feed: Post

Mastodon Feed

dysfun@treehouse.systems ("gaytabase") wrote:

so, looking at zig, there are a few problems for what i want it for that stick out, mostly in terms of things not (yet) supported.

IFUNC support will happen. sometime.

PEXT/PDEP might happen, but are trivially worked around with inline assembly. or, like... my c library for pext and pdep. but that comes with overhead you don't always want to pay for - it's to make it easy where a better solution isn't plausible.

async i/o support seems to be coming in 0.17. the big community alternative is written by a loud slop machine advocate, so i'm not going there and honestly if i'm going to have to write this shit myself i'm just going to use c because it's easier than trying to learn a language and build a bridge at the same time.

this brings us on to libraries, because literally the first community library i looked at had clod as a contributor. zig itself has an anti-slop stance, but some of the community are big fans. this means libraries are going to be even thinner on the ground than they first appear (which is fairly thin on the ground actually). i know, i can just use c libraries, but i want things like performance data structures i don't have to rewrite for every type i want to store.