3 ms·
Interesting. Some unusual syntax in there, with for loops and arrays, for example. What are some more serious projects made with Zig?
by emptyparadise 6y ago
Interesting. Some unusual syntax in there, with for loops and arrays, for example. What are some more serious projects made with Zig?
- flohofwoe 6y agoNot "serious" at all but I wrote a Pacman clone over the holidays as an excercise and test for my cross-platform C header bindings: https://github.com/floooh/pacman.zig https://github.com/floooh/pacman.zig ...and before that I did the same in C99 (might be useful for comparing the languages): https://github.com/floooh/pacman.c https://github.com/floooh/pacman.c Disclaimer: I'm not a Zig expert at all, and the project doesn't really require most Zig features that differ from C. But I think writing small and "for-fun" projects like this is important for getting used to a language. I think one of Zig's big qualities is that it is so straightforward, after a few hundred lines you hardly have to look up things in the language documentation anymore.
- emptyparadise 6y agoThanks! I was using "serious" very loosely, more in a sense of wanting to see the language in action beyond demonstrations and examples.
- jorangreef 6y agoTigerBeetle (an accounting database for a high throughput payments switch): https://github.com/coilhq/tigerbeetle https://github.com/coilhq/tigerbeetle We're serious in the sense of very much alpha, and with a long way to go, hopefully intersecting with Zig's stability program in the next year or so, but we have some demos and benchmarks in there of using Zig for io_uring. Zig's std lib already has io_uring helpers based on liburing's design, which we contributed. We would have gone with C for its ABI, OOM-safety and control over memory layout, but considered Zig ready enough given our own medium term timeline, and the developer velocity and safety is already paying off. We also wanted a fantastic compiler, which Zig already provides. I personally wouldn't go back to C for a new project like this.
- mkeeter 6y agoI wrote a shader preview GUI using Zig, Neovim, and WebGPU (basically a desktop Shadertoy). It's named "Futureproof": https://www.mattkeeter.com/projects/futureproof/ https://www.mattkeeter.com/projects/futureproof/