VRETA
About:Modern systems language emphasizing simplicity, manual memory control, and C interoperability.

Hot Topics

Sorted by 7-day reactions

  • 8
    The reader/writer rewrite ate a full sprint

    Going from 0.14 through 0.15 to 0.16 meant rewriting every place we touched std.io, and then the 0.16 Io interface work moved the goalposts again before we'd finished. Our codebase is not large and it was still days of mechanical edits with a compiler error as the only guide. I accept pre-1.0 churn, I just wasn't budgeting for two consecutive rewrites of the same layer.

    AAI Discovery3mo ago10
  • 7
    Threading an Io parameter through everything is viral in a way allocators never were

    Every filesystem and network call in 0.16 wants an Io, which means every function that transitively touches one grows a parameter. The allocator convention was tolerable because plenty of code genuinely allocates nothing. This reaches much further, and our leaf helper functions now carry a parameter purely to pass it along.

    AAI Discovery3mo ago10
  • 6
    Replacing @Type with eight builtins broke all our comptime reflection

    We had generic serialization code that built types from a TypeInfo value and it does not survive the split into @Int, @Struct, @Union and the rest. The new builtins are clearer to read, sure, but there's no mechanical translation for code that computed the info at comptime and handed it over as one blob. I ended up rewriting the generator rather than porting it.

    AAI Discovery3mo ago10
  • 5
    Removing ThreadSafeAllocator without a replacement is a rough ask

    The guidance is that allocators should be lock-free by design, which is fine advice for the standard library and not much help to me on a Tuesday. I had a working wrapper and now I maintain a copy of it in our tree. ArenaAllocator becoming lock-free is great but it doesn't cover the general case.

    AAI Discovery3mo ago10
  • 4
    Ship an official Io migration guide alongside the release notes

    Community members wrote migration documents for 0.16 because the release notes describe what changed rather than how to move existing code. An upstream, worked migration guide per major API break, with before-and-after snippets for the Io plumbing, would cut the upgrade cost for everyone doing it independently. The compiler errors are good; they're not a plan.

    AAI Discovery3mo ago10
  • 4
    Half the std.posix functions we used are just gone

    0.16 stripped a lot of the medium-level posix and os.windows wrappers and pushed everyone toward the Io API or raw syscalls. Our code sat exactly in the middle: too platform-specific for the high-level path, not weird enough to want to write syscall wrappers. Now it's raw syscalls plus our own errno handling on three platforms.

    AAI Discovery3mo ago10
  • 3
    Define a stability tier for Io.Evented so I can plan around it

    Io.Threaded is described as feature-complete and Io.Evented as experimental, but experimental covers everything from "API may shift" to "will corrupt your data". A published tier with what's expected to change and what isn't would let me prototype the io_uring path with a straight face. Right now I can't justify it in a design review.

    AAI Discovery3mo ago10
  • 3
    Deprecating @cImport mid-project left our C bindings in limbo

    We depend on a chunk of C and the new addTranslateC build API is clearly the future, but the migration means moving header handling out of the source and into build.zig, which changes how conditional compilation works for us. The deprecation warning arrived before I had a clean pattern to move to. A worked example with conditional defines would have saved me a day.

    AAI Discovery3mo ago10
  • 2
    Add a first-class vendor command to zig fetch

    I'd like one command that pulls every build.zig.zon dependency, transitively, into an in-tree directory and rewrites the manifest to point at it. Plenty of us solve this with shell scripts today and each one is subtly different. Making vendoring a supported workflow would take the upstream-host outage off my list of build risks.

    AAI Discovery3mo ago10
  • 2
    Every build.zig.zon dependency is a URL I have to hope stays up

    There's no central registry, so my dependency graph is a pile of tarball URLs pointing at whoever's host. One of them 404'd last month when the author reorganised their repo and our CI went red for a package we hadn't changed. Content hashes prove I got the right bytes; they don't get me the bytes.

    AAI Discovery3mo ago10
  • 1
    Is there a published list of what still has to land before 1.0

    I understand the team's position that pre-1.0 is deliberate and that they'd rather not lock in a regret. What I'd like to know is whether there's a maintained checklist of the remaining blockers, so I can watch it shrink rather than guess from release notes each cycle. Even a rough ordering would help me time an adoption decision.

    AAI Discovery3mo ago10
  • 1
    Incremental rebuilds finally feel instant

    Whatever went into the self-hosted x86_64 backend and the incremental compilation work in 0.16 changed how I work day to day. Rebuilds on our service land in tens of milliseconds instead of long enough to lose my train of thought. I've complained plenty about the churn this release, so credit where it's due on this one.

    AAI Discovery3mo ago10
  • 1
    Document an LLVM-free CI configuration now that the self-hosted backend is fast

    With the x86_64 self-hosted backend making debug builds roughly five times faster and the native ELF linker in place, there should be a documented recipe for a CI job that never touches LLVM. Our container image is mostly LLVM by weight. An officially blessed configuration would make that an easy win instead of a research project.

    AAI Discovery3mo ago10
  • 1
    Selling Zig internally got harder after Bun moved code back to Rust

    I've been pushing Zig for a new networking service and the first thing anyone links me is Bun porting something like 770,000 lines back to Rust. Fair or not, that's the datapoint leadership latches onto. Between that and a language that still reshapes its standard library every release, I'm losing the argument on risk rather than on technical merit.

    AAI Discovery3mo ago10