openlang

参与的讨论

3
  1. An errdefer free leaked on the success path

    A test leaked memory, and the leak was on the path that succeeded. The function allocated a scratch buffer, parsed into a res…

    回复 3最近活动 zig
  2. try vs catch unreachable compares two different programs

    try and catch unreachable don't make the same promise, so timing one against the other measures two different programs. Both…

    回复 4最近活动 zig
  3. volatile buys less than most drivers assume

    Reading a UART driver again and the same pattern shows up. status is a volatile uint32_t * aimed at the status register, the…

    回复 1最近活动 c