zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
Would be great to add proper support for this OS - https://www.haiku-os.org/ Headers: https://github.com/haiku/haiku/tree/master/headers ----- The current goal is Tier 3. Once Zig reaches Tier 3 this issue will get...
Normally, Valgrind runs with `--smc-check=stack` or `--smc-check=all-non-file` (depending on architecture) to deal with self-modifying code. However, if the program issues a `VALGRIND_DISCARD_TRANSLATIONS` client request whenever it modifies code, one can...
Fixes #23999. The root cause of this issue was that the expression passed into the `__builtin_convertvector` upon translation into zig code was evaluated for every component of vector. This means...
Simply puts `getpid()` and `getppid()` into `std.posix` by making use of `posix.system` if available. Removes a tiny bit of boilerplate when making cross-Darwin-Linux platform stuff by not referencing `std.c` or...
### Zig Version 0.14.0 ### Steps to Reproduce and Observed Behavior Navigate to std.os.windows.OBJECT_ATTRIBUTES The `ObjectName` field is not nullable ### Expected Behavior According to [this](https://ntdoc.m417z.com/object_attributes) unofficial ntdll document, `ObjectName`...
### Zig Version 0.14.0-dev.2474+ee47094a3 ### Steps to Reproduce and Observed Behavior ```zig const std = @import("std"); pub fn main() void { var f: f16 = 32785; _ = &f; const...
EDIT: Some motivation: The point of a reference is to describe the language succinctly and accurately, without saying only "go read the formal specification". LLVM's description of the memory model,...
Basically everything that has a direct replacement or no uses left. Notable omissions: - std.ArrayHashMap: Too much fallout, needs a separate cleanup. - std.debug.runtime_safety: Too much fallout. - std.heap.GeneralPurposeAllocator: Lots...
The `zig env` command does not respect the `ZIG_LIB_DIR` environment variable which seems to be unintentional as the similar `ZIG_GLOBAL_CACHE_DIR` variable is being handled as expected. With the recent addition...
This is my first pull request, feedback welcome.