Live data from Hacker News

Zig by Example

github.com

11–20 of 109 posts

Re: Zig by Example

#12

I like Zig but stopped learning it when I realized that all project based on it requires a specific version of the compiler to build.

I would be interested to learn why that is a problem. As a new Rust learner, I am curious.

Re: Zig by Example

#13

I like Zig but stopped learning it when I realized that all project based on it requires a specific version of the compiler to build.

I would be interested to learn why that is a problem. As a new Rust learner, I am curious.

It might not be the version you have installed, or the same version as another project you want to glue together into a single application.

Re: Zig by Example

#15

I like Zig but stopped learning it when I realized that all project based on it requires a specific version of the compiler to build.

The situation will improve once they release a stable 1.0 version.

Until then, use mise, nix, docker, or something similar. (You should be doing this anyway for projects in all languages if you care about them building on anyone's machine other than your own.)

Re: Zig by Example

#16

Looking for a resource (MCP, CLI, Skill, ...) that would improve Zig support in LLMs. Currently, doing something with Zig as a target language would spend many more tokens and produce subpar results.

If you worked through this and learnt to use zig, your token usage would be even lower!

Re: Zig by Example

#17

Looking for a resource (MCP, CLI, Skill, ...) that would improve Zig support in LLMs. Currently, doing something with Zig as a target language would spend many more tokens and produce subpar results.

If you worked through this and learnt to use zig, your token usage would be even lower!

Don't be ridiculous. Learning? That's for the dinosaurs. Just throw an llm at the problem!

Re: Zig by Example

#19

I like Zig but stopped learning it when I realized that all project based on it requires a specific version of the compiler to build.

I would be interested to learn why that is a problem. As a new Rust learner, I am curious.

Rust has editions, which can be mixed and matched between different dependencies. AFAIK Zig does not have this.
Post reply on HN