cryptocode

joined 2 years ago
MODERATOR OF
 

From the README:

Similar to std.MultiArrayList() but backed by fixed size arrays with a shared runtime length.

Each field of T becomes an array with max length buffer_capacity. To access the arrays as slices use items(field) or constItems(field).

Useful when a struct of small arrays is desired with capacity that is known at compile time. Like std.BoundedArray, MultiBoundedArrays are only values and thus may be copied.

[–] [email protected] 1 points 5 days ago

Yep, it's a good one and one to follow :)

[–] [email protected] 2 points 6 days ago

Good memories of Turbo Pascal 5.5 ;)

[–] [email protected] 1 points 6 days ago (2 children)

Dunno, I was just summarizing and linking the article. What is not mentioned in the article is Zig's upcoming incremental compilation which is bonkers fast. Either way I'll follow this effort with great interest.

 

Roc's compiler is being rewritten in Zig primarily due to significantly faster compile times, which have been a major pain point in Rust.

Zig's allocator-based memory management, better tooling for static binaries, and built-in support for optimization techniques (like struct-of-arrays and bit-packing) align better with Roc’s needs.

 

From the README:

... a self-contained sample Zig codebase capable of building a Nintendo 64 ROM. Nothing shows up on the screen (yet), but it'll nonetheless run on real hardware (with debug output via USB on a SummerCart 64) or on low-level emulators like Ares (with debug output if the emulator supports ISViewer-based debug logging).

 

From the README:

Welcome to ZigROS! ZigROS is an alternative build system for ROS2 utilizing the zig tool chain. ZigROS prioritizes static, single executable builds and edge deployments. Wrapping all the core C and C++ libraries, it greatly simplifies the ROS installation and deployment process by masquerading ROS2 as a single library. Simply include ZigROS as a dependency in your build.zig.zon and start building. No messing about with your package manager, ROS dep, or docker required.

ZigROS is suitable for building applications that depend on rcl or rclcpp. This includes interface generation for c and c++. Since the main goal of this project is static builds, python at runtime is out of scope. Python at build time is still required since ROS relies heavily on empy for the code generation. See the python section later on for more detail on how python is used.

 

From the README:

A (partial) implementation of the Lox scripting language from the book Crafting Interpreters, in Zig.

Enough of the compiler and vm are complete to run some interesting programs.

 

From the README:

This library is a wrap for original MinHook library. It's uses Zig build system to statically-compile source library and uses MinHook.h header file to wrap library functions.

 

Great interactive blog post about the Zig comptime feature

 

From the README:

Simple and fast general purpose work queue. The beauty of Beanstalkd is its absolute simplicity.

beanstalkz is a Zig client to beanstalkd

 

Ghostty, a terminal emulator written in Zig, just hit 1.0. Here's the HN discussion: https://news.ycombinator.com/item?id=42517447

 

From the README:

A high-performance bleeding edge Discord library in Zig, featuring full API coverage, sharding support, and fine-tuned parsing

Sharding Support: Ideal for large bots, enabling distributed load handling. 100% API Coverage & Fully Typed: Offers complete access to Discord's API with strict typing for reliable and safe code. High Performance: Faster than whichever library you can name (WIP) Flexible Payload Parsing: Supports payload parsing through both zlib and zstd*. Proper error handling

 

From the README:

Commy is a small utility used to connect and monitor serial, UART or COM port devices.

Commy runs on Mac, Linux and Windows. Windows support is experimental.

Does (some of) the same things as tio, minicom, screen, miniterm.py, zcom, PuTTY, etc.

 

FFI and C interop and how to do it safely from Zig

view more: next ›