|
1 | | -;; SPDX-License-Identifier: PMPL-1.0-or-later |
2 | | -;; Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk> |
3 | | -;; META.a2ml — Meta-level information for halideiser |
4 | | - |
5 | | -(meta |
6 | | - (version "0.1.0") |
7 | | - (last-updated "2026-03-21") |
8 | | - |
9 | | - (architecture-decisions |
10 | | - (adr "001-iser-pattern" |
11 | | - (status "accepted") |
12 | | - (context "Need to make Halide's algorithm/schedule separation accessible without Halide expertise") |
13 | | - (decision "Use manifest-driven code generation: user describes pipeline stages in TOML, halideiser generates Halide code") |
14 | | - (consequences "Users write zero Halide code; all complexity in the -iser; 10-100x speedups accessible to non-experts")) |
15 | | - |
16 | | - (adr "002-abi-ffi-standard" |
17 | | - (status "accepted") |
18 | | - (context "Need verified interop between Rust CLI, Halide C++ runtime, and user applications") |
19 | | - (decision "Idris2 ABI for formal proofs of pipeline correctness and buffer safety; Zig FFI for C-ABI bridge") |
20 | | - (consequences "Compile-time guarantees that buffer dimensions match between stages; zero runtime overhead from proofs")) |
21 | | - |
22 | | - (adr "003-halide-separation" |
23 | | - (status "accepted") |
24 | | - (context "Halide's core insight: algorithm and schedule should be separate") |
25 | | - (decision "Halideiser preserves this separation — pipeline stages define the algorithm, scheduling primitives define execution strategy") |
26 | | - (consequences "Same pipeline can be compiled for different targets (CPU/GPU/WASM) by changing only the schedule")) |
27 | | - |
28 | | - (adr "004-auto-tuning" |
29 | | - (status "accepted") |
30 | | - (context "Optimal schedules depend on specific hardware — cache sizes, SIMD width, GPU warp size") |
31 | | - (decision "Implement auto-tuning: search over schedule space (tile sizes, vectorise widths, parallelism) via benchmarking") |
32 | | - (consequences "Near-optimal performance without manual tuning; tuning results cached per (pipeline, hardware) pair")) |
33 | | - |
34 | | - (adr "005-rsr-template" |
35 | | - (status "accepted") |
36 | | - (context "Need consistent project structure across 29+ -iser repos") |
37 | | - (decision "All repos cloned from rsr-template-repo with full CI/CD and governance") |
38 | | - (consequences "17 workflows, SECURITY.md, CONTRIBUTING, bot directives from day one"))) |
39 | | - |
40 | | - (development-practices |
41 | | - (language "Rust" (purpose "CLI orchestration — parse, validate, generate, build, run")) |
42 | | - (language "Idris2" (purpose "ABI formal proofs — pipeline correctness, buffer safety, schedule validity")) |
43 | | - (language "Zig" (purpose "FFI C-ABI bridge — compiled pipeline execution from any language")) |
44 | | - (language "C++" (purpose "Generated Halide code — Func/Var definitions and AOT compilation")) |
45 | | - (build-tool "cargo" (purpose "Rust CLI")) |
46 | | - (build-tool "zig build" (purpose "FFI shared/static library")) |
47 | | - (ci "GitHub Actions (17 workflows)")) |
48 | | - |
49 | | - (design-rationale |
50 | | - (principle "Manifest-driven" |
51 | | - (explanation "Pipeline described in halideiser.toml; all generation is deterministic and reproducible")) |
52 | | - (principle "Algorithm/Schedule separation" |
53 | | - (explanation "Halide's core insight preserved — same algorithm runs on CPU, GPU, or WASM by changing schedule")) |
54 | | - (principle "Formally verified buffers" |
55 | | - (explanation "Idris2 dependent types prove buffer dimensions match between stages and bounds are respected")) |
56 | | - (principle "Hardware-adaptive" |
57 | | - (explanation "Auto-tuning searches the schedule space for optimal performance on specific hardware")))) |
| 1 | +# SPDX-License-Identifier: PMPL-1.0-or-later |
| 2 | +# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk> |
| 3 | +# |
| 4 | +# META.a2ml — Halideiser meta-level information |
| 5 | +[metadata] |
| 6 | +version = "0.1.0" |
| 7 | +last-updated = "2026-03-21" |
| 8 | + |
| 9 | +[project-info] |
| 10 | +license = "PMPL-1.0-or-later" |
| 11 | +author = "Jonathan D.A. Jewell (hyperpolymath)" |
| 12 | + |
| 13 | +[architecture-decisions] |
| 14 | +decisions = [ |
| 15 | + # No ADRs recorded |
| 16 | +] |
| 17 | + |
| 18 | +[development-practices] |
| 19 | +versioning = "SemVer" |
| 20 | +documentation = "AsciiDoc" |
| 21 | +build-tool = "just" |
| 22 | + |
| 23 | +[maintenance-axes] |
| 24 | +scoping-first = true |
| 25 | +axis-1 = "must > intend > like" |
| 26 | +axis-2 = "corrective > adaptive > perfective" |
| 27 | +axis-3 = "systems > compliance > effects" |
0 commit comments