Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Zig and Emulators (floooh.github.io)
2 points by signa11 on Aug 25, 2024 | hide | past | favorite | 1 comment


Very nice read.

I agree with the author that Zig should improve a bit the readability of integer and vector arithmetics.

Small tips is to use more lines.

  fn addOffset(base: u16, off: u8) u16 {
    const ibase: i16 = @bitcast(base);
    const ioff: i8 = @bitcast(off);
    return @bitCast(ibase +% ioff);
}




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: