u/hkailahiin r/haskell • Recommends
"Outperforming Imperative with Pure Functional Languages" by Richard Feldman
88K subscribers • 114 videos on Hallway • Conference channel
- Recommended by 10 people: 6 on Hacker News, 1 on Lobsters and 3 in engineering communities.
- A classic. People kept recommending it from 2021 to 2025.
- Presented by Richard Feldman, creator of Roc
- An opinion. It argues one side of a question engineers disagree on.
Intermediate. Assumes working knowledge.
98K views5 years ago10 recommendations
Programming languagesSystems programmingFunctional programmingPerformance and optimizationCompilers and interpreters
Richard Feldman explains how pure functional languages like Roc use compiler optimizations like opportunistic in-place mutation to match or exceed imperative performance.
Like many, I once thought that functional programming makes programs easier to maintain, but slower to run. After all, that had been my experience; when I wrote JavaScript in a functional style, my code got easier to maintain - but it no longer ran as fast. Once I got deeper into functional languages, including pure functional ones, I was surprised to discover that they could actually outperform imperative languages - not just in tasks generally considered "well-suited" to functional programming, but sometimes even in cases considered well-suited for imperative programming! This talk examines performance from the network level all the way down to individual CPU instructions to show how and when pure functional programming languages can outperform their imperative counterparts. Come see just how fast functional programming can be! Richard Feldman NoRedInk @rtfeldman Richard Feldman is a software engineer at NoRedInk and a well-known member of the Elm community. Recorded at Strange Loop 2021 thestrangeloop.comWhy it's here
10 people recommend thisWhat people say. Highly recommended for explaining how compilers can optimize immutable functional code into high-performance in-place mutations.
Moments people linked to
u/hou32houin r/ProgrammingLanguages • Recommends
u/fredoverflowin r/ProgrammingLanguages • Recommends
agent281on Lobsters • Recommends
agent281on Lobsters • Recommends
memcoon Hacker News • Recommends
On “4x Smaller, 50x Faster”
niels_bomon Hacker News • Recommends
On “4x Smaller, 50x Faster”
aquadropon Hacker News • Recommends
On “Haskell2020 Is Dead, but All Hope Is Not Lost (2019)”
Akronymuson Hacker News • Recommends
On “Ask HN: Functional vs. Imperative Implementation of Algorithms”
yashrkon Hacker News • Recommends
On “Roc – A fast, friendly, functional language”
greener_grasson Hacker News • Recommends
On “Serialization Is the Secret”
greener_grasson Hacker News • Recommends
On “Roc rewrites the compiler in Zig”
u/Arcsechin r/ProgrammingLanguages • Mentions
On “Why are imperative programs considered faster than their functional counterparts?”
u/witoldszin r/functionalprogramming • Mentions
On “Is it possible to make a functional programming language that is equivalent of Rust in terms of performance and resource efficiency?”
u/hammerheadquarkin r/ProgrammingLanguages • Mentions
On “Ante – a low-level functional language”
u/msqrtin r/ProgrammingLanguages • Mentions
On “Fixing the Next 10,000 Aliasing Bugs”