from Hacker News

Compiling Array Languages for SIMD [pdf]

by vmchale on 2/9/25, 1:54 PM with 13 comments

  • by clausecker on 2/12/25, 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 fuhsnn on 2/13/25, 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 vmchale on 2/9/25, 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 ldbeth on 2/14/25, 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).