Live data from Hacker News

Zig 0.14.0 Release Notes

ziglang.org

1–10 of 19 posts

Re: Zig 0.14.0 Release Notes

#7
Thank you, so many great features. My personal favorite is .declLiteral() syntax, which makes webserver route-configuration very easy and readable!

If you are ever in temptation to do a builder for internal DSL, .declLiteral() might be a better way. I think it might be very cool for GUI structures too.

I did a quick PoC for SQL query building, but unfortunately, any more advanced queries are better to copy & serialize their arguments for safety reasons, so not that useful there, but still, very hyped about this particular thing.

Re: Zig 0.14.0 Release Notes

#8

Great work on the self-hosted (no llvm) compiler and linker ! Is there somebody that can explain to me the value of incremental compilation? How is this different than CMake caching, for example?

My understanding is that Zig's incremental compilation will work on a much more granular level (i.e. functions, etc), so, for example, change one function and only that function (and its dependencies) will get recompiled/relinked (there's some linker trickery involved to avoid needing to relink everything IIUC).

More details here: https://ziggit.dev/t/how-zig-incremental-compilation-is-impl...

Re: Zig 0.14.0 Release Notes

#9

Great work on the self-hosted (no llvm) compiler and linker ! Is there somebody that can explain to me the value of incremental compilation? How is this different than CMake caching, for example?

My understanding is that Zig's incremental compilation will work on a much more granular level (i.e. functions, etc), so, for example, change one function and only that function (and its dependencies) will get recompiled/relinked (there's some linker trickery involved to avoid needing to relink everything IIUC). More details here: https://ziggit.dev/t/how-zig-incremental-compilation-is-impl...

Thanks for sharing !
Post reply on HN