Blogs / Personal blogs

Peter Cawley

corsix.org

It was recently pointed out on lobste.rs that Zig has overhauled how its parser does operator precedence. The related documentation contains this cute little flowchart of the new operator precedence rules:

Popular posts
6
Total points
859
HN comments
289
Rank
#2,637 personal

Visit corsix.org → RSS feedOn Hacker News Aug 2022 – Apr 2026

Software Engineering 5Systems & Performance 4Math & Algorithms 2Hardware & Electronics 1

1

Galois field instructions on 2021 CPUs

CPUs like to operate on data types such as uint8_t , uint16_t , uint32_t , and uint64_t . These data types can be viewed as integers modulo 2 8 , 2 16 , 2 32 , and 2 64 respectively. Addition and multiplication can be defined on these integers modulo 2 N in a way which is familiar to most people; for example, in…