A proposal sharing about Const Generics for .NET.
Const Generics allows compile-time constants as generic arguments, enabling the runtime and JIT to specialize code per constant for safer, faster HPC and systems code. This proposal introduces a minimal C# surface with reflection support, fixed-size primitives (ValueArray<T, N>, Vector<T, Size>, Matrix<T, Row, Col>, Tensor<T, Rank>, Span<T, Dim>), and a concrete low-level design across IL, metadata, signatures, runtime types, JIT, and VM.
Key points:
C# and Reflection
IL/Metadata/Signatures
Runtime/JIT/VM changes
Hardware Acceleration
Use cases