Co-dfns Compiler
summary
A prototype Co‑Dfns compiler compiles extended dfns to LLVM and links as objects, uses single-assignment arrays (implicit ivars) plus a lightweight par operator to express deterministic task parallelism, and implements scalar function fusion to convert chains of scalar ops into elementwise pipelines. Benchmarks show memory-local fusion can close a gap as high as ~100× versus interpreter paths. Runtime is stack‑allocated (no GC), targets GPUs and distributed nodes, and integrates with Dyalog APL.
AI-written summary · about
chapters (12)
- 0:00Introduction and background
- 2:31Why build a compiler for APL
- 8:27Limitations of interpreters
- 13:44Memory and cache inefficiencies
- 16:10Single assignment arrays
- 19:22Deterministic parallelism
- 23:14Pipelining and compiler reasoning
- 26:05Declarative optimizations
- 29:35Rewrite rules and scalability
- 31:19Compiler integration and goals
- 33:44Demo and usage
- 35:31Acknowledgments and future work
