News for hackers. Stuff that matters.
Re:Translate Fortran to C++ with AI and RAG by musicale on Saturday April 19, 2025 @10:04PM (#43741020)
Good idea. I'd much rather write

   do concurrent (i = 1:n) 
     y(i) = y(i) + a*x(i)
   enddo
and then let the a compiler translate it into

    std::transform(par, x, x+n, y, y,
      [=](float x, float y){ return y + a*x; }
    );
if C++ is required for some reason.

There are no comments on this comment yet.