"Making Elm Talk to Your Personal Supercomputer"
summary
Combines Elm front end with Futhark-generated GPU code via OpenCL and a Python bridge and demonstrates real speedups and practical workarounds: Futhark compiles to OpenCL/pyOpenCL and runs heavy linear algebra on the GPU, achieving ~90x speed-up on 1600×1600 matrix multiplication (153 ms vs 14 s C, 48 s JS). Shows a concrete pitfall — a nonassociative reducer gives wrong sums unless rewritten as map then reduce — and ships a Rube-Goldberg pipeline: Elm→HTTP→Python→Futhark→GPU that produces working PCA and heat-flow simulations.
AI-written summary · about
chapters (21)
- 0:00Intro
- 0:11Elm + Futhark
- 1:45How to get Elm to talk to a supercomputer
- 2:43Creator of Futhark
- 3:07OUTLINE
- 4:49II. What is Futhark?
- 5:47Code Snippet
- 6:56Compiler is smart - How?
- 7:31Futhark vs NVIDIA & AMD
- 8:43HotSpot Benchmark
- 9:48III. A Real World Problems
- 10:24(b) Classify fossils
- 11:55Data on 10,000 fossil bones
- 15:03IV. Matrix Multiplication
- 19:09Benchmarks
- 22:23Futhark in Five Minutes .... (vector x Matrix)
- 24:05Futhark is for standard humans!
- 24:47VI. A Pitfall in Parallel Programming
- 26:32Futhark makes assumptions
- 27:27The bad reducer
- 28:05VII. Communication
related talks
36mBuilding a Graphical IDE in Elm (...)
19mFuthark: A High-Performance Purely Functional Array Language
44mFunctional Array Funhouse Intensive - Part 5 of 5
09m0-60 in 15 Minutes: Building a Realtime App With Elm and Horizon
42mClojure is Not Afraid of the GPU
47mFunctional Array Funhouse Intensive - Part 4 of 5
41mHow to Elm-ify Your ML
02h 50mFunctional Array Funhouse Intensive - Part 3 of 5
