On Tue, 2017-05-30 at 17:22 -0700, H. S. Teoh via Digitalmars-d-learn wrote: > […] > performance in a significant way. But I thought this might be a > useful > tip for people who want to squeeze out the last drop of juice from > their > CPUs. ;-) > […]
I have the beginnings of wc written in various languages. I may well follow this thread up to create a full D implementation of wc that people can then optimise a bit. However, I note here that the Chapel folk are taking a quite interesting view of algorithm implementation in the Benchmarks Game. They are totally eschewing "heroic implementations" such as all the C, C++, etc. in favour of understandable and simple ones. Their take on raw performance is "if you need it to go faster, use a bigger computer". Which is quite easy when you have a number of Cray computers at your disposal. :-) Whilst having some fun, the Benchmark's Game has become all about heroic implementations on a specific computer. Which makes the Chapel line an excellent one. OK for wc the case is different because it is about performance on the users computer. But still I like the "keep the implementation comprehensible, avoid heroic implementation". -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net 41 Buckmaster Road m: +44 7770 465 077 xmpp: rus...@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
signature.asc
Description: This is a digitally signed message part