cryptocode

joined 2 years ago
MODERATOR OF
 

By Brook Jeynes

Length: 8:32

Description:

Inter-process communication is a way to share information between different processes. In this video, I'll dive into what IPC is and how to create shared memory with Zig.

Disclaimer: This code is not production safe and just for educational purposes.

You can find the code written in this video here: https://github.com/BrookJeynes/zig-shared-memory

 

From the README:

zig-gpio is a Zig library for controlling GPIO lines on Linux systems

This library can be used to access GPIO on devices such as Raspberry Pis or the Milk-V Duo

5
submitted 2 years ago* (last edited 2 years ago) by cryptocode@lemm.ee to c/zig@lemm.ee
 

Cyber is a programming language for fast and concurrent scripting. Implemented mostly in Zig.

Release notes: https://cyberscript.dev/0.3/

Github: https://github.com/fubark/cyber

 

From the README:

A tiny library to allow writing to and reading from stream (a Reader and a Writer in Zig) in bits.

The original credits go to MichaelDipperstein for their implementation of bitfile.

 

From the README:

Libui-ng is a C library for creating cross-platform applications using the native widget toolkits for each platform. These bindings are a manual cleanup of the cimport of ui.h.

Each control type has been made an opaque with the extern functions embedded within in them. Additionally, functions using boolean values have been converted to use bool. Some helper functions have been made for writing event handlers.

 

From the README:

This library helps to interact with NVIDIA GPUs from Zig.

Features:

  • Memory Allocation in GPU with defined size.
  • Copying data from host to gpu and viceversa.
  • Compiling (.cu) and loading kernels (.ptx) both from file and text.
  • Running kernels with grid/blocks/threads configuration.
 

An implementation of face-hh 's Bussin esoteric language written in Zig with a custom bytecode virtual machine and component-based mark and sweep garbage collector.

 

From the README:

*Zvisor is an open-source hypervisor written in the Zig programming language, which provides a modern and efficient approach to systems programming. Zvisor leverages the KVM (Kernel-based Virtual Machine) virtualization technology, which is built into the Linux kernel, to provide a lightweight and flexible virtualization solution.

One of the key benefits of Zvisor is its use of the Zig programming language. Zig provides a modern and efficient approach to systems programming, with features like memory safety, error handling, and compile-time optimization.

 

A benchmarking library for zig.

  • Uses built in monotonic, high performance timer.
  • Warms up to remove function call overhead time.
  • Supports lifecycle hooks like beforeAll, afterEach, etc.
  • Can export raw benchmark data to JSON.
  • Vibrant terminal output with easy to read data.
  • Highly customizable
 

Written in 2019, but re-announced with fixed today on Discord

https://fabioarnold.itch.io/snake

 

Lurk is a Vulkan or OpenGL overlay (similar to mangohud, or the steam overlay) that uses ImGui to draw into the render pipeline of 3D applications the participants in your current Discord voice/video chat. It can tell who is talking and when, and if they are deafened/muted. The code is still a mess at the moment in some parts, but that can be iterated on.

 

From the post:


Yes you heard that right, this game is written entirely in Typescript type annotations, which—if you didn’t know—are Turing complete.

So how the hell am I runnning it in the browser and rendering the game in Typescript types?

The basic rundown is that I created a type-level Typescript runtime, allowing Typescript types to be run outside of the Typescript compiler/language server.

This “runtime” is a custom VM implemented in Zig, which executes a custom bytecode format I compile Typescript code into.

view more: ‹ prev next ›