Remix.run Logo
jayd16 2 days ago

If you're looking to imagine a world without bools, do some branchless gpu shader coding. Certainly its a different way to think about processing data.

jbreckmckye 2 days ago | parent [-]

I've also seen (non-GPU) programs use numbers with multiplication, instead of if-else, as a means of preventing CPU branch stalls. This technique is sometimes called branchless programming.