Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
otabdeveloper4
· 1y ago · 0 comments
All code is perf-sensitive. Not all code is important enough to be written as we'd like it to be.
Comments
[–]
zelphirkalt
1y ago
We don't like all code to be written in some C or C++ dialect.
[–]
gf000
1y ago
Then why use C? Take a look at actually perf-sensitive hot loops, and they are predominantly some inline assembly with a bunch of SIMD hacks, which can be 1000x times faster than C...
[–]
otabdeveloper4
OP
1y ago
Unfortunately inline assembly isn't portable even to different revisions of one CPU architecture, much less different ones.