ziglua
cosmic
Our great sponsors
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ziglua
-
Zig's Curious Multi-Sequence for Loops
I’ve absolutely had satisfaction with my several personal projects written in Zig. And based on an imperfect measurement (GitHub stars) I have also had moderate success in making something useful. It’s a terminal fuzzy finder [0]. I also maintain a Zig Lua bindings package [1], and I’m working on a port of an old Macintosh game [2].
Zig is exactly what I want out of a language though, so take my opinion with a grain of salt :)
[0]: https://github.com/natecraddock/zf
[1]: https://github.com/natecraddock/ziglua
[2]: https://github.com/natecraddock/open-reckless-drivin
-
How's the current story with Zig in terms of dependancy management and build repeatability?
Zig has a build system (the zig build command) that uses a build.zig file to compile a project. With a git submodule you just add the directory as a package in the build.zig file. Depending on the dependency, there might be a few more steps. For example, for my ziglua library requires adding the package path (so you can @import the zig sources), and also calling the link function which compiles the Lua C source and links with the Zig project.
-
Zig is becoming more production-worthy - zigmonthly
ziglua was released, which "takes advantage of Zig's features to make it easier and safer to interact with the Lua API."
- natecraddock/ziglua: Zig bindings for the Lua C API
cosmic
-
Zig is becoming more production-worthy - zigmonthly
What if you could develop native applications in JavaScript or WASM, with a runtime that is not Electron? Cosmic is one answer to that, and a project to keep an eye on for sure:
-
3D Animation and Dynamic Lighting
You can play with the demo by running the example code here: https://github.com/fubark/cosmic/blob/master/graphics/examples/3d.zig
-
Updates to Cosmic Graphics, Text, UI.
Example can be found at https://github.com/fubark/cosmic/blob/master/ui/examples/text_demo.zig
-
UI Engine in Zig
Definitely want to target Vulkan/Metal/DirectX. Also would like to support WebGPU when it's ready. The drawing is conveniently abstracted away in https://github.com/fubark/cosmic/blob/master/graphics/src/graphics.zig
-
Polygon Tessellator in Zig
The demo app is at https://github.com/fubark/cosmic/blob/master/tools/visual-tess.js and the zig implementation is at https://github.com/fubark/cosmic/blob/master/graphics/src/tessellator.zig
-
A runtime for Javascript built with Zig and V8.
I have been working on a general purpose runtime for JS. It's at a point where it's functional on linux/macos/windows with examples including a fun paddle ball game. https://github.com/fubark/cosmic
- 2D Graphics Lib for UI/games
What are some alternatives?
zigimg - Zig library for reading and writing different image formats
cosmic - Computer Operating System Main Interface Components
zf - a commandline fuzzy finder designed for filtering filepaths
open-reckless-drivin - A work-in-progress open source reimplementation of the classic Macintosh shareware game Reckless Drivin'
zig_learn_opengl - Follow the Learn-OpenGL book using Zig
fundude - Gameboy emulator: Zig -> wasm
zigtoys - All about Zig + WASM and seeing what we can do
zig - General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
mach - zig game engine & graphics toolkit