Why aren't "mach-nominated" style versions offered from official Zig?

Do you know if there is a reason we’re on this SSG for the site?

qq about this - is there any plan to use a more full-featured dependency specifier?Something like what python uses (PEP 508 has the grammar).
These strings look like -
requests (>=2.23.0,<3.0.0)
beepboop = ">= 1.2, < 1.5, !=1.2.2"
python = "^3.8"

Currently we are on GitHub - kristoff-it/zine: Fast, Scalable, Flexible Static Site Generator (SSG) which was written with one of the goals to remake ziglang.org in it.

That’s interesting. Nothing that can’t be worked around with HTMX hopefully.

I think more likely aproach is to just write custom js to do that. This is how autodocs work

Yeah, that’s how my big “get zig” button’s OS detection pulls the right version, but HTMX will become very useful if the zig homepage ever wants to start hitting endpoints, such as for packages, versions, etc. Even before that extra stuff, a few features I can see being very useful, and definitely not something a sane person would wanna handroll in JS.

For such “top-level-projects” I made the decision to only support the nightly version and not bother with stable. If support for 0.13.0 is desired I would go back to the last commit that worked with 0.13.0 and create a branch from that.

When compiling top-level projects it’s quite trivial to switch Zig versions (and the matching language server version) with a version manager like zvm (sadly that’s not in brew yet though):

(this is also the reason why I’m not a big fan of using a manually downloaded and installed Zig version - like that ‘download button’, it’s just too much hassle) - if anything, that Download Button should download and install a version manager like zvm, not an actual Zig toolchain)

3 Likes

First off don’t smack talk the button yet. It is going to be a glorious button! It isn’t just going to be a boring static link button. It is a clever button. Embrace the button.

As far as downloading zvm instead of just the latest tagged release… against the spirit of the button. Almost. If you indicate you use VSCode it’ll ship you to the marketplace page for the official extension.

Otherwise the goal remains minmaxing {no Zig} → click → clickclick → {Zig}. The placement and visibility of the new text also clearly signals that the official stance of the Zig lang team is you should be using the tagged releases for projects.

Besides the PR will get rejected anyways. but I wanna give it a try.

  • Jas
1 Like

why not both like https://rustup.rs/?

3 Likes