Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Alham-Dulillah
1 karma · joined Oct 1, 2021 (5y ago) · 4 submissions
Submissions
comment 4y ago ·
link
·
parent
This one-liner works for x==y: x ^= y ^ (y = x); Is this really code, or some kind of new text emojis? :)
comment 4y ago ·
link
·
parent
x ^= y ^ (y = x); //one-liner
comment 4y ago ·
link
·
parent
HLSL can swap the x and y values of a float2 with swizzling: a = a.yx;
comment 4y ago ·
link
·
parent
Weed killers and insecticides. Birds die when you poison and kill their food.