2 ms·
The main innovation of Occam, i.e. the only one of its features that did not exist in earlier programming languages, was what in Occam (1985) was named "replica
by adrian_b 3y ago
The main innovation of Occam, i.e. the only one of its features that did not exist in earlier programming languages, was what in Occam (1985) was named "replicated parallel".
This Occam "replicated parallel" was based on the paper "Communicating Sequential Processes" by C.A.R. Hoare (1978-08), where it was named "array of processes". Hoare was an important contributor to the definition of Occam.
The Occam "replicated parallel" (1985) is the same as the "PARALLEL DO" of OpenMP Fortran (1997-10) and the "parallel for" of OpenMP C and C++ (1998-10), i.e. the concurrent execution of many threads that share the same code.
This structure is essential for being able to use CPUs or GPUs with many cores, because if a programmer would have to write one thousand different function definitions, or even just one thousand different function invocations, in order to fully occupy a processor able to execute simultaneously one thousand threads, that would be hopeless.
That is why "parallel for" is the main structure used by CUDA, OpenCL and by the graphics shader languages, even if for some weird reason all these GPU-oriented programming languages use an obfuscated terminology, where many things have different names than in the rest of the computer-related literature, without any rational justification, so they do not say "parallel for", but "kernels" or the like.