D and Nim

weaselcat via Digitalmars-d digitalmars-d at puremagic.com
Sun Jan 4 17:33:58 PST 2015


On Monday, 5 January 2015 at 01:07:07 UTC, weaselcat wrote:
> Compiled it with LDC, GDC and DMD seem to choke on the 
> functional programming and run 4-5x slower.
> ~1120 ms with my version, ~1210 ms with the 'fast' version
>
> the C++ version compiled with gcc still beats it by about 100ms 
> on my machine, but it's the same exact performance as C++ when 
> using clang/LLVM.
>
> Why does reduce! take the seed as its first parameter btw? It 
> sort of messes up function chaining.

just realized I forgot the -release flag on ldmd, sped it up past 
clang and within ~40ms of C++ with gcc.
gdc and dmd still woefully slow with functional version.


More information about the Digitalmars-d mailing list