ifreund
Joined 7 years ago
Joined 7 years ago
zig cc -target x86_64-linux-gnu.2.28
That's not at all how the implementation works, the zig compiler does not depend on qemu. The comptime evaluation works much more like evaluating an interpreted language such as python.
Are you perhaps confusing this with statements made about the debug and release safe build modes?
> Andrew: It’s funny how it just kind of changes course as the language gets taken more and more seriously. And now, all the comments are even starting to shift to kind of like the philosophy of memory safety and whether Zig is immoral.
I'd suggest you go listen to the podcast or at least read the "Zig Is Immoral and Unsafe" section of the transcript as well as the following one.
We hope to be using TigerBeetle which is written in zig in production in 2022: https://github.com/coilhq/tigerbeetle
var tuple_params = html.create("{[foo]} ... {[bar]} ... {[observable]}", .{
.foo = a,
.bar = b+c,
.observable = observable,
});
It's verbose and explicit to be sure, but quite readable IMO.https://github.com/ziglang/zig/issues/4830#issuecomment-6054...
https://github.com/ziglang/zig/blob/master/lib/std/comptime_...