Hacker GitHub

← All repos

floooh/sokol-zig

View on GitHub ↗ ★ 742 C

Zig bindings for the sokol headers (https://github.com/floooh/sokol)

11 mentions on Hacker News by 2 people: 0 stories, 11 comments · first 2019-10-02 · latest 2026-02-20

Mentions per year 11 mentions · busiest year 2021 (3)
20082026
  1. …same issues as Rust, but at least the compiler is able to infer the nested struct types via `.{ }`: https://github.com/floooh/sokol-zig/blob/17beeab59a64b12c307... I don't have C++ code around, but compared to C99 it has the following…
    comment by flohofwoe · 2026-02-20 · in Defer available in gcc and clang
  2. …to this C99 code: https://github.com/floooh/sokol-samples/blob/b3bc55c4411fa03... ...is this: https://github.com/floooh/sokol-zig/blob/a4b3c287fadd153a504... ...note how part of the initialization had to be moved out into separate…
  3. …it comes to language features (for instance the Zig examples don't use any comptime features): Zig: https://github.com/floooh/sokol-zig/tree/master/src/examples Nim: https://github.com/floooh/sokol-nim/tree/master/examples Odin:…
    comment by flohofwoe · 2023-08-01 · in Nim 2.0
  4. …headers too: https://github.com/floooh/sokol ...there are also auto-generated Zig bindings btw ;) https://github.com/floooh/sokol-zig
    comment by flohofwoe · 2023-04-29 · in Learn WebGPU
  5. …options, I really want to do the build description in a loop instead of a data tree. (for example: https://github.com/floooh/sokol-zig/blob/3f978e58712f9eb029b... ) PS: apparently Meson build scripts can also have variables, conditions and…
    comment by flohofwoe · 2023-04-14 · in Zig build system
  6. …can directly include C headers) or use the header to auto-generate the bindings. For example: - https://github.com/floooh/sokol-zig - https://github.com/floooh/sokol-nim - https://github.com/floooh/sokol-odin These are all auto-generated…
  7. …stuff in Zig :) [0] https://github.com/floooh/pacman.zig [1] https://github.com/floooh/sokol [2] https://github.com/floooh/sokol-zig [3] https://github.com/schellingb/wajic
    comment by flohofwoe · 2022-07-13 · in Zig and WASM
  8. …plug) Here's another cross-platform alternative, auto-generated Zig bindings to the Sokol headers: https://github.com/floooh/sokol-zig This is quite a bit slimmer than using one of the WebGPU libraries like wgpu-rs or Dawn, because…
  9. …the git repo. Zig and Nim are sort-of "in progress" (for instance, see the sokol-zig bindings here: https://github.com/floooh/sokol-zig/ )
  10. …...and here's an example of such semi-auto-generated Zig bindings: https://github.com/floooh/sokol-zig/tree/master/src/sokol ...for instance note the "injected" helper functions here: https://github.com/floooh/sokol-zig/blob/
  11. …a Zig port of his lightweight Sokol graphics API and b) has a penchant for retro consoles. https://github.com/floooh/sokol-zig