Concurrent Programming in Dyalog
On now
APL's array-orientation means that it is an inherently data-parallel notation. For performing the same operation on multiple elements (SIMD), there's not much more you need. However, for expensive computations, calls to external services, or computing while your system continues to service external requests, you might want to run multiple different functions at the same time, or run functions in different CPU processes or even different machines at the same time.
This workshop looks at the two main features of Dyalog made for concurrent programming: the spawn operator (&) and its associated ⎕Txxx system functions; and the isolate.dws workspace. You will learn how to run functions in parallel, strategies for managing multiple threads, and how you can collect results.
Prerequisites
- Dyalog v19.0 or later (any operating system, Unicode preferred, 64-bit preferred)
- Additional materials: Workshop materials on GitHub
Keywords
- performance
- optimisation
- concurrency
- parallel language features