Veikka Tuominen

Results 363 comments of Veikka Tuominen

`http.Router(400 * 400)` is 1.5 GB big and it's triggering an int cast safety check. Reduction: ```zig const S = struct { a: [1585786912]u64 = undefined, fn init(comptime _: void)...

The compiler crashing is a bug, it only makes it to LLVM using a release build without safety checks.

This should be covered by #985 and #1214.

It does cause a compile error but the function is still sent to the backend. ```sh-session $ zig-dev test a.zig -fno-emit-bin a.zig:4:20: error: opaque return type 'a.opq' not allowed extern...

I remember running into something similar. Does saving the archive to a file first work?

https://zigtools-releases.nyc3.digitaloceanspaces.com/zls/index.json hasn't been updated in 4 days, probably because of https://github.com/zigtools/zls/commit/37fb7b7d990c7de223724cbb502c1e57891abf9e? @Techatrix

The bug here is that there shouldn't be any errors.

Wouldn't something more like `canonicalize` be better? This strategy already requires a duplicate function with a one arg difference. Maybe a `Type.base()` which would use a while loop instead of...

Something like that yes. It would also work well if in the future `Type` is reworked to be interned or something similar.

Looks like there are three modes of interrupts https://clang.llvm.org/docs/AttributeReference.html#interrupt-risc-v LLVM implements them as function attributes rather than calling conventions, I'm guessing we would add `InterruptUser`, `InterruptSupervisor` and `InterruptMachine` and have...