ominitay
ominitay
### Zig Version 0.10.0-dev.3313+cff5d9c80 (stage2) ### Steps to Reproduce Attempt to compile one of the following examples: ```zig var bytes: [1024]u8 = undefined; export const length = bytes.len; ``` ```zig...
ShellSaber is entering maintenance mode. I have taken this decision because the codebase has become cluttered, thanks to both a lack of initial planning, and the fact that this is...
Pointers are different lengths depending on whether memory addresses are 64 or 32-bits long. This will cause the library to fail on non-64 bit architectures, as the sizes of structs...
This commit adds support for Vulkan to the wrapper API. Use is similar to using the Vulkan bindings, using `getWrapperPackageVulkan` rather than `getWrapperPackage`, passing the Vulkan package obtained from `vulkan-zig`....
Many parts of `std` still use stage1-style function pointers. This PR removes all instances of this, replacing them with the use of `std.meta.FnPtr`. Additionally, manually-written `if` statements have been replaced...
This PR changes `std.mem.trimLeft`, `...trimRight`, and `...trim` to allow the use of both mutable and non-mutable slices. Previously, either a dangerous `intToPtr` was needed, or the slice's data had to...
### Zig Version 0.10.0-dev.4418+99c3578f6 ### Steps to Reproduce Attempt to build and run the attached Zig program with stage2 in either Debug or ReleaseSafe mode. ### Expected Behavior The program...
### Zig Version 0.10.0-dev.4418+99c3578f6 ### Steps to Reproduce Write Zig code which uses an `else if` statement, but misses out the `if` keyword, for example: ```zig const std = @import("std");...
This PR implements the `@depositBits` and `@extractBits` builtins, which correspond to the `pdep` and `pext` instructions in the x86 BMI2 extension (see #14995). On architectures where these instructions are unavailable,...
Implements `@depositBits` and `@extractBits`, corresponding to `pdep` and `pext` from BMI2. The builtins are supported in the LLVM backend for any integer width, are supported in the x86 backend for...