On Fri, Aug 6, 2010 at 8:36 AM, Frank Heckenbach ih8mj@fjf.gnu.de wrote:
GPC has operator overloading as well (as was mentioned here before), and a straightforward array multiplication operator can be implemented in GPC as is.
Interresting, I didn't know it. Is the syntax fpc compatible?
I guess that what prevented me over the years from changing from a vague curiosity about GPC and actually using it is the fact that it doesn't compile the vast majority of Pascal code out there. Had it supported delphi-like syntax with dialect modes like FPC it would probably have been way more used.
But I think John's main point was parallelization, i.e. multiplication of larger arrays (I suppose, 37 wouldn't quite make it worthwhile ;-) would automatically be distributed over multiple processors as he wrote, or as we'd probably implement it, into several threads (where the thread -> CPU mapping is left to the OS).
You can implement that in the code of the operator overloading, just start a thread there.