News for hackers. Stuff that matters.
Re:Dave Herman’s contributions to Rust by AndyKelley on Tuesday May 04, 2021 @01:16PM (#27039936)
In zig you get a compile error if you exceed 1000 backwards branches (e.g. a loop or a function call). If you want to raise the quota you bump it with e.g. `@setEvalBranchQuota(2000);`. This is how we solve the halting problem :)

Anyway if you want to know why your compile time is slow in a given zig project, you can probably get pretty far by grepping for calls to that builtin.

There are no comments on this comment yet.