David Rubin

Results 111 comments of David Rubin

> in this case all the same value anyway (in some sense at least). This is what I disagree with. There might be some existing precedent that supports the argument...

My 2c after thinking about this for a bit: 1. the `Undefined` one should totally be illegal, that is a really silly pattern that should never be written. 2. This...

Probably should add a test yes :)

was able to repro: ``` thread 14450 panic: reached unreachable code /home/dr/zig/build/stage3/lib/zig/std/debug.zig:342:14: 0x9107bc in assert (zig) if (!ok) unreachable; // assertion failure ^ /home/dr/zig/src/Module.zig:4755:19: 0xa69056 in allocateNewDecl (zig) return mod.intern_pool.destroyNamespace(mod.gpa,...

To use the 64-bit atomics, you need to use `wasm64`.

~~did you build zig from source on this machine? using the cmake system.~~ EDIT: checked the latest nightly builds and i see you're using it. nvm, my question is withdrawn.

compiling zig from source on a big endian system is not supported currently. EDIT: yes it is supported, just not tested i believe. something you could do which would be...

You need to compile Zig with the `lse` extension enabled. https://zig.godbolt.org/z/KGcrdKds6

> Now, it would be great if the compiler I just obtained above by default compiles zig programs LSE -- or do I need to specify that manually... investigating How...

A better repro: ```zig extern fn foo() [*c]u32; pub fn main() !void { _ = @as(fn () callconv(.C) ?*u32, foo); } ```