148 points · by dons · 13y ago · 35 comments
One small change I would make to the preprint would be to better normalize the graph symbols. In particular, failing to read the legends of each graph carefully might cause readers to misattribute results in subsequent graphs (for example, my mind wanted to associate Intel's HRC with "the lighter gray ones with the boxes", which is not a stable representation across all graphs).
Similarly as the article points out, the compiler matters a lot: ICC can in certain cases be more than 200% faster than GCC with similar flags, and is generally 15-20% faster anyway, mainly due to more intelligent inlining and much faster (and more accurate with fpmath=fast) math libs.
http://en.wikipedia.org/wiki/Intel_C%2B%2B_Compiler#Criticis...
As an AMD user I really hope most programmers know this by now. If you make a build for the general public as opposed to only targeting Intel machines, please don't use ICC.
http://www.hardware.fr/articles/847-1/impact-compilateurs-ar...
It can generate code which when run on AMD is faster than GCC and MSVC.
http://software.intel.com/sites/products/documentation/docli...
..suggests nothing has changed. Search for "non-Intel".
Maybe ICC generates code which beats GCC even when run on an AMD chip in one particular benchmark but that doesn't mean it generates better code in general.
Personally I will never trust the Intel compiler, because it's part of their business strategy to generate bad code for AMD processors.
Even if the claim in the original post about being "generally 15-20% faster" were true for Intel chips, it wouldn't be 15-20% faster on AMD or Intel's documentation - which clearly states the compiler generates inferior code for non-Intel chips - is wrong.
I'm repeatedly surprised when programmers don't emphasize how much comparisons can be about good programs and not so good programs, and instead drift into somewhat tribal language comparisons.
I kind-of think we know better but that knowledge just doesn't serve language advocacy, so it's not mentioned.
As we often we get hired by programming language, language advocacy has obvious importance to us ;-)
I suppose that's the point of this paper though, that "c-like performance" is a terribly vague term, meaningless without knowledge of the specific comparisons being made.
For example[1] shows that for very advanced algorithms (such as BLAS), Haskell can be very performant - with the optimisation being reusable and transparent to the programmer.
[1] - http://research.microsoft.com/en-us/um/people/simonpj/papers...
To quote the paper: "Clearly “properly”-written C++ can outperform Haskell. The challenge is in figuring out what “proper” means."
otoh http://benchmarksgame.alioth.debian.org/u32/program.php?test...
otoh http://benchmarksgame.alioth.debian.org/u32/program.php?test...
:-)
* Core is just desugared Haskell and should not be confused with GHC's other intermediate languages, STG and C--. And there is no relation to Intel's "Core" microarchitecture.
Scribd is for people who want to share a PDF but don't know how to do it in any other way. It's pretty much never been welcome on HN because that's the only problem it solves and everything else it does is inferior to just having a native PDF you can view with no problems and save with no problems. We are not the target market so I never understood why it was pushed on HN at all.
[1]http://googlesystem.blogspot.com/2010/08/google-chromes-pdf-... [2]independently verified to me by a foxit employee.
No, it's not, unless, Google figured out a way to install their PDF viewer plugin in my Firefox without me noticing. ;) The link 6ren posted is to Google Docs's file viewing component, now sold separately: https://docs.google.com/viewer
I'm not completely sure, but I think that for PDFs what the Google Docs viewer does is (1) generate a PNG image of each page, (2) extract the text and put in on the page as invisible HTML, positioned carefully to correspond to the PNG. The point of (2) is that it makes text selectable.
> why it was pushed on HN at all
I agree scribd is terrible/useless (personal opinion) and does catch a lot of flack here, but it's YC S06.For me to take such a comparison seriously, you need to present evidence to us transparently, with the understanding that every such comparison inevitably relies on making choices and is hence only meaningful insofar as those choices can be seen and understood by the reader
That report is quite old though and just compares compilers with the nofib benchmark.
JHC can't compile repa as repa requires multi-parameter type classes which JHC doesn't support unfortunately.
Very interested in seeing where Haskell is headed in the future. Major props to Intel for the disclaimer that this isn't a definitive study.