Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
eska
on July 4, 2023
|
parent
|
context
|
favorite
| on:
Problems of C, and how Zig addresses them
If this wasn’t math code we’d refactor such code into helper functions, but somehow when it’s math we refuse to.
vec4 c = a * 4 + b;
vec4 c = vec4_add(vec4_mul(a, 4), b);
vec4 c = vec4_fma(4, a, b);
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
vec4 c = a * 4 + b;
vec4 c = vec4_add(vec4_mul(a, 4), b);
vec4 c = vec4_fma(4, a, b);