Usually (F90 permits overloading), F90's array operations apply the same operation to each element of an array, and cannot process arrays which aren't conformal (same organization), so F90's array operation A = B * C would be the equivalent to
real,dimension(2,3,4) :: A, B, C integer j, k, m do j = 1, 2 do k = 1, 3 do m = 1, 4 A(j,k,m) = B(j,k,m) * C(j,k,m) enddo enddo enddo
Of course, Fortran programmers like typing no more than any other type of programmer1, so A = B * C would be preferred ;-).
I'm not saying that the F90 way is optimal; it's just that the philosophy behind the F90 standard is to make parallelization transparent to the application programmer, which means that having a different syntax for parallel operations would be frowned upon. Certainly, some of Perl's existing syntax (grep, many list operations) could be parallelized without any visible changes to the language.
1 Well, maybe COBOL programmers like typing, but I wouldn't want to stereotype them.
In reply to Re^5: Multi-core and the future
by swampyankee
in thread Multi-core and the future
by pileofrogs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |