zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
### Zig Version 0.11.0-dev.1836+28364166e (but it doesn't matter) ### Steps to Reproduce and Observed Behavior The Zig package on Nix requires this patch: https://github.com/NixOS/nixpkgs/blame/e6e389917a8c778be636e67a67ec958f511cc55d/pkgs/development/compilers/zig/0.10.nix#L48-L51 If I use a precompiled `zig`...
1. find local/pkg headers & libs 2. avoid ldd error on executables too: $ ldd -v main_4segs .../main_4segs: wrong number of segments (4 != 2) .../main_4segs: invalid ELF class 2;...
### Zig Version 0.12.0-dev.3667+77abd3a96 ### Steps to Reproduce and Observed Behavior 1. Create a zig module which has one option called `foo`. 2. Use createModule() and make the options available...
## Problem Generic functions, as currently supported in Zig have the form ```zig fn eql(x: anytype, y: @TypeOf(x)) bool { return x == y; } ``` This works well enough...
## Rationale ## In the discussion of '#1717 function expressions' there are a lot of comments that touch a topic of function signature inference: https://github.com/ziglang/zig/issues/1717#issuecomment-444200663 https://github.com/ziglang/zig/issues/1717#issuecomment-514536941 https://github.com/ziglang/zig/issues/1717#issuecomment-565284947 https://github.com/ziglang/zig/issues/1717#issuecomment-573472295. Which is...
Most notable improvements include `realpath` and stubs for `statvfs`, `chmod`, etc. Other changes are for WASI 0.2 which is going to be painful to support since 3rd party tools written...
# Problem A common pattern when making an import is to make a top level declaration importing that module, and then make top level declarations for the namespaces of that...
### Zig Version 0.12.0-dev.3667+77abd3a96 ### Steps to Reproduce and Observed Behavior ## 1. Source files ```c // problematic.h static inline int problematic_func(void) { typedef int test_type_t; extern const test_type_t problematic_variable_1;...
### Zig Version 0.12.0-dev.3659+1e5075f81 ### Steps to Reproduce and Observed Behavior with a simple test program: ``` int main(){} ``` use `zig cc`: ``` $ zig cc -o test test.c...
Add `Date`, `Time`, and `DateTime` structs with functions to convert to/from epoch subseconds and to add durations to them. These types are based off generic types which let the user...