Closed mattn closed 2 years ago
I think this image is using alpine as a base image.
There is a zig package on alpine:edge
Okay I'm checking out the code, let's see why it doesn't seem to know the package.
+zig | --> RUN --no-cache zig build-exe -OReleaseFast leibniz.zig
+zig | ./leibniz.zig:8:88: error: integer value 2 cannot be coerced to type 'std.fmt.ParseIntError!i64'
+zig | var rounds = try std.fmt.parseInt(i64, std.mem.trim(u8, buffer[0..n], "\n"), 10) + 2;
There was also a problem with the code. I fixed that.
@mattn thank you for your contribution! 👍
ReleaseFast
is this fast math?