Email or username:

Password:

Forgot your password?
Top-level
benjohn

@b0rk I suppose it is weird, but I kind of like integer overflow. I like how it’s a big circle that goes round and round for ever. I remember it being useful sometimes for computer graphics in assembly. But it is mostly useless when we usually want numbers that do normal things!

2 comments
Julia Evans

@benjohn yeah absolutely, it's fun to see something that I spent a lot of time learning about in math class ("the numbers modulo n”) have such a mainstream real-life application

Ayke van Laethem

@benjohn yes indeed, with some clever tricks it can be quite useful in graphics! This is also what FastLED does:
github.com/FastLED/FastLED/wik

I like it when data is defined in a way that it naturally leads to very efficient code.

Go Up