libxev
unzig
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.
libxev
-
libxev: A cross-platform, high-performance event loop
io_uring support is obviously great & excellent, fulfills the "high performance" part well.
i was not expecting "Wasm + WASI" support at all. that's very cool. implementation is wasi_poll.zig (https://github.com/mitchellh/libxev/blob/main/src/backend/wa...). not to be unkind, but this makes me wonder very much if WASI is already missing the mark, if polling is the solution offered.
gotta say, this is some very understandable clean code. further enhancing my sense that i really ought be playing with zig.
- Show HN: Async tasks in 350 lines of C
-
Epoll: The API that powers the modern internet (2022)
You might be interested in a pure Zig implementation of these primitives by Mitchell in his libxev library: https://github.com/mitchellh/libxev
-
Zig: The Modern Alternative to C
https://github.com/mitchellh/libxev
- one from the Tigerbeetle DB
- Libxev: A cross-platform, high-performance event loop
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
What are some alternatives?
async_io_uring - An event loop in Zig using io_uring and coroutines
bitcoin-bash-tools - Set of bitcoin-related bash functions
sokol-tools - Command line tools for use with sokol headers
aviary.sh - Minimal distributed configuration management in bash
http.zig - An HTTP/1.1 server for zig
bash2048 - Bash implementation of 2048 game
zig-pico - Not so scuffed Zig project for using the Raspberry Pi Pico SDK
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
mach - zig game engine & graphics toolkit
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.