|
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 futharkiser |
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 Futhark GPU programming accessible without steep learning curves") |
13 | | - (decision "Use manifest-driven code generation: user describes WHAT array operations to accelerate, futharkiser generates Futhark SOACs and compiles to GPU kernels") |
14 | | - (consequences "Users write zero Futhark/CUDA/OpenCL code; all complexity in the -iser")) |
15 | | - |
16 | | - (adr "002-abi-ffi-standard" |
17 | | - (status "accepted") |
18 | | - (context "Need verified interop between Rust CLI, Futhark GPU kernels, and user code") |
19 | | - (decision "Idris2 ABI for formal proofs of parallelism safety and GPU buffer layouts; Zig FFI for C-ABI bridge to Futhark runtime") |
20 | | - (consequences "Compile-time correctness guarantees for GPU memory management; zero runtime overhead from proofs")) |
21 | | - |
22 | | - (adr "003-futhark-soacs" |
23 | | - (status "accepted") |
24 | | - (context "Futhark's power comes from its second-order array combinators (SOACs)") |
25 | | - (decision "Map source patterns to Futhark SOACs: map, reduce, scan, scatter, flatten/unflatten") |
26 | | - (consequences "Covers the vast majority of data-parallel GPU workloads; Futhark compiler handles fusion and tiling")) |
27 | | - |
28 | | - (adr "004-gpu-backends" |
29 | | - (status "accepted") |
30 | | - (context "Different users have different GPU hardware; some have no GPU at all") |
31 | | - (decision "Support all four Futhark backends: OpenCL (widest), CUDA (NVIDIA), multicore CPU, sequential C (debug)") |
32 | | - (consequences "futharkiser works everywhere, from headless servers to developer laptops")) |
33 | | - |
34 | | - (adr "005-memory-space-tracking" |
35 | | - (status "accepted") |
36 | | - (context "GPU programming requires explicit management of host vs device memory") |
37 | | - (decision "Track MemorySpace (Device/Host/Shared) in the ABI type system with transfer validity proofs") |
38 | | - (consequences "Prevents invalid cross-boundary accesses at compile time; enables minimisation of host-device copies")) |
39 | | - |
40 | | - (adr "006-rsr-template" |
41 | | - (status "accepted") |
42 | | - (context "Need consistent project structure across 29+ -iser repos") |
43 | | - (decision "All repos cloned from rsr-template-repo with full CI/CD and governance") |
44 | | - (consequences "17 workflows, SECURITY.md, CONTRIBUTING, bot directives from day one"))) |
45 | | - |
46 | | - (development-practices |
47 | | - (language "Rust" (purpose "CLI and orchestration")) |
48 | | - (language "Idris2" (purpose "ABI formal proofs — parallelism safety, GPU buffer layout verification")) |
49 | | - (language "Zig" (purpose "FFI C-ABI bridge to Futhark-compiled GPU code")) |
50 | | - (language "Futhark" (purpose "Generated target — compiled to OpenCL/CUDA GPU kernels")) |
51 | | - (build-tool "cargo") |
52 | | - (ci "GitHub Actions (17 workflows)")) |
53 | | - |
54 | | - (design-rationale |
55 | | - (principle "Manifest-driven" |
56 | | - (explanation "User intent captured in futharkiser.toml; all generation is deterministic and reproducible")) |
57 | | - (principle "Formally verified bridges" |
58 | | - (explanation "Idris2 dependent types prove parallelism safety (associativity of reduce operators, purity of map functions, array shape compatibility) at compile time")) |
59 | | - (principle "Zero GPU expertise required" |
60 | | - (explanation "Users never write Futhark, CUDA, or OpenCL — futharkiser generates everything from high-level array operation annotations")) |
61 | | - (principle "GPU buffer layout proofs" |
62 | | - (explanation "The ABI layer includes a GPUBufferDescriptor struct layout that is verified to match between Idris2 and Zig at compile time (32 bytes, 8-byte aligned)")))) |
| 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 — Futharkiser 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