Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Lockal
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
421.
▲
by
Lockal
13y ago
A 2-dimentional array with width = 6 and height = 4.
422.
▲
by
Lockal
13y ago
Your advice is not bad, but you should definitely try ISPC before rewriting everything in assembly. I'm currently optimizing Cycles Raytracer (without implementing an actual SIMD-packet raytracer), and I'm a little bit tired of av
423.
▲
by
Lockal
13y ago
If you care about SIMD, you should try Intel SPMD Program Compiler ( http://ispc.github.io/ ). Yes, this is a different language, but the result is also very different from normal C compilers. For example, the next thing an e
424.
▲
by
Lockal
13y ago
The math is very simple: register spill is the same, GCC generates 7 vaddsd and 9 vmulsd. ICC generates 7 vaddsd and 15 vmulsd. addsd latency is 3, mulsd latency is 5. There are multiple add-multiply units on intel CPUs, but this code loads
425.
▲
by
Lockal
13y ago
-Ofast is just an option, that works with icc, gcc and clang 3.3. Maybe for gcc 4.8 it includes only "-O3 -ffast-math", but it can be changed in any moment.
426.
▲
by
Lockal
13y ago
If somebody writes a + x (b + x (c + ...)) one should expect this code to be future-proof and work with any compiler. But if code is mixed with inline assembly, the result will be doubtful, at least. No need to be a prophet. First CPU wit
427.
▲
by
Lockal
13y ago
Your GCC and Clang are outdated and results are VERY UNFAIR in many aspects. Intel compiler violates IEEE 754 by reassociating multiplication and addition. It you want to compare icc with other compilers, you should use -Ofast option with o
428.
▲
by
Lockal
13y ago
He forgot about 3 things: 1) FMA. The most important optimization that GCC can do automatically on Haswell with ffast-math. With FMA and AVX one can calculate 4 (!) doubles simultaneously only for 10 instructions! 2) Register spill. His fin
429.
▲
by
Lockal
13y ago
LAUNCH SITE LAUNCH SITE LAUNCH SITE LAUNCH SITE LAUNCH SITE LAUNCH SITE LAUNCH SITE PLEASE TURN ON YOUR JAVASCRIPT Was that all he wanted to say?
430.
▲
by
Lockal
13y ago
5 KB of html, and 22 KB of Google Analytics JS + 1 gif. It's 2013 and website owners still can't parse theirs motherfuckingwebserver's logs, extract browser info and apply GeoIP database for visitor counting. They speak about