zig-package

Open-source projects categorized as zig-package
Language: + Zig + C + C#

Top 23 zig-package Open-Source Projects

  • capy

    💻Build one codebase and get native UI on Windows, Linux and Web

  • microzig

    Unified abstraction layer and HAL for several microcontrollers

  • Project mention: MicroZig: Unified abstraction layer and HAL for Zig on several microcontrollers | news.ycombinator.com | 2024-02-28
  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • zig-clap

    Simple command line argument parsing library

  • Project mention: After a day of programming in Zig | dev.to | 2024-01-01

    Zig and Rust both promote explicit error handling, however their mechanisms are different. Rust uses Result enums, while Zig uses a (global) error set type (though similar to an enum) and error propagation. Similarly, Rust uses the Option enum for optional types, while Zig uses a type modifier (?T). Both offer modern, syntactic sugar to handle those (call()? and if let Some(value) = optional {} in Rust, try call() and if (optional) |value| {} in Zig). Since Rust uses the standard library to implement error handling and options, users have the possibility to extend those systems which is quite powerful. However, I like the approach Zig takes in providing those things as language features. While their approach fits well into the C universe, I dislike that there is no pragmatic way to add more context to an error (but well, no allocations). Libraries like [clap](https://github.com/Hejsil/zig-clap) solve this by implementing a diagnostics mechanism.

  • linuxwave

    Generate music from the entropy of Linux 🐧🎵

  • Project mention: ah yes, static | /r/linuxmemes | 2023-05-21

    So, LinuxWave

  • mecha

    A parser combinator library for Zig (by Hejsil)

  • zig-network

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

  • zgl

    Zig OpenGL Wrapper

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • http.zig

    An HTTP/1.1 server for zig

  • Project mention: Epoll: The API that powers the modern internet (2022) | news.ycombinator.com | 2024-01-11

    I have a somewhat popular HTTP server library for Zig [1]. It started off as a thread-per-connection (with an optional thread pool), but when it became apparent that async wasn't going to be added back into the language any time soon, I switched to using epoll/kqueue.

    Both APIs allow you to associate arbitrary data (void ) with the event that you're registering. So when you're notified of the event, you can access this data. In my case, it's a big Conn struct. It contains things like the # of requests on this connection (to enforce a configured max request per connection), a timestamp where it should timeout if there's no activity. The Conn is part of an intrusive linked list, so it has a next: Conn and prev: *Conn. But, what you're probably most curious about, is that it has a Request.State. This has a static buffer ([]u8) that can grow as needed to hold all the received data up until that point (or if we're writing the data, then the buffered data that we have to write). It's important to have a max # of connections and a max request size so you can enforce an upper limit on the maximum memory the library might use. It acts as a state machine to track up to what point it's parsed the request. (since you don't want to have to re-parse the entire request as more bytes trickle in).

    It's all half-baked. I can do receiving/sending asynchronously, but the application handler is called synchronously, and if that, for example, calls PG, that's probably also synchronous (since there's no async PG library in Zig). Makes me feel that any modern language needs a cohensive (as in standard library, or de facto standard) concurrency story.

    [1] https://github.com/karlseguin/http.zig

  • mach-glfw

    Ziggified GLFW bindings with 100% API coverage, zero-fuss installation, cross compilation, and more.

  • SDL.zig

    A shallow wrapper around SDL that provides object API and error handling

  • Project mention: SDL.zig: A shallow wrapper around SDL for Zig | news.ycombinator.com | 2023-07-18
  • sdk

    TinyVG software development kit (by TinyVG)

  • websocket.zig

    A websocket implementation for zig

  • known-folders

    Provides access to well-known folders across several operating systems

  • zig-args

    Simple-to-use argument parser with struct-based config

  • LoLa

    LoLa is a small programming language meant to be embedded into games. (by MasterQ32)

  • nanovg-zig

    A small anti-aliased hardware-accelerated vector graphics library

  • Project mention: We Put a Distributed Database in the Browser – and Made a Game of It | news.ycombinator.com | 2023-07-12

    I used my Zig port of NanoVG: https://github.com/fabioarnold/nanovg-zig which ultimately uses WebGL for rendering in the browser.

  • interface.zig

    Dynamic dispatch for zig made easy

  • mach-gpu-dawn

    Google's Dawn WebGPU implementation, cross-compiled with Zig into a single static library

  • zero-graphics

    Application framework based on OpenGL ES 2.0. Runs on desktop machines, Android phones and the web

  • ctregex.zig

    Compile time regular expressions in zig

  • Project mention: Compile time regular expression in C++ | news.ycombinator.com | 2023-09-12

    Since other people are posting other lang implementations... someone did it for zig too (probably less polished than this C++ lib) [1]. It is nice that the regexes can be used at compile time too ().

    --

    : I think the difference between C++ template language and Zig comptime is that Zig's comptime is almost equal as Zig's regular language, whereas the experience of programming C++ templates almost feels like learning a separate, equally complex language.

    1: https://github.com/alexnask/ctregex.zig

  • async_io_uring

    An event loop in Zig using io_uring and coroutines

  • zig-opengl

    OpenGL binding generator based on the opengl registry

  • qml_zig

    QML bindings for the Zig programming language

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
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).

zig-package related posts

  • MicroZig: Unified abstraction layer and HAL for Zig on several microcontrollers

    5 projects | news.ycombinator.com | 28 Feb 2024
  • After a day of programming in Zig

    3 projects | dev.to | 1 Jan 2024
  • 0.11.0 Release Notes

    12 projects | news.ycombinator.com | 3 Aug 2023
  • SDL.zig: A shallow wrapper around SDL for Zig

    1 project | news.ycombinator.com | 18 Jul 2023
  • Is it too early to use Zig for CLI tooling ideas?

    3 projects | /r/Zig | 5 Jun 2023
  • Why is OAuth still hard in 2023?

    4 projects | news.ycombinator.com | 26 Apr 2023
  • Zig for gamedev?

    7 projects | /r/Zig | 15 Apr 2023
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 1 May 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →

Index

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

Project Stars
1 capy 1,333
2 microzig 937
3 zig-clap 755
4 linuxwave 480
5 mecha 392
6 zig-network 390
7 zgl 339
8 http.zig 333
9 mach-glfw 331
10 SDL.zig 289
11 sdk 244
12 websocket.zig 220
13 known-folders 205
14 zig-args 204
15 LoLa 188
16 nanovg-zig 160
17 interface.zig 156
18 mach-gpu-dawn 143
19 zero-graphics 138
20 ctregex.zig 117
21 async_io_uring 103
22 zig-opengl 93
23 qml_zig 77

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com