Compiling Array Languages for SIMD [pdf]

by vmchaleon 2/9/2025, 1:54 PMwith 13 comments

by clauseckeron 2/12/2025, 10:56 PM

I had originally planned something like this for my PhD thesis, but found out that I'm in way over my head. So I scaled down my ambitions a little.

Array languages and SIMD are a match made in heaven. This should be the paradigm of choice for high-performance programming, but it's unfortunately pretty obscure.

by fuhsnnon 2/13/2025, 1:21 AM

It's about the author's language named Apple[1], took a few seconds since Apple Array System unfortunately sounds like some MacOS framework.

For people prefer C-like syntax, there is ispc[2], which supports x86 AVX and ARM Neon programming via LLVM.

[1] https://github.com/vmchale/apple

[2] https://github.com/ispc/ispc

by vmchaleon 2/9/2025, 1:54 PM

One of my blog posts was posted and got some comments. This is a more refined take in the vein of "C is Not Suited to SIMD"

by ldbethon 2/14/2025, 2:04 AM

Probably a more proper title is "type directed optimization for SIMD", I do not see it particularly useful for array languages at large (as many of them, such as APL and J are untyped by intentional choice).