avatar_url stringlengths 47 116 ⌀ | name stringlengths 1 46 | full_name stringlengths 7 60 | created_at stringdate 2016-04-01 08:17:56 2025-05-20 11:38:17 | description stringlengths 0 387 ⌀ | default_branch stringclasses 44
values | open_issues int64 0 4.93k | stargazers_count int64 0 78.2k | forks_count int64 0 3.09k | watchers_count int64 0 78.2k | tags_url stringlengths 0 94 | license stringclasses 27
values | topics listlengths 1 20 | size int64 0 4.82M | fork bool 2
classes | updated_at stringdate 2018-11-13 14:41:18 2025-05-22 08:23:54 | has_build_zig bool 2
classes | has_build_zig_zon bool 2
classes | zig_minimum_version stringclasses 50
values | repo_from stringclasses 3
values | dependencies listlengths 0 38 | readme_content stringlengths 0 437k | dependents listlengths 0 21 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://codeberg.org/avatars/b63b486e9332d9bb0fd08d58dcb74993a86f9a3f91a27b9408046f02bf1f491f | BlurSurf | ChloeVZ/BlurSurf | 2025-02-16T21:55:53+01:00 | Eventually to be a tool for viewing and editing Hedgehog Engine materials. | main | 3 | 0 | 0 | 1 | - | [
"graphics",
"hedgehog-engine",
"zig"
] | 1,139 | false | 2025-03-05T01:16:38+01:00 | false | false | unknown | codeberg | [] | 404 | [] | |
https://codeberg.org/avatars/3ef8c92651d309cdd006eec27886f36f | bootloader | loup-os/bootloader | 2024-06-07T14:00:41+02:00 | The Loup Bootloader | dev | 0 | 2 | 0 | 1 | - | [
"bootloader",
"operating-system",
"zig"
] | 2,637 | false | 2025-03-08T07:20:10+01:00 | false | false | unknown | codeberg | [] | 404 | [] | |
https://codeberg.org/avatars/e56e40a366c539071c427c54db46cb5754d2e1f84b6a6e7d77183ef587b0498b | borzig | javier_guerra/borzig | 2023-02-22T19:55:05+01:00 | CBOR encoder/decoder for Zig. | trunk | 0 | 5 | 0 | 2 | - | [
"cbor",
"library",
"serialization",
"zig"
] | 320 | false | 2025-05-13T07:42:50+02:00 | false | false | unknown | codeberg | [] | 404 | [] | |
https://codeberg.org/avatars/f31358d8632d84e246d356aa1caf950ae57ffc65116b077c84cda305624752de | buildz | mkashirin/buildz | 2024-09-10T19:46:33+02:00 | Buildz is a Zig toolchain showcase for different types of linking, compiling and installing static and dynamic libraries and artifacts. | main | 0 | 0 | 0 | 1 | - | [
"build",
"build-system",
"build-tool",
"c",
"showcase",
"zig",
"ziglang"
] | 35 | false | 2024-09-10T19:46:36+02:00 | false | false | unknown | codeberg | [] | 404 | [] | |
https://codeberg.org/avatars/cae688e192e2a9e45c79176a0cec214e | cat-petter | etgr/cat-petter | 2021-03-15T15:04:21+01:00 | Clicker game about petting cats | trunk | 0 | 0 | 0 | 1 | - | [
"game",
"zig",
"clicker-game"
] | 213 | false | 2024-12-03T05:13:29+01:00 | false | false | unknown | codeberg | [] | 404 | [] | |
https://codeberg.org/avatars/0045a3d651c69eed51d2a96cb6af781e122b4a97dc3f0f2ef5f5e10d710ad122 | check_filetime | FObersteiner/check_filetime | 2023-11-12T14:06:53+01:00 | check and modify file timestamps | main | 1 | 0 | 0 | 1 | - | [
"file",
"zig",
"ziglang"
] | 59 | false | 2025-04-06T19:34:34+02:00 | false | false | unknown | codeberg | [] | 404 | [] | |
https://codeberg.org/avatars/7d6dcfe7ae8c72c6f98e6ec4648710a1 | CI-tests | kassane/CI-tests | 2024-08-18T18:47:21+02:00 | main | 0 | 0 | 0 | 1 | - | [
"d",
"dlang",
"woodpecker-ci",
"zig"
] | 36 | false | 2024-08-18T19:27:08+02:00 | false | false | unknown | codeberg | [] | 404 | [] | ||
https://codeberg.org/avatars/02ca2abbe2482a184f6b74458263c117 | cosmo-crawler | prokopton/cosmo-crawler | 2025-02-23T22:05:33+01:00 | A web crawler in Zig. | main | 0 | 2 | 0 | 1 | - | [
"crawler",
"html",
"scraper",
"strip",
"zig"
] | 288 | false | 2025-03-27T21:11:38+01:00 | false | false | unknown | codeberg | [] | 404 | [] | |
https://codeberg.org/avatars/0ad374da08d404b7c7d22e6bd0e28b5153daaadd0155ddb9dbcfaf570a7bb59f | cpu-info-zig | xvzls/cpu-info-zig | 2024-03-19T08:32:54+01:00 | Library for fetching CPU information such as current load and logical processors' data | main | 1 | 0 | 0 | 1 | - | [
"linux",
"library",
"zig",
"cpu",
"system-info"
] | 60 | false | 2024-12-03T05:48:37+01:00 | false | false | unknown | codeberg | [] | 404 | [] | |
https://codeberg.org/avatars/01e537e6fa3a718ce8b75be1db271715 | cute-disk | cuteos/cute-disk | 2024-10-13T00:47:54+02:00 | A little library to work with block devices. | main | 0 | 0 | 0 | 1 | - | [
"cuteos",
"disk",
"disk-management",
"zig",
"zig-library",
"ziglang"
] | 38 | false | 2024-10-13T10:05:30+02:00 | false | false | unknown | codeberg | [] | 404 | [] | |
https://codeberg.org/avatars/01e537e6fa3a718ce8b75be1db271715 | cute-metrics | cuteos/cute-metrics | 2024-01-14T18:29:18+01:00 | The cuteOS telemetry framework | main | 0 | 0 | 0 | 1 | - | [
"linux",
"zig",
"ziglang",
"zig-lang",
"data-analysis",
"build-it-with-zig",
"telemetry",
"zig-package",
"zig-toolchain",
"data-processing"
] | 45 | false | 2024-12-03T05:45:31+01:00 | false | false | unknown | codeberg | [] | 404 | [] | |
https://codeberg.org/avatars/01e537e6fa3a718ce8b75be1db271715 | cute-support-kit | cuteos/cute-support-kit | 2024-01-12T20:48:06+01:00 | A support library for cuteOS applications | main | 0 | 0 | 0 | 1 | - | [
"linux",
"zig",
"ziglang",
"zig-lang",
"support",
"zig-package",
"build-it-with-zig",
"zig-toolchain"
] | 71 | false | 2024-12-03T05:45:28+01:00 | false | false | unknown | codeberg | [] | 404 | [] | |
https://codeberg.org/avatars/01e537e6fa3a718ce8b75be1db271715 | cute-ts | cuteos/cute-ts | 2024-10-11T21:32:14+02:00 | A little translation library for cuteOS applications. | main | 0 | 0 | 0 | 1 | - | [
"language",
"translation",
"zig",
"zig-library",
"ziglang"
] | 31 | false | 2024-10-13T10:04:05+02:00 | false | false | unknown | codeberg | [] | 404 | [] | |
https://codeberg.org/avatars/56e453bfb401785274dec9d39c67cdc4 | deezns | zigachads/deezns | 2023-09-04T05:54:54+02:00 | main | 0 | 0 | 0 | 2 | - | [
"zig",
"zig-lang"
] | 49 | false | 2024-12-03T05:40:28+01:00 | false | false | unknown | codeberg | [] | 404 | [] | ||
https://codeberg.org/avatars/0af1077983d7ad10f40c08b82c9ebacb | depz | Der_Teufel/depz | 2025-02-23T03:02:35+01:00 | Get a dependency graph for a Zig project as a DOT file | main | 0 | 0 | 0 | 1 | - | [
"dependencies",
"dependency-tree",
"zig"
] | 35 | false | 2025-03-18T09:35:32+01:00 | false | false | unknown | codeberg | [] | 404 | [] | |
https://codeberg.org/avatars/3ef8c92651d309cdd006eec27886f36f | dev-env | loup-os/dev-env | 2024-06-07T19:53:01+02:00 | A development environment for the Loup OS. | dev | 0 | 1 | 0 | 1 | - | [
"development-environment",
"zig"
] | 1,403 | false | 2025-04-16T21:53:47+02:00 | false | false | unknown | codeberg | [] | 404 | [] | |
https://codeberg.org/avatars/534a2ff86bfb78720781df391f2acca7ba3014c0630ba9aa4156df7bd8f3e62d | discord.zig | yuzu/discord.zig | 2024-10-30T07:20:20+01:00 | Discord library but in beta/alpha version | master | 0 | 12 | 3 | 2 | - | [
"discord",
"zig",
"zig-library",
"zig-package",
"ziglang"
] | 1,028 | false | 2025-05-22T05:26:11+02:00 | true | true | unknown | codeberg | [] | 404 | [] | |
https://codeberg.org/avatars/9428eefdb117a62a8d39fc49937e0ea64185b3806c8541516af0d1a1b7161b25 | donut | deadblackclover/donut | 2024-04-28T13:03:51+02:00 | Have a donut | main | 0 | 0 | 0 | 1 | - | [
"zig",
"donut"
] | 66,942 | false | 2024-12-03T05:50:30+01:00 | false | false | unknown | codeberg | [] | 404 | [] | |
https://secure.gravatar.com/avatar/5eca93d9f27866b99557477bd718e5eed74fafd2365790c43b8627254931a1dd?s=80&d=identicon | zig-git-crawler | dasimmet/zig-git-crawler | 2025-03-30T16:21:46.524Z | crawling and indexing git hosting sites in an sqlite database. [Website](https://dasimmet.gitlab.io/zig-git-crawler/) | main | 0 | 1 | 0 | 0 | - | [
"zig",
"zig-package"
] | 0 | false | 2025-05-05T19:34:15.434Z | true | true | 0.14.0 | gitlab | [
{
"commit": "59c06617d5b86546c0c739e73ae01d3965dbe8ce",
"name": "sqlite",
"tar_url": "https://github.com/vrischmann/zig-sqlite/archive/59c06617d5b86546c0c739e73ae01d3965dbe8ce.tar.gz",
"type": "remote",
"url": "https://github.com/vrischmann/zig-sqlite"
},
{
"commit": "ef7eba4ccb0ef303ee0... | A crawler for Zig dependencies
generated a sqlite database of git repositories with zig dependencies.
Also includes a small web application to view the database contents.
Repositories are indexed from these sites if they have the topics
<code>zig</code> or <code>zig-package</code> assigned:
<ul>
<li><a>https://github.com</a></li>
<li><a>https://gitlab.com</a></li>
<li><a>https://codeberg.org</a></li>
</ul>
Dependencies are resolved between those sites even if those topics
aren't set based on <code>build.zig.zon</code> urls.
Hosted on gitlab pages: <a>https://dasimmet.gitlab.io/zig-git-crawler/</a>
```bash
build the exe
zig build
setup an API token for github:
export GITHUB_API_AUTH_TOKEN=<strong><em>*</em></strong><strong><em>*</em></strong><strong>*</strong>*
crawl through major all git hosting sites, create the db
zig build run
query the db
sqlite3 zig-out/www/zig-git.db "SELECT * FROM view_manifest_tree"
build the webapp:
zig build web
run the dev webserver:
zig build dev
open the browser to view it: http://localhost:8080/www
```
Database Schema:
TODO
Web UI
<ul>
<li>Needs quite a bit more explaining whats going on.</li>
<li>Search for repositories in the main list</li>
<li>Provide numerical indicators for dependencies and dependants</li>
<li>Better and searchable selectors for <code>repo</code> and <code>ref</code> in the details view.</li>
<li>The dependency/dependant queries have a depth field, however they
don't take <code>path</code> dependencies into account since the sql query was
easier to implement.</li>
</ul>
Crawler
<ul>
<li>Crawler is hitting Github/Codeberg API limits quickly and needs a
few runs to populate.</li>
<li>Github's Api is limited to 1000 search results. For now, I
keep a list of search urls based on the repo creation date to
work around it. Could be solved by calculating the URLs based
on whats already in the DB.</li>
<li>Crawler does not update the repository entries of dependencies, only
those repos with <code>zig</code> and <code>zig-package</code> tags. New commits and
manifests are fetched though.</li>
<li>Between runs, the crawler relies on keeping the sqlite db file on the
runner cache. Maybe it could be stored and downloaded to/from
gitlab's package registry instead.</li>
</ul> | [] | |
https://secure.gravatar.com/avatar/55903bb269020955095a27d149434f067892bd35cb20acb307cf3085e7fb0bfe?s=80&d=identicon | zig-learning | InvraNet/zig-learning | 2025-01-13T15:44:51.847Z | main | 0 | 0 | 0 | 0 | - | [
"self-learning",
"zig"
] | 0 | false | 2025-04-10T18:15:12.312Z | false | false | unknown | gitlab | [] | No readme found | [] | ||
https://secure.gravatar.com/avatar/5eca93d9f27866b99557477bd718e5eed74fafd2365790c43b8627254931a1dd?s=80&d=identicon | schwedenraetsel | dasimmet/schwedenraetsel | 2024-12-14T13:15:02.269Z | [Hosted Pages](https://dasimmet.gitlab.io/schwedenraetsel/) | master | 0 | 1 | 0 | 0 | - | [
"games",
"html5-canvas",
"javascript",
"wasm",
"zig"
] | 0 | false | 2025-05-01T19:04:16.782Z | false | false | unknown | gitlab | [] | 404 | [] | |
null | gnu-coreutils-zig | gnu-coreutils-zig/gnu-coreutils-zig | 2024-10-30T19:19:34.711Z | GNU coreutils rewritten in Zig | develop | 0 | 0 | 0 | 0 | - | [
"GNU/Linux",
"coreutils",
"zig"
] | 0 | false | 2024-11-10T21:48:47.558Z | false | false | unknown | gitlab | [] | 404 | [] | |
https://secure.gravatar.com/avatar/5eca93d9f27866b99557477bd718e5eed74fafd2365790c43b8627254931a1dd?s=80&d=identicon | zigsh | dasimmet/zigsh | 2024-08-30T13:07:34.084Z | master | 0 | 0 | 0 | 0 | - | [
"zig",
"zig-package"
] | 0 | false | 2025-01-25T16:38:26.249Z | false | false | unknown | gitlab | [] | 404 | [
"https://github.com/dasimmet/ugtar"
] | ||
/uploads/-/system/user/avatar/10764685/avatar.png | lamb | KevinAlavik/lamb | 2024-05-18T16:40:54.623Z | Lamb, a x86_64 hybrid kernel written in pure Zig. | main | 0 | 1 | 0 | 0 | - | [
"kernel",
"osdev",
"zig"
] | 0 | false | 2024-05-20T12:39:55.261Z | false | false | unknown | gitlab | [] | Lamb Kernel
Lamb, a x86_64 hybrid kernel written in pure Zig.
Info
Lamb is written in Zig and uses the limine bootloader. | [] | |
/uploads/-/system/user/avatar/8359626/avatar.png | cs2-demo-reader-test | lpg2709/cs2-demo-reader-test | 2024-05-03T17:51:59.055Z | master | 0 | 0 | 0 | 0 | - | [
"Counter-Strike",
"demo",
"zig",
"zig-lang"
] | 0 | false | 2024-05-03T17:53:53.311Z | false | false | unknown | gitlab | [] | 404 | [] | ||
https://secure.gravatar.com/avatar/4e0b7d46cb8e502b0230560d4b3db1750d455d0a74778766ecc6e0f7cbfe4b6f?s=80&d=identicon | zine-demo | katrinleinweber/zine-demo | 2024-04-02T13:10:00.187Z | https://katrinleinweber.gitlab.io/zine-demo for https://github.com/kristoff-it/zine-ssg.io/issues?q=author%3Akatrinleinweber | main | 0 | 0 | 0 | 0 | - | [
"zig",
"ziglang",
"zine"
] | 0 | false | 2024-10-19T17:12:58.476Z | true | true | unknown | gitlab | [
{
"commit": "master",
"name": "zine",
"tar_url": "https://github.com/kristoff-it/zine/archive/master.tar.gz",
"type": "remote",
"url": "https://github.com/kristoff-it/zine"
}
] | zine-ssg.io
The official website for https://github.com/kristoff-it/zine | [] | |
/uploads/-/system/user/avatar/3212369/avatar.png | keychain | mdeyo/keychain | 2024-03-25T00:29:27.276Z | Cross-platform credential storage interface with Zig. | main | 0 | 0 | 0 | 0 | - | [
"keychain",
"keyring",
"zig"
] | 0 | false | 2024-04-01T14:01:16.134Z | true | true | unknown | gitlab | [] | Zig Keychain
Not working. The intention is to have a cross-platform (Linux, MacOS, Windows) library for accessing the OS credential storage.
Linux: libsecret
Windows: Credential Vault
MacOS: Keychain
I'm a Java dev that's just messing with Zig, so use at your own risk. I've been using this repo to figure out what to do: https://github.com/hrantzsch/keychain, so all credit to that repo.
Usage
TODO
Installation
TODO | [] | |
/uploads/-/system/user/avatar/13075758/avatar.png | graphig | sudw1n/graphig | 2024-02-24T10:44:07.812Z | A simple graphics library written in Zig. | main | 0 | 0 | 0 | 0 | - | [
"graphics",
"zig"
] | 0 | false | 2024-02-24T10:48:02.131Z | true | true | unknown | gitlab | [] | Graphig
Graphig is a simple graphics library written in Zig.
The original credits goes to <a>Alexey Kutepov</a> (of the <a>Tsoding
Daily</a> channel) for his
<a>olive.c</a> library. | [] | |
/uploads/-/system/user/avatar/13075758/avatar.png | neunet | sudw1n/neunet | 2024-02-23T15:18:29.674Z | A neural network framework in Zig. | main | 0 | 0 | 0 | 0 | - | [
"AI",
"machine learning",
"zig"
] | 0 | false | 2024-02-23T15:24:38.811Z | false | false | unknown | gitlab | [] | NeuNet
NeuNet is a custom neural network library developed from scratch in Zig, a low-level programming
language (like C). This library allows users to create and train their own neural networks tailored
to various tasks. The library implements fundamental concepts in machine learning such as gradient
descent and backpropagation algorithms.
With this library, we define the architecture of our neural network, specifying the number of layers
and neurons per layer, and train the model by giving the input and output data sets.
Read under <a>nn/</a> for more info.
Also see the various projects under <a>demos/</a> that demonstrate using the library to train
models.
This project was created as an assignment for my college. The original credits goes to <a>Alexey
Kutepov</a> (of the <a>Tsoding Daily</a>
channel) for his <a>videos</a>
on machine learning. | [] | |
https://secure.gravatar.com/avatar/856a393783139d68100b441da254f5e35d3d00ff00f796c0e4b961cb72363932?s=80&d=identicon | zigrab | Lynnesbian/zigrab | 2024-01-15T12:07:02.560Z | Update manager for Zig. | main | 0 | 0 | 0 | 0 | - | [
"zig"
] | 0 | false | 2025-04-08T22:57:14.119Z | false | false | unknown | gitlab | [] | zigrab
Grab the latest <a>Zig</a> and <a>zls</a> updates with zigrab!
How do I use it?
```bash
update zig to the latest compatible version. if zig is not installed, this will install it to a sensible location.
zigrab update
the above, but for zls. requires that zig is installed, and that the default 'zls' feature is enabled
zigrab zls update
ok, but what else does it do?
zigrab --help
```
How do I install it?
Assuming you have <a>Rust</a> installed,
<code>bash
cargo install --git https://gitlab.com/Lynnesbian/zigrab</code>
Design philosophy
Zigrab uses a minimal set of small dependencies - larger crates such as <a>reqwest</a>,
<a>clap</a>, and <a>serde</a> are avoided in favour of smaller
alternatives, even if those alternatives have fewer features or are less ergonomic.
Every dependency listed in <a><code>Cargo.toml</code></a> includes an explanation of why it's there.
Cargo features
There are two optional features, both enabled by default. To disable all default features, use
<code>bash
cargo install --git https://gitlab.com/Lynnesbian/zigrab --no-default-features</code>
If you only want the zls feature, and not the minisign feature,
<code>bash
cargo install --git https://gitlab.com/Lynnesbian/zigrab --no-default-features --features zls</code>
zls
Enables updating zls.
minisign
Verifies downloaded binaries against the relevant public minisign key. The keys are currently hardcoded into zigrab.
The Zig public key is provided on Zig's <a>download page</a>, and the zls public key is
provided in the
<a>zls release-worker README</a>.
License
Licensed under the <a>Mozilla Public License 2.0</a>. | [] | |
/uploads/-/system/user/avatar/13075758/avatar.png | lzw | sudw1n/lzw | 2023-12-07T14:38:46.525Z | An implementation of the Lempel-Ziv-Welch (LZW) compression scheme. | main | 0 | 0 | 0 | 0 | - | [
"Systems Programming",
"compression",
"zig"
] | 0 | false | 2023-12-07T14:38:46.525Z | true | true | unknown | gitlab | [] | No readme found | [] | |
/uploads/-/system/user/avatar/13075758/avatar.png | bitstream | sudw1n/bitstream | 2023-11-30T08:29:20.507Z | A library to manipulate streams (`Reader`/`Writer`) in bits. | main | 0 | 0 | 0 | 0 | - | [
"Systems Programming",
"library",
"zig"
] | 0 | false | 2023-12-07T07:55:20.218Z | true | true | unknown | gitlab | [] | <blockquote>
Note: This library is no longer needed as Zig already provides <code>std.io.BitWriter</code> and <code>std.io.BitReader</code>.
</blockquote>
BitStream
A tiny library to allow writing to and reading from stream (a <code>Reader</code> and a <code>Writer</code> in Zig) in bits.
The original credits go to <a>MichaelDipperstein</a> for their implementation of <a>bitfile</a>. I only implemented it in Zig. | [] | |
/uploads/-/system/user/avatar/13075758/avatar.png | zlox | sudw1n/zlox | 2023-11-08T13:16:13.931Z | A bytecode VM-based interpreter inspired from the Lox language, built using Zig. | main | 0 | 0 | 2 | 0 | - | [
"Systems Programming",
"bytecode",
"compiler",
"interpreter",
"programming-language",
"virtual machine",
"zig"
] | 0 | false | 2024-08-13T16:37:18.457Z | true | false | unknown | gitlab | [] | A bytecode VM-based interpreter inspired from the Lox language, built using Zig.
Language Overview
Getting Started
Hello World
<code>print "hello world\n";</code>
Expressions
```
let a = 10 * (2 + 3) - 7;
print a;
print "\n";
let b = !(true == false);
let c = ((3 + 4) * 5) - (6 / 2);
print b;
print "\n";
print c;
print "\n";
```
Locals
```
fn main() {
let a = "outer a\n";
{
let a = "inner a\n";
print a;
}
print a;
}
main();
```
Control flow
```
fn main() {
for (let i = 1; i < 10; i = i + 1) {
for (let j = 1; j <= i; j = j + 1) {
print "*";
}
print "\n";
}
}
main();
```
Functions
<code>fn fib(n) {
if n < 2 { return n; }
return fib(n - 1) + fib(n - 2);
}
// clock() is a native function
let start = clock();
let result = fib(3);
print result; print "\n";
print "took: "; print clock() - start; print " miliseconds\n";</code>
Closure
<code>fn outer() {
let x = "local x\n";
fn inner() {
print x;
}
inner();
}
let x = "global x\n";
outer();</code>
Language Design
The language, tentatively named <strong>wlox</strong>, is designed to be a dynamically typed programming language
with support for garbage collection, functions, and closures. Inspired by the Lox programming
language, <strong>wlox</strong> aims to provide a modern and intuitive syntax while offering powerful features.
<ol>
<li>
<strong>Dynamic Typing:</strong> In <strong>wlox</strong>, variables are dynamically typed, meaning their types are
determined at runtime rather than compile time. This allows for greater flexibility and ease of
use, as variables can hold values of any type without explicit type annotations.
</li>
<li>
<strong>Garbage Collection:</strong> To manage memory efficiently and prevent memory leaks, <strong>wlox</strong>
incorporates automatic garbage collection. This feature relieves developers from manual memory
management tasks, allowing them to focus on writing clean and concise code.
</li>
<li>
<strong>Functions and Closures:</strong> Functions play a central role in <strong>wlox</strong>, serving as first-class
citizens that can be assigned to variables, passed as arguments, and returned from other
functions. Closures, a powerful concept in functional programming, are fully supported, enabling
the creation of lexically scoped function closures.
</li>
</ol>
The language design of <strong>wlox</strong> aims to strike a balance between simplicity and expressiveness while
also exploring the features of most modern programming languages.
Future Enhancements
To ensure continuous improvement and adaptability, the following future enhancements are planned for <strong>Wlox</strong>:
<ul>
<li><strong>Advanced Language Features:</strong> Add support for classes, methods, and objects to expand the language's capabilities.</li>
<li><strong>Debugging Tools:</strong> Integrate debugging features in the UI, such as breakpoints and step-through execution, to aid in code troubleshooting.</li>
<li><strong>Performance Improvements:</strong> Optimize the interpreter for better execution speed and memory usage, enhancing overall performance.</li>
<li><strong>Browser Compatibility:</strong> Ensure consistent functionality and performance across various web browsers to reach a wider audience.</li>
<li><strong>User Interface Enhancements:</strong> Improve the UI for a more intuitive and responsive user experience.</li>
<li><strong>Detailed Documentation:</strong> Provide comprehensive documentation, including installation instructions, user guides, and developer resources, to facilitate easier adoption and usage.</li>
</ul>
Development
This project uses <a>devbox</a> to manage its development environment.
Install devbox:
<code>sh
curl -fsSL https://get.jetpack.io/devbox | bash</code>
Start the devbox shell:
<code>sh
devbox shell</code>
Run a script in the devbox environment:
<code>sh
devbox run <script></code>
Scripts
Scripts are custom commands that can be run using this project's environment. This project has the following scripts:
<ul>
<li><a>wlox</a></li>
<li><a>wlox-verbose</a></li>
<li><a>www-nginx</a></li>
<li><a>www-python</a></li>
<li><a>zlox</a></li>
<li><a>zlox-verbose</a></li>
<li><a>docs</a></li>
</ul>
Documentation
You can build the autogenerated Zig documentation on your local machine with the
<a>docs</a> script.
First, make sure you are inside the <a>devbox shell</a>. Then run:
<code>devbox run docs</code>
Now you can view the documentation in your browser at <code>http://localhost:8000</code>, just make sure the
<code>8000</code> port isn't already being used
Packages
<ul>
<li><a>zig@0.12.0</a> (for building the Zig stuff)</li>
<li><a>zls@0.12.0</a> (for LSP support)</li>
<li><a>typescript@latest</a> (for LSP support)</li>
<li><a>nginx@latest</a> (for web server)</li>
<li><a>python@latest</a> (for web server)</li>
<li><a>nodePackages.npm@latest</a> (packages for the web
repl)</li>
</ul>
Script Details
devbox run npm
Install the npm packages required for the REPL. This should be run at least once, before launching
the web servers.
<code>sh
pushd www/
npm install
popd</code>
 
devbox run wlox
Build the wasm file and start the Python web server. Open the URL <code>http://localhost:8000</code> in your
browser.
<code>sh
zig build -Dtarget=wasm32-freestanding -Doptimize=ReleaseFast wlox
devbox run www-python</code>
 
devbox run wlox-verbose
Build the wasm file with verbose output.
<code>sh
zig build -Dverbose -Dprint-bytecode -Dtarget=wasm32-freestanding -Doptimize=ReleaseFast wlox</code>
 
devbox run www-python
Run a simple web server in Python to serve the website files. The console output should inform about
which port the server is running on.
<code>sh
python -m http.server -d www/</code>
 
devbox run www-nginx
Run the Nginx web server to serve the website files. The port is determined by the <code>NGINX_WEB_PORT</code>
environment variable.
<code>sh
devbox services up</code>
 
devbox run zlox
Build the command-line interpreter.
<code>sh
zig build -Doptimize=ReleaseFast</code>
 
devbox run zlox-verbose
Build the command-line interpreter with verbose output
<code>sh
zig build -Dverbose -Dprint-bytecode -Ddisplay-stack</code>
 
devbox run docs
Build the local documentation and start the web server to view the documentation.
<code>sh
zig build docs
python -m http.server -d ./zig-out/docs/</code>
  | [] | |
/uploads/-/system/user/avatar/9653727/avatar.png | wavr | HolyChicken99/wavr | 2023-10-26T06:14:01.064Z | WebAssembly based audio visualizer built in Zig | master | 0 | 0 | 0 | 0 | - | [
"wasm",
"zig"
] | 0 | false | 2023-12-12T23:25:46.896Z | false | false | unknown | gitlab | [] | 404 | [] | |
https://secure.gravatar.com/avatar/5eca93d9f27866b99557477bd718e5eed74fafd2365790c43b8627254931a1dd?s=80&d=identicon | zbuild | dasimmet/zbuild | 2023-10-09T20:24:44.844Z | [🕮](https://dasimmet.gitlab.io/zbuild/) custom additions to the zig build system | main | 0 | 0 | 0 | 0 | - | [
"zig",
"zig-package"
] | 0 | false | 2025-02-04T18:13:05.063Z | true | true | unknown | gitlab | [
{
"commit": "master",
"name": "zap",
"tar_url": "https://github.com/zigzap/zap/archive/master.tar.gz",
"type": "remote",
"url": "https://github.com/zigzap/zap"
}
] | Zig ZBuild
this project explores the potential of custom zig build steps.
It contains several addons and can be added to projects using zig's package
manager.
Disclaimer: some of it may break!
<a>Generated Documentation</a>
<a>Source on Gitlab</a>
for the impatient, this will build and serve the autodoc of <code>ZBuild</code>:
<code>max@muster:~/zig-webterm$ zig build run
steps [54/56] zig build-exe zigtty Debug native... LLVM Emit Object...
Open http://127.0.0.1:3000 in your browser</code>
zig build zb
This Repository's Zig Package can add a <code>zig build zb</code> step
to your build command by adding and calling it in <code>build.zig</code>:
<code>// build.zig.zon
.dependencies = .{
.ZBuild = .{
.url = "https://gitlab.com/dasimmet/zbuild/-/archive/e6a55b6739caad97f0abd1a10f4925f4c6b2ab15/zbuild.tar.gz",
.hash = "1220b57901ab8ec55fab947461397e817349b88b1f92ec06bcfb9b14bb2c36eb0629",
},
},</code>
```
// build.zig
const ZBuild: type = @import("ZBuild").ZBuild;
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
_ = ZBuild.init(.{
.owner = b,
});
<code>// rest of your build.zig code here
</code>
}
```
Then, running <code>zig build zb</code> will build and run integrate with your build:
```
tobi@lap:~/repos/zbuild$ zig build zb
cli: /home/tobi/repos/zbuild/zig-cache/o/d70288effb4d6bd4bd4e78d729411a09/zb
usage: zig build zb --
Available Subcommands
```
Among others supports subcommands for managing your build.zig.zon
<code>ZBuild.Step.Fetch</code>
This step exposes the new (in zig 0.12.0) <code>zig fetch</code> subcommand by receiving
the url and hash as input, and returning a GeneratedFile of the package's path
in the zig global cache.
Like dependencies in <code>build.zig.zon</code>, it will fail if the hash was not provided
and print the stdout of <code>zig fetch</code>.
<code>ZBuild.Step.Emsdk</code>
an example use case of <code>ZBuild.Step.Fetch</code> is fetching and setting up an SDK
that may not contain a <code>build.zig</code> file. It cannot be used to pass dependencies,
but only needs to be executed when another step actually depends on it.
the contained .fetch member can be added to a separate top level step
(e.g. <code>fetch</code>), so off-the-grid builds are possible after running
<code>zig build fetch</code>.
this step will fetch a specified version of
<a>Emsdk</a>
and install it, all managed in zig's cache.
<code>ZBuild.Step.Download</code>
The module has a Download build step to fetch a file into the zig-cache either
project locally or globally. This is similar to how the package manager works.
The input <code>url</code> of <code>Download</code> accepts a <code>ZBuild.LazyType</code>, a generic version of
<code>std.Build.LazyPath</code>.
The <code>output_file</code> is a GeneratedFile path to the downloaded file in zig's cache.
<code>ZBuild.Step.JZon</code>
the <a>src/build/Step/JZon.zig</a> step converts a <code>json</code> file from a LazyPath into a <code>.zig</code> file
with a <code>.zon</code>-like syntax, but assigned to a single identifier <code>data</code>:
this allowes a file to be <code>@import</code> -ed ans used as a comptime lookup table.
<code>pub const data = <converted json data in ZON format here>;</code>
It can then be imported as a module in subsequent steps and processed at comptime.
The example <code>zig build mimedata -Dmime-indent=2</code> fetches a
<a>list of mimetypes per extension</a>
and a <a>list of mimetype magic numbers</a>
using a Download step, then convert them into a <a>.zig file in src</a>.
The result is imported in <code>ZBuild.CompressMap</code> and in comptime
maps file extensions to the appropriate <code>Content-Type</code> header.
<code>ZBuild.Step.Compress</code>
the repo holds a <a>src/build/Step/Compress.zig</a> to
bundle the responses from the generated <a>ZBuild</a>
documentation into a <code>std.StaticStringMap</code> zig source code file.
While this intermediate representation is not too efficient for large binaries,
it allows comptime as well as runtime access to the compressed assets
body as well as some metadata including:
<ul>
<li>uncompressed filesize</li>
<li>filesystem create,access and modify timestamps</li>
<li>hex encoded md5 and sha256 checksums</li>
<li>http mimetypes based on file extension and/or magic numbers</li>
</ul>
The Step's <code>output_file</code> can be added as a module to other compilations
and ships with all code needed for decompression outside the zig standard library.
```zig
const ZBuild = @import("ZBuild");
const assets = ZBuild.Step.Compress.init(
b,
.{ .path = "src/assets" },
"assets",
);
assets.method = .Deflate;
// the method enum will enable compression on the file entries.
// it will be shipped with the resulting zig file and can be switched on.
// compressors not supported by the standard library will use the
// common command line tools (gzip, xz, zstd) and fail if they are missing.
// TODO: provide a way to set compression method on a per-file basis.
const mod = assets.module(b);
```
Now, the assets can be imported and accessed with their relative path to
the base directory:
<code>const assets = @import("assets");
const path = "index.html";
if (assets.map().get(path)) |res| {
return Response.render(r, path, res);
}</code>
as modern browsers support <code>Content-Encoding</code> and the zig standard library has
built-in <code>Deflate</code>-Support, the content can be served without even decompressing
once on the server.
the default example builds the static autodoc documentation of the
build Library and serves them.
<code>ZBuild.Step.Serve</code>
the compressed assets contain all information to embed responses
into a static webserver binary using
<a>zap</a>:
<code>``
var zb = ZBuild.Step.Serve.init(
.{
.owner = b,
// a module generated by the</code>ZBuild.Step.Compress` step
.assets = compress.module(b),
.dependency = zbuild_dep,
.name = "serve",
<code> // build options for the compilation
.options = std.Build.ExecutableOptions{
.name = "zbuild-serve",
// root_source_file is non-optional here, but will
// be overwritten internally with a path to the dependency's
// directory.
.root_source_file = .{ .path = "" },
.target = target,
.optimize = optimize,
},
// an optional module to handle requests not covered
// by assets. It needs to provide the same
// interface as: `src/srv/Api.zig`
.api = b.addModule(
"Api",
.{
.source_file = .{
.path = "src/Api.zig",
},
},
),
},
</code>
);
```
The result is a single static binary webserver serving
precompressed assets from memory ;-D.
Perspective and Ideas?
<ul>
<li>Provide more preprocessing as part or follow-ups of the <code>ZBuild.Step.Compress</code> Step.</li>
<li>Create a in-memory Filesystem replacement for <code>wasm</code> compilation targets based on the
<code>ZBuild.Step.Compress</code> step</li>
<li>Replace <code>zap</code> with standard library based http server.
Not sure wich is better, but zap only supports a subset of standard
http headers as of now I think. At Least the <code>If-None-Match</code> header
is not being picked up by the server, to http Etags are not handled correctly,
and Windows is not supported.</li>
<li>Ship a complete OAuth2 handler for headless applications including the required webservice,
frontend and token storage.</li>
<li>Expand on the Idea of <code>zig build zb</code> to add custom subcommands
to <code>zig build</code>, especially for common package manager tasks</li>
<li>Maybe zbuild eval can also set it's own (and zig's) autocompletion.</li>
</ul> | [] | |
https://secure.gravatar.com/avatar/5eca93d9f27866b99557477bd718e5eed74fafd2365790c43b8627254931a1dd?s=80&d=identicon | ugtar | dasimmet/ugtar | 2023-09-26T18:25:18.510Z | a python script to download tabs from ultimate-guitar.com into html files | main | 0 | 1 | 0 | 0 | - | [
"python",
"wasm",
"zig"
] | 0 | false | 2025-05-02T17:02:24.634Z | true | true | unknown | gitlab | [
{
"commit": "82af61d5f23a22af3df68692ccd0db551885c381",
"name": "zigsh",
"tar_url": "https://gitlab.com/dasimmet/zigsh/-/archive/82af61d5f23a22af3df68692ccd0db551885c381/zigsh.tar.gz",
"type": "remote",
"url": "https://gitlab.com/dasimmet/zigsh"
},
{
"commit": "358f5f33f3fecc6b0b8a1b4be1... | Ultimate Guitar Tab extractor
provides a clean view for UG tabs.
<a>https://ugtar.tsimnet.eu/</a>
Firefox linker addon
The companion extension adds a link from Ultimate Guitar to this app.
You can build it with <code>zig build webext</code> or download the prepacked version from gitlab packages:
<a>https://gitlab.com/dasimmet/ugtar/-/packages</a>
A signed version is only available for firefox. For other browsers like chome,
look into <a>Sideloading web extensions</a>.
running locally with the python stdlib webserver
```
./src/ugtar.py get "https://tabs.ultimate-guitar.com/tab/bob-marley/redemption-song-ukulele-1403074" > a.html
./src/ugtar.py serve
Serving on: http://localhost:8080
```
Fermyon Spin setup
this wrapper uses the <a>spin python sdk</a>
and needs <code>spin >= spin 2.2.0-pre0</code> available
<a>here</a>.
<code>python3 -m venv _venv
. _venv/bin/activate
pip install -U pip wheel
pip install -r requirements.txt
spin build --up</code> | [] | |
null | exp-liacomfa-test-1.0 | lion-labs/team-liacomfa-project/exp-liacomfa-test-1.0 | 2023-09-07T02:15:53.510Z | main | 0 | 0 | 0 | 0 | - | [
"Modular Design",
"module",
"python",
"zig",
"zig-lang"
] | 0 | false | 2024-03-06T21:02:25.093Z | false | false | unknown | gitlab | [] | No readme found | [] | ||
https://secure.gravatar.com/avatar/9cf80c1f1c1c172e11e8ceebc2e40606da859854debeeb14086a2ca8053dd811?s=80&d=identicon | ruby-zig_example | fjc/ruby-zig_example | 2023-04-21T15:46:20.814Z | master | 0 | 0 | 0 | 0 | - | [
"ruby",
"rubygem",
"zig"
] | 0 | false | 2023-05-21T00:50:15.152Z | false | false | unknown | gitlab | [] | 404 | [] | ||
https://secure.gravatar.com/avatar/5eca93d9f27866b99557477bd718e5eed74fafd2365790c43b8627254931a1dd?s=80&d=identicon | zig-container | dasimmet/zig-container | 2023-03-15T13:03:29.674Z | master | 0 | 1 | 0 | 0 | - | [
"container",
"docker",
"docker-image",
"kcov",
"zig"
] | 0 | false | 2025-05-04T21:17:08.858Z | false | false | unknown | gitlab | [] | 404 | [] | ||
/uploads/-/system/group/avatar/61899026/zig.png | cborette | 40hz/zig/cborette | 2023-02-20T10:49:50.876Z | main | 0 | 1 | 0 | 0 | - | [
"cbor",
"zig",
"zig-lang"
] | 0 | false | 2023-03-11T06:08:28.666Z | true | true | unknown | gitlab | [] | cborette
cborette is a very simple low level no overhead CBOR encoding library in Zig. | [] | ||
/uploads/-/system/group/avatar/61964665/zig-zoomed.png | zig-gir-ffi | paveloom-g/zig/zig-gir-ffi | 2023-01-24T13:32:20.623Z | Generate FFI bindings for Zig using GObject Introspection | main | 0 | 0 | 0 | 0 | - | [
"ffi",
"gobject-introspection",
"zig"
] | 0 | false | 2023-02-28T15:37:30.053Z | true | false | unknown | gitlab | [] | Notices
Mirrors
Repository:
- <a>Codeberg</a>
- <a>GitHub</a>
- <a>GitLab</a>
Prerequisites
Make sure you have installed:
<ul>
<li>Development libraries for</li>
<li><code>gobject-introspection</code></li>
<li><code>libxml2</code></li>
<li><a>Zig</a> (<code>v0.10.1</code>)</li>
<li><a>Zigmod</a></li>
</ul>
Alternatively, you can use the <a>Nix flake</a> via <code>nix develop</code>.
Build
First, fetch the dependencies by running <code>zigmod fetch</code>.
To build the binary, run <code>zig build</code>. To run it, run <code>zig build run</code>.
See <code>zig build --help</code> for more build options.
Related
Similar projects:
- <a>DerryAlex/zig-gir-ffi</a> | [] | |
/uploads/-/system/group/avatar/61964665/zig-zoomed.png | zig-girepository | paveloom-g/zig/zig-girepository | 2023-01-20T09:56:28.638Z | Zig bindings for the `girepository` library | main | 0 | 0 | 0 | 0 | - | [
"girepository",
"zig"
] | 0 | false | 2023-01-23T16:44:15.433Z | true | false | unknown | gitlab | [] | Notices
Mirrors
Repository:
- <a>Codeberg</a>
- <a>GitHub</a>
- <a>GitLab</a>
Prerequisites
Make sure you have installed:
<ul>
<li>A development library for <code>gobject-introspection</code></li>
<li><a>Zig</a> (<code>v0.10.1</code>)</li>
</ul>
Build
To build and install the library, run <code>zig build install</code>.
To run unit tests, run <code>zig build test</code>.
See <code>zig build --help</code> for more build options.
Integrate
To integrate the bindings into your project:
1) Add this repository as a dependency in <code>zigmod.yml</code>:
<code>```yml
# <...>
root_dependencies:
- src: git https://github.com/paveloom-z/zig-girepository
```
</code>
2) Make sure you have added the dependencies in your build script:
<code>```zig
// <...>
const deps = @import("deps.zig");
const girepository_pkg = deps.pkgs.girepository.pkg.?;
// <...>
pub fn build(b: *std.build.Builder) !void {
// <...>
// For each step
inline for (steps) |step| {
// Add the library package
step.addPackage(girepository_pkg);
// Link the libraries
step.linkLibC();
step.linkSystemLibrary("gobject-introspection-1.0");
// Use the `stage1` compiler
step.use_stage1 = true;
}
// <...>
}
```
</code> | [] | |
/uploads/-/system/group/avatar/61964665/zig-zoomed.png | zig-gtk4 | paveloom-g/zig/zig-gtk4 | 2023-01-19T15:50:03.919Z | Zig bindings for the `gtk4` library | main | 0 | 0 | 0 | 0 | - | [
"GTK4",
"zig"
] | 0 | false | 2023-01-20T06:57:37.934Z | true | false | unknown | gitlab | [] | Notices
Mirrors
Repository:
- <a>Codeberg</a>
- <a>GitHub</a>
- <a>GitLab</a>
Prerequisites
Make sure you have installed:
<ul>
<li>A development library for <code>gtk4</code></li>
<li><a>Zig</a> (<code>v0.10.1</code>)</li>
</ul>
Build
To build and install the library, run <code>zig build install</code>.
To run unit tests, run <code>zig build test</code>.
See <code>zig build --help</code> for more build options, including how to run examples.
Integrate
To integrate the bindings into your project:
1) Add this repository as a dependency in <code>zigmod.yml</code>:
<code>```yml
# <...>
root_dependencies:
- src: git https://github.com/paveloom-z/zig-gtk4
```
</code>
2) Make sure you have added the dependencies in your build script:
<code>```zig
// <...>
const deps = @import("deps.zig");
const gtk4_pkg = deps.pkgs.gtk4.pkg.?;
// <...>
pub fn build(b: *std.build.Builder) !void {
// <...>
// For each step
inline for (steps) |step| {
// Add the library package
step.addPackage(gtk4_pkg);
// Link the libraries
step.linkLibC();
step.linkSystemLibrary("gtk4");
// Use the `stage1` compiler
step.use_stage1 = true;
}
// <...>
}
```
</code> | [] | |
/uploads/-/system/user/avatar/5893892/avatar.png | zpixdraw | debrayg/zpixdraw | 2023-01-15T06:08:07.190Z | Simple pixel art editor | main | 0 | 0 | 0 | 0 | - | [
"zig",
"zig-lang"
] | 0 | false | 2023-12-20T12:03:22.182Z | true | false | unknown | gitlab | [] | zig_pixdraw
datadump
simple pixel art editor
supports ppm file format
linux only
requires sdl2, X11, Xi
compile with :
<code>zig build</code>
run with (after building) :
<code>zig-out/bin/pixdraw</code>
or with :
<code>zig-out/bin/pixdraw filename.ppm</code>
or with :
<code>zig-out/bin/pixdraw -h</code>
run on wayland
<code>SDL_VIDEODRIVER=wayland zig-out/bin/pixdraw</code>
ubuntu build instruction
on ubuntu 22.04.2
<code>sudo apt install libsdl2-2.0-0
sudo apt install libsdl2-dev
download zig binary
add zig to path
git clone https://gitlab.com/foobababar/zig_pixdraw.git
cd zig_pixdraw
zig build run</code>
added appimage to repo
license
MIT | [] | |
/uploads/-/system/group/avatar/61964665/zig-zoomed.png | zig-libuv | paveloom-g/zig/zig-libuv | 2022-12-30T14:41:47.742Z | Zig bindings for the `libuv` library | main | 0 | 0 | 0 | 0 | - | [
"libuv",
"zig"
] | 0 | false | 2023-01-19T14:55:27.086Z | true | false | unknown | gitlab | [] | Notices
Mirrors
Repository:
- <a>Codeberg</a>
- <a>GitHub</a>
- <a>GitLab</a>
Prerequisites
Make sure you have installed:
<ul>
<li>A development library for <code>libuv</code></li>
<li><a>Zig</a> (<code>v0.10.1</code>)</li>
</ul>
Build
To build and install the library, run <code>zig build install</code>.
To run unit tests, run <code>zig build test</code>.
See <code>zig build --help</code> for more build options, including how to run examples.
Integrate
To integrate the bindings into your project:
1) Add this repository as a dependency in <code>zigmod.yml</code>:
<code>```yml
# <...>
root_dependencies:
- src: git https://github.com/paveloom-z/zig-libuv
```
</code>
2) Make sure you have added the dependencies in your build script:
<code>```zig
// <...>
const deps = @import("deps.zig");
const uv_pkg = deps.pkgs.uv.pkg.?;
// <...>
pub fn build(b: *std.build.Builder) !void {
// <...>
// For each step
inline for (steps) |step| {
// Add the library package
step.addPackage(uv_pkg);
// Link the libraries
step.linkLibC();
step.linkSystemLibrary("libuv");
// Use the `stage1` compiler because of
// https://github.com/ziglang/zig/issues/12325
step.use_stage1 = true;
}
// <...>
}
```
If you'd like a static build, take a look at the stab in the [`zigmod.yml`](zigmod.yml) file.
</code> | [] | |
/uploads/-/system/group/avatar/61899026/zig.png | accept | 40hz/zig/accept | 2022-12-28T08:13:56.744Z | Simple line editing library mainly for embedded targets. | main | 0 | 1 | 0 | 0 | - | [
"embedded",
"zig",
"ziglang"
] | 0 | false | 2023-03-05T09:40:28.933Z | true | true | unknown | gitlab | [] | Accept for Zig
<code>accept</code> is a simple line editing library primarily aimed at embedded targets
for the <a>Zig</a> programming language. It works either in minimal
mode where only backspace is supported, or in slightly more advanced mode where
also cursor motions are enabled.
<code>accept</code> handles one character at a time, and only requires a function to print a
character as additional input. | [] | |
null | computational-gas-dynamics | paveloom-g/university/s11-2022/computational-gas-dynamics | 2022-11-23T14:35:35.294Z | Modelling convection with the large-particle method | main | 0 | 0 | 0 | 0 | - | [
"gas-dynamics",
"zig"
] | 0 | false | 2022-12-13T18:12:24.412Z | true | false | unknown | gitlab | [] | Notices
Mirrors
Repository:
- <a>Codeberg</a>
- <a>GitHub</a>
- <a>GitLab</a>
Prerequisites
Make sure you have installed:
<ul>
<li><a>Julia</a></li>
<li><a>Zig</a> (<code>v0.10.0</code>)</li>
<li><a>Zigmod</a></li>
</ul>
Optionally, you might also want to install <a>Tracy Profiler</a>.
Build
First, fetch the dependencies with <code>zigmod fetch</code>.
To build and install the library, run <code>zig build install</code>.
To run unit tests, run <code>zig build test</code>.
See <code>zig build --help</code> for more build options.
Example
To run the example which simulates the convection process, run one of the following:
```bash
Run with the default allocator
zig build run -- -o res.bin -j $(nproc)
zig build run -Drelease-fast -- -o res.bin -j $(nproc)
Run with the Tracy integration
zig build run -Dtracy -Drelease-fast -- -o res.bin
zig build run -Dtracy -Dtracy-depth=10 -Drelease-fast -- -o res.bin
Run with the testing allocator
zig build test-run
Run the benchmark
zig build bench
zig build bench -Drelease-fast
```
See <code>zig build --help</code> for more build options.
See <code>zig build run -- --help</code> for CLI arguments.
To animate the results, first, instantiate the project with
<code>bash
julia --project=. -e "using Pkg; Pkg.instantiate()"</code>
Then, run one of the following
```bash
Run without a daemon
julia --project=. scripts/animate.jl res.bin
julia --project=. scripts/animate.jl --postfix "'Custom postfix'" res.bin
Run with a daemon
./julia.bash scripts/animate.jl res.bin
./julia.bash scripts/animate.jl --postfix "'Custom postfix'" res.bin
```
Use the <code>--help</code> flag to get help information.
To kill the daemon, run <code>./julia.bash kill</code>. | [] | |
/uploads/-/system/user/avatar/5893892/avatar.png | zig_snake | debrayg/zig_snake | 2022-11-01T08:11:21.402Z | master | 0 | 0 | 0 | 0 | - | [
"zig",
"zig-lang",
"ziglang"
] | 0 | false | 2022-11-07T05:03:00.533Z | false | false | unknown | gitlab | [] | 404 | [] | ||
/uploads/-/system/user/avatar/5893892/avatar.png | zig-basics | debrayg/zig-basics | 2022-10-18T07:07:05.414Z | main | 0 | 1 | 0 | 0 | - | [
"zig",
"zig-lang",
"ziglang"
] | 0 | false | 2024-01-28T06:11:25.711Z | false | false | unknown | gitlab | [] | zig basics
why ?
These are zig code snippets straight to the point.
For learning purpose.
how to use :
<code>zig build-exe file.zig
./file</code>
or
<code>zig test file.zig</code>
references :
https://ziglang.org/documentation/master/
https://ziglearn.org/
https://ziglang.org/documentation/master/std/#root
zig version
latest | [] | ||
null | cargo-zigbuild | sbenv/veroxis/images/cargo-zigbuild | 2022-06-14T18:58:48.691Z | weekly build of rusts `zigbuild` crate | master | 0 | 0 | 1 | 0 | - | [
"aarch64",
"build-tools",
"docker",
"rust",
"rust-lang",
"rustlang",
"toolchain",
"x86_64",
"zig"
] | 0 | false | 2024-11-30T03:11:30.545Z | false | false | unknown | gitlab | [] | No readme found | [] | |
null | zig | sbenv/veroxis/images/zig | 2022-06-14T16:17:50.745Z | daily build of an alpine image containing the latest zig-master release | master | 0 | 0 | 1 | 0 | - | [
"aarch64",
"docker",
"x86_64",
"zig"
] | 0 | false | 2024-11-22T03:11:51.372Z | false | false | unknown | gitlab | [] | 404 | [
"https://github.com/EngineersBox/Flow",
"https://github.com/lfcm64/z-tree-sitter"
] | |
https://secure.gravatar.com/avatar/ffa2e0467c0f3ec160b6791faecc4e6aed3d22bee69091c1d2d3640a34633acb?s=80&d=identicon | zig-luajit | bcareil/zig-luajit | 2022-05-16T20:09:37.409Z | Luajit bindings for Zig | main | 0 | 0 | 0 | 0 | - | [
"lua",
"luajit",
"zig"
] | 0 | false | 2022-05-28T19:40:58.176Z | true | false | unknown | gitlab | [] | 404 | [] | |
https://secure.gravatar.com/avatar/ffa2e0467c0f3ec160b6791faecc4e6aed3d22bee69091c1d2d3640a34633acb?s=80&d=identicon | poz | bcareil/poz | 2022-05-16T20:05:04.486Z | main | 0 | 0 | 0 | 0 | - | [
"zig"
] | 0 | false | 2022-05-22T20:36:10.781Z | true | false | unknown | gitlab | [] | No readme found | [] | ||
null | slpm | slpm/slpm | 2021-10-17T01:51:37.329Z | Static Lua Package Manager | main | 0 | 0 | 0 | 0 | - | [
"lua",
"luajit",
"musl",
"zig"
] | 0 | false | 2021-11-24T04:10:44.776Z | false | false | unknown | gitlab | [] | 404 | [] | |
/uploads/-/system/user/avatar/8441882/avatar.png | zig-vte | jeang3nie/zig-vte | 2021-06-21T01:45:16.133Z | Zig wrappers and convenience functions around the Vte and Gtk+ libraries | odin | 0 | 0 | 0 | 0 | - | [
"gtk",
"library",
"terminal-emulator",
"vte",
"zig"
] | 0 | false | 2022-11-17T23:44:59.670Z | false | false | unknown | gitlab | [] | 404 | [] | |
/uploads/-/system/user/avatar/8441882/avatar.png | zig-gtk3 | jeang3nie/zig-gtk3 | 2021-06-10T23:08:03.323Z | Some convenience methods to use gtk3 from Zig | odin | 0 | 2 | 0 | 0 | - | [
"gtk",
"library",
"zig"
] | 0 | false | 2022-10-01T16:25:46.147Z | false | false | unknown | gitlab | [] | 404 | [] | |
https://secure.gravatar.com/avatar/823b1f56acf95990caa9cddb747263e52e63798304d1d8fcb90b3dca0fe16e10?s=80&d=identicon | ethminer-wrapper | Scr0nch/ethminer-wrapper | 2021-05-21T00:59:39.686Z | Restarts ethminer whenever a DAG regeneration is detected to work around a hashrate-dropping bug | master | 0 | 0 | 0 | 0 | - | [
"ethereum",
"zig"
] | 0 | false | 2021-05-21T00:59:39.686Z | false | false | unknown | gitlab | [] | 404 | [] | |
https://secure.gravatar.com/avatar/ffa2e0467c0f3ec160b6791faecc4e6aed3d22bee69091c1d2d3640a34633acb?s=80&d=identicon | tmux-status-sysperf | bcareil/tmux-status-sysperf | 2021-02-04T21:11:36.722Z | Basic system performance monitor for tmux status line. | master | 0 | 0 | 0 | 0 | - | [
"sysmon",
"tmux",
"zig"
] | 0 | false | 2021-02-28T20:16:47.941Z | false | false | unknown | gitlab | [] | 404 | [] | |
/uploads/-/system/user/avatar/7572512/avatar.png | zig-overlay | arqv/zig-overlay | 2020-11-07T13:33:48.880Z | Overlay for Nix providing up to date versions of the Zig toolchain | master | 0 | 0 | 0 | 0 | - | [
"nix",
"zig"
] | 0 | false | 2020-11-07T17:05:38.090Z | false | false | unknown | gitlab | [] | 404 | [] | |
https://secure.gravatar.com/avatar/823b1f56acf95990caa9cddb747263e52e63798304d1d8fcb90b3dca0fe16e10?s=80&d=identicon | zig-mandelbrot-set-visualizer | Scr0nch/zig-mandelbrot-set-visualizer | 2020-07-15T17:43:33.148Z | A cross-platform application that can visualize the Mandelbrot Set with GPU acceleration. | master | 0 | 0 | 0 | 0 | - | [
"Mandelbrot set",
"fractal",
"glfw",
"vulkan",
"zig"
] | 0 | false | 2024-11-04T05:50:13.887Z | false | false | unknown | gitlab | [] | 404 | [] | |
https://secure.gravatar.com/avatar/823b1f56acf95990caa9cddb747263e52e63798304d1d8fcb90b3dca0fe16e10?s=80&d=identicon | zig-brains | Scr0nch/zig-brains | 2020-07-15T00:29:30.029Z | A plugin for JetBrains IDEs that adds Zig language support. | master | 0 | 1 | 0 | 0 | - | [
"intellij",
"zig"
] | 0 | false | 2021-06-13T22:11:56.410Z | false | false | unknown | gitlab | [] | 404 | [] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.