zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
Steps to reproduce: ### 1. Take `CoreFoundation.tbd` from an existing MacOS M1 host I use Ventura 13.2.1: ``` $ find ~/x/trimmed/ -type f /home/motiejus/x/trimmed/MacOSX13.1.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation.tbd ``` ### 2. Compile a Go...
Move to c/darwin.zig as they really are libSystem/libc imports/wrappers. As an added bonus, get rid of the nasty `usingnamespace`s which are now unneeded. Finally, add `os.ptrace` but currently only implemented...
Sends post-quantum secure hybrid key share X25519+Kyber768Draft00, deployed by [Cloudflare](https://blog.cloudflare.com/post-quantum-for-all/). A few notes: 1. The method of hybridisation is as per this [IETF TLS WG draft](https://datatracker.ietf.org/doc/html/draft-ietf-tls-hybrid-design) version -06. 2. Kyber...
Zig Version: `0.10.0-dev.4583+875e98a57`  To reproduce: ``` stage3/bin/zig build -p stage4-tracy -Dskip-install-lib-files -Drelease -Dtracy=$HOME/Downloads/tracy -Dstatic-llvm --search-prefix ~/dev/zig-bootstrap/out/x86_64-linux-musl-baseline -Dtarget=native-native-musl ``` Next run tracy, press the connect button. Finally: ``` stage4-tracy/bin/zig build...
### Zig Version 0.10.1 ### Steps to Reproduce and Observed Behavior I wanted to use the project cargo-zigbuild to cross build my Rust program using ziglang. The issue is that...
### Zig Version zig-0.11.0-dev.1971+5a12d0070 ### Steps to Reproduce and Observed Behavior Zig compiler crashes in `zig build` on https://github.com/ringtailsoftware/zig-embeddir/tree/crashbug Possibly it's to do with using this map before it's created?...
It seems like the original code of setsockopt is not effective because i catch the EINVAL branch when uncomment this code, it should call setsockopt before the bind call. This...
I noticed this comment saying the intent of the code's author was unclear. `setName`: `prctl` can set or get the name of the "calling thread", i.e. the thread that calls...
It doesn't matter if a pointer to a zero-bit (i.e. OPV) type is undefined or runtime-known; we still know the result of the dereference at comptime. Code may use this,...