unzig
kv-bash
unzig | kv-bash | |
---|---|---|
6 | 1 | |
11 | 100 | |
- | - | |
0.0 | 10.0 | |
about 1 year ago | over 1 year ago | |
Zig | Shell | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
unzig
- Show HN: Zig Without Unused Variable Errors
-
Added a flag to remove unused variable error
I really like Zig but the unused variable error really gets in the way of how I usually do exploratory code. I've managed to produce a forked version from release 0.10.1 that adds an --allow-unused flag which disables the error. The code is hacky but it seems to work. I didn't understand a lot about Zig's caching mechanism so I might have been a little aggressive in invalidating caches when the flag is switched on and off.
-
What “sucks” about Zig?
I originally pulled it from here: https://github.com/markisus/unzig
-
Zig: The Modern Alternative to C
It already exists. You’ll just have to compile it yourself which is relatively easy.
https://github.com/markisus/unzig
- Show HN: Zig Without Unused Variable Error
-
Compiling Zig with Low RAM (16GB)?
I predict / hope that in the future, the community will just host patched binaries somewhere, but for now I have gone ahead and created a patch repo whose sole purpose is to remove the unused variable error where you still have to rebuild from source. https://github.com/markisus/unzig
kv-bash
-
Zig: The Modern Alternative to C
In a way I feel that everything is an alternative to everything and at the same time nothing is.
As you said it all depends on the circumstances. But I don't really see Zig competing with Go. They both can do mostly the same things, but they both approach them from quite a different sides.
For example bash is being used in:
- gaming (https://github.com/JosefZIla/bash2048)
- web apps (https://github.com/avleen/bashttpd)
- networking
- CLIs
- distributed systems (https://github.com/frameable/aviary.sh)
- crypto (https://armedia.com/blog/blockchain-program-written-bash/ https://github.com/grondilu/bitcoin-bash-tools)
- systems programming (https://github.com/damphat/kv-bash)
- language tooling
Some of those make more sense than others. However we all talk about a mythical general case. For every language there are niches that are covered by it more significantly. For Go it would probably be web backend. It doesn't mean it is only suited to this one niche, it is used in everything. In general it is used there more. I don't believe that Rust sees the most use in the same niche to the same order that Go sees it.
Is Rust or Zig an alternative to php, awk or Lisp? In practice I don't really think so.
I guess it all depends on one's definition of "alternative". I don't think that a statistical Go programmer would see Zig as a real alternative. Statistical C programmer might see it as a Go alternative, but that probably would not be a question he would ask.
What are some alternatives?
libxev - libxev is a cross-platform, high-performance event loop that provides abstractions for non-blocking IO, timers, events, and more and works on Linux (io_uring or epoll), macOS (kqueue), and Wasm + WASI. Available as both a Zig and C API.
aviary.sh - Minimal distributed configuration management in bash
bitcoin-bash-tools - Set of bitcoin-related bash functions
bash2048 - Bash implementation of 2048 game
v - Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io
tigerbeetle - The distributed financial transactions database designed for mission critical safety and performance.
zig - General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
zig-bootstrap - take off every zig