I did something similar to `array[M, Vec[N,T]` when I wrote my math library in 
C, but somehow it did not occur to me to do the same in Nim.

The reason that I am looking into Nim (again) is because I ran into limits 
creating a compute kernel DSL for C. I want to be able to write formulas (using 
Nim) and output them as OpenCL C, GLSL, SPIR-V using a function or expand them 
to (Nim) code for CPU execution (using scalar or SIMD etc.) using a macro. Nim 
seems to be perfect for this.

Reply via email to