Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^5: Multi-core and the future

by swampyankee (Parson)
on Sep 01, 2008 at 19:24 UTC ( [id://708292]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Multi-core and the future
in thread Multi-core and the future

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.


Information about American English usage here and here. Floating point issues? Please read this before posting. — emc

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://708292]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2024-04-23 19:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found