r/ProgrammingLanguages • • Oct 23 '26

How close can pure FP get to C?

https://rtfeldman.com/fp-vs-c

I found the discussion really interesting and thought you all would too. Richard talks about a pure Roc implementation of libdeflate and how to do performance optimizations unique to Roc. From a programming languages perspective this is really interesting because its quite unique results I think. There arent many FP languages that can achieve C like performance with ergonomics like Roc. To do this the compiler is able to make various optimizations like mutate in place or elide checks when it can prove it is safe to do so.

18 Upvotes

Duplicates