A look at Chapel, D, and Julia using kernel matrix calculations

kinke noone at nowhere.com
Fri May 22 14:13:50 UTC 2020


On Friday, 22 May 2020 at 01:58:07 UTC, data pulverizer wrote:
> Comments welcome.

Thx for the article. - You mention the lack of multi-dim array 
support in Phobos; AFAIK, that's fully intentional, and the 
de-facto solution is 
http://docs.algorithm.dlang.io/latest/mir_ndslice.html.

As you suspect SIMD potential being left on the table by LDC, you 
can firstly use -mcpu=native to enable advanced instructions 
supported by your CPU, and secondly use 
-fsave-optimization-record to inspect LLVM's optimization remarks 
(e.g., why a loop isn't auto-vectorized etc.). -O5 is identical 
to -O3, which is identical to -O.


More information about the Digitalmars-d mailing list