zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
The current event loop is not ready yet (relatively slow, windows unfinished, bugs/races) and many wish for it to be. From the discord communities at least, there seems to be...
### Zig Version 0.10.0-dev.4476+0f0076666 ### Steps to Reproduce ``` const std = @import("std"); pub fn main() !void { std.debug.print("begin...\n", .{}); std.debug.print("{}\n", .{std.mem.bytesToValue(usize, &[_]u8{ 49, 48, 48 })}); //not work std.debug.print("{!}\n",...
I was playing around with the latest version of Zig (https://ci.appveyor.com/project/andrewrk/zig-d3l86/build/0.2.0+95f45cfc) on ARM Cortex-M0 and I had a lot of issues with missing compiler_rt functions. It was missing '__aeabi_memcpy' It...
Please have a look at https://github.com/upx/upx-test-build-with-zig, a tiny repository that consists of a single GitHub Actions workflow file to build the C++ app [UPX](https://github.com/upx/upx) for 51 different targets, and also...
### Zig Version 0.10.0-dev.4185+9c2fb6e18 ### Steps to Reproduce ```zig const std = @import("std"); test "sentinel slice zeroes" { const S = struct { ss: [:0]const u8, }; var a: S...
I discovered when I was benchmarking some parser code I was working on. As the title states, the current implementation of `std.mem.eql` is very naive: https://github.com/ziglang/zig/blob/bf67a3fdc9efea7126058b21e687c24868bc1268/lib/std/mem.zig#L485-L493 It iterates over slices...
## Environment * Linux with x86_64 kernel and i386 glibc userspace * Zig snapshot from `zig-linux-x86_64-0.8.0-dev.1104+5e81b048a.tar.xz` tarball ``` $ zig version 0.8.0-dev.1104+5e81b048a ``` ## Minimal reproducible example ```zig // dummy.zig...
I'm attempting to build a .NET NativeAOT project using `zig c++ -target x86_linux-gnu` as the system compiler/linker, so that it can build with a low glibc (2.17) instead of my...
Packed memory has a well-defined layout that doesn't require actually using a BigInt to read from. Let's use it :-) Included changes: - Adds `readPackedInt`, `writePackedInt` and friends to `std.mem`...
### Zig Version 0.10.0-dev.4403+f9192adab ### Steps to Reproduce using current prebuild binary using a default helloworld.c in /somewhere/hello/: `#include ` `int main(int argc, char **argv) { printf("Hello World\n"); return 0;...