New Issue: Port C++ Sieve of Eratosthenes code to Chapel

17081, “bradcray”, “Port C++ Sieve of Eratosthenes code to Chapel”, “2021-02-03T18:51:58Z”

A recent / upcoming publication comparing languages in terms of energy efficiency contains some results measured using a particularly naive implementation of the Sieve of Eratosthenes in Chapel, resulting in the following table:

From what I can tell, it seems that they used the first / most naive Chapel implementation from the RosettaCode website: RosettaExamples/sieve-of-eratosthenes-2.chapel at master · greensoftwarelab/RosettaExamples · GitHub The C++ version that was used appears to be this one: RosettaExamples/Sieve-of-Eratosthenes/C++ at master · greensoftwarelab/RosettaExamples · GitHub

The idea behind this task is to look into doing a more direct port of the C++ version to Chapel to see whether a more competitive result can be obtained. Someone interested in this task might also consider evaluating the performance of the other Chapel variations of the sieve computation on RosettaCode to see how they compare to the C++ version.