←back to thread

Zig is hard but worth it

(ratfactor.com)
401 points signa11 | 1 comments | | HN request time: 0s | source
Show context
ok123456 ◴[] No.36152055[source]
One annoying thing I ran into when trying zig is they don't distribute debs any more for Debian distributions. They just tell you to use a snap. I don't have snap, and don't want it.

Compiling it requires the latest llvm toolchian (16), which is only realistically going to be available as a package if you're on a bleeding edge distribution.

replies(4): >>36152162 #>>36152563 #>>36154601 #>>36158861 #
pacaro ◴[] No.36152162[source]
I understand this, but haven't found this to be an issue personally. I just download the pre built tarball, expand it, make sure that /opt/zig-latest symlinks to the right folder, and setup path

That's more work than apt-get install for sure, but not so much more

replies(1): >>36154333 #
1. hellcow ◴[] No.36154333[source]
You can also use something like zigup to make fetching the latest master/managing multiple versions easier.