Zig Zig

Open-source Zig projects categorized as Zig | Edit details

Top 23 Zig Zig Projects

  • zig

    General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.

    Project mention: How to specify shared-library dependency? | reddit.com/r/learnprogramming | 2022-05-24

    zig has chosen to list its system dependencies like this, basically declaring what is required & its min version. you could include this in your repo's README.md file

  • river

    A dynamic tiling Wayland compositor (by riverwm)

    Project mention: World of Tanks not capturing mouse in battle | reddit.com/r/wine_gaming | 2022-05-21

    I'm using the latest/default lutris-fshack (7.2.0) wine build Lutris has to offer, on Void Linux with river. The game is graphically displayed via XWayland, though. Same results when running the installer with wine64.

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • ziglings

    Learn the Zig programming language by fixing tiny broken programs.

    Project mention: My views on Ziglang | dev.to | 2022-03-20

    Ziglings

  • zls

    Zig LSP implementation + Zig Language Server

    Project mention: Help building ZLS | reddit.com/r/Zig | 2022-05-09

    Commands: git clone --recurse-submodules https://github.com/zigtools/zls cd zls zig build -Drelease-safe

  • arocc

    A C compiler written in Zig.

    Project mention: Aro: A C compiler written in Zig | reddit.com/r/hackernews | 2022-02-05
  • kernel-zig

    :floppy_disk: hobby x86 kernel zig

    Project mention: A completely-from-scratch hobby operating system | news.ycombinator.com | 2021-10-31
  • gyro

    A Zig package manager with an index, build runner, and build dependencies.

    Project mention: Zig programming language 0.9.0 released | reddit.com/r/programming | 2021-12-21

    You can give gyro or zigmod a try.

  • SonarLint

    Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.

  • zigmod

    📦 A package manager for the Zig programming language.

    Project mention: Zigmod: A package manager, updated for 0.9.0 and more | reddit.com/r/Zig | 2021-12-24
  • zap

    An asynchronous runtime with a focus on performance and resource efficiency. (by kprotty)

    Project mention: Lock-free, allocation-free, efficient thread pool | news.ycombinator.com | 2021-09-13

    This actually can be at the level of a missed optimization. A run queue with a lock-shared queue amongs all the threads scales even worse than the tokio version. Sharding the run queues and changing the notification algorithm, even while keeping locks on the sharded queues improves throughput drastically.

    Tokio is an async runtime, but I don't see why being an async runtime should make it worse from a throughput perspective for a thread pool. I actually started on a Rust version [0] to test out this theory of whether async-rust was the culprit, but realized that I was being nerd-sniped [1] at this point and I should continue my Zig work instead. If you're still interested, I'm open to receiving PRs and questions on that if you want to see that in action.

    It's still correct to benchmark and compare tokio here given the scheduler I was designing was mean to be used with async tasks: a bunch of concurrent and small-executing work units. I mention this in the second paragraph of "Why Build Your Own?".

    The thread pool in the post is meant to be used to distribute I/O bound work. A friend of mine hooked up cross-platform I/O abstractions to the thread pool [2], benchmarked it against tokio to be have greater throughput and slightly worse tail latency under a local load [3]. The thread pool serves it's purpose and the quicksort benchmark is to show how schedulers behave under relatively concurrent work-loads. I could've used a benchmark with smaller tasks than the cpu-bound partition()/insertion_sort() but this worked as a common example.

    I've already mentioned why rayon isn't a good comparison: 1. It doesn't support async root concurrency. 2. scoped() waits for tasks to complete by either blocking the OS thread or using similar inline-scheduler-loop optimizations. This risks stack overflow and isn't available as a use case in other async runtimes due to primarily being a fork-join optimization.

    [0]: https://github.com/kprotty/zap/blob/blog-rust/src/thread_poo...

    [1]: https://xkcd.com/356/

    [2]: https://github.com/lithdew/hyperia

    [3]: https://gist.github.com/kprotty/5a41e9612657de00788478a7dde4...

  • zig-clap

    Simple command line argument parsing library

  • routez

    Http server for Zig

    Project mention: Zig web performance | reddit.com/r/Zig | 2022-05-12
  • mecha

    A parser combinator library for Zig (by Hejsil)

  • zig-network

    A smallest-common-subset of socket functions for crossplatform networking, TCP & UDP

    Project mention: What is a good resource guide to learning network programming in zig. I am reading Network Programming in C from Packt. I can do a @cImport but I want it to be purely in Zig. I for example in the text they use netdb, is there an equivalent in Zig? | reddit.com/r/Zig | 2022-05-09

    Try use: https://github.com/MasterQ32/zig-network

  • bog

    Small, strongly typed, embeddable language.

    Project mention: Bog – Small, strongly typed, embeddable language | news.ycombinator.com | 2022-04-20
  • zigup

    Download and manage zig compilers.

    Project mention: What would be the best way to keep my version of Zig up to date. | reddit.com/r/Zig | 2021-08-08

    That said, others have made nice tools like zigup if you want to update easily and/or switch between versions often: https://github.com/marler8997/zigup

  • zigimg

    Zig library for reading and writing different image formats

  • fundude

    Gameboy emulator: Zig -> wasm

    Project mention: Zig & Emscripten? | reddit.com/r/Zig | 2022-01-31

    I can't tell if this code actually works or not, but it also might be an example of getting zig code running in the browser as wasm: https://github.com/fengb/fundude

  • ziglyph

    Unicode text processing for the Zig programming language.

    Project mention: Failing to Learn Zig via Advent of Code | news.ycombinator.com | 2022-01-17

    > My big problem with Zig is that Andrew Kelley is promising a lot of features, but doesn't really deliver much.

    Have you, like, seen the release notes for 0.9.0?

    https://ziglang.org/download/0.9.0/release-notes.html

    > Zig still can't proper handle UTF-8 strings [1] in 2022

    There's plenty of discussion on the subject in basically every HN thread about Zig: the stdlib has some utf8 and wtf validation code, ziglyph implements the full unicode spec.

    https://github.com/jecolon/ziglyph

    You might not like how it's done, but its factually incorrect to state that Zig can't handle unicode.

    > In a `recent` interview[2], he claims that Zig is faster than C and Rust, but he refers to extremely short benchmarking that has almost no value in the real world.

    From my reddit reply to this same topic:

    This podcast interview might not be the best showcase of the practical implications of Zig's take on safety and performance. If you want something with more meat, I highly recommend Andrew's recent talk from Handmade Seattle, where he shows the work being done on the Zig self-hosted compiler.

    https://media.handmade-seattle.com/practical-data-oriented-d...

    Lots of bit fiddling that can't be fully proven safe statically, but then you get a compiler capable of compiling Zig code stupidly fast, and that's even without factoring in incremental compilation with in-place binary patching, with which we're aiming for sub-millisecond rebuilds of arbitrarily large projects.

    > The ecosystem for zig is insignificant now and a stable release would help the language.

    I hope you don't mind if we don't take this advice, given the overall tone of your post.

  • zhp

    A Http server written in Zig

    Project mention: Zig web performance | reddit.com/r/Zig | 2022-05-12
  • waylock

    A small screenlocker for wayland compositors

    Project mention: Can KScreenLocker and SDDM merged into one single program? | reddit.com/r/kde | 2022-01-09

    I meant that a standard of some sort is probably needed to handle both the desktop environment telling the display manager to lock the screen AND allowing said display manager to take over the screen and lock it. On Wayland at the moment I'm not aware of any screen locker that isn't part of the DE itself that works on GNOME or KDE (I only know of swaylock and waylock, and both require protocols that are only implemented by wlroots based compositors, at least according to Waylock's readme).

  • fastfilter

    fastfilter: Binary fuse & xor filters for Zig (faster and smaller than bloom filters)

  • zig-okredis

    Zero-allocation Client for Redis 6+

  • zig-ecs

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-05-24.

Zig Zig related posts

Index

What are some of the best open-source Zig projects in Zig? This list will help you:

Project Stars
1 zig 13,820
2 river 1,578
3 ziglings 1,372
4 zls 816
5 arocc 347
6 kernel-zig 347
7 gyro 334
8 zigmod 275
9 zap 257
10 zig-clap 250
11 routez 181
12 mecha 171
13 zig-network 153
14 bog 148
15 zigup 145
16 zigimg 133
17 fundude 127
18 ziglyph 126
19 zhp 118
20 waylock 116
21 fastfilter 114
22 zig-okredis 112
23 zig-ecs 108
Find remote jobs at our new job board 99remotejobs.com. There are 7 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com