2022 Conference Edition Part 3a - Future(s)
summary
Dyalog 2022 Conference Edition adds concrete async plumbing: green threads via the spawn operator, .NET tasks and Futures/isolate support, plus a unifying converter I-beam 703 that turns thread IDs or System.Threading.Tasks into APL Futures so calling code treats results uniformly. Demo uses dfns N‑Queens (Queens 12 is slow) and parallel each which returns a vector of Futures immediately; converting a thread to a Future prevents value errors. Exported APL functions can return Task<double> and a C# consumer waits and reads the 5.138 result.
AI-written summary · about
chapters (10)
- 0:00The state of asynchronous features in Dyalog
- 3:25Green threads with the spawn operator
- 4:30NET tasks
- 7:25Futures and isolates
- 8:20Async models differ in syntax and blocking behaviour when obtaining results
- 9:50A unifying I-beam function to convert threads and tasks into futures
- 13:00Demonstration using the dfns N-queens function
- 16:24Demonstration using a wait function
- 20:42Returning .NET tasks from APL
- 27:05Summary
