Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Benchmarks show that high-level Haskell code written using our compiler and libraries can produce code that is faster than both compiler- and hand-vectorized C.

Big, if it holds up.



We're talking <10% difference on one particular toy example exclusively on arrays at least ¼MiB large.

Given how similar the code produced is from both compilers (literally just movapd-mulpd-addpd), the only relevant difference seems to be usage of prefetching, which C compilers don't do much because the common wisdom is that it hurts in most scenarios.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: