r/ProgrammingLanguages • • 1d ago

Comparing Parallel Functional Array Languages: Programming and Performance

https://www.sciencedirect.com/science/article/pii/S074373152600153X
14 Upvotes

8 comments sorted by

8

u/Athas Futhark 20h ago edited 17h ago

I worked on this paper. Most of the work was done two years ago (and an Arxiv draft was also circulated), but we then went through the most miserable and drawn-out submission procedure I have ever experienced. I suppose we picked a fight by writing such a long and unwieldy text.

In retrospect, I think the paper focuses too much on ephemeral performance differences that are mostly due to differences in compiler quality, and which might go away if more effort was spent on the implementation. Some of the performance differences are due to more fundamental differences in the languages (e.g. whether a flattened algorithm or some manual optimisation can be expressed), and those are interesting, but they drown a bit in the mass of less interesting differences.

1

u/seg_lol 18h ago

How would you quash the differences?

2

u/Athas Futhark 17h ago

Which differences? (I had a typo in my original post: I wrote "computer differences" instead of "compiler differences". Obviously all benchmarking was on the same computer.)

For the compiler differences, I'd just put more effort into all the compiler, but I don't really think that's the interesting question. Qualitative comparisons between the languages is more stimulating, but a lot harder to do. One thing I hoped this paper would do, but doesn't really, is investigate the relationship or tension between parametric polymorphism and rank polymorphism.

4

u/pthierry 23h ago

I wouldn't wish on my worst enemy to work on parallel or concurrent code with mutable data and side effects…

7

u/Athas Futhark 20h ago

You are a better person than me, for this is exactly the fate I decree for my worst enemies.

4

u/L8_4_Dinner (Ⓧ Ecstasy/XVM) 20h ago

Our own Troels (a mod here) helped to write that paper.

cc: /u/Athas

3

u/AustinVelonaut Admiran 21h ago

This is a nice survey. I hadn't heard of Single Assignment C, before.

1

u/gasche 6h ago

Can we get a link to the paper that is not on ScienceDirect, but directly a PDF? I am curious to look at it, but not enough to suffer the ScienceDirect UI.