ELSEIF
Your brief EB
423 stories from 97 feeds 268 clusters Refreshed 17 minutes ago next pull 06:51

TECH Signal 397

Futhark proposes flatmap SOAC to handle irregular arrays without general language support

Illustration only Photo by Anders Jildén on Unsplash

Futhark is exploring a new flatmap second-order array combinator to allow programmers to work with irregular arrays, leveraging the compiler's existing flattening transformation.

WHY IT MATTERS

This allows Futhark programs to express algorithms like recursive quicksort that naturally produce subarrays of varying sizes. It provides this capability without the compilation overhead of fully supporting irregular arrays in the type system.

Written by elseif from the cluster below · every claim links back to a source

The three things worth knowing

01

Futhark restricts irregular arrays because of compilation efficiency and its size type system.

02

The compiler's flattening transformation already handles irregular arrays as intermediate results by encoding them as regular arrays.

03

A proposed flatmap SOAC exposes this capability to programmers, enabling algorithms like recursive quicksort.

THE CLUSTER

Same story, 1 feed.

ORDERED BY FIRST SEEN
futhark-lang.org via Lobsters How should Futhark expose irregular arrays to the programmer? Open ↗